project-navigation
News
Download
Forum
Contribute
Media
FAQ
About
Contact
Personal tools
Login
Register
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
New board
Home
Help
Search
Login
Register
UFO:Alien Invasion
»
Development
»
Coding
»
How to loop through firedefs ?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: How to loop through firedefs ? (Read 2977 times)
Yatta
Rookie
Posts: 57
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.
Logged
Duke
Administrator
PHALANX veteran
Posts: 1037
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
Logged
Yatta
Rookie
Posts: 57
Re: How to loop through firedefs ?
«
Reply #2 on:
March 18, 2010, 11:58:49 pm »
Thanks, ill do that.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
UFO:Alien Invasion
»
Development
»
Coding
»
How to loop through firedefs ?