Home » SIRTECH CLASSICS » Jagged Alliance: Unfinished Business » Vanilla Modding » JA2 AI main faults
Re: JA2 AI main faults[message #101160] Tue, 13 April 2004 23:13 Go to previous messageGo to previous message
Yukinio is currently offline Yukinio

 
Messages:11
Registered:April 2004
Location: Helsinki, Finland
Quote:
Originally posted by Snap:
As for gas masks, etc. perhaps the code could be changed so that masks, goggles, and other head gear can be put in the inventary, as well as in the head slots. The AI would then decide what to wear depending on the circumstances. E.g. gas mask would be default for daytime, NVG - for night-time.
This sounds possible. First we need to see create soldier.c if its possibe for a soldier to get both mask and goggles.

Then for decide action.c we need a check time of day function or similar. There is a function that tells the AI if a soldier is in darkness or not. So Im not sure if we even need a new function.

The rest of it is just how to handle the inventory correctly. I'll take a look at it when I get home.

Report message to a moderator

Private
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Effective strength; wrong code??
Next Topic: multiple mods
Goto Forum:
  


Current Time: Fri Jan 10 23:48:24 GMT+2 2025

Total time taken to generate the page: 0.01199 seconds