Skip to content

Partial reloads 26: Empty the Supa-7 side saddle with the last slugs - #2314

Closed
sunzenshen wants to merge 1 commit into
stack/reload-zr68c/183-supa7-slugsfrom
stack/reload-zr68c/190-supa7-saddle-egg
Closed

sunzenshen wants to merge 1 commit into
stack/reload-zr68c/183-supa7-slugsfrom
stack/reload-zr68c/190-supa7-saddle-egg

Conversation

@sunzenshen

@sunzenshen sunzenshen commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Description

Partial reloads 26: the Supa-7 side saddle empties with the last slugs. This PR builds on layer 25 (#2313, slug
input rules) and pairs with NeotokyoRebuild/neoAssets#198 (the saddle bodygroups).

With sv_neo_reload_experimental 1, the four slug rounds on the Supa-7's side saddle stand for the last four slugs
of the reserve. When a slug load starts its insert, the front saddle round disappears at once. No new animation: the
round just goes.

  • Rounds shown: slug reserve minus the slug in the hand, clamped to 0..4. Six slugs keep the saddle full for the
    first two inserts; the last four empty it front first, one per insert start.
  • Refill: a pickup or respawn that raises the reserve shows the rounds again.
  • Holster and drop: the saddle is shown full again, because the viewmodel keeps its body for the next weapon.
  • Flag off: the update is skipped and the saddle stays full, as shipped. A model without the bodygroups is left
    alone. The world model is not touched; only the owner's viewmodel bodygroups change.

How to review

  • weapon_supa7.cpp: UpdateSaddleRounds (per frame and at each insert start), ShowSaddleRounds (bodygroups by
    name, front first, set only when they change), IsSlugInHand, and the resets in Holster and Drop.
  • All new members are private. The viewmodel body is networked and predicted, so client and server agree.

How to test

  1. sv_neo_reload_experimental 1, Supa-7, slug reserve 4, clip below full.
  2. Alt-fire to load slugs: one saddle round vanishes as each slug insert starts, front first, until the saddle is empty.
  3. Raise the slug reserve again (pickup or respawn): the rounds come back.
  4. sv_neo_reload_experimental 0: the saddle stays full through a slug load.

Results

case result
flag 1, 4 slugs, one alt-fire load server and client on the same tick: rounds shown 3, 2, 1, 0 at each insert start, about 0.51 s apart; reserve back to 4 shows 4 one tick later
flag 1, 6 slugs inserts 1-2 keep 4 rounds; inserts 3-6 empty the saddle front first
flag 0 shipped one-slug load, saddle full
headless TDM, 12 bots, flag 1 PASS, 0 asserts, 0 crashes (no bot use of the Supa-7 confirmed in the log)

Known, not reproduced: in the first take the saddle stayed empty about 1.3 s after the reserve rose. Six later takes,
with a log of the body value, showed the reset within two ticks.

Toolchain

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

Linked Issues

With sv_neo_reload_experimental 1, the side saddle shows the last four
slugs of the reserve: each slug insert hides the front round as it
starts, and a refill shows them again. Holster and drop show the saddle
full, since the viewmodel keeps its body. With the flag off the update
is skipped and the saddle stays as shipped.
@sunzenshen

Copy link
Copy Markdown
Contributor Author

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

@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