Browse Source

Fix Gauss sound not stopping when players are not in the PAS. https://github.com/ValveSoftware/halflife/issues/3233 (#254)

hl_urbicide
Roman Chistokhodov 3 years ago committed by GitHub
parent
commit
8d844a1764
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dlls/gauss.cpp

2
dlls/gauss.cpp

@ -391,7 +391,7 @@ void CGauss::Fire( Vector vecOrigSrc, Vector vecDir, float flDamage )
// It's delayed by a fraction of second to make sure it is delayed by 1 frame on the client // It's delayed by a fraction of second to make sure it is delayed by 1 frame on the client
// It's sent reliably anyway, which could lead to other delays // It's sent reliably anyway, which could lead to other delays
PLAYBACK_EVENT_FULL( FEV_NOTHOST | FEV_RELIABLE, m_pPlayer->edict(), m_usGaussFire, 0.01f, m_pPlayer->pev->origin, m_pPlayer->pev->angles, 0.0, 0.0, 0, 0, 0, 1 ); PLAYBACK_EVENT_FULL( FEV_NOTHOST | FEV_RELIABLE | FEV_GLOBAL, m_pPlayer->edict(), m_usGaussFire, 0.01f, m_pPlayer->pev->origin, m_pPlayer->pev->angles, 0.0, 0.0, 0, 0, 0, 1 );
/*ALERT( at_console, "%f %f %f\n%f %f %f\n", /*ALERT( at_console, "%f %f %f\n%f %f %f\n",
vecSrc.x, vecSrc.y, vecSrc.z, vecSrc.x, vecSrc.y, vecSrc.z,

Loading…
Cancel
Save