PDA

View Full Version : weapon->Angle



ScaryBinary
06-22-2008, 06:17 PM
...OK, I'm probably the last person to figure this out (if I have, actually, figured it out), but I want to make sure for the sake of updating the Wiki.

1. The Angle property for an lweapon or eweapon is measured in radians, right?

2. And for some reason, "positive" values go clockwise? That is, 0 rad is to the east, pi/2 rad is south, pi rad is west, and 3/2 pi rad is north? I really wanted to double-check this one, because it's not standard, but when I wrote a script to test it...this is how it behaved.

3. If weapon->Angular is true, the Angle property overrides the weapon->Dir property. Or is Dir still used by the engine for some calculations, so you need to set both Dir and Angle?

Thanks!

Joe123
06-22-2008, 06:41 PM
1: Yes

2: No idea

3: Shield interactions still use Dir.