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 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.