Fix se_shoot not working on flaregun
This commit is contained in:
parent
5bb01be43f
commit
c91f0c1da9
@ -158,8 +158,10 @@ void CreateMove()
|
||||
amount = 2 * 90;
|
||||
}
|
||||
}
|
||||
else if (CanShoot() && bIsHolding && !bWasHolding)
|
||||
amount = 1 * 90;
|
||||
else if (CanShoot() && bIsHolding && !bWasHolding && g_pLocalPlayer->weapon()->m_iClassID != CL_CLASS(CTFFlareGun))
|
||||
amount = 1 * 90;
|
||||
else if (CanShoot() && bIsHolding && !bWasHolding && g_pLocalPlayer->weapon()->m_iClassID == CL_CLASS(CTFFlareGun))
|
||||
amount = 2 * 90;
|
||||
else if (bWasHolding && !bIsHolding)
|
||||
amount = 1 * 90;
|
||||
|
||||
@ -172,8 +174,10 @@ void CreateMove()
|
||||
{
|
||||
if (not g_pLocalPlayer->holding_sniper_rifle)
|
||||
{
|
||||
if (CanShoot() && bIsHolding && !bWasHolding)
|
||||
if (CanShoot() && bIsHolding && !bWasHolding && g_pLocalPlayer->weapon()->m_iClassID != CL_CLASS(CTFFlareGun))
|
||||
amount = 1 * 90;
|
||||
else if (CanShoot() && bIsHolding && !bWasHolding && g_pLocalPlayer->weapon()->m_iClassID == CL_CLASS(CTFFlareGun))
|
||||
amount = 2 * 90;
|
||||
else if (bWasHolding && !bIsHolding)
|
||||
amount = 1 * 90;
|
||||
bWasHolding = (g_pUserCmd->buttons & IN_ATTACK) ||
|
||||
|
Reference in New Issue
Block a user