Skip to content

Partial reloads 17: Add the MPN45 family sources and its reload clips - #189

Closed
sunzenshen wants to merge 1 commit into
stack/reload-zr68c/110-pz252from
stack/reload-zr68c/120-mpn45
Closed

sunzenshen wants to merge 1 commit into
stack/reload-zr68c/110-pz252from
stack/reload-zr68c/120-mpn45

Conversation

@sunzenshen

@sunzenshen sunzenshen commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Description

Partial reloads 17: add the MPN45 family sources and its reload clips. The MPN45 (unsilenced) authors the clips; the
MPN45-S, the game's default MPN45, compiles them. Used by NeotokyoRebuild/neo#2303 (neo layer 17), which gives both
MPN45 scripts the reload phases.

It is layer 17 of a stack and builds on #188 (16, PZ252), #187 (15, SRS), #186 (14, AA13), #185 (13, MilSO), #184
(12, Kyla), #183 (11, Tachi), #182 (10), #181 (09), #180 (08), #178 (07), #179 (06), #177 (05), #196 (04), #195 (03), #194 (02) and #176 (01). Next:
#190 (18, SRM family). The neo flag sv_neo_reload_experimental is 1 by default while the stack is reviewed.


Overview of Changes

  • MPN45 sources: scenes jinrai_mpn and jinrai_mpn_s (one scene per gun, both teams' arms) and the projects
    jinrai_mpn/, nsf_mpn/, jinrai_mpn_s/, nsf_mpn_s/, with mpn/viewmodel.qci shared by the four team .qc
    files (each keeps its own $definebone lines), preview images mpn/textures/, mpn and mpn_s sections in
    rom_spec.json.
  • Steps and slots (MPN45 scene): reload step markers at 1_unload f18 (the magazine out), 2_load f51 (the
    magazine seat) and 3_cycle f85 (the handle home). Authored slots: drawunloaded (f0-51), drawtocycle (f0-45),
    skipcycle (f0-13).
  • Glued clips (composites.txt, glued.qci): drawunloaded_reload (joins reload after f27),
    drawtocycle_reload (after f72), reload_skipcycle and drawunloaded_reload_skipcycle (leave reload at f51;
    the MPN45 has no magazine tap). drawtocycle carries its own drawtocycle:3_cycle.sound marker (f45), since the
    join replaces the reload frame that holds the cycle sound marker.
  • MPN45-S, a family variant (the pattern of Partial reloads 09: Add the ZR68-S as a ZR68C family variant #181, the ZR68-S): its team .qc files include
    ../jinrai_mpn/glued.qci; its scene keeps the shipped slots and the reload step markers; the export fills its
    phases file from the MPN45's clips.
  • Variant toggle: the MPN45 scene shows the MPN45-S gun on the MPN45 rig and action (mpn_gun, mpn_s_gun).
    variant_preview.py lists mpn_s as the game default, so the panel reads mpn_s (game default):
    weapon_mpn.txt uses the suppressed model.
  • Phases files and sound pieces: weapon_mpn_reload_phases.txt, weapon_mpn_s_reload_phases.txt; three pieces
    cut from the shipped mpn45_reload.wav (mpn45_reload_unload, _load, _cycle).
  • Compiled models: v_jinrai_mpn, v_nsf_mpn, v_jinrai_mpn_s, v_nsf_mpn_s (the MPN45 had no models in
    neoAssets before).
  • README: the MPN45 family in the layout, "Gun families" and "Reload resume animations".

How to Review

  • Text: composites.txt, glued.qci, mpn/viewmodel.qci, the team .qc files and the two phases files.
  • Tools: one line in variant_preview.py (GAME_DEFAULT).
  • viewmodels.blend gains the two MPN45 scenes; the other scenes are unchanged. The SMDs are the shipped clips
    (written unchanged by the export) or export output; the checks below cover the binary files.

Checks (measured)

check result
export of all eleven projects rc 0; ROM CHECK 11 projects, no clamped pose; FAMILY jinrai_mpn_s compiles the glued clips of jinrai_mpn; no shipped SMD changed; no other gun's SMD or phases file changed; second export: post-export preview unchanged
joins SEAM 0.0000 u, 0.000 deg on all 31 seams
pace PACE jinrai_mpn 3 authored slots, 0 warnings; every other gun unchanged
sounds end before the clip 12 MPN45 READY lines (6 per gun)
sources every MPN45 source, phases file, wav and model file equals the research branch (#175) byte for byte
compile, 22 projects rc 0, 0 warnings; the 90 model files of the other guns byte-identical to layer 16's compile except runtime pointer-slot bytes of the .mdl; the MPN45 .vvd / .vtx byte-identical to a fresh compile, the .mdl differ only in those pointer-slot bytes
Viewmodel panel (Blender under Xvfb) the MPN45 scene: Team toggle Jinrai -> NSF -> Jinrai; Variant mpn -> mpn_s (game default) (the suppressor shows) -> mpn; Export gun rc 0, no file changed
in game with the layer 17 neo PR see the neo PR: both MPN45s tactical 30+1, dry 30 then 29+1, resumes after the unload and the load, flag 0 = master, headless TDM PASS

How to Test

  1. Load a build with the layer 17 neo PR (the flag is 1 by default).
  2. Take the MPN45 (any class), fire some rounds and reload: no handle pull, 30+1. Fire it empty and reload: 30,
    then 29+1 at the handle.
  3. Reload and switch to the secondary after the old magazine is out (about 0.7-1.6 s in), then back: the draw
    continues the reload, with no pop at the joins.
  4. In Blender, open the MPN45 scene and pick mpn_s (game default) in the Viewmodel panel's Variant dropdown.

Related

The MPN45 (unsilenced) and MPN45-S (the game's default MPN45) move
into the layout as scenes jinrai_mpn and jinrai_mpn_s, as on the
full-house branch: one scene per gun with both teams' arms,
mpn/viewmodel.qci shared by the four team .qc files (each keeps its
own $definebone lines).

The MPN45 authors the family's transitions. The reload has three
steps: 1_unload when the magazine is out (f18), 2_load at the
magazine seat (f51) and 3_cycle when the handle is home (f85). Three
authored slots: drawunloaded (f0-51), drawtocycle (f0-45) and
skipcycle (f0-13). They make four glued clips: drawunloaded_reload
(joins reload after f27), drawtocycle_reload (after f72),
reload_skipcycle and drawunloaded_reload_skipcycle (leave reload at
f51; the MPN45 has no magazine tap). drawtocycle carries its own
cycle sound marker at f45, since the join replaces the reload frame
that holds it. The steps play three sound pieces cut from the shipped
reload sound.

The MPN45-S is a family variant: its team qcs include
../jinrai_mpn/glued.qci, its scene keeps only the shipped slots, and
the export fills its phases file from the MPN45's clips. The Variant
toggle of the MPN45 scene shows the suppressed gun and lists it as
the game default (weapon_mpn.txt uses that model).

The four models are compiled from these sources (the MPN45 had no
models in neoAssets before).
@sunzenshen
sunzenshen force-pushed the stack/reload-zr68c/110-pz252 branch from beab53f to 34b1807 Compare November 10, 2026 02:08
@sunzenshen
sunzenshen force-pushed the stack/reload-zr68c/120-mpn45 branch from dccdecd to 3800275 Compare November 10, 2026 02:08
@sunzenshen sunzenshen changed the title Partial reloads 14: Add the MPN45 family sources and its reload clips Partial reloads 17: Add the MPN45 family sources and its reload clips Nov 10, 2026
@sunzenshen

Copy link
Copy Markdown
Contributor Author

Closing to clear the board in favor of the PR stack of sunzenshen#25

@sunzenshen sunzenshen closed this Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant