Movement animations (executable)
Which animation slots the character code
plays outside casts (slot numbers as in “Cast
animation profiles”; both tables are constant
data in the executable, so
pd_character.gd ANIMS
and movement.gd hold them as code
constants, like the speeds).
Mode table: 5 records of 11 s32 = {idle, walk, run, then 8 turn slots}, indexed by the character’s movement mode (normal, two speed variants, and two status modes not followed). The normal mode is idle 0, walk 7, run 12. The ground state picks walk or run with the hysteresis of “Player movement” and, when it switches between them, starts the new one at the same fraction of its length (the phase is kept).
Jump table: 7 records of 6 s32 = {start, up, down, small-drop landing, light landing, heavy landing}, indexed by the jump kind the jump routine is called with. Kinds 0–4 and 6 all use start 37, up 38, down 39, small drop 0 (none), landings 41 / 40; kind 5 (the jump evade, “The evade”) uses 33, 34, 35 and 36 for all three landings.
- Start: played on the ground, the launch comes after its length − 2 ticks.
- Up: played at launch at rate (length / (vy / g)): it lasts exactly the rise.
- Down: when the fall starts, at rate (length / (v / g)) with v the stored launch speed; the routine then stores the default 4 units/tick, so a fall that didn’t start from a jump (off a ledge) uses that.
- Landing: the drop d from the highest point of the flight (tracked while rising) picks it: d < 40 units (4 m): field 3 (0 = no landing animation, straight to idle with a 5-tick blend); 40 ≤ d ≤ 80 (8 m): the light landing; d > 80: the heavy landing (with a camera shake). The landing state lasts the animation’s length − 1 ticks.
Rendered on pc00a (char_view, side view): start = a crouch, up = legs straight, arms up, down = knees drawn up, light landing = knees bending from the air, heavy landing = a roll. The up/down/landing slots carry their own hip rise (pc00a hip 0.94 m in idle, up to 1.60 m in “up”), so the body is drawn higher than the controller’s position during a jump.
The landing state (6) only counts down, so it roots the character. The evade jump uses kind 5 (“The evade”).
Kind, launch and blends (branch jumparms).
- The character init sets the kind to 6 and the stored launch to 4.0 units/tick; after that only the jump routine writes the kind (no reset at the landing). So once the protagonist has evaded, every later fall off a ledge plays kind 5’s down (35) and, under 4 m, its small-drop landing (36); before any jump a fall plays 39 and no landing.
- “Up” is stretched with the launch speed the routine computed (sqrt(20 g H) units/tick), not a speed read after the first tick of gravity: on the protagonist’s evade 15 frames / (vy / g) = 1.52 frames per tick, all 15 frames by the highest point.
- The play call takes a blend in ticks: “up” is played with 0 (cut in, every other blend layer cleared), “down” with 5 ticks (the fall entry uses the cut only in one ground state, not the jump’s). A one-shot whose queued next slot is itself is held near its last frame (seeked back by half the rate), so “up” and “down” hold their last pose.
- No air pose for low ledges or steps: the air state starts only from the jump routine (rise) or from the floor test once the feet are 0.5 m under the last floor (“Floor test”), and a grounded body keeps to floors up to 0.75 m plus its move below. (armpose 11-14: the slot lengths and the pose descriptions above were taken from the plain-named file; in the file the battle loads “up” is 13 frames (1.32 frames per tick on the protagonist’s evade), “down” and the evade landing 12, and the arms stay down in the rise. See “Pose mixer and the character file the battle loads”.) Leads: jump routine 0x257b90, rise entry 0x25a0b0, fall entry 0x25a1c0 (called from the air state’s tick 0x25b0f0 when the vertical speed drops below 0, and from the lost-floor path 0x257c70), play 0x257310 (blend → layer setup 0x297d80), per-tick player 0x257510, init 0x256be8 (kind 6, launch 4.0; per-slot length table at +0x110).
The “turn slots” are the locked turn starts (movepar 11-14, “Movement parity” section 4). Not decoded: the status modes.