UFO:Alien Invasion

Development => Coding => Topic started by: Yatta on March 18, 2010, 10:46:38 pm

Title: How to loop through firedefs ?
Post by: Yatta on March 18, 2010, 10:46:38 pm
I have an edict_t ent, and I want to know what firedefs are available for the weapon in its right hand.
What should I do ?

My goal is to find which fire def shoots the most bullets.
Title: Re: How to loop through firedefs ?
Post by: Duke on March 18, 2010, 11:29:06 pm
Take a look at AI_FighterCalcBestAction() in game/g_ai.c
Title: Re: How to loop through firedefs ?
Post by: Yatta on March 18, 2010, 11:58:49 pm
Thanks, ill do that.