Repository navigation
Pistol animations stay in slide lock open position during idle and reload states - #2259
Merged
sunzenshen merged 7 commits intoNov 7, 2026
Merged
Conversation
This was referenced Oct 17, 2026
Merged
Contributor
Author
|
This PR (2259) is the more complete solution, but I am proposing #2248 simultaneously, because I think we need to figure out how to handle the raw precompiled animation files from NeotokyoRebuild/neoAssets#170 . Maybe they shouldn't be in neoAssets? So it might be easier to merge 2248 first before we figure out the answer to animation file management. |
sunzenshen
marked this pull request as ready for review
October 17, 2026 02:03
Contributor
Author
|
Demo of the custom tachi slide-open animation (right most example) compared to a code only solution: 682226330-b7f4b4ea-ef36-4313-8a63-cf044174e7c4.mp4 |
Contributor
Author
|
Added a blender project for hand posing the animations. |
The Tachi and Milso viewmodels have an idle01empty sequence with the slide held back, which neo never played: an emptied pistol held its last fire frame for 2.0 s and then idled with the slide forward. The original NEOTOKYO holds the slide back from the end of the last shot until the reload. Send ACT_VM_IDLE_EMPTY for ACT_VM_IDLE while the clip is empty, as the SDK crossbow does, and go to it as the emptying shot's sequence ends. Models without the sequence are unchanged.
The Tachi and Milso viewmodels ship a drawempty sequence, the normal draw with the slide held back, but it carries no activity, so an empty pistol drew with the slide forward and only pulled it back as the empty idle faded in. Pick drawempty by name in Deploy when the clip is empty. Models without it, and loaded draws, are unchanged.
The shot that emptied a Tachi or Milso played its normal fire sequence, whose slide closes within 0.2 s, and the slide went back only when the empty idle followed 0.4 s later. Both pistols ship a dry fire sequence that is a shot's kick with the slide held back throughout, ending on the empty idle's pose, so the last round's shot plays that instead.
A reload always played the reload sequence, whose slide is forward from its first frame, so the slide of an empty pistol closed as the reload began. The Milso ships a reload for an empty gun (ACT_VM_RELOAD_EMPTY) that keeps the slide back until its release near the end, the same length as the reload; an empty weapon now plays it where the model has one.
sunzenshen
force-pushed
the
vm-empty-slide-assets
branch
from
October 26, 2026 04:48
3adcb38 to
e84fa2e
Compare
Preserve the empty-slide reload while incorporating upstream reload timing. Confirmed by a successful Debug build. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
AdamTadeusz
previously approved these changes
Oct 29, 2026
AdamTadeusz
approved these changes
Oct 31, 2026
sunmachine
self-requested a review
November 3, 2026 03:33
sunmachine
approved these changes
Nov 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Depends on NeotokyoRebuild/neoAssets#170
The Tachi and Milso viewmodels include empty-magazine animations, but the game did not use them. An empty pistol could show the slide forward after firing, drawing, or reloading.
This change uses the empty idle and draw sequences when the clip is empty, plays the slide-locked firing sequence on the last shot, and uses
reloademptywhen the model provides it. Empty reloads also trigger the third-person reload gesture. Weapons without these sequences keep their current animations. The Tachi's empty-reload animation requires NeotokyoRebuild/neoAssets#170.Testing: Checked empty and partial firing, switching, and reloads for both pistols, plus loaded pistols and rifles as controls. The Debug bot checks had no new asserts beyond the known startup assert.
Toolchain
Linked Issues
Testing
cl_autoreload_when_emptyto0, then fire the magazine dry.reloadanimation should play, with normal slide behavior.