The evade (executable + gsdata_<lang>.dat skills + setup/charaset/charaset.dat)
The button. A fresh press of
the evade button (input bit 0x1000000, held this
tick and not the last) while the character is
idle, moving or in state 8, not locked out for
that player (the tutorial locks it),
casts a skill: the skill record
named in the character’s charaset entry. So the
evade is a special skill (skill set 3), not an
action record. skilldata.py writes
the entries and the records they name to
movement.json "evades"
(raw values; movement.gd
PdMovement.evade() converts
them).
charaset.dat
(full record: “Character table” above): header
u32 file size, u32 entry count, u32 offset of
the string area; then 76-byte entries (from
0x10): +0 u32 model name (offset into the string
area, e.g. the protagonist’s model), +0x36 u16
the evade skill record. Every character names
one of two records: a jump (the protagonist and
about half the cast) or a dash (the rolls).
Jump evade (set 3, subtype 9). The skill calls the jump routine (“Player movement”) with
- height
H = r[0x56] / 10m and gravityg = 0.12 × (100 + r[0x5A]) / 100units/tick² (it replaces the default until the landing resets it), sovy = sqrt(20 g H)units/tick; - jump kind 5: start 33, up 34, down 35, landings 36 (the “Movement animations” table),
- the windup: the start animation, then the launch after its length − 2 ticks. On the protagonist the start is 2 frames long: the launch comes on the tick after the press, as in reference footage (no visible crouch). The protagonist’s record gives a 1.4 m jump at 2.4× gravity: vy 8.52 m/s, g 25.9 m/s², rise 0.33 s, 0.66 s in the air (≈ 20 ticks; footage: 21–22 frames from take-off to touch-down). With the 30 Hz integration (vy −= g, then y += vy) the highest point is 1.26 m.
Air control (the jump’s air state). While the stick is held, the body turns toward it by its turn step and moves along its facing at 20 / 10.8 units/tick (the run speed) × max(0, 1 − |Δ| / 90°), Δ the angle between facing and stick (as on the ground). Without the stick there’s no horizontal motion: a standing jump goes straight up. Nothing else moves the body in the air. In the windup (state 4) the body doesn’t move either.
Root motion. The animation player moves the body by the animation root’s ground-plane (x, z) delta, rotated by the body’s facing, only for plays started with the root-motion flag; the root’s height never moves the body. The jump routine plays the start with the flag and up, down and the landings without it. The hip rise of the air animations is therefore only drawn, not the body’s (as in our port).
Landing. As in “Movement animations”, but the drop under 4 m plays the kind’s field 3: 0 (none) for kinds 0–4 and 6, slot 36 for kind 5. The landing state then lasts the slot’s length − 1 ticks and only counts down: the body is rooted (no movement; no evade, which needs the idle/move states).
Dash evade (set 3, subtype
8). Plays its cast profile’s animation
(r[0x14] → profile 0x4C, slot 33
for the rolls) and moves
r[0x56] × 10 units over the
profile’s p[0x54] − p[0x56] ticks,
at most 10 units/tick: the rolls cover 4 m in
0.7 s (5.7 m/s).
Our port, a cast in the air: the cast holds the body in the air for its recovery, then it falls on with the evade’s gravity and air control (the hop state outlives the cast). Inferred from the air state handler running until the landing; the cast-in-air path wasn’t followed.
Roll direction (movepar 11-14): along the body’s facing at the press, never the stick, no steering (“Movement parity”, section 5). Not decoded: the skill-cast path from the press to the subtype handlers was followed only at its two ends (the press casts the charaset skill; the subtype 9 / 8 handlers start the jump / dash).