mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-22 01:47:45 +01:00
Fix gauss sound on level transition.
This commit is contained in:
parent
b2161d18d0
commit
1f4a414016
@ -170,6 +170,8 @@ void CGauss::PrimaryAttack()
|
||||
|
||||
void CGauss::SecondaryAttack()
|
||||
{
|
||||
if( m_pPlayer->m_flStartCharge > gpGlobals->time )
|
||||
m_pPlayer->m_flStartCharge = gpGlobals->time;
|
||||
// don't fire underwater
|
||||
if( m_pPlayer->pev->waterlevel == 3 )
|
||||
{
|
||||
@ -315,6 +317,8 @@ void CGauss::StartFire( void )
|
||||
{
|
||||
float flDamage;
|
||||
|
||||
if( m_pPlayer->m_flStartCharge > gpGlobals->time )
|
||||
m_pPlayer->m_flStartCharge = gpGlobals->time;
|
||||
UTIL_MakeVectors( m_pPlayer->pev->v_angle + m_pPlayer->pev->punchangle );
|
||||
Vector vecAiming = gpGlobals->v_forward;
|
||||
Vector vecSrc = m_pPlayer->GetGunPosition(); // + gpGlobals->v_up * -8 + gpGlobals->v_right * 8;
|
||||
|
@ -2797,6 +2797,7 @@ ReturnSpot:
|
||||
|
||||
void CBasePlayer::Spawn( void )
|
||||
{
|
||||
m_flStartCharge = gpGlobals->time;
|
||||
pev->classname = MAKE_STRING( "player" );
|
||||
pev->health = 100;
|
||||
pev->armorvalue = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user