Thread: Onwall-Check
View Single Post
  #8  
Old 11-23-2008, 12:34 PM
Pelikano Pelikano is offline
Registered User
Pelikano's Avatar
Join Date: Oct 2008
Posts: 1,133
Pelikano has a little shameless behaviour in the past
Quote:
Originally Posted by Chompy View Post
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)".
Reply With Quote