With some help from our tutor Jules, I was able to create a simple AI movement flowgraph for AI characters in Crysis by setting AI path points then linking them to the AI and a AISpeedStance node. Further research into the node allowed me to figure out what different numbers and stances used in the dialogue caused the AI character to perform.
Using the list of numbers found in the dialogue, I found they did the following:
0=Slow Walk
1=Walk
2=Jog
3=Sprint
Stances:
CombatAlerted
Combat
Relaxed
Prone
Stealth

I added in an AIIgnore node to the flowgraph and linked it to LocalPlayer so it was possible to use on characters that were naturally hostile to the player. Once I had mastered this node, I was able to create a multitude of characters in my level moving and reacting in different ways.

Flowgraph Node 2 - ProximityTriggerOpacityChange
Further research into flowgraph nodes that affect the opacity of certain objects, I was able to use features taken from Jule's flowgraph on changing opacity of an object shown on http://benv2423-2010jc.blogspot.com/ along with the help of nodes taken from changing material glow using the ProximityTriggerChangeGlow flowgraph also shown on Jule's blog and alter it using changing values within opacity instead of glow.


Flowgraph Node 3 - AIExecute
I initially created an AIExecute flowgraph taken from http://wiki.crymod.com/index.php/Entity_Always_Facing_Player and tweaked it so, when attached to an AI character they would follow me like a squad mate. Then with the help of Jules, I was able to create my own flowgraph using the same properties but instead, added a AIExecute node which allowed me to customize the certain actions the AI characters would perform with a key press.

Video demonstration shows multiple actions being performed by AI using multiple sets of the same flowgraph nodes taken from my AI:Execute script. With the different sets, only key input and action within the ActionExecute node were modified which allowed different key presses to perform different actions.
In this case the keys listed did the following:
O = Yawn
L = Sitdown & Rest
K = Smoke
No comments:
Post a Comment