From ff5bdb3140f37973f3b370061299efd239d0ab52 Mon Sep 17 00:00:00 2001 From: wootguy Date: Fri, 6 Sep 2024 23:13:28 -0700 Subject: [PATCH] fix hl beta clients unable to join func_vehicle maps an event precached which isn't needed anyway --- dlls/func/CFuncVehicle.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dlls/func/CFuncVehicle.cpp b/dlls/func/CFuncVehicle.cpp index 23d6358a..50681bc2 100644 --- a/dlls/func/CFuncVehicle.cpp +++ b/dlls/func/CFuncVehicle.cpp @@ -304,6 +304,7 @@ 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; @@ -311,6 +312,9 @@ void CFuncVehicle :: StopSound( void ) 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" ); }