Home » MODDING HQ 1.13 » v1.13 Coding Talk » Learning how the tactical AI works
Re: Learning how the AI works[message #275369]
|
Tue, 08 March 2011 20:13 ![Go to previous message Go to previous message](/theme/Bear_Classic_Brown/images/up.png)
|
|
JMich |
![](/images/ranks/first_sergeant.png) |
Messages:546
Registered:January 2011 Location: Greece |
|
|
BunsSo this is something I would suggest to skip: When one enemy sees you, all would know of your position (100%). You would either need to shoot him (in this case the enemy would be blind again) or move out of his sight. If when any soldier sees you, all have seen you, that means that all raise their alarm level, and sneaking is harder (if not impossible) to do. Think of what would happen in Alma, you kill the first soldier, and since he has seen you, panic button is pushed, and Sergeant Krott is killed. You have to kill the enemy quietly and without letting him notify to be able to save him and get the Rocket Rifle.BunsGiving the enemy a certain % of what to do next is problematic too: it is difficult to define a suitable behaviour in each situation for the AI at all. Saying that in between 35% to 75% of all cases he wouldn't do even that, do something else or nothing at all means that besides the JA2 enemies already already are dumb AI, they are even coded to behave extra stupied/wrong. If soldier.orders->Guard OR soldier.orders->Stationary
then chance = 50
else chance = 25
If soldier.attitude.defensive chance = chance + 15
If random(100) < chance
then radio
else investigate
P.S. the reason I mention the code is because it is easy to read, and usually understand, even though one may not know C++. I haven't used C in more than 8 years, and the only usage I did was an introductory university course, but I still find the code easy to follow. And after all, the more people reading the code, the more people making suggestions to the code.
Report message to a moderator
|
First Sergeant
|
|
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Learning how the tactical AI works
By: MorgluM on Tue, 22 February 2011 07:54
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: MorgluM on Tue, 22 February 2011 15:30
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: MorgluM on Tue, 22 February 2011 15:57
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: MorgluM on Tue, 22 February 2011 20:03
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: Buns on Wed, 23 February 2011 15:59
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: MorgluM on Wed, 23 February 2011 17:34
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: MorgluM on Wed, 23 February 2011 17:36
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: Buns on Wed, 23 February 2011 18:24
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: MorgluM on Wed, 23 February 2011 21:13
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: JMich on Wed, 23 February 2011 21:27
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: MorgluM on Wed, 23 February 2011 21:32
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: MorgluM on Wed, 23 February 2011 21:42
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: MorgluM on Wed, 23 February 2011 21:57
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: MorgluM on Thu, 24 February 2011 01:22
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: MorgluM on Thu, 24 February 2011 23:27
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: JMich on Thu, 24 February 2011 23:41
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: tais on Fri, 25 February 2011 00:07
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: MorgluM on Fri, 25 February 2011 06:02
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: MorgluM on Fri, 25 February 2011 06:09
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: JMich on Fri, 25 February 2011 09:05
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: MorgluM on Tue, 01 March 2011 20:08
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: Buns on Tue, 08 March 2011 17:26
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: JMich on Tue, 08 March 2011 17:47
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: Buns on Tue, 08 March 2011 19:39
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: JMich on Tue, 08 March 2011 20:13
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: Buns on Wed, 09 March 2011 14:51
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: JMich on Wed, 09 March 2011 16:05
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: Buns on Wed, 09 March 2011 17:34
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: SharkD on Sun, 20 March 2011 14:57
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: Buns on Sun, 20 March 2011 15:19
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: SharkD on Tue, 22 March 2011 03:08
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: Buns on Tue, 22 March 2011 14:53
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: MorgluM on Wed, 06 April 2011 01:45
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Learning how the AI works
By: JMich on Wed, 06 April 2011 10:39
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Semi-Success , and question re: working directory
By: MorgluM on Thu, 07 April 2011 15:26
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Semi-Success , and question re: working directory
By: JMich on Thu, 07 April 2011 16:29
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Semi-Success , and question re: working directory
By: MorgluM on Fri, 08 April 2011 00:46
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Semi-Success , and question re: working directory
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
Re: Semi-Success , and question re: working directory
By: MorgluM on Fri, 08 April 2011 02:28
|
![Read Message Read Message](/theme/Bear_Classic_Brown/images/read.png) |
|
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:08:32 GMT+2 2025
Total time taken to generate the page: 0.02369 seconds
|