Skip to content

Instantly share code, notes, and snippets.

@maryrosecook
Created May 26, 2011 14:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maryrosecook/993235 to your computer and use it in GitHub Desktop.
Save maryrosecook/993235 to your computer and use it in GitHub Desktop.
The behaviour tree for Pistol Slut
{
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