Created
May 26, 2011 14:20
-
-
Save maryrosecook/993235 to your computer and use it in GitHub Desktop.
The behaviour tree for Pistol Slut
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
identifier: "idle", strategy: "prioritised", | |
children: [ | |
{ | |
identifier: "spot", strategy: "sequential", | |
children: [ | |
{ identifier: "callRange" }, | |
{ identifier: "stopSpotting" }, | |
] | |
}, | |
{ | |
identifier: "fight", strategy: "prioritised", | |
children: [ | |
{ identifier: "enlistSpotter" }, | |
{ | |
identifier: "findCover", strategy: "sequential", | |
children: [ | |
{ identifier: "turnTowardsPlayer" }, | |
{ identifier: "stand" }, | |
{ identifier: "runForCover" }, | |
{ identifier: "shoot" }, | |
] | |
}, | |
{ identifier: "stop" }, | |
{ identifier: "throwGrenade", test: "canThrowGrenade" }, | |
{ identifier: "shoot" }, | |
{ | |
identifier: "reload", strategy: "sequential", | |
children: [ | |
{ identifier: "crouch" }, | |
{ identifier: "reload" }, | |
] | |
}, | |
{ identifier: "stand" }, | |
{ | |
identifier: "switchWeapon", strategy: "sequential", | |
children: [ | |
{ identifier: "switchWeapon" }, | |
{ identifier: "idle", pointer:true, strategy:"hereditory" }, | |
] | |
}, | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment