Skip to content

Partial reloads 10: Add partial reloads to the ZR68-L - #2296

Closed
sunzenshen wants to merge 1 commit into
stack/reload-zr68c/55-zr68-familyfrom
stack/reload-zr68c/57-zr68l
Closed

sunzenshen wants to merge 1 commit into
stack/reload-zr68c/55-zr68-familyfrom
stack/reload-zr68c/57-zr68l

Conversation

@sunzenshen

@sunzenshen sunzenshen commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Description

Depends on NeotokyoRebuild/neoAssets#182 (layer 10: the ZR68-L sources, clips, phases file and sound pieces).

Partial reloads 10: add partial reloads to the ZR68-L. This PR builds on layer 09 (the ZR68-S) and pairs with
neoAssets layer 10. Next: #2297 (11, the Tachi).

The phase code of 03-05 is generic: a weapon gets partial reloads from its weapon script and a phases file. This PR
adds the weapon script lines and the sound entries; it has no code changes.

  • ZR68-L: #base "weapon_zr68l_reload_phases.txt", "ReloadPhases" {}, "ChamberedRound" "1", as the ZR68C
    and ZR68-S have them. Its reload has its own motion and sounds, so it is not a ZR68C family variant: it has its own
    clips and four new sound entries, weapon_zr68l.reload_unload, _load, _load_part2, _cycle.
  • The flag sv_neo_reload_experimental defaults to 1 while the partial-reload stack is reviewed (Partial reloads 06: Resume a ZR68C reload after the magazine is unloaded #2293); the
    last PR of the stack sets it back to 0. With the flag at 0 the ZR68-L behaves as on master.

How to review

  1. weapon_zr68l.txt: the three lines, as weapon_zr68c.txt has them (Partial reloads 06: Resume a ZR68C reload after the magazine is unloaded #2293, Partial reloads 08: Keep a chambered round through a partial reload #2294).
  2. game_sounds_weapons.txt: the four ZR68-L entries, in the weapon_zr68.reload_* pattern.
  3. The neoAssets layer 10 phases file.
  4. Test in game: "How to test".

How to test

  1. Load a map (the flag is 1 by default during review). Take the ZR68-L: the HUD shows 9+1.
  2. Fire a few rounds and reload: no bolt pull, 10+1. Fire the magazine empty and reload: 10 with a dim round icon,
    then 9+1 at the bolt pull.
  3. Reload and switch to the secondary after the old magazine is out (about 0.7-1.4 s in), then back, once dry and once
    with a round chambered.
  4. Repeat with sv_neo_reload_experimental 0 (set before the map loads): master behavior, 10 rounds, no +1.

Results

Layer 10 build (this PR + neoAssets layer 10), Linux Debug, ntre_engage_ctg, owner ZR68-L plus a bot_mimic bot:

case result
tactical from 5 reload_skipcycle: 5 -> 1 at the unload (+0.68 s) -> 11 at the load (+1.41 s); the ZR68-L's unload, load, load_part2 sounds once each; no bolt pull
dry from 0 reload: 0 -> 10 with the round icon dim (+1.41 s) -> 9+1 at the bolt pull (+2.28 s)
tactical, switch after the unload the draw plays drawunloaded_reload_skipcycle: 1 -> 11
dry, switch after the unload drawunloaded_reload: 0 -> 10 -> 9+1; load, load_part2, cycle sounds once each
flag 0, tactical and dry with a switch master: reload 5 -> 10; the switch cancels the dry reload and a new reload runs
HUD (frame crops) tactical: round icon lit through the unload, 10 lit after the load; dry: icon dim, 10 lit, then 9 lit + 1 dim with the icon lit
headless TDM, 12 Recon bots on the ZR68-L, flag 1, 1 round PASS, match_end=True, 0 asserts

Toolchain

  • Linux GCC Distro Native (Linux Mint 22.3, GCC 13.3.0)

Linked Issues

The ZR68-L loads the reload phases neoAssets writes for it
(#base weapon_zr68l_reload_phases.txt) and keeps a chambered round
(ChamberedRound 1), as the ZR68C does. It plays its own sound pieces
(weapon_zr68l.reload_*). The phase code is generic, so no code
changes.
@sunzenshen
sunzenshen force-pushed the stack/reload-zr68c/55-zr68-family branch from 769dfa4 to 1ef02e7 Compare November 10, 2026 02:10
@sunzenshen
sunzenshen force-pushed the stack/reload-zr68c/57-zr68l branch from 94d3e09 to eac260d Compare November 10, 2026 02:10
@sunzenshen sunzenshen changed the title Partial reloads 07: Add partial reloads to the ZR68-L Partial reloads 10: Add partial reloads to the ZR68-L Nov 10, 2026
@sunzenshen
sunzenshen marked this pull request as ready for review November 10, 2026 04:46
@sunzenshen

Copy link
Copy Markdown
Contributor Author

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

@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

Animations Animation stuff. Including the syncronizing of animations between client and server based on state.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants