Customizable autoaim params

Suggest features for upcoming versions

Customizable autoaim params

Postby Crimson Wizard » 06 Oct 2009 13:38

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:
Code: Select all
topangle = AngleMod180(-angles.pitch + 30.0);
botangle = AngleMod180(-angles.pitch - 30.0);


Suggested code:
Code: Select all
topangle = AngleMod180(-angles.pitch + NEWPARAM);
botangle = AngleMod180(-angles.pitch - NEWPARAM);
Crimson Wizard
 
Posts: 881
Joined: 09 Nov 2005 14:21
Location: St. Petersburg, Russia

Re: Customizable autoaim params

Postby Firebrand » 16 Oct 2009 11:46

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 :).
User avatar
Firebrand
 
Posts: 1000
Joined: 11 Feb 2004 08:12
Location: Mexico


Return to Feature suggestions

Who is online

Users browsing this forum: No registered users and 0 guests

cron