Home » MODDING HQ 1.13 » v1.13 Coding Talk » Learning how the tactical AI works
Re: Learning how the AI works[message #274253]
|
Tue, 22 February 2011 20:03
|
|
MorgluM |
|
Messages:24
Registered:March 2004 Location: Qu |
|
|
Here's where I am so far in trying to understand what is going on when someone is supposed to go and take cover..
Question: Is InternalGetNewSoldierPath where the actual moving occurs? I'm at a loss (again)
Cheers!
FIRST:
DecideAction (from DecideAction.CPP) returns an action, but it also sets parameters for that action. Example with AI_ACTION_TAKE_COVER, where sBestCover is probably the coordinate of the best cover available...
pSoldier->aiData.usActionData = sBestCover;
return(AI_ACTION_TAKE_COVER);
SECOND:
ExecuteAction (from AIMain.cpp) tries to execute this action.
All the "movement orders" will call the NewDest method (from AIUtils.cpp) to set a new pSoldier->pathing.sDestination based on pSoldier->aiData.usActionData
THIRD:
NewDest
-sets pSoldier->usUIMovementMode (sometimes using AIUtils's DetermineMovementMode() method)
-calls pSoldier->EVENT_InternalGetNewSoldierPath( usGridNo, pSoldier->usUIMovementMode , FALSE, pSoldier->flags.fNoAPToFinishMove );
SOLDIERTYPE::EVENT_InternalGetNewSoldierPath is located in "Soldier control.cpp"
[Updated on: Tue, 22 February 2011 21:24] by Moderator Report message to a moderator
|
Private 1st Class
|
|
|
|
|
Learning how the tactical AI works
By: MorgluM on Tue, 22 February 2011 07:54
|
|
|
Re: Learning how the AI works
|
|
|
Re: Learning how the AI works
By: MorgluM on Tue, 22 February 2011 15:30
|
|
|
Re: Learning how the AI works
|
|
|
Re: Learning how the AI works
By: MorgluM on Tue, 22 February 2011 15:57
|
|
|
Re: Learning how the AI works
|
|
|
Re: Learning how the AI works
By: MorgluM on Tue, 22 February 2011 20:03
|
|
|
Re: Learning how the AI works
By: Buns on Wed, 23 February 2011 15:59
|
|
|
Re: Learning how the AI works
By: MorgluM on Wed, 23 February 2011 17:34
|
|
|
Re: Learning how the AI works
By: MorgluM on Wed, 23 February 2011 17:36
|
|
|
Re: Learning how the AI works
By: Buns on Wed, 23 February 2011 18:24
|
|
|
Re: Learning how the AI works
By: MorgluM on Wed, 23 February 2011 21:13
|
|
|
Re: Learning how the AI works
By: JMich on Wed, 23 February 2011 21:27
|
|
|
Re: Learning how the AI works
By: MorgluM on Wed, 23 February 2011 21:32
|
|
|
Re: Learning how the AI works
By: MorgluM on Wed, 23 February 2011 21:42
|
|
|
Re: Learning how the AI works
By: MorgluM on Wed, 23 February 2011 21:57
|
|
|
Re: Learning how the AI works
By: MorgluM on Thu, 24 February 2011 01:22
|
|
|
Re: Learning how the AI works
By: MorgluM on Thu, 24 February 2011 23:27
|
|
|
Re: Learning how the AI works
By: JMich on Thu, 24 February 2011 23:41
|
|
|
Re: Learning how the AI works
By: tais on Fri, 25 February 2011 00:07
|
|
|
Re: Learning how the AI works
By: MorgluM on Fri, 25 February 2011 06:02
|
|
|
Re: Learning how the AI works
By: MorgluM on Fri, 25 February 2011 06:09
|
|
|
Re: Learning how the AI works
By: JMich on Fri, 25 February 2011 09:05
|
|
|
Re: Learning how the AI works
By: MorgluM on Tue, 01 March 2011 20:08
|
|
|
Re: Learning how the AI works
By: Buns on Tue, 08 March 2011 17:26
|
|
|
Re: Learning how the AI works
By: JMich on Tue, 08 March 2011 17:47
|
|
|
Re: Learning how the AI works
By: Buns on Tue, 08 March 2011 19:39
|
|
|
Re: Learning how the AI works
By: JMich on Tue, 08 March 2011 20:13
|
|
|
Re: Learning how the AI works
By: Buns on Wed, 09 March 2011 14:51
|
|
|
Re: Learning how the AI works
By: JMich on Wed, 09 March 2011 16:05
|
|
|
Re: Learning how the AI works
By: Buns on Wed, 09 March 2011 17:34
|
|
|
Re: Learning how the AI works
By: SharkD on Sun, 20 March 2011 14:57
|
|
|
Re: Learning how the AI works
By: Buns on Sun, 20 March 2011 15:19
|
|
|
Re: Learning how the AI works
By: SharkD on Tue, 22 March 2011 03:08
|
|
|
Re: Learning how the AI works
By: Buns on Tue, 22 March 2011 14:53
|
|
|
Re: Learning how the AI works
By: MorgluM on Wed, 06 April 2011 01:45
|
|
|
Re: Learning how the AI works
By: JMich on Wed, 06 April 2011 10:39
|
|
|
Semi-Success , and question re: working directory
By: MorgluM on Thu, 07 April 2011 15:26
|
|
|
Re: Semi-Success , and question re: working directory
By: JMich on Thu, 07 April 2011 16:29
|
|
|
Re: Semi-Success , and question re: working directory
By: MorgluM on Fri, 08 April 2011 00:46
|
|
|
Re: Semi-Success , and question re: working directory
|
|
|
Re: Semi-Success , and question re: working directory
By: MorgluM on Fri, 08 April 2011 02:28
|
|
|
Re: Semi-Success , and question re: working directory
By: MorgluM on Fri, 08 April 2011 03:06
|
Goto Forum:
Current Time: Tue Feb 11 12:12:18 GMT+2 2025
Total time taken to generate the page: 0.01305 seconds
|