twhl-community / halflife-unified-sdk

Half-Life Updated SDK with Opposing Force and Blue Shift merged in, along with other improvements. Check README.md for more information.
Other
143 stars 24 forks source link

Gauss gun continues to play spin animation even after forced fire occurred. #529

Closed malortie closed 10 months ago

malortie commented 1 year ago

Description

See https://github.com/ValveSoftware/halflife/issues/3386

Build : Half-Life Unified SDK V1.0.0 Release Candidate 001

Project info

Using cl_projectinfo_print_all :

Project info for client:
Version: 1.0.0-Beta
Branch: master
Tag: UNIFIED-V1.0.0-RC001
Commit Hash: 68ea0b7ec048935f1e1e740c5778aedebb00458d
Build Timestamp: 20:02:58 Jul 30 2023
Project info for server:
Version: 1.0.0-Beta
Branch: master
Tag: UNIFIED-V1.0.0-RC001
Commit Hash: 68ea0b7ec048935f1e1e740c5778aedebb00458d
Build Timestamp: 20:03:54 Jul 30 2023
SamVanheer commented 1 year ago

This happens because m_fInAttack is reset to 0 by the server when it runs the frame. The client then runs it, sees it's 0 and doesn't run the attack logic which plays the animation.

I tried to work around the issue but it doesn't look like it can be done easily. Workarounds are likely to introduce other bugs in the process so i'm leaving this as-is.