How the gorilla thinks
The AI gorilla is a small state machine with a few extras. Knowing it tells you when to push and when to back off.
The states
Section titled “The states”Wander. It strolls between random points, a new one every 4 to 8 s, within 65 m of the map’s middle, scaled down on the smaller maps, at 3 m/s.
Flee. A hunter that gets within 12 m sends it running at 10.5 m/s, away in runs of about 15 m. It calms down and goes back to wandering once the nearest hunter is more than 22 m away. A crouching hunter is noticed at only 0.5× of the range. Every time it enrages it drops everything and flees.
Charge. It charges at 9 m/s when a hunter hits it, or when it is cornered, and gives up after 2.5 s. The cooldown between charges is 5 s, shorter the angrier it gets. It won’t charge a hunter standing on a walkway it can’t reach, and flees from one instead.
Feed. Hungry, it walks to a banana tree or a fruit on the ground and eats. Any hunter coming close cancels it and starts a flee. See eating.
Hide. See below.
Fighting back
Section titled “Fighting back”Besides charging, the AI has ranged and crowd answers:
- Poop. When it has one, it throws it at a hunter it can see between 5 m and 22 m away.
- Boulders. When a hunter it can see keeps 8 to 24 m away and nobody is within 8 m, it fetches a boulder, log, plank or crate within 12 m, heaves it, and throws it, leading a runner. It re-decides every 6 s, and stops if the item is gone or a hunter comes within 8 m.
- KING OF THE JUNGLE. With a full meter it rages when two hunters are within 12 m, or when it is under half health with one within 9 m.
- Hunter Toss. If one hunter is within reach and another is visible at least 5 m away and within 18 m, it throws one at the other.
- Leap. When fleeing and cornered, with no escape route, it leaps over the hunters to land well away from them. On Monkey Temple it vaults at the crumbled walls instead.
Hiding
Section titled “Hiding”While fleeing, with a free bush within 14 m and a hunter at least 7 m away, it sometimes ducks in, but only if the bush is at least 4 m farther from the hunter than from the gorilla. It stays 10 to 18 seconds. If a hunter walks within 4.5 m, it bursts out and charges, or flees if the charge is on cooldown. A hit flushes it out and it runs.
The flood
Section titled “The flood”The flood never hurts the gorilla, but the AI stays on dry land. If the water catches it, it leaves any bush and runs to dry ground first.
In Gorilla Guard
Section titled “In Gorilla Guard”A bot that is the gorilla never targets its own defenders: no charge, toss, throw, poop or leap away from them.
