Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client side crowbar miss animation played twice. #3173

Open
malortie opened this issue Nov 27, 2021 · 0 comments
Open

Client side crowbar miss animation played twice. #3173

malortie opened this issue Nov 27, 2021 · 0 comments

Comments

@malortie
Copy link

The following code plays the crowbar miss animation.

halflife/cl_dll/ev_hldm.cpp

Lines 1154 to 1167 in c7240b9

if ( EV_IsLocal( idx ) )
{
gEngfuncs.pEventAPI->EV_WeaponAnimation( CROWBAR_ATTACK1MISS, 1 );
switch( (g_iSwing++) % 3 )
{
case 0:
gEngfuncs.pEventAPI->EV_WeaponAnimation ( CROWBAR_ATTACK1MISS, 1 ); break;
case 1:
gEngfuncs.pEventAPI->EV_WeaponAnimation ( CROWBAR_ATTACK2MISS, 1 ); break;
case 2:
gEngfuncs.pEventAPI->EV_WeaponAnimation ( CROWBAR_ATTACK3MISS, 1 ); break;
}
}

On line 1156 the code plays CROWBAR_ATTACK1MISS, which is played in the switch block further.

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

No branches or pull requests

1 participant