Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·originates fromworld 3ee3840c-2…

creatures

The infected of LAST CARRIAGE: EVACUATION — three of them standing in the station, and the one in the rescue uniform that keeps calling.

by◐chefcho·posted 2d ago
What it does

game.creatures

The infected of LAST CARRIAGE: EVACUATION — three of them standing in the station, and the one in the rescue uniform that keeps calling.

The entry point (scenes/main.scene/entrypoint.luau) requires this module and calls start(ctx), update(dt), onPlayer(player) and stop(). start runs once at scene load and spawns everything; update is the per-frame work and never raises (its own body is wrapped, and a failure is warned rather than thrown).

The rule the slice is built on

Nobody here can see the player. Every creature is an aiKit listener brain: sight is off in the preset, the brain writes spots from sounds only, and it acts on where a noise was, never on where the player is. The player's footsteps reach them through aiKit's own footstep noise (silent below its quiet speed, so a crouch-walk is not heard and a walk is). Everything else the game makes a sound with — a thrown bottle, a struck door, a bang — arrives on Core's noise event and goes onto aiKit's bus here, with no maker named, so a creature walks to the bottle rather than to whoever threw it.

Core.NOISE is a 0..1-ish loudness; aiKit hears in metres of carry and multiplies that by the listener's hearing sensitivity. metres() maps between them at 7 m per unit, which puts a walk at about 5 m and a run at about 11 m — the reaches aiKit's own footstep noises use — and a crouch-walk under 2 m.

What spawns

entitypresetwherewhat it is
Infected_Carriageinfected(−0.55, 2.2, 20.2)standing in the red light at the far end of the carriage
Infected_Pillarinfected(7.55, 2.2, 27.4)on the platform by the pillar row
Infected_Stairinfected(8.10, 2.2, 40.4)between the work lamp and the evacuation stair
Rescuerrescuer(6.20, 2.2, −5.0)the dark south end of the platform, where the tunnel mouth is

The bodies are one generated figure — game/models/infected_rig, made from design/references/infected-rescuer.png: shredded black rescue coveralls with a torn reflective stripe, dust-caked grey skin, goggles pushed up, both arms held stiffly forward. The ordinary infected wear it smaller and tinted greyer; the rescuer wears it full height and closest to the reference. look.shape = "none" in both presets keeps aiKit from building its own stylised body underneath.

game/models/infected_walk_anims.a is a slow shamble, retuned onto each body's ClipPlayer once the skinned mesh has hydrated.

The rescuer

Blind like the others, and it never learns where the player is. It hears a sound, walks to just short of it, stops, knocks three times on metal, and then asks for an answer in the player's own voice (game/models/infected_voice, spoken from its position). Its knock is put on the noise bus attributed to itself, so the other infected come to it while the rescuer ignores its own sound. Answering it — any loud noise nearby — is what brings it all the way in; from then on it closes and strikes.

Events and shared state

  • Core.emit("hurt", {}) when a creature lands a melee hit (the brain's acted event, throttled).
  • Core.emit("hunted", { on = true|false }) when the number of creatures actively following a sound, searching or attacking changes from zero.
  • Core.emit("voice", { who = "rescuer", line = "infected_voice" }) when the rescuer speaks.
  • Core.state.creaturesNear — how many are hunting; Core.state.rescuerDistance — metres from the player to the rescuer.
  • Core.state.phase reaching dead or escaped freezes the whole slice.

Surviving a reload

A module reload in the middle of a game starts its module-level state again, while the creatures it spawned are still standing in the station. adopt() takes those over instead of spawning a second set on top of them; the Core noise listener is registered when the file loads (not when the scene starts) for the same reason, and only the newest registration acts.

The nav map

The station's navKit map is baked when play starts. A scene load that did not finish leaves it unbaked, and then every path comes back "no path on map 'default'" and the creatures stand still — so ensureMap() asks for the bake itself the first time it finds no map, and does nothing once there is one.

Known constraint

The carriage and the platform are separate islands on the nav map: 0.85 m of track bed stands between the carriage door and the platform edge, which no walker crosses. A creature therefore stays on the surface it was placed on — the Infected_Carriage one is confined to the carriage, and the rescuer has to be placed on the platform to reach the player at all.

Debugging

Creatures.debugState() hands back the slice's live state table (read only): the roster, the rescuer's lead / callT / lastDist, and the frame counter.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

game/creatures.module — the infected, and the thing in the rescue uniform. SLICE: creatures. Contract: start(ctx), update(dt), onPlayer(player), stop(). The rule the whole file is built around: NOTHING HERE EVER SEES THE PLAYER. Every creature is an aiKit `listener` brain — sight is switched off in the preset and aiKit writes spots from sounds only, so a brain can act on where a noise was and never on where the player is. The player's own footsteps reach them through aiKit's footstep noise; everything else the game makes (a thrown bottle, a struck door, a bang) arrives on Core's `noise` event and is put on aiKit's bus here, with no maker named, so a creature goes to the bottle and not to whoever threw it. The rescuer is the same blind listener with a voice: it stalks the last sound it heard, stops short of it, knocks three times on metal, and asks for an answer in the player's own voice. Answering it — any loud noise — is what brings it all the way in.

AssetClipPlayerAudio

metres(loudness: number) → number

argtypedescription
loudnessnumber

isHunting(state: any) → boolean

argtypedescription
stateany

now( ) → number

pos3(e: any) → void

argtypedescription
eany

dist3(a: { number }, b: { number }) → number

argtypedescription
a{ number }
b{ number }

shortOf(target: { number }, from: { number }, d: number) → void

A point `d` metres from `target`, on the side `from` is standing.

argtypedescription
target{ number }
from{ number }
dnumber

playerPos( ) → void

definePresets( ) → void

Both start from aiKit's `listener` and keep its body-less body: the figure above is the creature's own, not aiKit's stylised one.

addBody(e: any, name: string, scale: number) → void

argtypedescription
eany
namestring
scalenumber

skinnedUnder(e: any, depth: number) → any

argtypedescription
eany
depthnumber

tryTint( ) → void

The bundle arrives a frame or two after it is asked for, so this is retried from update rather than done at spawn.

attachWalk( ) → void

The slow shamble: still arms, dragging feet, the walk of something that has forgotten how. The clip is retried while it and the skinned body load.

makeSource(name: string, clip: any, volume: number) → any

argtypedescription
namestring
clipany
volumenumber

play(src: any, at: { number }) → void

argtypedescription
srcany
at{ number }

hurt( ) → void

watchBrain(record: any) → void

argtypedescription
recordany

spawnCreature(name: string, at: { number }, preset: string, scale: number, tint: { number }, clipSpeed: number) → any

argtypedescription
namestring
at{ number }
presetstring
scalenumber
tint{ number }
clipSpeednumber

spawnAll( ) → void

adopt( ) → boolean

A reload of this module during play starts its locals again while the creatures it spawned are still standing in the station. This takes them back over instead of stacking a second set on top of them.

ensureMap(dt: number) → void

The station's nav map is baked when play starts. A load that did not finish leaves it unbaked, and then every path comes back "no path on map 'default'" and the creatures stand where they were placed, blind and deaf to nothing. So the slice asks for the bake itself the first time it finds no map.

argtypedescription
dtnumber

stepRescuer(dt: number) → void

argtypedescription
dtnumber

stepHunted( ) → void

step(dt: number) → void

argtypedescription
dtnumber

start(ctx: any) → void

argtypedescription
ctxany

onPlayer(player: any) → void

argtypedescription
playerany

update(dt: number) → void

argtypedescription
dtnumber

stop( ) → void

debugState( ) → any

A handle on the slice's live state, for the debug view and for a check run from the shell. Read only; the module owns what is in it.

Sub-parts

Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.

Showing up to 3 levels deep. Open a part to see what it holds further down.

35+items
·
soundclip · born here
❒asset
# infected_voice This sound clip contains speech with the lines: "Hold on. Hold on, I'm coming to get you. Answer me. Call out, so I can hear where you are." It is intended for use in a game to convey a sense of urgency and a character attempting to locate someone.
▲ 0↑ born
▣
module · born here
❒asset
# core The `game.core` module defines the shared constants, rules, and global state for the game "LAST CARRIAGE: EVACUATION." It provides a central source of truth for game data like world layout, noise levels, item definitions, and narrative documents. All other game slices (`game.atmos`, `game.player`, etc.) require this module to access consistent game parameters and to interact with the shared game state and event bus.
▲ 0↑ born
·
soundclip · born here
❒asset
# infected_knock This sound clip features three slow knocks on a rusted metal carriage panel, like knuckles on hollow steel. It is intended for use in a game to evoke the atmosphere of a dead concrete metro station with a long, dark reverb tail, suggesting a close and dry sound in a desolate environment.
▲ 0↑ born
❒
bundle · born here
❒asset
▲ 0↑ born
·
animation · born here
❒asset
# a A slow shambling forward walk for a blind infected man, looping in place: heavy dragging steps with stiff knees, the torso slumped forward, both arms held out in front of him as if he were still escorting someone, and the head tilted and swaying. Made for the infected of LAST CARRIAGE: EVACUATION, and played through `ClipPlayer` on the skinned bodies of `game/models/infected_rig` at about half speed so the walk reads as a stiff, uneven shamble rather than a stride. Generated with the animation service; the source rig is beside it in `source_rig.rig`.
▲ 0↑ born
·
animation · born here
❒asset
# Armature_clip0_baselayer [[describe]] Say what motion this animation is and what it is for.
▲ 0↑ born
◐
material · born here
❒asset
▲ 0↑ born
△
mesh · born here
❒asset
▲ 0↑ born
·
rig · born here
❒asset
▲ 0↑ born
▦
texture · born here
❒asset
▲ 0↑ born
▦
texture · born here
❒asset
▲ 0↑ born
▦
texture · born here
❒asset
▲ 0↑ born
backing path · game/creatures.module

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported on this asset or on the parts this page shows. Parts it leaves out are not counted here.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.