Skip to content

Partial reloads 05: Add the ZR68C viewmodel sources - #177

Closed
sunzenshen wants to merge 2 commits into
stack/reload-zr68c/14-milso-lowfrom
stack/reload-zr68c/20-zr68c-sources
Closed

sunzenshen wants to merge 2 commits into
stack/reload-zr68c/14-milso-lowfrom
stack/reload-zr68c/20-zr68c-sources

Conversation

@sunzenshen

@sunzenshen sunzenshen commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Description

Adds a baseline set of viewmodel sources, with the intention of making #179 easier to review compared the the baseline available animations.


Overview of Changes

  • Sources: jinrai_zr68c/ and nsf_zr68c/ each hold reference.smd, anims/*.smd (the 15 shipped
    sequences) and a QC that sets $modelname and includes zr68c/viewmodel.qci, the lines both teams share.
    zr68c/textures/ holds the gun images the Blender scenes load as previews.
  • Blender scene: viewmodels.blend gains one scene, jinrai_zr68c, with one rig, camera and Action (15
    shipped slots) and the arm meshes of both teams skinned to that rig. The Team toggle (collection visibility, and
    the panel button) shows one team's arms. No authored slot and no timeline marker yet. The export writes the
    Jinrai project only; the nsf_zr68c/anims/ SMDs stay on disk and NSF compiles from them.
  • Limits: rom_spec.json gains the zr68c section, written by rom_limits.py -- spec from the shipped
    slots. The Tachi section is unchanged.
  • README: the weapons README and the README_ANIMATOR text block list the new projects; the preview camera
    section gives the ZR68C offset (8, 10, 0).

No tool changes: the scripts are the ones in #176.

How to Review

Checks (measured)

Blender 5.2.3 with Blender Source Tools, Source SDK Base 2013 MP studiomdl.exe under Wine.

check result
export jinrai_tachi jinrai_zr68c rc 0; no shipped SMD or QC differs from the committed ones; 4 KEPT (Tachi round-off); no SHIPPED change
range-of-motion check 0 clamps
rom_limits.py -- spec on the file tachi section unchanged, zr68c section added
compile all four projects rc 0, 20 files; 16 byte-identical to the compile before the merge, the 4 .mdl differ only in texture-entry pointer slots
compiled ZR68C vs the original NEOTOKYO models 52 / 52 bones in order; all 15 sequences same frames and fps; Jinrai max bone position difference 0.0185 u, rotation 0.048 deg; NSF 0.0216 u, 0.047 deg
panel loads headless; every ZR68C slot reads as shipped (15); Team jinrai to nsf to jinrai switches the sleeves (grey, blue; same reload pose); Export gun rc 0, no SMD changed
in game (master's assets; classic ZR68C model, master ships none) draw, auto fire 30 to 13, reload 13 to 30 at +2.2 s, reserve 90 to 60, idle01; HUD matches; only the engine baseline asserts

The bind-pose vertices of the recompiled .vvd sit 85 u from the original's, as for the earlier ZR68C recompile:
the bind matrices offset the difference, and the posed animation is what the bone compare above measures.

The compiled ZR68C models are not committed here. They match the original within the numbers above, so this layer
leaves the game as it is; layer 06 commits them with the new sequence.


Related

@sunzenshen sunzenshen changed the title Add the ZR68C viewmodel sources Partial reloads 20: Add the ZR68C viewmodel sources Nov 9, 2026
@sunzenshen sunzenshen closed this Nov 9, 2026
@sunzenshen
sunzenshen deleted the stack/reload-zr68c/20-zr68c-sources branch November 9, 2026 05:05
@sunzenshen
sunzenshen restored the stack/reload-zr68c/20-zr68c-sources branch November 9, 2026 05:05
@sunzenshen sunzenshen reopened this Nov 9, 2026
@sunzenshen
sunzenshen changed the base branch from stack/reload-zr68c/01-layout to stack/reload-zr68c/10-layout November 9, 2026 05:05
@sunzenshen sunzenshen changed the title Partial reloads 20: Add the ZR68C viewmodel sources Partial reloads 02: Add the ZR68C viewmodel sources Nov 9, 2026
@sunzenshen

sunzenshen commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor Author

This is the part of the PR stack where approval doesn't imply that this PR will get merged. Instead, reviewers are encouraged to move onto the next part of the stack, which would be #172

The goal would be to review the rest of the PR stack until we reach the top, and then we would merge the entire feature as an optional off by default feature flag.

Also, this specific PR doesn't add anything perceivably new to the assets beyond sources for the existing ZRC full reload, but is intended to make #172 easier to read.

Both team projects in viewmodels.blend with the 15 shipped slots,
their reference meshes, QCs, the shared zr68c/viewmodel.qci, textures
and the zr68c range-of-motion limits. Only shipped clips: the game
keeps the original ZR68C models.
jinrai_zr68c keeps its rig and action; the NSF preview mesh moves onto
that rig in its own collection (merge_teams.py zr68c), as for the
Tachi. The NSF project compiles from its shipped SMDs on disk. The
preview images keep their paths relative to the .blend.

Export jinrai_tachi jinrai_zr68c: rc 0, no clamp, no SMD changed. All
four models compile byte-identical to before, except the texture
pointer slots studiomdl leaves uninitialized.
@sunzenshen
sunzenshen force-pushed the stack/reload-zr68c/20-zr68c-sources branch from 51ab288 to 8977e66 Compare November 10, 2026 02:07
@sunzenshen
sunzenshen changed the base branch from stack/reload-zr68c/10-layout to stack/reload-zr68c/14-milso-low November 10, 2026 02:12
@sunzenshen sunzenshen changed the title Partial reloads 02: Add the ZR68C viewmodel sources Partial reloads 05: Add the ZR68C viewmodel sources Nov 10, 2026
@sunzenshen
sunzenshen marked this pull request as ready for review November 10, 2026 04:43
@sunzenshen
sunzenshen marked this pull request as draft November 13, 2026 03:50
This was referenced Nov 13, 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