arms
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->
arms
<!-- 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/weapons/arms.module — Toddler of Duty's weapons (GAMEPLAY slice). * stick rifle : hitscan against toddler hit-spheres, occluded by the yard's colliders (Physics.raycastAll), crayon PEW! + tracer * pinecone : arcing, bouncing frag grenade, PINECONE.fuse, linear falloff damage over PINECONE.radius, crayon BOOM * poop bomb : arcing ultimate, splats on first contact, POOP.damage and a POOP.stunSeconds stun for everyone in POOP.radius Shared match context `ctx` (built by game.match): ctx.actors { actor } every toddler (player + bots) ctx.ignore { [id]=true } entity ids rays pass through (toddlers' own parts) ctx.damage(attacker, victim, dmg) ctx.stun(victim, secs) ctx.now An actor: { name, team, isPlayer, alive, pos() -> vector (feet) }.
arr(v: vector) → void
| arg | type | description |
|---|---|---|
| v | vector |
worldDist(ctx: any, origin: vector, dir: vector, maxDist: number) → void
Distance along `dir` to the first collider that is not a toddler.
| arg | type | description |
|---|---|---|
| ctx | any | |
| origin | vector | |
| dir | vector | |
| maxDist | number |
groundY(ctx: any, x: number, z: number, fromY: number) → number
Height of the yard under (x, z), looking down from `fromY`.
| arg | type | description |
|---|---|---|
| ctx | any | |
| x | number | |
| z | number | |
| fromY | number |
canSee(ctx: any, a: vector, b: vector) → boolean
Clear line of sight between two eye points.
| arg | type | description |
|---|---|---|
| ctx | any | |
| a | vector | |
| b | vector |
hitscan(ctx: any, shooter: any, origin: vector, dir: vector, range: number, damage: number) → void
Fires one stick shot. Returns the impact point and the actor hit (or nil).
| arg | type | description |
|---|---|---|
| ctx | any | |
| shooter | any | |
| origin | vector | |
| dir | vector | |
| range | number | |
| damage | number |
buildPinecone(parent: any) → any
| arg | type | description |
|---|---|---|
| parent | any |
buildPoop(parent: any) → any
Poop bomb (poop_ultimate.png): glossy three-coil swirl with a curled tip.
| arg | type | description |
|---|---|---|
| parent | any |
launch(ctx: any, kind: string, owner: any, from: vector, vel: vector) → void
| arg | type | description |
|---|---|---|
| ctx | any | |
| kind | string | |
| owner | any | |
| from | vector | |
| vel | vector |
throwPinecone(ctx: any, owner: any, from: vector, vel: vector) → void
| arg | type | description |
|---|---|---|
| ctx | any | |
| owner | any | |
| from | vector | |
| vel | vector |
throwPoop(ctx: any, owner: any, from: vector, vel: vector) → void
| arg | type | description |
|---|---|---|
| ctx | any | |
| owner | any | |
| from | vector | |
| vel | vector |
lobVelocity(from: vector, to: vector, speedCap: number) → vector
Ballistic velocity that lands at `to` from `from` in a nice lob.
| arg | type | description |
|---|---|---|
| from | vector | |
| to | vector | |
| speedCap | number |
explodePinecone(ctx: any, pr: any) → void
| arg | type | description |
|---|---|---|
| ctx | any | |
| pr | any |
splatPoop(ctx: any, pr: any) → void
| arg | type | description |
|---|---|---|
| ctx | any | |
| pr | any |
update(ctx: any, dt: number) → void
| arg | type | description |
|---|---|---|
| ctx | any | |
| dt | number |
clear( ) → void
count( ) → number
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.