mirror of
https://github.com/unknownworlds/NS.git
synced 2025-05-07 22:51:06 +00:00
o Yet more leap +attack fixes.
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@508 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
parent
55934b2481
commit
85541f7c7c
2 changed files with 9 additions and 8 deletions
|
@ -529,15 +529,16 @@ void CBasePlayerWeapon::ItemPostFrame( void )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// if ((gHUD.GetHUDUser3() == AVH_USER3_ALIEN_PLAYER1) && (gHUD.GetCurrentWeaponID() == AVH_ABILITY_LEAP))
|
if ((gHUD.GetHUDUser3() == AVH_USER3_ALIEN_PLAYER1)
|
||||||
// {
|
&& (gHUD.GetCurrentWeaponID() == AVH_ABILITY_LEAP)
|
||||||
// this->SendWeaponAnim(3);
|
&& (this->m_flLastAnimationPlayed + (float)BALANCE_VAR(kLeapROF) <= gpGlobals->time))
|
||||||
// this->m_flLastAnimationPlayed = gpGlobals->time;
|
{
|
||||||
// }
|
gEngfuncs.pEventAPI->EV_WeaponAnimation(3, 2);
|
||||||
|
this->m_flLastAnimationPlayed = gpGlobals->time;
|
||||||
|
}
|
||||||
//#ifdef AVH_CLIENT
|
//#ifdef AVH_CLIENT
|
||||||
//if((m_iClip == 0) && ?
|
//if((m_iClip == 0) && ?
|
||||||
//#endif
|
//#endif
|
||||||
|
|
||||||
PrimaryAttack();
|
PrimaryAttack();
|
||||||
//return;
|
//return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -127,7 +127,7 @@ void AvHLeap::Precache(void)
|
||||||
PRECACHE_UNMODIFIED_SOUND(kLeapHitSound1);
|
PRECACHE_UNMODIFIED_SOUND(kLeapHitSound1);
|
||||||
PRECACHE_UNMODIFIED_SOUND(kLeapKillSound);
|
PRECACHE_UNMODIFIED_SOUND(kLeapKillSound);
|
||||||
|
|
||||||
this->mEvent = PRECACHE_EVENT(1, kLeapEventName);
|
this->mEvent = 0; //PRECACHE_EVENT(1, kLeapEventName);
|
||||||
this->mAbilityEvent = PRECACHE_EVENT(1, kAbilityEventName);
|
this->mAbilityEvent = PRECACHE_EVENT(1, kAbilityEventName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -149,7 +149,7 @@ void AvHLeap::Spawn()
|
||||||
|
|
||||||
float AvHLeap::GetRateOfFire(void) const
|
float AvHLeap::GetRateOfFire(void) const
|
||||||
{
|
{
|
||||||
return (float)BALANCE_VAR(kLeapROF) * 0.5f;
|
return (float)BALANCE_VAR(kLeapROF);// * 0.5f;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AvHLeap::UsesAmmo(void) const
|
bool AvHLeap::UsesAmmo(void) const
|
||||||
|
|
Loading…
Reference in a new issue