Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/game/shared/swarm/asw_weapon_flamer_shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ void CASW_Weapon_Flamer::SecondaryAttack( void )
{
// decrement ammo
m_iClip1 -= 2;
NotifyIfNoneClip1Ammo( pMarine );
}
}
if (!rd_flamer_infinite_extinguisher.GetBool() || m_iClip1 > 0) // only force the fire wait time if we have ammo for another shot
Expand Down
4 changes: 2 additions & 2 deletions src/game/shared/swarm/asw_weapon_tesla_gun_shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ void CASW_Weapon_Tesla_Gun::PrimaryAttack( void )
{
m_iClip1 = MAX( 0, m_iClip1 - 1 );
m_flLastDischargeTime = gpGlobals->curtime;
NotifyIfNoneClip1Ammo( pMarine );
}

m_flNextPrimaryAttack = gpGlobals->curtime;
Expand Down Expand Up @@ -325,6 +326,7 @@ void CASW_Weapon_Tesla_Gun::ShockEntity()

// decrement ammo
m_iClip1 = MAX( 0, m_iClip1 - 1 );
NotifyIfNoneClip1Ammo( pMarine );

CPASFilter filter( pShockBaseEntity->GetAbsOrigin() );
CBaseEntity::EmitSound( filter, SOUND_FROM_WORLD, "ASW_Tesla_Laser.Damage", &pShockBaseEntity->GetAbsOrigin() );
Expand Down Expand Up @@ -489,8 +491,6 @@ void CASW_Weapon_Tesla_Gun::Fire( const Vector &vecOrigSrc, const Vector &vecDir
SetFiringState( ASW_TG_FIRE_DISCHARGE );
}

NotifyIfNoneClip1Ammo( pMarine );

if ( tr.DidHit() )
{
vecDest = tr.endpos;
Expand Down
Loading