Quote:
Originally Posted by Chompy
Why are you using abs() on some of your vectors?
|
Instead of (player.dir in |0,2| ? k : 0) I use abs(vecy(player.dir)*k, because then vecy gives out 0 or 1, if it gives out 1 the player.dir is either 0 or 2, it's exactly the same as "(player.dir in |0,2| ? k : 0)".