Skip to content

Commit

Permalink
fix hl beta clients unable to join func_vehicle maps
Browse files Browse the repository at this point in the history
an event precached which isn't needed anyway
  • Loading branch information
wootguy committed Sep 7, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 91c36b9 commit ff5bdb3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dlls/func/CFuncVehicle.cpp
Original file line number Diff line number Diff line change
@@ -304,13 +304,17 @@ void CFuncVehicle :: StopSound( void )
// if sound playing, stop it
if (m_soundPlaying && pev->noise)
{
/*
unsigned short us_encode;
unsigned short us_sound = ( ( unsigned short )( m_sounds ) & 0x0007 ) << 12;
us_encode = us_sound;
PLAYBACK_EVENT_FULL( FEV_RELIABLE | FEV_UPDATE, edict(), m_usAdjustPitch, 0.0,
(float *)&g_vecZero, (float *)&g_vecZero, 0.0, 0.0, us_encode, 0, 1, 0 );
*/

STOP_SOUND(ENT(pev), CHAN_VOICE, (char*)STRING(pev->noise));
}

m_soundPlaying = 0;
@@ -1048,7 +1052,7 @@ void CFuncVehicle :: Precache( void )
PRECACHE_SOUND("plats/vehicle_start1.wav");
PRECACHE_SOUND("plats/vehicle_ignition.wav");

m_usAdjustPitch = PRECACHE_EVENT( 1, "events/vehicle.sc" );
//m_usAdjustPitch = PRECACHE_EVENT( 1, "events/vehicle.sc" );
}


0 comments on commit ff5bdb3

Please sign in to comment.