Back to the Vavoom Forum Archives


Customizable autoaim params

Fri, 16 Oct 2009 11:46:06


Maybe the best would be to add an optional parameter, if it's specified, then that would be used in the function if it isn't then the function would use the original values <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->.
Tue, 06 Oct 2009 13:38:47

Crimson Wizard

I have following suggestion: to make it more easy for modders to set up parameters for doom-style vertical autoiming. I was recently asked by Alex Bomberman to remove it, and I found that quite easy to do, but that required hacking one of the EntityEx methods (AimLineAttack). I believe that only 1 parameter , or maybe even console variable (not sure what is best) is enough: Original code:
topangle = AngleMod180(-angles.pitch + 30.0);
botangle = AngleMod180(-angles.pitch - 30.0);
Suggested code:
topangle = AngleMod180(-angles.pitch + NEWPARAM);
botangle = AngleMod180(-angles.pitch - NEWPARAM);

Back to the Vavoom Forum Archives