project-navigation
Personal tools

Author Topic: How to loop through firedefs ?  (Read 2902 times)

Offline Yatta

  • Rookie
  • ***
  • Posts: 57
    • View Profile
How to loop through firedefs ?
« 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.

Offline Duke

  • Administrator
  • PHALANX veteran
  • *****
  • Posts: 1037
    • View Profile
Re: How to loop through firedefs ?
« Reply #1 on: March 18, 2010, 11:29:06 pm »
Take a look at AI_FighterCalcBestAction() in game/g_ai.c

Offline Yatta

  • Rookie
  • ***
  • Posts: 57
    • View Profile
Re: How to loop through firedefs ?
« Reply #2 on: March 18, 2010, 11:58:49 pm »
Thanks, ill do that.