Skip to content

Commit

Permalink
Disallowed switching to second knife hit when first is active
Browse files Browse the repository at this point in the history
  • Loading branch information
v2v3v4 authored and Xottab-DUTY committed Apr 5, 2019
1 parent 59715a6 commit 88f5775
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cs/engine/xrGame/WeaponKnife.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ void CWeaponKnife::OnStateSwitch (u32 S)
}break;
case eFire2:
{
if(GetState() == eFire) return;//v2v3v4 ôèêñ 2é àòàêè
//-------------------------------------------
m_eHitType = m_eHitType_2;
//fHitPower = fHitPower_2;
Expand Down Expand Up @@ -191,7 +192,7 @@ void CWeaponKnife::switch2_Attacking (u32 state)

if(state==eFire)
PlayHUDMotion("anm_attack", FALSE, this, state);
else //eFire2
else if(GetState() != eFire && state==eFire2)//v2v3v4 ôèêñ 2é àòàêè
PlayHUDMotion("anm_attack2", FALSE, this, state);

SetPending (TRUE);
Expand Down Expand Up @@ -233,6 +234,7 @@ void CWeaponKnife::FireStart()

void CWeaponKnife::Fire2Start ()
{
if(GetState() != eFire)//v2v3v4 ôèêñ 2é àòàêè
SwitchState(eFire2);
}

Expand Down

0 comments on commit 88f5775

Please sign in to comment.