match
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->
match
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->TODO: describe this module.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2game/match.module — OWNED BY THE GAMEPLAY SLICE. Runs the match: player weapons, bots, pickups, scoring, time-out, win/lose. Called by scenes/main.scene/entrypoint.luau (start / update / stop / playerReady). Acts only while Rules.state.phase == "playing"; in "title" and "over" the bots idle and player input is ignored. Writes Rules.state and fires every Rules.emit event in the spec. Parts (all under game/): game.weapons.combat (.inputMap) fire / grenade / ultimate on kbm, pad, touch game.weapons.arms stick hitscan, pinecone + poop projectiles game.bots.brain 4 red + 5 blue toddler bots game.pickups.juice juice-box health pickups game.fx.effects crayon PEW!, BOOM, splat, dizzy stars
S( ) → void
addFeed(text: string, team: string) → void
| arg | type | description |
|---|---|---|
| text | string | |
| team | string |
liveEntity(glob: string, pred: ((any) → void
| arg | type | description |
|---|---|---|
| glob | string | |
| pred | ((any |
cc( ) → any
setFrozen(frozen: boolean) → void
| arg | type | description |
|---|---|---|
| frozen | boolean |
spawnPos( ) → vector
resolvePlayer(arg: any) → void
| arg | type | description |
|---|---|---|
| arg | any |
playerFeet( ) → vector
teleportPlayer(p: vector) → void
| arg | type | description |
|---|---|---|
| p | vector |
tag(attacker: any, victim: any) → void
| arg | type | description |
|---|---|---|
| attacker | any | |
| victim | any |
damage(attacker: any, victim: any, dmg: number) → void
| arg | type | description |
|---|---|---|
| attacker | any | |
| victim | any | |
| dmg | number |
heal(a: any, amount: number, _pos: vector) → void
| arg | type | description |
|---|---|---|
| a | any | |
| amount | number | |
| _pos | vector |
stun(victim: any, secs: number) → void
| arg | type | description |
|---|---|---|
| victim | any | |
| secs | number |
respawnPlayer( ) → void
resetMatch( ) → void
endMatch(winner: string) → void
| arg | type | description |
|---|---|---|
| winner | string |
canAct( ) → boolean
camBasis( ) → void
muzzleWorld(cp: vector, f: vector, r: vector, u: vector) → vector
| arg | type | description |
|---|---|---|
| cp | vector | |
| f | vector | |
| r | vector | |
| u | vector |
playerShoot( ) → void
playerGrenade( ) → void
playerUltimate( ) → void
activateInput( ) → void
start( ) → void
playerReady(p: any) → void
| arg | type | description |
|---|---|---|
| p | any |
update(dt: number) → void
| arg | type | description |
|---|---|---|
| dt | number |
stop( ) → void
ctx( ) → void
Debug/test access.
player( ) → void
bots( ) → void
rig( ) → void
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.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ 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".
Scoped to this part · feeds back into the world's score.