world

Creatures: spawn, find, kill; fights, god mode; the ground.

Creature functions work during a hunt; outside one they return nothing (world.spawn returns nil) or do nothing. Species are given by id ("trex", "mammoth") or by type number (see the species tables below: each game has its own species, game.id() tells which game runs). Mod species from content packs have ids too. Spawning, fights, teams and possession work with every species of both games except the flyers (no fights, no possession).

The switches world.fights, world.god, world.invisible and world.frozen, a possession and camera.follow belong to the scripts: when they unload or reload (F9, Reload scripts, a mod switched off in the Mods screen, quitting) they go back to the game's own (all off, the camera on the hunter).

Fields

FieldTypeAccess
world.weatherWeatherreadThe loaded map's weather (fields and methods on the Types page).
world.windWindreadThe wind.

Functions

# world.spawn(species, x, z, yaw?) → Creature|nil

hunt only

Adds a creature. Species the hunt did not load are loaded first (a short pause). Fires spawn.

ParameterType
speciesSpeciesspecies id or type, e.g. "trex"
xnumber
znumber(it stands on the ground)
yaw optionalnumberheading in degrees (default: facing the hunter)
Returns
Creature|nilthe new creature, nil when it could not be added (logged)
local x, _, z = player.pos()
local rex = world.spawn("trex", x + 3000, z)
rex.scale = 2

# world.spawnNear(species, distance?) → Creature|nil

hunt only

Adds a creature in front of the hunter, facing him.

ParameterType
speciesSpeciesspecies id or type
distance optionalnumberunits in front of the hunter (default 1500)
Returns
Creature|nil
world.spawnNear("velociraptor", 1200)

# world.inFront(distance?) → number, number, number

hunt only

The point on the ground in front of the hunter.

ParameterType
distance optionalnumberdefault 1000
Returns
numberx
numbery (ground)
numberz

# world.creatures(filter?) → table

Finds creatures: living ones by default; dead = true for bodies only, all = true for both. Distances are from x, z when given, else from the hunter.

ParameterType
filter optionalFilterspecies id, or {species=, radius=, x=, z=, team=, dead=, all=}
Returns
tablea list of Creature, nearest first
for _, c in ipairs(world.creatures({radius = 5000})) do
  print(c.name, math.floor(c.distance))
end

# world.nearest(filter?) → Creature|nil

The nearest matching creature.

ParameterType
filter optionalFilteras world.creatures
Returns
Creature|nil
local rex = world.nearest("trex")

# world.count(filter?) → integer

How many living (or matching) creatures there are.

ParameterType
filter optionalFilteras world.creatures
Returns
integer

# world.get(index) → Creature|nil

The creature in a slot (see Creature.index).

ParameterType
indexintegera character index
Returns
Creature|nil

# world.byId(id) → Creature|nil

Finds a creature again by its id.

ParameterType
idintegera Creature.id
Returns
Creature|nilnil when it no longer exists

# world.killAll()

Every living creature dies.

# world.removeAll()

Every living creature disappears (bodies stay).

# world.clearBodies()

Every dead body disappears.

# world.fights(on?) → boolean

Creature fights: predators hunt the nearest prey (or other predators), creatures with teams hunt every other team. Bites deal damage over time; creature_damage fires for each.

ParameterType
on optionalbooleanswitch
Returns
booleanwhether creatures fight

# world.clearTeams()

Every creature's team back to 0.

# world.god(on?) → boolean

God mode: the hunter takes no damage and cannot die.

ParameterType
on optionalbooleanswitch
Returns
boolean

# world.invisible(on?) → boolean

Creatures do not notice the hunter (no sight, smell or hearing).

ParameterType
on optionalbooleanswitch
Returns
boolean

# world.frozen(on?) → boolean

Every creature stands still; the hunter still moves.

ParameterType
on optionalbooleanswitch
Returns
boolean

# world.possessed() → Creature|nil

The creature the player drives (c:possess).

Returns
Creature|nil

# world.unpossess()

Back to the hunter.

# world.ground(x, z) → number

hunt only

Terrain height.

ParameterType
xnumber
znumber
Returns
numberthe ground height there

# world.water(x, z) → number?

hunt only

Water at a point.

ParameterType
xnumber
znumber
Returns
number?the water surface height, nothing on dry land

# world.species(id?) → table|SpeciesHandle

Every species of this game that can be spawned (content packs' too). Ice Age's list has its animals, Dinosaur Hunter's the dinosaurs (the species tables below). Since API 3, world.species(id) returns the species itself, to read and change (SpeciesHandle).

ParameterType
id optionalSpeciessince API 3: one species
Returns
table|SpeciesHandlewithout id: a list of {id, type, name, predator, loaded}; with id: the species
local rex = world.species("trex")
rex.mass = 12          -- heavier trophies
rex.health = 3000      -- the next ones spawned
rex:applyToLiving()    -- and the living ones

# world.trace(x1, y1, z1, x2, y2, z2) → string?, number?, number?, number?, Creature?

hunt only

What a straight line hits first (the game's own shot tracer): line of sight, explosions, lasers.

ParameterType
x1number
y1number
z1number
x2number
y2number
z2number
Returns
string?"terrain", "water", "object" or "creature"; nothing when the line is free
number?x of the point hit
number?y
number?z
Creature?the creature hit
-- can the T-Rex see the hunter?
local ex, ey, ez = player.eye()
local kind = world.trace(rex.x, rex.y + rex.height * 0.8, rex.z, ex, ey, ez)
if not kind then print("in plain view") end

# world.time() → string?

hunt only since API 3

The loaded map's time of day.

Returns
string?"dawn", "day" or "night"

# world.nextTime(t?) → string?

since API 3

The time of day of the hunts loaded from now on (switching it in a running hunt would need the sky, shadows and sounds loaded again). Kept until your mod unloads.

ParameterType
t optionalstring"dawn", "day", "night"; nil = the hunt menu's choice
Returns
string?
world.nextTime("night")   -- every hunt at night

# world.randomPoint(opts?) → number?, number?

hunt only since API 3

A random point of the map (or of a zone) that meets the conditions: on land by default, never in water.

ParameterType
opts optionaltableconditions, all optional: zone (a Zone or its name), water = true (in water; default: on land), nearWater / awayFromWater (distances), minHeight / maxHeight (ground height), maxSlope, minHunterDistance / maxHunterDistance, species (a place that species can stand on, the game's own test)
Returns
number?x
number?z (nothing when no point was found)
local x, z = world.randomPoint({nearWater = 2000, minHunterDistance = 8000, species = "parasaurolophus"})
if x then world.spawn("parasaurolophus", x, z) end

# world.slope(x, z) → number

hunt only since API 3

How steep the ground is at a point.

ParameterType
xnumber
znumber
Returns
numberground rise per unit (0 flat, 1 = 45 degrees)

# world.nearWater(x, z, radius?) → boolean

hunt only since API 3

Whether there is water within radius of a point.

ParameterType
xnumber
znumber
radius optionalnumberdefault 1024
Returns
boolean

Creature

A handle to one creature of the hunt. Handles compare equal (==) when they are the same creature and can be table keys. A handle goes stale (c.valid == false) when the creature is removed or a new hunt begins; using a stale handle raises an error.

Fields

FieldTypeAccess
indexintegerreadits slot in the game's character list (reused by later creatures; prefer id)
idintegerreada number unique to this creature while it exists: store it, find it again with world.byId
validbooleanreadfalse once it was removed or a new hunt began (every other field then raises an error)
alivebooleanreadtrue while its health is above 0
typeintegerreadthe game's character type number
speciesstringreadthe species id, e.g. "trex" (see the species table)
namestringreadthe species' name in the game's language
xnumberread / writeposition
ynumberread / writeheight (its feet)
znumberread / writeposition
yawnumberread / writeheading in degrees (same convention as player.yaw)
healthnumberread / writehealth in the game's units (a T-Rex has 1024); setting 0 kills it through the game's death path (the kill event, its death animation, a body)
maxHealthnumberreadits species' full health (or more, if it had more)
scalenumberread / writesize factor: 1 = its model's size; trophies and the game's stats use it
heightnumberreadthe height of its model at its scale
animintegerread / writethe animation playing (0 = the first one of its model); setting it blends to the new one
animTimenumberread / writeseconds into the current animation
animLengthnumberreadlength of the current animation in seconds
animNamestringreadname of the current animation in its model
animCountintegerreadhow many animations its model has
distancenumber|nilreaddistance to the hunter on the ground (nil outside a hunt)
teamintegerread / writeits team for world.fights (0 = none)
targetCreature|nilread / writethe creature it hunts (world fights; or c.target = other / c:attack(other): it goes after another creature with its own chase and attack, also while world.fights is off; nil stops it)
attackingbooleanreadcreature fights: attacking right now
fleeingbooleanreadcreature fights: running away
killsintegerreadcreature fights: its kills
damageDealtnumberreadcreature fights: damage it dealt
damageTakennumberreadcreature fights: damage it took
stateintegerread / writeits AI's state number (species-specific; 0 = calm in most)
afraidnumberread / writeits AI's fear timer in seconds (it flees while above 0)
targetXnumberread / writewhere its AI walks to (x); the AI may change it
targetZnumberread / writewhere its AI walks to (z)
aibooleanread / writefalse = the game's AI no longer runs for it: your script moves and animates it
predatorbooleanreadwhether its species hunts
possessedbooleanreadwhether the player drives it (c:possess())
datatableread / writea table for your own data about this creature; dropped with the creature
tintColor|nilread / writea colour laid over its model (team colours, glowing bosses); the alpha is the strength; nil = none
speednumberread / writeits time factor: its AI and animations run this much faster (2) or slower (0.5); 0 freezes it
sightnumberread / writehow well it sees the hunter (1 = its species' normal, 2 = twice as far, 0.5 = half)
smellnumberread / writehow well it smells the hunter
hearingnumberread / writehow far it hears noises (0 = deaf)
visiblebooleanreaddrawn this frame (in view, near enough); the game recomputes it every frame
swimmingbooleanreadswimming in deep water (its AI's flag)
pitchnumberreadbody pitch in degrees (the ground's slope; recomputed by its AI)
rollnumberreadbody roll in degrees (recomputed by its AI)
targetYawnumberreadthe heading its AI turns to (degrees, the yaw convention)
velocitynumberreadforward speed in units per second (its AI eases it to its animation's speed)
turnRatenumberreadturn speed in degrees per second (eased by its AI)
stuckintegerreadits blocked-path counter: above 12 it takes a detour
cameraDistancenumberreaddistance to the camera, as the game measured it this frame
blendtablereadthe animation blend: {anim, time, t, active}: the animation it blends from, its time, the blend clock (above 0.25 s the blend ends)
huntablebooleanreadits species gives a trophy
dangerousbooleanreadits species is dangerous (a call scares the others)
flyerbooleanreadits species flies (a credit per shot, no trophy)
lockedbooleanreadtrophy room: this trophy is locked
bleedingnumberread / writeseconds of bleeding left (a wound adds 90; the blood trail)
targetTimenumberread / writeseconds on its walk target (above 30 its AI picks a new one)
skidtableread / writethe skid after a hard turn at speed: {time (seconds), x, z} (raptors; Ice Age: Diatryma, Titanis)
brainstring|function|nilread / writewhat runs in place of its species' AI: a species id (that species' own AI, when the animations line up: ai.compatible), "prey", "predator", "defender" (Ice Age-style brains for any species) or function(c, dt) (your own, once per frame; the game still bleeds it, scales it by c.speed, runs its fights and creature_after_ai); nil = its own. Dead creatures always use their own death. See the behaviour guide
tamebooleanread / writeit ignores the hunter: never notices, hunts, flees or attacks him (pets)
moodstringread / write"calm", "alert" (it knows about the hunter), "hunt" (it chases him), "flee" (it runs from him) or "dead". Setting it is the safe way to steer its AI: "calm" calms it, "alert" alarms it as a noise would (it reacts as its species does), "hunt" sends it at the hunter (a plant eater whose AI only flees flees), "flee" makes it run (predators and charging animals run for 12 s)
alertedbooleanreadits AI knows about the hunter (alarm state or fear time)
huntingPlayerbooleanreadit chases the hunter right now (its AI's way leads at him)
chaserCreature|nilreadthe nearest creature hunting it (fights, c:attack)
fightModestring|nilreadthis frame's fight plan: "attack", "charge", "flank", "flee", "watch"; nil = none
jumpingbooleanreadthe leap of c:jump runs
moveSpeednumberread / writehow far its AI moves it per frame (1 = the game's, 0 = on the spot, 2 = twice as far; 0-10)
turnSpeednumberread / writehow fast its AI turns it (1 = the game's)
animSpeednumberread / writehow fast its animations play under its AI (1 = the game's; the movement stays)
armornumberread / writethe share of every damage it takes (1 = all, 0.5 = half, 0 = none), before the damage event
canKillHunterbooleanread / writefalse: its attacks on the hunter miss (no creature_attack event)

Methods

# c:kill() → boolean

It dies: the kill event (no killer), its death animation, a body. c:die names a killer or gives the trophy.

Returns
booleanfalse when it was not alive

# c:remove() → boolean

It disappears (alive or a body).

Returns
boolean

# c:teleport(x, z, y?)

Moves it; its AI's walk target moves along.

ParameterType
xnumber
znumber
y optionalnumberheight (default: the ground)

# c:face(x, z)

Turns it towards a point.

ParameterType
xnumber
znumber

# c:move(distance, yaw?)

Moves it on the ground along its heading: for creatures whose AI you switched off.

ParameterType
distancenumberunits forward (negative = back)
yaw optionalnumberdirection (default: its heading)

# c:distanceTo(other, z?) → number

Distance to another creature or a point.

ParameterType
otherCreature|numbera creature, or x
z optionalnumberz, when x was given
Returns
numberdistance on the ground

# c:animate(dt?) → boolean

Plays its current animation on: for creatures whose AI is off (with the AI on, the AI does this).

ParameterType
dt optionalnumberseconds (default: this frame's)
Returns
booleantrue when the animation wrapped around

# c:anims() → table

The names of its model's animations.

Returns
tablenames; names[i + 1] is animation i

# c:findAnim(name) → integer|nil

Finds an animation by name.

ParameterType
namestringpart of an animation name, e.g. "run" (case does not matter)
Returns
integer|nilthe animation index
local run = c:findAnim("run")
if run then c.anim = run end

# c:possess() → boolean

The player drives it: W/S, A/D turn, Shift runs, click attacks, Space jumps. Ends with world.unpossess() or its death.

Returns
booleanfalse when it cannot be possessed (dead, a flyer, not in a hunt)

# c:follow(distance?)

The camera follows it (camera.follow).

ParameterType
distance optionalnumbercamera distance

# c:alert(seconds?)

It notices danger (flees or attacks, as its species does).

ParameterType
seconds optionalnumberhow long it stays alarmed (default 20)

# c:sound(n, volume?)

Plays one of its species' sounds where it stands.

ParameterType
nintegerthe sound number in its model (0 = first)
volume optionalnumber0-1

# c:screen() → number?, number?

Where its head is on the screen, for labels.

Returns
number?screen x of the top of its head (nothing when behind the camera)
number?screen y
local sx, sy = c:screen()
if sx then draw.text(sx, sy - 20, c.name, "white", 18, "center") end

# c:pos() → number, number, number

Its position in one call.

Returns
numberx
numbery
numberz

# c:fields() → table

since API 3

Every member of the creature's struct. The raw layer: every member of the game's struct by its C++ name (m_unk94) or its friendly alias (velocity). fields() describes them (FieldInfo): name, alias, type, access (r, rw, or rw! = writable but the game recomputes or eases it), offset, min, max, recomputed (what overwrites it), note, games. Writes are checked: type, range and the field's own rule (an animation of its species, a time inside it ...); a bad value raises an error and changes nothing.

Returns
tablea list of FieldInfo
for _, d in ipairs(c:fields()) do print(d.name, d.alias, d.access, c:get(d.name)) end

# c:get(name) → any

since API 3

Reads one member as the game stores it (radians, units per ms ...).

ParameterType
namestringa member ("m_unk94") or its alias ("velocity")
Returns
anyits raw value
print(c:get("m_unkA8"))  -- bleeding in ms

# c:set(name, value)

since API 3

Writes one member. Fields the game recomputes every frame are read-only (r); rw! ones take the value, but the game eases them back (an impulse). Health goes through c.health (the death path).

ParameterType
namestringa member or its alias
valueanychecked: type, range, the field's rule
c:set("noFind", 0)           -- aim at the target again now
c:set("velocity", 0.002)     -- a push forward

# c:walkTo(x, z, opts?) → number, boolean

hunt only since API 3

One frame of walking toward a point the way the game's AIs walk: way finding around trees, rocks and water (LookForAWay; when the way stays blocked, by a cliff or a slope too steep, it turns aside for a moment before aiming at the point again, as the AIs do), turning, speeding up and slowing down, the terrain collision and tilt, its walk animation with its sound. Call it every frame (from a brain or a frame handler) for a creature whose AI you replaced.

ParameterType
xnumber
znumber
opts optionaltablearrive (the radius it stops within, default 300), speed (units per second, default its species' walk), water (true: it may walk into water)
Returns
numberdistance left
booleanarrived (it stands there, playing its idles)
pet.brain = function(c, dt)
  local x, _, z = player.pos()
  c:walkTo(x, z, {arrive = 600})
end

# c:runTo(x, z, opts?) → number, boolean

hunt only since API 3

As c:walkTo, running.

ParameterType
xnumber
znumber
opts optionaltableas c:walkTo
Returns
numberdistance left
booleanarrived

# c:idle()

hunt only since API 3

One frame standing: it slows down and plays its calm idles (another one now and then, with its sound); species without idles finish their step and hold it (ai.setIdles names some for them).

# c:turnToward(x, z, degreesPerSecond?) → number

since API 3

Turns it toward a point by at most this frame's share.

ParameterType
xnumber
znumber
degreesPerSecond optionalnumberdefault 180
Returns
numberdegrees still to turn

# c:senses() → boolean, boolean, number, number

since API 3

The game's own test (AI_CheckAfraid) for this creature now: the distance, where it looks, the wind, cover between them, camouflage and cover scent, its species' senses and c.sight / c.smell. It changes nothing.

Returns
booleanit sees the hunter
booleanit smells him
numberthe sight measure (below 1 = noticed)
numberthe smell measure

# c:sees() → boolean

since API 3

Whether it sees the hunter now (c:senses).

Returns
boolean

# c:smells() → boolean

since API 3

Whether it smells the hunter now (c:senses).

Returns
boolean

# c:hears(radius, x?, y?, z?) → boolean

since API 3

Whether a noise reaches it (the game's test for shots, with c.hearing).

ParameterType
radiusnumberhow far the noise carries (a rifle shot: about 14600)
x optionalnumberwhere the noise is (default: the hunter)
y optionalnumber
z optionalnumber
Returns
boolean

# c:attackHunter(force?) → boolean

hunt only since API 3

The game's attack: when the hunter is within reach of its mouth it turns to him, plays its attack and kills him (AddDeadBody: creature_attack and player_death fire; god mode and c.canKillHunter apply).

ParameterType
force optionalbooleantrue: from any distance
Returns
booleantrue when it attacked (he was within reach)

# c:attack(other) → boolean

since API 3

It goes after another creature with its own chase and attack (the fights' code), also while world.fights is off; the victim reacts as in fights (flees, fights back). It ends when either dies or is removed. The same as c.target = other; it works for creatures run by their AI or by a brain that calls c:stockAI().

ParameterType
otherCreature|nilthe victim; nil stops
Returns
booleanfalse when one of them cannot fight
local rex = world.nearest("trex")
local raptor = world.nearest("velociraptor")
raptor:attack(rex)

# c:bite(other, damage?) → boolean

hunt only since API 3

A bite from a script, for creatures you drive: its attack animation now and the damage at once (creature_attack, creature_damage, damage, kill).

ParameterType
otherCreaturethe victim
damage optionalnumberdefault: a strong bite of its species
Returns
booleantrue when the victim was within reach of its mouth

# c:hurt(amount, opts?) → number

since API 3

It takes a hit as from a shot: the damage event, its health, the alarm (it flees or attacks as its species does) and a blood trail; at 0 it dies through the death path.

ParameterType
amountnumberdamage in the game's health units
opts optionaltableattacker (a Creature), byHunter (the hunter's kill: trophy), calm (no alarm), bleed (default true: a blood trail)
Returns
numberthe damage it took (after c.armor and the damage event)
c:hurt(3, {calm = true})

# c:die(opts?) → boolean

since API 3

It dies through the game's path: the kill event, its death animation, a body; the hunter's kill takes the trophy (the drop ship comes, trophy fires).

ParameterType
opts optionaltablekiller (a Creature), byHunter (the hunter's kill: trophy, credits, statistics), trophy (the trophy whoever killed it)
Returns
booleanfalse when it was not alive
boss:die({byHunter = true})

# c:wander(radius?) → number?, number?

hunt only since API 3

Picks a new walk target the way its AI does (a good place within the radius: no steep slope, trees or water).

ParameterType
radius optionalnumberdefault 8048
Returns
number?x of its new walk target
number?z

# c:fleeFrom(x, z, distance?) → number, number

since API 3

Sets its walk target that far away from a point, as the AIs flee. With its own AI combine it with c.mood = "flee"; a brain then runs there with c:runTo(c.targetX, c.targetZ).

ParameterType
xnumber
znumber
distance optionalnumberdefault 2048
Returns
numberx of its walk target
numberz

# c:nearby(radius, filter?) → table

since API 3

The creatures near it.

ParameterType
radiusnumber
filter optionalstring|tablea species id, or {species =, predator = true / false, dead = true}
Returns
tablethe creatures around it (not itself), nearest first
for _, o in ipairs(c:nearby(4000, {predator = true})) do print(o.name) end

# c:jump() → boolean

hunt only since API 3

Its jump / lunge animation with a leap forward (raptors, the Allosaurus, the Spinosaurus, Ice Age's Diatryma ...). Its AI, or c:walkTo / c:runTo, carry the leap on.

Returns
booleanfalse when its species has no jump

# c:roar(face?) → boolean

hunt only since API 3

Its roar animation and sound (its AI pauses meanwhile); species without a roar call out with a sound of their own.

ParameterType
face optionalCreatureturn to this creature while roaring
Returns
booleanfalse when it has neither a roar nor a call sound

# c:stockAI(species?) → boolean

hunt only since API 3

One frame of its species' own AI, from inside a brain: the game drives it when your brain has nothing better to do (its fights work then too).

ParameterType
species optionalSpeciesanother species whose AI it runs (the animations must line up)
Returns
boolean
c.brain = function(c, dt)
  if c.target then return c:stockAI() end   -- its own chase and bite
  c:walkTo(homeX, homeZ)
end

# c:threat() → table

since API 3

What it means to the hunter now.

Returns
table{predator, attacks, hunting, alerted, mood, distance, heading (1 = it faces the hunter), closing (units per second toward him), eta (seconds, while closing)}

# c:awareOfHunter() → string?

since API 3

Whether it knows about the hunter, and what told it.

Returns
string?"sight", "smell", "hearing", "shot", "hurt", "attack", "near", "script" or "unknown"; nothing while it is calm

Species ids

Each game has its own species (game.id() tells which game a mod runs in). Hunts: hunts other creatures when fights are on. Animations: the animation numbers its AI uses (for c.anim).

Dinosaur Hunter (game.id() == "dinohunter")

idtypeSpeciesHuntsAnimations
moschops7Moschopswalk 1, run 0, idle 3 4
gallimimus8Gallimimuswalk 1, run 0, idle 4 5
dimorphodon9Dimorphodon (flyer)fly 1, 0
pteranodon10Pteranodon (flyer)fly 1, 0
dimetrodon11Dimetrodonwalk 0, run 1, idle 2 3
brachiosaurus12Brachiosaurus (cannot die)walk 0, idle 1 2 3
parasaurolophus16Parasaurolophuswalk 0, run 1, idle 2 3
ankylosaurus17Ankylosauruswalk 1, run 0, idle 2 3
stegosaurus18Stegosauruswalk 1, run 0, idle 3 4
allosaurus19Allosaurusyeswalk 1, run 0, attack 6, lunge 4
chasmosaurus20Chasmosauruswalk 1, run 0, idle 2 3 4
velociraptor21Velociraptoryeswalk 1, run 0, attack 6, lunge 4
spinosaurus22Spinosaurusyeswalk 1, run 0, idle 3 4, attack 7, lunge 5
ceratosaurus23Ceratosaurusyeswalk 0, run 1, idle 2 3 4, attack 7
trex24Tyrannosaurus rexyeswalk 1, run 0, idle 4 6, roar 2, attack 9
pachycephalosaurus25Pachycephalosauruswalk 0, run 1, idle 4 5
amargasaurus26Amargasauruswalk 1, run 0, idle 3 4 5
oviraptor27Oviraptoryeswalk 0, run 1, idle 2 3, attack 7, lunge 9
troodon28Troodonyeswalk 0, run 1, idle 2 3, attack 7, lunge 9
utahraptor29Utahraptoryeswalk 0, run 1, idle 2 3, attack 7, lunge 9
carnotaurus30Carnotaurusyeswalk 0, run 1, idle 2 3, attack 7, lunge 9
gigantoraptor31Gigantoraptoryeswalk 0, run 1, idle 2 3, attack 7, lunge 9
coelophysis32Coelophysisyeswalk 0, run 1, idle 2 3, attack 7, lunge 9
iguanodon33Iguanodonwalk 0, run 1, idle 2 3, attack 7, lunge 9
dilophosaurus35Dilophosaurus (unreleased in the original; its files ship with the game)yeswalk 0, run 1, idle 2 3, attack 7, lunge 9

Ice Age (game.id() == "iceage")

idtypeSpeciesHuntsAnimations
pig107Pigwalk 0, run 1, idle 2 3 4
archaeopteryx108Archaeopteryx (flyer)fly 1, 0
brontoteriy116Brontoteriywalk 0, run 1, idle 2 3 4, attack 7
wildboar117Wild Boarwalk 0, run 1, idle 2 3 4, attack 7
wolf118Wolfyeswalk 0, run 1, idle 2 3 4, attack 8
rhinoceros119Wooly Rhinoceroswalk 0, run 1, idle 2 3 4, attack 7
diatryma120Diatrymayeswalk 0, run 1, idle 2 3, attack 8, lunge 4
deer121Megaloceroswalk 0, run 1, idle 2 3, attack 6
smilodon122Smilodonyeswalk 0, run 1, idle 2 3 4, attack 8
mammoth123Mammothwalk 0, run 1, idle 2 3, attack 6
bear124Bearyeswalk 0, run 1, idle 2 3 4, attack 7
indricothere125Indricotheriumwalk 0, run 1, idle 2 3 4 8 10, attack 7, lunge 11
hyaenodon126Hyaenodonyeswalk 0, run 1, idle 2 3, attack 6
bigfoot127The Yetiyeswalk 0, run 1, idle 3 2 4, attack 7
doedicurus128Doedicuruswalk 0, run 1, idle 2 3 7 9, attack 10
andrewsarchus129Andrewsarchusyeswalk 0, run 1, idle 2 3 7 9, attack 6, lunge 10
titanis130Titanisyeswalk 0, run 1, idle 2 3 7 9, attack 6, lunge 10