By using this site, you agree to our Privacy Policy and our Terms of Use. Close
HappySqurriel said:
Kwaad said:

Yes, I agree, most of this could have been scripted. But then agian, when you start getting into so many advanced scripts going at once... it's insane. Let me give an example.

Car1 - Grenade blows up
Bus1 - Grenade blows up, and lands on it's side
Car2 - Passive driver, gets windsheild cracked from explosive blast. Gets out of car.
Car2 driver - checks script options for passive person. Run safest way across the road to the sidewalk, and then hide in nearest ally.
Car3 - Psycho driver, gets hit by flying pedistrain. Mashes on the gas, swerves into sidewalk and drives down sidewalk.
sidewalk people getting run over by psycho driver in car3 - Depending on personality, they stand there (grandma) run behind the brick stairs leading to their door (passive) Agressive drug dealers would pull their gun out and start shooting at him.
Drug dealers down the road hear their buddy shooting, come running to protect their buddy.

EDIT: I dont feel like going on, but this isnt even half the AI objects.

All AI is basically scripted. It depends on how many scripts and how much they can do, and how many objects are being effected by the AI. I doubt the AI on GTA4 would work on a x-box.


I don't think you understand how scripting works though ...Currently everything that happens in the game is scripted.

Most AI scripting is still based off of a state machine which means (essentially) that you create a set of states for an object/person to be in (each of these states would then have appropriate actions scripted for them), you then create a set of rules which determine the transition from one state to another. As an example:

State 1: Attack

  • chase after opponent
  • shoot at opponent

State 2: Flee

  • Run away from opponent
  • dodge shots from opponent

Transition 1: State 1 to State 2

  • Health is less than 25%

 

Now, that is a pretty basic pseudo script (the type of thing you'd see in a MMORPG from 1999) but it demonstrates the concept. A complicated state machine will end up having states within states, and they will attempt to have non-deterministic state transitions.

I understand a script.

I also understand that is a simple AI.

the most complex part of the equation is.

"Do I run for 3 seconds to hide behind burning bus, do I run for 5 seconds to get in phone booth, or do I run for 10 seconds and hide behind stairs? Threats are here, here, here and there. Need to avoid."

FarCry (the one that came out 3 years ago) Uses AI. Then agian, alot of new computers bought today, cant run it. 

 



PSN ID: Kwaad


I fly this flag in victory!