by DavidPH » Thu Mar 15, 2012 9:20 pm
A_FaceTarget(float max_turn = 0, float max_pitch = 270)
(And the same for Tracer and Master.)
After some pressuring from certain community members who shall go unnamed*, I have rewritten the code for pitching to target. It is the same basic idea; if max_pitch is unprovided (or greater than 180) then the function does not affect pitch, otherwise it works like max_turn.
Now, I think that ideally the function would default to affecting pitch, but I do not feel confident enough to say that it would not break compatibility. (Although, the risk would certainly be minimal enough, given the current futility of using a monster's pitch.)
*NeuralStunner
- Attachments
-
A_FaceTarget.7z
- patch for r3445
- (1.38 KiB) Downloaded 64 times
A_FaceTarget(float max_turn = 0, float max_pitch = 270)
(And the same for Tracer and Master.)
After some pressuring from certain community members who shall go unnamed*, I have rewritten the code for pitching to target. It is the same basic idea; if max_pitch is unprovided (or greater than 180) then the function does not affect pitch, otherwise it works like max_turn.
Now, I think that ideally the function would default to affecting pitch, but I do not feel confident enough to say that it would not break compatibility. (Although, the risk would certainly be minimal enough, given the current futility of using a monster's pitch.)
*NeuralStunner