From f98365232bc07313bcc82ec657470cc2699b14f2 Mon Sep 17 00:00:00 2001 From: puzl Date: Sun, 30 Jul 2006 23:15:13 +0000 Subject: [PATCH] o Fixed a bug where players with flashlight on would spectate other players as cloaked. git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@558 67975925-1194-0748-b3d5-c16f83f1a3a1 --- releases/3.2.0/source/dlls/client.cpp | 2 +- releases/3.2.0/source/mod/AvHPlayer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/releases/3.2.0/source/dlls/client.cpp b/releases/3.2.0/source/dlls/client.cpp index 001cfdad..03b70222 100644 --- a/releases/3.2.0/source/dlls/client.cpp +++ b/releases/3.2.0/source/dlls/client.cpp @@ -2810,7 +2810,7 @@ int AddToFullPack( struct entity_state_s *state, int e, edict_t *ent, edict_t *h marineGlow = true; } - if(( marineGlow || (ent->v.team == theReceivingPlayer->pev->team)) && (ent != theReceivingPlayer->edict()) && (ent->v.team != 0)) + if(( marineGlow || (ent->v.team == theReceivingPlayer->pev->team)) && (ent != theReceivingPlayer->edict()) && (ent->v.team != TEAM_IND) && (ent->v.team != TEAM_SPECT )) { state->rendermode = kRenderTransAdd; state->renderamt = 150; diff --git a/releases/3.2.0/source/mod/AvHPlayer.cpp b/releases/3.2.0/source/mod/AvHPlayer.cpp index d676073f..6d231fef 100644 --- a/releases/3.2.0/source/mod/AvHPlayer.cpp +++ b/releases/3.2.0/source/mod/AvHPlayer.cpp @@ -1338,7 +1338,7 @@ bool AvHPlayer::ExecuteMessage(AvHMessageID inMessageID, bool inInstantaneous, b case ALIEN_ABILITY_LEAP: this->StartLeap(); break; - case 100: + case IMPULSE_FLASHLIGHT: // Eat flashlight event. Add special mode for alien view here? if(!this->mAlienSightActive) PLAYBACK_EVENT_FULL(FEV_HOSTONLY, this->edict(), gAlienSightOnEventID, 0, this->pev->origin, (float *)&g_vecZero, this->GetAlienAdjustedEventVolume(), 0.0, 0, 0, 0, 0 );