mirror of
https://github.com/ENSL/NS.git
synced 2024-11-10 07:11:38 +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))
|
||||
// {
|
||||
// this->SendWeaponAnim(3);
|
||||
// this->m_flLastAnimationPlayed = gpGlobals->time;
|
||||
// }
|
||||
if ((gHUD.GetHUDUser3() == AVH_USER3_ALIEN_PLAYER1)
|
||||
&& (gHUD.GetCurrentWeaponID() == AVH_ABILITY_LEAP)
|
||||
&& (this->m_flLastAnimationPlayed + (float)BALANCE_VAR(kLeapROF) <= gpGlobals->time))
|
||||
{
|
||||
gEngfuncs.pEventAPI->EV_WeaponAnimation(3, 2);
|
||||
this->m_flLastAnimationPlayed = gpGlobals->time;
|
||||
}
|
||||
//#ifdef AVH_CLIENT
|
||||
//if((m_iClip == 0) && ?
|
||||
//#endif
|
||||
|
||||
PrimaryAttack();
|
||||
//return;
|
||||
}
|
||||
|
|
|
@ -127,7 +127,7 @@ void AvHLeap::Precache(void)
|
|||
PRECACHE_UNMODIFIED_SOUND(kLeapHitSound1);
|
||||
PRECACHE_UNMODIFIED_SOUND(kLeapKillSound);
|
||||
|
||||
this->mEvent = PRECACHE_EVENT(1, kLeapEventName);
|
||||
this->mEvent = 0; //PRECACHE_EVENT(1, kLeapEventName);
|
||||
this->mAbilityEvent = PRECACHE_EVENT(1, kAbilityEventName);
|
||||
}
|
||||
|
||||
|
@ -149,7 +149,7 @@ void AvHLeap::Spawn()
|
|||
|
||||
float AvHLeap::GetRateOfFire(void) const
|
||||
{
|
||||
return (float)BALANCE_VAR(kLeapROF) * 0.5f;
|
||||
return (float)BALANCE_VAR(kLeapROF);// * 0.5f;
|
||||
}
|
||||
|
||||
bool AvHLeap::UsesAmmo(void) const
|
||||
|
|
Loading…
Reference in a new issue