Skip to content

[TF2] fix miniguns having inconsistent spin-down time based on which mouse button is released#1744

Open
wgetJane wants to merge 1 commit intoValveSoftware:masterfrom
wgetJane:minigun-spindown-fix
Open

[TF2] fix miniguns having inconsistent spin-down time based on which mouse button is released#1744
wgetJane wants to merge 1 commit intoValveSoftware:masterfrom
wgetJane:minigun-spindown-fix

Conversation

@wgetJane
Copy link
Contributor

@wgetJane wgetJane commented Jan 5, 2026

Description

when you unrev the minigun by releasing your left mouse button, it takes ~1.15 secs to fully spin down

when you unrev the minigun by releasing your right mouse button, it takes ~1.44 secs to fully spin down

this is because when SendWeaponAnim( ACT_VM_SECONDARYATTACK ) is used to set the weapon's idle rev animation, it also inadvertently changes the weapon's "idle time" as a side effect which adds a delay:

SetWeaponIdleTime( gpGlobals->curtime + SequenceDuration() );

unfixed:

spindown_unfixed.mp4

fixed:

spindown_fixed.mp4

note: green crosshair = no mouse buttons pressed

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