Animals in Far Cry 3
Read from retail Far Cry 3's worlds\fc3_main\generated\entitylibrary_full.fcb, its animal brains and
common\generated\nomadobjecttemplates.fcb (unpacked from fc3_main.fat with FCBConverter), and its
animal assets, fc3_main_depload.xml and sound banks (unpacked with Gibbed's Dunia 2 unpacker from
DuniaTools). Field descriptions and stim
types were read in FC3.dll (Ghidra program /FarCry3-Retail), which has no symbols. Claims marked
(inferred) were not read in data or code. Nothing here was seen in game.
Far Cry 3's predators hunt and attack the player and each other. Every behaviour is assembled in data, but the building blocks are C++ classes that Far Cry 2's animals do not have. This page records how Far Cry 3 does it and what its assets are, for porting attacking animals.
Brains are behaviour trees
Far Cry 3's .ai.rml is not Far Cry 2's. It is a 16-byte header and an
nbCF FCB holding a compiled behaviour tree of CNode* nodes and static task data. There is no
readable source XML. Task and parameter names survive; fact names are only hashes.
The animal brains are animaldefaultbrain, crocodilebrain, defensiveanimalbrain, snakebrain,
aquaticanimalbrain, the squad brains, and the maneuver brains under newbrains\animalsquadmaneuver\.
The animals
Land animals are CAnimalAgentFC3; fish are CAquaticAnimalAgent. The temper enum is 1 Predator,
2 Peaceful, 3 Friendly. The number after a name is its species value.
| Animal | Brain | Health | Temper | Damage | Mauling chance |
|---|---|---|---|---|---|
FC3_Quadrupeds/Tiger (SumatranTiger, 41) | animaldefaultbrain | 800 | Predator | 40–70 | 50% |
| KomodoDragon (4) | animaldefaultbrain | 300 | Predator | 50–80 | 10% |
| Crocodile (1) | crocodilebrain | 200 | Predator | 20–50 | 100% |
| Cassowary (15) | animaldefaultbrain | 100 | Predator | 20–40 | mauling damage 0 |
| Buffalo (37) | defensiveanimalbrain | 700 | Peaceful, bIsDefensive | 35–60 | — |
| Hyena (21) | animaldefaultbrain | 100 | Predator | 10–40 | — |
SimpleAnimal/Snake (23) | snakebrain | 2 | Predator | 100–120 | — |
| RiverFish (10) | aquaticanimalbrain | 1 | Peaceful | 0 | — |
| Coral_Reef_Fish (9, FishSwarm) | aquaticanimalbrain | 1 | Peaceful | 0 | — |
| Dogs_Dingo (20) | defensiveanimalbrain | 100 | — | — | — |
- Tiger: 120 kg, sprint 8, a jump attack from 3 m; mauling damage 30%, at most 50.
- Komodo dragon: sprints at only 4; each hit takes 34% of the player's health.
- Crocodile: biome
EarthAndWater, speeds 0.53 to 1.57 m/s. - Cassowary: a short-sight sensory template.
- Buffalo: attacks only when provoked.
- Hyena: a complete archetype with a handbook entry, but no assets; see below.
- Snake: a live agent;
_Stationaryvariants also exist. - Dingo: the only animal with
bSquadBehaviorPredatorandbSquadBehaviorHuntingset.
The other predators are the leopard (health 450, mauling chance 100%), bull shark, great white, moray and Asian black bear.
The personality
Each animal's behaviour is tuned in an SAnimalAgentPersonality template, whose field descriptions
are read in FC3.dll at 0x10BBEA88:
- detection radii (smell, stealth, immediate), sound distances and fear expiry
- wander, avoid and flee radii, and tracking trail points
- attack damage by distance, optionally a percentage of the player's health scaled by player level
- attack ranges: jump, critical, on-spot, side, and safe navmesh distances
- threat rating, broadcast radii, mauling fields and squad flags
An attack from start to finish
- Detection is a C++ sensory system (
AnimalSensorySystemandVisualSensorySystemmembers, tuned byaisensorysystem:*templates). The tree reads it throughCTaskAnimalUpdateBestThreatandCTaskAnimalTrackPlayer, which test field of view and distance. - Stalking is tree wiring over
CTaskStartTrailingTarget,CTaskGetNextTargetTrailPos,CTaskBTAnimalPathFollowWithTrack,CTaskBTPathFindandCTaskBTAnimalFindDestination. - The attack decision is
CTaskUpdateAnimalAttackInfo, in C++. It outputsoutCanCauseDamage,outIsJumpAttackSafe,outIsCloseAttackSafe,outPerformLowAttackandoutCanQTECauseDamage. - The attack animations are MOVE data in
common\graphics\move\movemgrnamed.bin, such asAnimal_Attack_Jump,Animal_Attack_Side,tiger_fulb_closeattack_successandbuffalo_fulb_attackbutt_*. - Damage from a normal hit is applied in C++ from the personality's minimum and maximum, with the
CauseDamageOnPlayersAndNpcsblood effect (inferred).
Mauling
The pinned "mauled" sequence is a paired quick-time event, run from the tree by
CTaskAnimalQTEEnableOperation, CTaskAnimalQTEConditionOp, CTaskAnimalPlayQTE and CTaskPlayQTE,
and CTaskBTCheckGameAgentQTEStateInfo. Paired player-and-animal clips exist for the crocodile
(croc_jason_qte_bite: start, loop, success, fail), tiger (jason_stiger_bite_qte_*), komodo
(komodo_mini_qte_*), snake (snake_mini_qte_*), rabid dog (rdog_mini_qte_*), shark, bear and
leopard. The crocodile and snake brains name their move files; the default brain names none, so code
probably picks the clips per species (inferred).
If the player loses, the tree itself kills them with CBTTaskSendEntityStim: Cut at 1000 or 9999, or
Pierce at 10000.
Animal task classes
All of these are C++:
CTaskAnimal*:StateOperation,SubStateOperation,StanceOperation,TemperOperation,UpdateBestThreat,TrackPlayer,UpdateFocusPosition,SetHeadFocusPriority,QTEEnable,QTECondition,PlayQTE,AnchorOperationCTaskUpdateAnimalAttackInfo,CTaskUpdateAnimalFleeInfo,CTaskCheckAnimalSpeciesCTaskBTAnimal*:PathFollowWithTrack,PathFollowHelperOp,FindDestination,HealthOperation,ExecuteManeuver,RemoveFromSquad,FactBroadcast,GetSquadInfo,CrossNavMeshInfoCTaskBTAquaticAnimalGetOceanLevel,CTaskBTAquaticAnimalPathFollow,CTaskBTNoNavMeshMovement,CTaskBTForceRagdoll
Packs
A CAnimalSquad agent (FC3_Squad/Predator_Default, at most 10 members) runs a squad tree that picks
members and starts maneuvers: Tracking, Regroup, Dismiss and Assault (CAnimalSquadManeuverAssault).
Assault's data: FormationRadius 9, MaxNumberAggressiveMembers 1, RetreatCasualtyPercentage 0.5,
chase distances 18 and 15 m. One animal attacks while the rest circle. The maneuver classes are C++;
the behaviour is tree data.
Water and fish
- The crocodile is a land agent (
EarthAndWater) with a small brain of 126 nodes and no pathfinding. It tracks the player's field of view and distance, then lunges into a bite that always mauls: an ambush in place, not swimming navigation (inferred from the task list). - Fish and sharks are
CAquaticAnimalAgents that steer without a navmesh (fAquaticNavMinDepth,GetOceanLevel). CTaskBTNavmeshOphas aWaterLayerflag: "use the navmesh water layer".
Fish come in three kinds:
RiverFish: individualCAquaticAnimalAgents.Coral_Reef_Fish: species FishSwarm, one agent animated as a group (crfish_group_swim).Winged/Fish_FP: a pureCBoidsComponentflock of river-fish meshes with no AI, placed at least 85 times; compared field by field with Far Cry 2's birds in Flocks.
Prey, corpses and fear
- Predators kill prey:
bSenseOtherAnimals,fPredatorOnSpotAttackPreyDistance,fKillAnimalCoolDownTime, species checks in the tree, MOVEAnimal_Attack_Animalandleopard_fulb_leopardattackgoat. - They eat corpses: the
animal_eat_corpsegroup and theAnimal_Eat_Corpse/TigerandHyena_EatCorpsecontextual actions. No throwable bait was found (inferred). - Fear:
Fire_FearStim,bIgnorFearStim,fFearEventExpiredTime("scared by vehicles, fire"), explosion and threatening-sound distances, and flee radii.
What Far Cry 2 lacks
Searched by string in Far Cry 2's Dunia.dll. Far Cry 2 has CAnimalAgent, CAnimalPersonality,
CAnimalSteeringEngine, CTaskAnimalPathFollow, the threaten and run-away tasks, and
CBoidsComponent. It has none of:
- the behaviour-tree runtime
- the
CTaskAnimal*attack, mauling and squad tasks CAnimalSquadand its maneuversCAquaticAnimalAgentand movement without a navmesh- a navmesh water layer
- paired quick-time events on the player
| Piece | Far Cry 3 data | Far Cry 3 C++ |
|---|---|---|
| Tuning (ranges, damage, detection) | personality template, archetype | the template reader |
| Detection and threat | sensory templates | sensory system, UpdateBestThreat |
| Stalking | tree wiring | trail and path-follow tasks |
| Attack choice | tree, ranges | UpdateAnimalAttackInfo |
| Attack animations | MOVE graph, .mab | MOVE runtime |
| Hit damage | minimum, maximum, percentage | damage application (inferred) |
| Mauling | paired clips, tree, kill stim | the QTE tasks and the player's QTE system |
| Packs | squad archetype, maneuver trees | CAnimalSquad and the maneuver classes |
| Fish | boids parameters, aquatic archetypes | boids, CAquaticAnimalAgent |
| Prey, corpses, fear | groups, contextual actions, stims | species and stim handling |
The assets
Almost every animal lives in fc3_main's subfats, so a dump that skips them misses the animals. Gibbed.Dunia2.Unpack.exe --us -f animals (in DuniaTools'
bin\fc3_dunia) unpacks 1,575 files. Meshes are under
graphics\__fc3_graphics\_common\characters\animals\<animal>\, clips under
graphics\characters\_common\animations\animals\<animal>\, and materials, named by id, in
graphics\_materials.
| Animal | Mesh .xbg (bytes) | Bones | Ragdoll .hkx (bytes) | Clips |
|---|---|---|---|---|
| sumatran_tiger | 385,764 | 57 | 39,836 | 91 |
| leopard_01, _02 | 336,244 | 47 | 35,420 | 80 |
| cassowary | 267,508 | 51 | 28,988 | 63 |
| crocodile (walk, jog, swim, kills) | 351,764 | 30 | 32,876 | 36 |
| komododragon01 | 164,504 | 35 | 35,052 | 68 |
water_buffalo (also _bh, _nb; has attack clips) | 223,476 | 54 | 39,516 | 60 |
| rabid_dog rdog_01, _02 | 279,504 | 41 | 37,276 | 68 |
| thylacine | 386,824 | 41 | 35,356 | 58 |
| snake_01 | 79,648 | 32 | 17,612 | 20 |
| river_fish01 to 04 | 16 to 101 KB | 7 | river_fish01 only | 8 |
| coral-reef fish school, one skinned object | 393 to 555 KB | 125 | — | 15 group clips |
The stock name list misses many textures, the tiger's normal and mask maps among them. Adding the
names fc3_main_depload.xml gives to a copy of the unpacker's list brings them out, with every leopard
texture and the shared animal_longfur01, animal_shortfur02 and bloodgore maps.
The tiger, buffalo, komodo and crocodile rigs use the same bone names as Far Cry 2's 30-bone
quadruped (Hips, Spine, Neck, Neck1, Head, Jaw, LeftArm, …) plus extra bones. The tiger
has 29 of the 30: its tail starts at Tail1, with no Tail. The leopard's pelvis_ref has 28: its
root is Pelvis, not Hips, and it has no Tail either.
Formats against Far Cry 2's
JackAll reads none of these Far Cry 3 versions.
| Format | Far Cry 2 | Far Cry 3 | Difference |
|---|---|---|---|
.xbg mesh | 42.6 | 52.3 | same chunk set plus a skeleton-reference chunk; the skin-descriptor chunk is 52 bytes, not 36. Gibbed's Dunia 2 geometry library has the chunk classes. |
.skeleton | file 18, object 7 | file 27, object 10 | same name hashing, different bone layout |
.mab | 0x4C | 0x61 | layout unknown |
ragdoll .hkx | Havok 5.5.0-r1, packfile 5 | Havok 2010.2.0-r1, packfile 8 (Skyrim's) | Skyrim tools such as hkxcmd should dump it (inferred, not run) |
| material | .xbm | MAT\0 + FCB, shader Skin_Advanced | |
.xbt | header 11 | 104: a header of 36 bytes plus the _mip0 companion's path (36 bytes with none, 124 to 140 with one), then a plain DDS; the DDS offset is the word at +8, as in Far Cry 2 | same mip-0 split. xbt extract refuses version 104, but a stripped DDS wraps in a Far Cry 2 header with xbt build |
.sbao | Ogg Vorbis after a 40-byte header | jackall-cli sbao extract read one: 32 kHz stereo | |
.spk | version 4 (04 4B 50 53): a count, the ids, then each record as a size and its payload, 4-byte aligned | 1,002 of fc3_main's 5,214 banks embed Ogg; the others checked hold Far Cry 2's own IMA-ADPCM stream at version 6. spk list refuses version 4 |
The hyena ships no assets
FC3_Quadrupeds/Hyena names characters\animals\hyena\hyena.xml, hips_ref.skeleton,
hyena_ragdoll.hkx and .hkr, and a graphic kit; a path list from the earlier unpack adds hyena.xbg
and textures hyena_d, _n, _m and _eye_d. None of them is in any Far Cry 3 archive. Every .fat but the sound ones was unpacked with those paths added
to the unpacker's name list, and only the handbook page m_hyena.feu and its picture tx_hyena.xbt
came out. As a control, the tiger's hips_ref.skeleton, which is absent from the stock list too, came
out the same way.
The rest agrees: fc3_main_depload.xml has no hyena entry of any kind, so no clip or bank. The
archetype's ten voice fields (idle, hurt, death, aware, tracking, tracing, attack, flee, panic,
unreachable) are unset; of its other sound fields only the bite impact is set
(sndMeleeHitSoundIDBite 0x001B024A, type 12). Its personality, aipersonality:animalpersonality.hyena, gives damage 10 to 40,
an attack-safe distance of 2.65 m and broadcast radii of 20 to 25 m, and names no sound.
Animal sounds
Sounds hang off the clips, as in Far Cry 2: fc3_main_depload.xml lists each clip's banks under it.
The banks are soundbinary\<id>.spk inside fc3_main's subfats, not in sound.dat. The dog family's:
| Bank | Clips |
|---|---|
001698d6 | rabid dog alert cycles |
00195b38 | thylacine alerts |
0016dcc3, 001aa476 | rabid dog attacks and attack turns |
001ae3df | 73 rabid dog clips: attacks, hunting and more |
001ae484 | rabid dog alert-to-sprint |
001ae4c1 | rabid dog and thylacine deaths |
001aa45c | rabid dog howl |
None of the 22 dog and thylacine banks embeds Ogg. An earlier test decoded their 4-bit stream as
IMA-ADPCM and saw it drift to clipping; that was the nibble order. The big cats' banks hold the same
kind of stream, and it is Far Cry 2's TImaAdpcm at version 6: a 36-byte header (Far Cry 2's has 28),
ten raw 16-bit samples, then the nibbles, high nibble first. Read that way the stream holds no drift.
Its size matches the descriptor's sample count exactly. In tiger bank 001aa57e the first stream sits
at +0x114 and begins 06 00 00 00. Its descriptor gives 15,802 bytes, 22,050 Hz and 31,503 samples,
which is 10 + (15,802 − 36 − 20) × 2 + 1. A scratch decoder turned all 159 cat streams into WAV, but none
was listened to. The dog banks were not decoded again; that they use the same codec is (inferred).
Reading any of them in JackAll takes a version 4 bank parser and this decoder.
The big cats
The tiger and leopard are the donors for a lion (the lion).
Read from the entity library, their personalities, fc3_main_depload.xml and the unpacked banks and
materials.
Voices. Every cat stream is mono 22,050 Hz IMA-ADPCM version 6, and none of their 52 banks has Ogg
or an .sbao:
| Field | Tiger | Leopard |
|---|---|---|
| idle | 001AA57E, 6 sounds of 1.4–2.9 s | 001A4011, 6 of 1.2–2.0 s |
| tracking, tracing, flee | 001AA57E | 001A400D, 4 of 4.1–6.5 s |
| panic, unreachable | 001AA57E | 001A4008, 4 of 0.96 s |
| aware | unset | 001A400D |
| hurt | 001AA57F, 3 of 0.65–1.05 s | 001A4012, 4 of 0.6–0.9 s |
| death | 001AA57C, 3 of 2.0–2.5 s | 001A400F, 3 of 0.7–1.1 s |
| attack | unset | unset |
| melee paw, bite | 001B023D, 001B025A | 001B023D, 001B024A |
On the clips:
- tiger:
- attack and alert
001aa577, alerts left and right001aa57a, attack turns001aa579; - close-attack success
001aa57b, pounce success001aa580; - a 4 s idle
001aa576, eating001aa57d; - cage alerts
001ae599to001ae59d; - kills
001ae5a5,001b080b,001b084b,001b0846and001b0847.
- attack and alert
- leopard:
- attacks
001a400a, attack turns001a400band001a400c; - close and critical attacks
001a400e; - eating
001a4010; - kills
001b082e,001b083fand000a47d6.
- attacks
Both share 001ae3df and 001ae484 with the rabid dog, probably foley, and 001ae4c1 for deaths.
Clips (names and sizes only; .mab 0x61 is unread):
- tiger, 91:
pounce_success,pouncecritical_success,closeattack_success, attacks at ±90° and ±180°, attack turns, and kills of an NPC, a deer and a buffalo. - leopard, 80: a
sneakcycleand two sneak turns (its stalk),criticalattack,attack_success,closeattack_success, attacks at ±90° and ±180°, and kills of an NPC and a goat.
Neither has a clip named jump or stalk.
Proportions, from the bind poses:
| Hip height | Shoulder height | Nose ahead of the hips | Tail joints | Nose to tail end | |
|---|---|---|---|---|---|
| tiger | 0.74 m | about 0.78 m | 1.52 m | 0.88 m | about 2.5 m |
| leopard | 0.65 m | about 0.65 m | 1.32 m | 0.76 m | about 2.2 m |
Materials:
Sumatran_tigerusesSkin_Advancedwith 1,024² diffuse, normal and mask maps (DXT1, DXT5, DXT1, each with a_mip0companion). Its detail maps areanimal_longfur01_sand_n, tiled 12 times, andbloodgore.Sumatran_tiger_Alphais a blended, two-sided fur card (256²).- The tiger's eyes are
Skin_Advancedtoo. Leopard_Skin,Panther_Skin02andPuma_SkinuseSkin_Cinematicwith 1,024² DXT1 diffuse maps, DXT5 normal maps and 512² specular maps. Their detail map isanimal_shortfur02, tiled 8 times.
Normal maps keep X in alpha and Y in green, as in Far Cry 2. The tiger's mask carries its signal in
green, which matches Far Cry 2's mask, where specular is green alone. The leopard's specular maps carry
it in red. The tiger's mesh names three grey Generic_FC3 placeholders, which its graphic kit swaps.
Tuning, from the personalities:
| Tiger | Leopard | |
|---|---|---|
| health, head multiplier | 800, 2.3 | 450, 4.5 |
| mass | 120 | 80 |
| walk, jog, run, sprint (m/s) | 1.2, 4.27, 6.19, 8 | 1.2, 2.5, 6.5, 10 |
| damage, critical the same | 40–70, or 50% of the player's health | 35–65, 50% |
| jump attack distance and angle | 3 m, 45° | 3 m, 20° |
| critical, on-spot, crouch attack distance | 1.7, 2.5, 3.5 m | 1.8, 2.5, 2.5 m |
| attack-safe distance | 5.5 m | 3 m |
| maul chance, cooldown, damage | 50%, 8 s, 30% up to 50 | 100%, 8 s, 30% up to 45 |
| attack broadcast radius | 50 m | 5 m |
| delay before facing a threat | 0 s | 2 s |
Both cats share the rest:
- detection: smell 25 m (5 m while the player sneaks); immediate detection at 5 m;
- tracking: a trail point every 2.5 s, kept 5 s and at least 5 m apart; tracking broadcast 25 m;
- flight: a flee radius of 30 to 40 m;
- sensors: the
animaldefaulttemplate, sight 5 to 35 m and a 5 m sixth sense.
The _stp variants cut smell to 15 m (2 m sneaking) and immediate detection to 2 m. leopard_boss,
the rare panther, does 400 to 500 damage.