File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1510,9 +1510,8 @@ int CBasePlayer::OnTakeDamage( const CTakeDamageInfo &inputInfo )
15101510void CBasePlayer::OnDamagedByExplosion ( const CTakeDamageInfo &info )
15111511{
15121512#ifdef BDSBASE
1513-
15141513 int cl_ear_ringing_val = 1 ;
1515- if (IsNetClient ())
1514+ if (! IsFakeClient ())
15161515 {
15171516 const char * cl_ear_ringing = engine->GetClientConVarValue (engine->IndexOfEdict (edict ()), " cl_ear_ringing" );
15181517 if (cl_ear_ringing)
@@ -2397,7 +2396,11 @@ bool CBasePlayer::StartObserverMode(int mode)
23972396 AddSolidFlags ( FSOLID_NOT_SOLID );
23982397
23992398#ifdef BDSBASE
2399+ #if HL2MP
24002400 SetObserverMode (OBS_MODE_ROAMING);
2401+ #else
2402+ SetObserverMode (mode);
2403+ #endif
24012404#else
24022405 SetObserverMode (mode);
24032406#endif
Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ void CPlayerMove::RunPostThink( CBasePlayer *player )
305305
306306#ifdef BDSBASE
307307 int cl_ear_ringing_val = 1 ;
308- if (player->IsNetClient ())
308+ if (! player->IsFakeClient ())
309309 {
310310 const char * cl_ear_ringing = engine->GetClientConVarValue (engine->IndexOfEdict (player->edict ()), " cl_ear_ringing" );
311311 if (cl_ear_ringing)
You can’t perform that action at this time.
0 commit comments