Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » AI params questions
AI params questions [message #469163] Tue, 12 June 2012 17:01 Go to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
i got confused about a few things

1) forcefire

it doesnt really forcefire (my gun just aimed but didnt fire until in a certain range)


2) is there a way to track if a gun is actually firing ?

3) is there a way to combine attack and move?


Owner of kambot TT server

kambot.freeforums.org
Re: AI params questions [message #469172 is a reply to message #469163] Tue, 12 June 2012 17:55 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
robbyke wrote on Wed, 13 June 2012 01:01


3) is there a way to combine attack and move?


I believe it is, yes. Look at the source for dp88_ ai_tankOffensive (or something along those lines, don't recall the exact name) because I'm fairly sure I did it in that class.


http://steamsignature.com/card/1/76561197975867233.png
Re: AI params questions [message #469211 is a reply to message #469163] Wed, 13 June 2012 06:36 Go to previous messageGo to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
oh yea i forgot one thing


Register_Auto_Save_Variables()


i see this in many ai scripts but whats it for?


Owner of kambot TT server

kambot.freeforums.org
Re: AI params questions [message #469222 is a reply to message #469163] Wed, 13 June 2012 08:44 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
I believe it's to do with saving script state for single player missions... you don't need to implement it unless your script needs to be compatible with single player missions AND retain data between save / load.

Generally AI type scripts should be able to generate a new set of actions for themselves based on the current game state anyway, so I'm not sure what value there is in saving any state variables. It's more persistent states like 'number of flags returned to base' or something you would want to track with save variables.


http://steamsignature.com/card/1/76561197975867233.png
Re: AI params questions [message #469229 is a reply to message #469163] Wed, 13 June 2012 10:46 Go to previous message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
owk thnx Smile

Owner of kambot TT server

kambot.freeforums.org
Previous Topic: Dcomproductions forums?
Next Topic: Is_Object_Visible explanation
Goto Forum:
  


Current Time: Mon Jul 15 20:17:50 MST 2024

Total time taken to generate the page: 0.00586 seconds