@korial29/tiny-fps 0.185.0 → 0.186.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/server.js CHANGED
@@ -195,9 +195,11 @@ var XENO_DASH = 1.4;
195
195
  var [POUNCE_HP, POUNCE_STUN] = [2, 60];
196
196
  /**
197
197
  * The glory kill (the user, 2026-11-16, after DOOM 2016): an enemy with GLORY_HP health or less, up,
198
- * flashes to one with the katana in hand, who beheads him on E within GLORY_REACH metres. The
199
- * xenomorph's takes any enemy up, with no flash (the user, 2026-11-16): E within GLORY_FAR metres
200
- * of him, in sight, and GLORY_ARC radians of its look locks the two (`lock`, `foe`, as a saber
198
+ * flashes to anyone but the xenomorph, who executes him on E within GLORY_REACH metres (the user,
199
+ * 2026-11-17: the fists for everyone, the katana with it in hand; EXEC). The
200
+ * xenomorph's takes any enemy up, with no flash (the user, 2026-11-16): E within GLORY_REACH metres
201
+ * of him too (the user, 2026-11-17: only very close; 8 m before), in sight, and GLORY_ARC radians
202
+ * of its look locks the two (`lock`, `foe`, as a saber
201
203
  * lock) for GLORY_TICKS, where he does not move and it dashes to him, then it eats his head: he
202
204
  * goes down through his armour (LIMB.EATEN), a frag of FRAG.GLORY. 2 s, the time to see it climb
203
205
  * on him and bite (the user, 2026-11-16: 0.9 s before).
@@ -209,22 +211,20 @@ var [GLORY_HP, GLORY_REACH, GLORY_ARC, GLORY_TICKS] = [
209
211
  120
210
212
  ];
211
213
  /**
212
- * The xenomorph's glory kill from afar (the user, 2026-11-16): within GLORY_FAR metres, in sight,
213
- * it dashes to a metre of its prey over the first GLORY_DASH ticks of the lock. 7 m in 20 ticks is
214
- * 21 m/s, a step under PLAYER_R: it cannot tunnel.
215
- */
216
- var [GLORY_FAR, GLORY_DASH] = [8, 20];
217
- /**
218
214
  * The katana's glory kill, an execution (room.ts feast(), the user 2026-11-17: 1.5 s, not at once):
219
215
  * E locks the two for EXEC.TICKS (`exec` KILLER and VICTIM); the swordsman dashes in front of him,
220
216
  * to EXEC.REACH metres, over GLORY_DASH ticks, cuts down (CUT.SLASH) at EXEC.CUTS[0] and drops him
221
217
  * to his knees, then spins into a cut across (CUT.RIGHT) at EXEC.CUTS[1], whose strike is the
222
218
  * lock's last tick: his head goes (LIMB.HEAD) and the body, still on its knee, tips over where it
223
- * is (feast.ts topple()).
219
+ * is (feast.ts topple()). Without the katana in hand it is the fists' (the user, 2026-11-17): the
220
+ * same lock, dashing to EXEC.FIST metres, a punch in the belly on the cut down's strike drops him on
221
+ * his knee the same, and a punch down on his head on the lock's last tick bursts it (LIMB.BURST).
222
+ * The fists strike nothing on the host: their blows are drawn (feast.ts pummel()).
224
223
  */
225
224
  var EXEC = {
226
225
  TICKS: 88,
227
226
  REACH: 1.3,
227
+ FIST: .7,
228
228
  CUTS: [20, 74],
229
229
  KILLER: 1,
230
230
  VICTIM: 2
@@ -641,7 +641,9 @@ var LIMB = {
641
641
  LEG_L: 4,
642
642
  LEG_R: 5,
643
643
  /** The head a xenomorph's glory kill ate (GLORY_HP): gone, not thrown. */
644
- EATEN: 6
644
+ EATEN: 6,
645
+ /** The head the fists' glory kill burst with its punch down (EXEC): gone in blood, not thrown. */
646
+ BURST: 7
645
647
  };
646
648
  /**
647
649
  * How a player went down (bits 5-6 of PlayerState.fell), for the clients' fall: PLAIN as before,
@@ -6333,15 +6335,15 @@ var pouncing = (p) => p.dash > 50;
6333
6335
  var reaches = (a, b) => Math.hypot(a.x - b.x, a.z - b.z) < 1.1 && a.y < b.y + heightOf(b) && b.y < a.y + heightOf(a);
6334
6336
  /**
6335
6337
  * The enemy `me` would glory kill with E (room.ts feast()), of `foes` as it sees them: the nearest
6336
- * one up, in no lock and not seated, a body's height above or below and GLORY_ARC of its look. With
6337
- * the katana (`w` undefined) within GLORY_REACH on the floor plane, with GLORY_HP health or less;
6338
- * the xenomorph's within GLORY_FAR, in sight through the world `w`, at any health (the user,
6338
+ * one up, in no lock and not seated, within GLORY_REACH on the floor plane, a body's height above or
6339
+ * below and GLORY_ARC of its look. An execution, the katana's or the fists' (`w` undefined), with
6340
+ * GLORY_HP health or less; the xenomorph's in sight through the world `w`, at any health (the user,
6339
6341
  * 2026-11-16).
6340
6342
  */
6341
6343
  var glory = (me, foes, w) => {
6342
6344
  const [fx, fz] = forward(me.yaw);
6343
6345
  let best;
6344
- let near = w ? GLORY_FAR : GLORY_REACH;
6346
+ let near = GLORY_REACH;
6345
6347
  for (const f of foes) {
6346
6348
  const [dx, dz] = [f.x - me.x, f.z - me.z];
6347
6349
  const d = Math.hypot(dx, dz);
@@ -6427,10 +6429,10 @@ var step = (p, i, w, team, armed = true, bodies = [], kit = KITS[0]) => {
6427
6429
  const locked = !down && (p.lock ?? 0) > 0;
6428
6430
  const all = p.exec ? EXEC.TICKS : GLORY_TICKS;
6429
6431
  const killer = !p.wield || p.exec === EXEC.KILLER;
6430
- if (locked && killer && p.lock > all - GLORY_DASH && (p.vx || p.vz)) {
6432
+ if (locked && killer && p.lock > all - 20 && (p.vx || p.vz)) {
6431
6433
  coast(p, w, bodies);
6432
6434
  p.ev = p.lock == all ? EV.DASH : 0;
6433
- if (p.lock <= all - GLORY_DASH + 1) p.vx = p.vz = 0;
6435
+ if (p.lock <= all - 20 + 1) p.vx = p.vz = 0;
6434
6436
  } else move(p, down || locked ? {
6435
6437
  ...i,
6436
6438
  keys: 0
@@ -6653,20 +6655,21 @@ var duel = (p, i) => {
6653
6655
  return STRIKE.NONE;
6654
6656
  };
6655
6657
  /**
6656
- * A step of a katana's glory kill (EXEC), whatever the keys: the swordsman's two cuts start on
6657
- * their ticks of the lock (EXEC.CUTS: a cut down, then one across whose strike is the lock's last
6658
- * tick), and strike no one; his victim holds no weapon up. Predicted, as a cut is.
6658
+ * A step of a glory kill's execution (EXEC), whatever the keys: with the katana in hand at its start
6659
+ * (`wield`, kept through it) the swordsman's two cuts start on their ticks of the lock (EXEC.CUTS: a
6660
+ * cut down, then one across whose strike is the lock's last tick), and strike no one; the fists'
6661
+ * start no swing (their blows are drawn). His victim holds no weapon up. Predicted, as a cut is.
6659
6662
  */
6660
6663
  var execute = (p) => {
6661
6664
  p.lock = Math.max(1, p.lock - 1);
6662
6665
  p.away = p.pushes = 0;
6663
6666
  const e = EXEC.TICKS - p.lock;
6664
6667
  const at = EXEC.CUTS.indexOf(e);
6665
- const killer = p.exec === EXEC.KILLER;
6666
- p.cut = killer && at >= 0 ? [CUT.SLASH, CUT.RIGHT][at] : p.cut;
6667
- p.swing = killer && at >= 0 ? CUTS[p.cut].ticks : Math.max(0, (p.swing ?? 0) - 1);
6668
+ const blade = p.exec === EXEC.KILLER && !!p.wield;
6669
+ p.cut = blade && at >= 0 ? [CUT.SLASH, CUT.RIGHT][at] : p.cut;
6670
+ p.swing = blade && at >= 0 ? CUTS[p.cut].ticks : Math.max(0, (p.swing ?? 0) - 1);
6668
6671
  [p.wield, p.charge, p.heavy] = [
6669
- killer && !!p.blade,
6672
+ blade,
6670
6673
  0,
6671
6674
  false
6672
6675
  ];
@@ -9514,18 +9517,18 @@ var Room = class {
9514
9517
  foe.state.fried = this.shot(foe, 1, foe.railer, foe.state.x - r.x, foe.state.z - r.z, FRAG.RAIL);
9515
9518
  }
9516
9519
  /**
9517
- * E pressed by `p`, the xenomorph or one with the katana in hand: the nearest enemy who is up,
9518
- * within GLORY_ARC of its look where `p` drew him, and in no lock, is glory killed (glory()):
9519
- * with the katana within GLORY_REACH and with GLORY_HP or less, the xenomorph's within
9520
- * GLORY_FAR, in sight, at any health (the user, 2026-11-16). The two are locked (`lock`, `foe`),
9520
+ * E pressed by `p`: the nearest enemy who is up, within GLORY_ARC of its look where `p` drew him,
9521
+ * and in no lock, is glory killed (glory()): within GLORY_REACH, with GLORY_HP or less, the
9522
+ * xenomorph's in sight, at any health (the user, 2026-11-16). The two are locked (`lock`, `foe`),
9521
9523
  * his flag dropped, `p` dashing in front of him: the xenomorph to a metre for GLORY_TICKS (the
9522
- * user, 2026-11-16), the swordsman to EXEC.REACH for an execution of EXEC.TICKS (`exec`, the user
9523
- * 2026-11-17: no longer at once); duel() ends it. True when it happened.
9524
+ * user, 2026-11-16), anyone else for an execution of EXEC.TICKS (`exec`, the user 2026-11-17: no
9525
+ * longer at once), to EXEC.REACH with the katana in hand, else to EXEC.FIST with the fists (the
9526
+ * user, 2026-11-17: a glory kill for everyone); duel() ends it. True when it happened.
9524
9527
  */
9525
9528
  feast(p, view) {
9526
9529
  const me = p.state;
9527
9530
  const xeno = this.kit(p).xeno;
9528
- if (!xeno && !me.wield || me.down || me.stun || me.lock || me.mode === MODE.RIDE) return false;
9531
+ if (me.down || me.stun || me.lock || me.mode === MODE.RIDE) return false;
9529
9532
  const seen = glory(me, this.enemies(p, view).flatMap((s) => {
9530
9533
  const q = this.players().find((o) => o.info.id === s.id);
9531
9534
  const { hp, down, lock, mode } = q?.state ?? s;
@@ -9542,7 +9545,7 @@ var Room = class {
9542
9545
  const [dx, dz] = [seen.x - me.x, seen.z - me.z];
9543
9546
  const d = Math.hypot(dx, dz) || 1;
9544
9547
  this.drop(foe.info.id);
9545
- const [lock, near] = xeno ? [GLORY_TICKS, 1] : [EXEC.TICKS, EXEC.REACH];
9548
+ const [lock, near] = xeno ? [GLORY_TICKS, 1] : [EXEC.TICKS, me.wield ? EXEC.REACH : EXEC.FIST];
9546
9549
  for (const [a, b, exec] of [[
9547
9550
  p,
9548
9551
  foe,
@@ -9568,7 +9571,7 @@ var Room = class {
9568
9571
  });
9569
9572
  a.state.exec = xeno ? 0 : exec;
9570
9573
  }
9571
- const v = Math.max(d - near, 0) * 60 / GLORY_DASH / d;
9574
+ const v = Math.max(d - near, 0) * 60 / 20 / d;
9572
9575
  [me.vx, me.vz] = [Math.fround(dx * v), Math.fround(dz * v)];
9573
9576
  return true;
9574
9577
  }
@@ -9591,13 +9594,15 @@ var Room = class {
9591
9594
  if (x !== y || exec) {
9592
9595
  if (q.lock > 1 && o.state.lock > 1) return;
9593
9596
  const [eater, prey] = (exec ? q.exec === EXEC.KILLER : x) ? [p, o] : [o, p];
9597
+ const head = !exec ? LIMB.EATEN : eater.state.wield ? LIMB.HEAD : LIMB.BURST;
9594
9598
  Object.assign(q, FREE);
9595
9599
  Object.assign(o.state, FREE);
9596
9600
  eater.state.hits = eater.state.hits + 1 & 255;
9597
9601
  const [dx, dz] = [prey.state.x - eater.state.x, prey.state.z - eater.state.z];
9598
9602
  const d = Math.hypot(dx, dz) || 1;
9599
9603
  this.harm(prey, Infinity, eater, FRAG.GLORY, felled(FALL$1.STRUCK, dx / d, dz / d));
9600
- prey.state.lost = exec ? LIMB.HEAD : LIMB.EATEN;
9604
+ prey.state.lost = head;
9605
+ if (!exec) eater.state.hp = Math.min(eater.state.hp + 1, this.kit(eater).hp);
9601
9606
  return;
9602
9607
  }
9603
9608
  const lead = (q.pushes ?? 0) - (o.state.pushes ?? 0);
@@ -9758,11 +9763,12 @@ var Room = class {
9758
9763
  }
9759
9764
  /**
9760
9765
  * A press of USE on foot: the nearest rover within ROVER.ENTER_R on the floor plane with a seat
9761
- * for him, the wheel first; a flag carrier only rides. Not while down, stumbling or in a lock.
9766
+ * for him, the wheel first; a flag carrier only rides. Not while down, stumbling or in a lock, and
9767
+ * never the xenomorph (the user, 2026-11-17).
9762
9768
  */
9763
9769
  enter(p) {
9764
9770
  const q = p.state;
9765
- if (q.down || q.stun || q.lock || q.mode === MODE.RIDE) return;
9771
+ if (q.down || q.stun || q.lock || q.mode === MODE.RIDE || this.kit(p).xeno) return;
9766
9772
  const carrier = this.ctf.carrying(p.info.id) >= 0;
9767
9773
  const r = this.rovers.filter((r) => nearby(r, q) && free(r, carrier) >= 0).sort((a, b) => gap2(a, q) - gap2(b, q))[0];
9768
9774
  if (r) board(q, r, free(r, carrier));
@@ -154,3 +154,78 @@ export declare const intent: (pose: Pose, prey: Vec3, w: number) => Pose;
154
154
  * back, its feet where they were, its back bent forward and its head kept up, its claws ahead and low.
155
155
  */
156
156
  export declare const crouch: (pose: Pose, w: number) => Pose;
157
+ /**
158
+ * The fists' execution as drawn (EXEC, the user 2026-11-17: a glory kill for everyone, the victim's
159
+ * kneel the katana's, the killer's blows his own), in ticks of the lock: turned to his victim over
160
+ * TURN, the right fist drawn back low by the hip (GUT: cocked, still cocked), driven up into his
161
+ * belly on the strike of the katana's cut down, so the victim kneels on it (home), buried there as he
162
+ * folds (held), back to the guard (back); the left hand on the back of his bowed head, holding it
163
+ * (GRAB: from, on); the right fist raised high over the shoulder (SMASH: from, raised), held there a
164
+ * beat, brought down onto his head on the lock's last tick, as it bursts. Past the lock, the punch
165
+ * follows through and the guard comes back (AFTER: ticks of each). The body turns behind the blows:
166
+ * the chest's TWIST, the trunk's BEND forward (radians) and the hips' SINK (metres) at the gut punch
167
+ * and at the smash, the trunk leaning back RISE as the fist is raised. Places are across, ahead and
168
+ * up from the killer's feet: the GUARD by the chin (right, left), the fist COCKED by the hip, RAISED
169
+ * over the shoulder and through, PAST, after the head; on the victim: the fist on his belly, ahead of
170
+ * his spine (BELLY), and on the front of his head (FACE: toward the killer, up from its joint); the
171
+ * left hand on the back of it (NAPE).
172
+ */
173
+ export declare const PUMMEL: {
174
+ readonly TURN: 6;
175
+ readonly GUT: readonly [24, 31, number, 44, 54];
176
+ readonly GRAB: readonly [50, 60];
177
+ readonly SMASH: readonly [58, 74, 80, 88];
178
+ readonly AFTER: readonly [8, 24];
179
+ readonly TWIST: readonly [0.45, 0.55];
180
+ readonly BEND: readonly [0.35, 0.45];
181
+ readonly SINK: readonly [0.08, 0.16];
182
+ readonly RISE: 0.08;
183
+ readonly GUARD: readonly [readonly [0.15, 0.3, 1.36], readonly [-0.13, 0.34, 1.4]];
184
+ readonly COCKED: readonly [0.3, -0.1, 0.98];
185
+ readonly RAISED: readonly [0.26, -0.16, 1.98];
186
+ readonly PAST: readonly [0.1, 0.5, 0.72];
187
+ readonly BELLY: 0.19;
188
+ readonly FACE: readonly [0.12, 0.06];
189
+ readonly NAPE: readonly [0.02, 0.12];
190
+ /** Drops of blood as the head bursts, and how fast they fly; a spurt from the belly and the mouth on the gut punch. */
191
+ readonly BURST: readonly [140, 4.5];
192
+ readonly SPURT: readonly [14, 8];
193
+ /**
194
+ * His way in (the user, 2026-11-17: not a slide, and a leap that looks like one): a fighter's
195
+ * bound over the host's dash (GLORY_DASH ticks). He dips and pushes off the back foot, is in the
196
+ * air from tick OFF to ON, TOP metres up at the middle (a parabola), the left knee driven up ahead
197
+ * and the right leg folded behind, the left foot reaching down to land first and the right one
198
+ * stepping in after; the knees take the landing. Keys [tick, value] of each foot (metres ahead of
199
+ * his feet and up from them, the flight's lift apart), of the hips (metres down) and of the lean
200
+ * forward (radians); the last of each his fighting stance, the feet under him whatever the gait
201
+ * left behind, WIDE apart.
202
+ */
203
+ readonly LEAP: {
204
+ readonly OFF: 3;
205
+ readonly ON: 19;
206
+ readonly TOP: 0.3;
207
+ readonly WIDE: 0.13;
208
+ };
209
+ readonly LEAD: readonly [readonly [0, 0.13, 0], readonly [3, 0.08, 0.03], readonly [8, 0.32, 0.26], readonly [14, 0.36, 0.18], readonly [19, 0.2, 0], readonly [21, 0.13, 0]];
210
+ readonly TRAIL: readonly [readonly [0, -0.16, 0], readonly [3, -0.36, 0], readonly [7, -0.46, 0.22], readonly [13, -0.34, 0.3], readonly [19, -0.28, 0.06], readonly [24, -0.16, 0]];
211
+ readonly HIPS: readonly [readonly [0, 0.05], readonly [2, 0.15], readonly [4, 0.02], readonly [11, 0.06], readonly [19, 0.04], readonly [22, 0.2], readonly [27, 0.12], readonly [34, 0.05]];
212
+ readonly LEAN: readonly [readonly [0, 0], readonly [2, 0.12], readonly [5, 0.3], readonly [14, 0.15], readonly [21, 0.32], readonly [30, 0.06], readonly [36, 0]];
213
+ };
214
+ /** A fists' execution's killer, in its lock: his blows are drawn (pummel()), no weapon in hand. */
215
+ export declare const pummeling: (p: {
216
+ exec?: number;
217
+ lock?: number;
218
+ wield?: boolean;
219
+ }) => boolean;
220
+ /** The victim of a fists' execution as the killer last saw him: his feet, and his belly and head when drawn. */
221
+ export interface Prey {
222
+ feet: Vec3;
223
+ belly?: Vec3;
224
+ head?: Vec3;
225
+ }
226
+ /**
227
+ * The killer's `pose` in the fists' execution `e` ticks into its lock (past EXEC.TICKS after the
228
+ * kill, a fraction between ticks), on `prey`: turned to him, the blows of PUMMEL, his feet where
229
+ * they were. Faded out over the end of AFTER.
230
+ */
231
+ export declare const pummel: (pose: Pose, e: number, prey: Prey) => Pose;
@@ -19,9 +19,16 @@ export type Cue = [
19
19
  export declare const FEAST_CUES: Cue[];
20
20
  /** The katana's, over EXEC.TICKS: the cut down bites at 36, he is on his knee at 46. */
21
21
  export declare const EXEC_CUES: Cue[];
22
+ /**
23
+ * The fists', over EXEC.TICKS (feast.ts PUMMEL): the push off at 2 and 3, down on the left foot at 19
24
+ * and the right at 24, the fist driven in from 31 and home in his belly at 36, his knee at 46, the
25
+ * hand on his head at 58, the breath and the effort of the punch down from 76, its whoosh from 82.
26
+ */
27
+ export declare const FIST_CUES: Cue[];
22
28
  /** After the kill: seconds, then as a cue (on the place each stood). */
23
29
  export declare const FEAST_AFTER: [number, number, number, number, number][];
24
30
  export declare const EXEC_AFTER: [number, number, number, number, number][];
31
+ export declare const FIST_AFTER: [number, number, number, number, number][];
25
32
  export interface GloryFx {
26
33
  /** Plays what the glory kills of `players` (the own one among them) cue since the last frame. */
27
34
  frame(players: PlayerState[]): void;
@@ -14,7 +14,7 @@ export type Ground = (x: number, y: number, z: number) => number;
14
14
  export declare const ground: (world: World | undefined, y0: number) => Ground;
15
15
  export interface Piece {
16
16
  limb: number;
17
- /** The head a xenomorph ate (LIMB.EATEN): the stump is drawn, raw and unlit, not the piece. */
17
+ /** The head a xenomorph ate (LIMB.EATEN) or a punch burst (LIMB.BURST): the stump is drawn, raw and unlit, not the piece. */
18
18
  eaten?: boolean;
19
19
  /** The joints in the pose of the cut, which the limb is skinned with, and its middle then. */
20
20
  s: ReturnType<typeof solve>;
@@ -134,6 +134,8 @@ export declare const SOUND: {
134
134
  readonly ACID: 67;
135
135
  readonly ROAR: 68;
136
136
  readonly XENO_LAND: 69;
137
+ /** A fist bursting a head (the fists' glory kill): a deep thump, bone cracking, a wet splatter. */
138
+ readonly SMASH: 70;
137
139
  };
138
140
  /**
139
141
  * The sounds of the game: one entry per sound, its voices layered, in SOUND order. A low-passed
@@ -9,6 +9,7 @@ import type { Vec3 } from './mesh';
9
9
  import { solve } from './rig';
10
10
  import type { Pose, Quat } from './rig';
11
11
  import type { Face } from './expression';
12
+ import type { Prey } from './feast';
12
13
  import type { Trail } from './trail';
13
14
  import type { Out } from './verts';
14
15
  /** What a runner keeps between frames. */
@@ -91,6 +92,14 @@ export interface Runner {
91
92
  };
92
93
  /** The execution's victim's pose as he last knelt, or the xenomorph's prey's as it last held him: the dead body tips over from it. */
93
94
  knelt?: Pose;
95
+ /**
96
+ * The fists' execution (feast.ts pummel()): its killer's ticks into the lock, smoothed between
97
+ * snapshots and running on past it after the kill, and his victim as last drawn; its victim's
98
+ * `fist`, set while he kneels to fists rather than a katana.
99
+ */
100
+ pum?: number;
101
+ prey?: Prey;
102
+ fist?: boolean;
94
103
  /** The skeleton as last drawn: a limb cut off leaves from it (limbs.ts track()). */
95
104
  s?: ReturnType<typeof solve>;
96
105
  }
@@ -283,31 +283,38 @@ export declare const XENO_DASH = 1.4;
283
283
  export declare const POUNCE_HP: number, POUNCE_STUN: number;
284
284
  /**
285
285
  * The glory kill (the user, 2026-11-16, after DOOM 2016): an enemy with GLORY_HP health or less, up,
286
- * flashes to one with the katana in hand, who beheads him on E within GLORY_REACH metres. The
287
- * xenomorph's takes any enemy up, with no flash (the user, 2026-11-16): E within GLORY_FAR metres
288
- * of him, in sight, and GLORY_ARC radians of its look locks the two (`lock`, `foe`, as a saber
286
+ * flashes to anyone but the xenomorph, who executes him on E within GLORY_REACH metres (the user,
287
+ * 2026-11-17: the fists for everyone, the katana with it in hand; EXEC). The
288
+ * xenomorph's takes any enemy up, with no flash (the user, 2026-11-16): E within GLORY_REACH metres
289
+ * of him too (the user, 2026-11-17: only very close; 8 m before), in sight, and GLORY_ARC radians
290
+ * of its look locks the two (`lock`, `foe`, as a saber
289
291
  * lock) for GLORY_TICKS, where he does not move and it dashes to him, then it eats his head: he
290
292
  * goes down through his armour (LIMB.EATEN), a frag of FRAG.GLORY. 2 s, the time to see it climb
291
293
  * on him and bite (the user, 2026-11-16: 0.9 s before).
292
294
  */
293
295
  export declare const GLORY_HP: number, GLORY_REACH: number, GLORY_ARC: number, GLORY_TICKS: number;
294
296
  /**
295
- * The xenomorph's glory kill from afar (the user, 2026-11-16): within GLORY_FAR metres, in sight,
296
- * it dashes to a metre of its prey over the first GLORY_DASH ticks of the lock. 7 m in 20 ticks is
297
- * 21 m/s, a step under PLAYER_R: it cannot tunnel.
297
+ * The ticks a glory kill's killer dashes to its prey over, at the start of the lock: the xenomorph
298
+ * to a metre of him, the swordsman to EXEC.REACH.
298
299
  */
299
- export declare const GLORY_FAR: number, GLORY_DASH: number;
300
+ export declare const GLORY_DASH = 20;
301
+ /** The health the xenomorph gets back for a foe it ate (the user, 2026-11-17), up to XENO_HP. */
302
+ export declare const XENO_FEED = 1;
300
303
  /**
301
304
  * The katana's glory kill, an execution (room.ts feast(), the user 2026-11-17: 1.5 s, not at once):
302
305
  * E locks the two for EXEC.TICKS (`exec` KILLER and VICTIM); the swordsman dashes in front of him,
303
306
  * to EXEC.REACH metres, over GLORY_DASH ticks, cuts down (CUT.SLASH) at EXEC.CUTS[0] and drops him
304
307
  * to his knees, then spins into a cut across (CUT.RIGHT) at EXEC.CUTS[1], whose strike is the
305
308
  * lock's last tick: his head goes (LIMB.HEAD) and the body, still on its knee, tips over where it
306
- * is (feast.ts topple()).
309
+ * is (feast.ts topple()). Without the katana in hand it is the fists' (the user, 2026-11-17): the
310
+ * same lock, dashing to EXEC.FIST metres, a punch in the belly on the cut down's strike drops him on
311
+ * his knee the same, and a punch down on his head on the lock's last tick bursts it (LIMB.BURST).
312
+ * The fists strike nothing on the host: their blows are drawn (feast.ts pummel()).
307
313
  */
308
314
  export declare const EXEC: {
309
315
  readonly TICKS: 88;
310
316
  readonly REACH: 1.3;
317
+ readonly FIST: 0.7;
311
318
  readonly CUTS: readonly [20, 74];
312
319
  readonly KILLER: 1;
313
320
  readonly VICTIM: 2;
@@ -185,13 +185,13 @@ export declare class Room {
185
185
  /** 1 hp of the bolt's drain to `foe`, as his railer deals it; if it puts him down he is disintegrated (`fried`). */
186
186
  private fry;
187
187
  /**
188
- * E pressed by `p`, the xenomorph or one with the katana in hand: the nearest enemy who is up,
189
- * within GLORY_ARC of its look where `p` drew him, and in no lock, is glory killed (glory()):
190
- * with the katana within GLORY_REACH and with GLORY_HP or less, the xenomorph's within
191
- * GLORY_FAR, in sight, at any health (the user, 2026-11-16). The two are locked (`lock`, `foe`),
188
+ * E pressed by `p`: the nearest enemy who is up, within GLORY_ARC of its look where `p` drew him,
189
+ * and in no lock, is glory killed (glory()): within GLORY_REACH, with GLORY_HP or less, the
190
+ * xenomorph's in sight, at any health (the user, 2026-11-16). The two are locked (`lock`, `foe`),
192
191
  * his flag dropped, `p` dashing in front of him: the xenomorph to a metre for GLORY_TICKS (the
193
- * user, 2026-11-16), the swordsman to EXEC.REACH for an execution of EXEC.TICKS (`exec`, the user
194
- * 2026-11-17: no longer at once); duel() ends it. True when it happened.
192
+ * user, 2026-11-16), anyone else for an execution of EXEC.TICKS (`exec`, the user 2026-11-17: no
193
+ * longer at once), to EXEC.REACH with the katana in hand, else to EXEC.FIST with the fists (the
194
+ * user, 2026-11-17: a glory kill for everyone); duel() ends it. True when it happened.
195
195
  */
196
196
  private feast;
197
197
  /**
@@ -236,7 +236,8 @@ export declare class Room {
236
236
  private seats;
237
237
  /**
238
238
  * A press of USE on foot: the nearest rover within ROVER.ENTER_R on the floor plane with a seat
239
- * for him, the wheel first; a flag carrier only rides. Not while down, stumbling or in a lock.
239
+ * for him, the wheel first; a flag carrier only rides. Not while down, stumbling or in a lock, and
240
+ * never the xenomorph (the user, 2026-11-17).
240
241
  */
241
242
  private enter;
242
243
  /**
@@ -14,9 +14,9 @@ export declare const pouncing: (p: PlayerState) => boolean;
14
14
  export declare const reaches: (a: PlayerState, b: PlayerState) => boolean;
15
15
  /**
16
16
  * The enemy `me` would glory kill with E (room.ts feast()), of `foes` as it sees them: the nearest
17
- * one up, in no lock and not seated, a body's height above or below and GLORY_ARC of its look. With
18
- * the katana (`w` undefined) within GLORY_REACH on the floor plane, with GLORY_HP health or less;
19
- * the xenomorph's within GLORY_FAR, in sight through the world `w`, at any health (the user,
17
+ * one up, in no lock and not seated, within GLORY_REACH on the floor plane, a body's height above or
18
+ * below and GLORY_ARC of its look. An execution, the katana's or the fists' (`w` undefined), with
19
+ * GLORY_HP health or less; the xenomorph's in sight through the world `w`, at any health (the user,
20
20
  * 2026-11-16).
21
21
  */
22
22
  export declare const glory: (me: PlayerState, foes: readonly PlayerState[], w?: World) => PlayerState | undefined;
@@ -108,6 +108,8 @@ export declare const LIMB: {
108
108
  readonly LEG_R: 5;
109
109
  /** The head a xenomorph's glory kill ate (GLORY_HP): gone, not thrown. */
110
110
  readonly EATEN: 6;
111
+ /** The head the fists' glory kill burst with its punch down (EXEC): gone in blood, not thrown. */
112
+ readonly BURST: 7;
111
113
  };
112
114
  /**
113
115
  * How a player went down (bits 5-6 of PlayerState.fell), for the clients' fall: PLAIN as before,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@korial29/tiny-fps",
3
3
  "description": "Tiny multiplayer first-person rooftop game for the browser: raw WebGL, zero runtime dependencies, WebSocket or same-browser multi-tab play.",
4
4
  "license": "Apache-2.0",
5
- "version": "0.185.0",
5
+ "version": "0.186.0",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"