Creating pack-hunting behavior; a comprehensive solution for implementation

Your Feature Request / Idea
Good evening/ morning/ afternoon to whomever may be reading this.

This post has come at the suggestion of the JWE reddit who suggested I put it up. So, made an account and here it is. I'll preface by saying I have some moderate knowledge in the area of animation and a working knowledge of creating solutions for games that exhibit ragdoll physics.

Over the last few weeks, ive been striving to create a solution to the games lack of pack hunting that can exist with little impact to the game as a whole. I have a limited but working understanding of JWEs code and there are immediately a few problems with pack hunting from a programming perspective.

To start, the dino rigs are basically all collision points due to the need for their legs and most central mass to interact with the environment in a meaningful way (e.g: dino feet always being flat on the ground, not clipping all the time).

Secondly, I'm pretty sure the dinosaurs also use a reactive animation set rather than preset loops when moving and running, which means truly organic pack hunting is unlikely to happen because of the sheer number of variables once you start factoring in things like other animals in the vicinity, environment and point of impact for say, a pouncing raptor who's legs and claws could be anywhere in their cycle. The client side load would be HUGE once you consider everything else that happens on your map, especially console players.

With all this in mind, I've come up with a solution that works in theory. Even the most simple of 32bit systems could handle it.


Firstly, small carnivores need to be affixed with a set value that is a combination of stats and a basic value that is universal across the species.

Secondly, this value should be multiplicative with itself but hidden from the player. A pack of animals will have an overall score that is a combination of these stats. This value is called a Hunt score or Hunt value.

Herbivores likewise should have a hidden value of their own that should be a similar sum and calculated in a similar way. This value is a defensive value, and is likewise based on the dinosaurs overall stats.

Starting a hunt

The carnivore packs designated Alpha will run a criteria search in its vicinity for a suitable large or medium herbivore. They already do this when looking for goats.

On a successful check, the game will essentially roll a dice and add the packs hunting value before subtracting the Herbivores defensive value. What you then get, depending on the outcome is either

A) A critical success. The herbivore will be felled.

B) Success. The animal will be wounded and starts to lose health, as with sickness. Eventually dies.

C) Failure. Herbivore will be wounded but doesn't continue losing health. Carnivores are wounded after being thrown off.

D) Critical failure. The herbivore fends off the foe. Alpha is likely killed.

The animation side of things.

On a successful criteria check for a herbivore, up to four dinosaurs will move into position to begin a sort of freestyle run towards the herbivore until they're close enough to begin a pre-set animation cycle determined by the initial outcome of the roll. During this cycle, animals should become a non-entity in game until completion of the cycle.

The reason for using a preset animation and limiting to four animals regardless of overall packsize is because of the following.

To prevent client-side errors when several packs are hunting across your park. The game can't handle a randomised encounter structure. Trust me.

Ease of implementation. Once you've animated the presets for one hadrosaur, you've done them all with (relatively) little adjustment between species.

The option to add more and more animation cycles that adhere to the same rules, chosen at random during the initial check.

Less likely to glitch. Once in position, the outcome is all but determined and it's easier to move the actor dinosaurs into a favourable position.

The game already supports preset animations. As simple as it sounds.

Basic though it may be, this also opens up the possibility of say...Herbivores coming to their herds aid, unique animations per species and other additions further down the line.

This is a very brief summary but I hope it highlights the biggest obstacles to pack hunting that are likely encounters on the programming and animation side of things. It's designed in a way to keep you guessing while simultaneously being within the games capacity for new behavior.

5 Starred! I read the post on Reddit. Thank you for the work. Are you RandomAcvount by the way? Otherwise please thank him/her on my behalf.

This is perfectly in-line with my earlier idea of variation of animation by means of opposite outcomes.

Things are much easier to do now with the herding update. Before that, it seems kind of weird to kick start the scripted animation by suddenly having several scattered raptors line up to start the animation. Now, it feels way more natural as the animation can start whenever they herd together.

I suggest there to be 2 modes of pack hunting though:-

1) Group chasing (scripted) followed by lashing
2) Group surrounding with confrontation.​

Also, more work need to be done as variation of sets based on number of involved subjects is needed. The pack hunting should be made flexible with 2 to 6 subjects otherwise it would be a pain if players have to have specifically 4 (or any number) raptors to witness the incident.
If this was added it would be nice if the carnivores would also go back and feed from a kill they made instead of collectively hunting down a new target.
5 Starred!

Thank you for the informative OP, and it all makes so much sense coming from the perspective of someone that has that experience. I'd go with what JohnMiller1132 suggested, and make it more flexible by having a value of 2-6.

Nice stuff!
5 Stars to this! Pack hunting it the one single “big” feature I miss most about this game.

Bonus points if they manage to handle big carnivores being the hunted ones as well, e.g. multiple Velociraptors taking down a T-Rex (to stay in movie canon: should probably result in a “failed hunt” if Raptor count is less than 4).

Also bonus points if individual hunter pack members can get injured / killed.
Top Bottom