mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Revert PR544
"Corpses are not properly shown even if within mercs' vision due to the check only running intermittently since we're not constantly running the reveal roofs and items function. In addition, mercs such as Raven who have the quoteexpheadshotonly set to true, will NEVER reveal any corpses" Revert "Remove extra line" This reverts commit1e1eb88864. Revert "Move visibility check after already included pCorpse check" This reverts commit72e586a378. Revert "Make 3rd party corpses invisible till they in fov" This reverts commit07dbf9c848.
This commit is contained in:
committed by
majcosta
parent
8bc3dbd0aa
commit
b44b6cebb8
@@ -1112,7 +1112,8 @@ BOOLEAN TurnSoldierIntoCorpse( SOLDIERTYPE *pSoldier, BOOLEAN fRemoveMerc, BOOLE
|
||||
iCorpseID = AddRottingCorpse( &Corpse );
|
||||
|
||||
// If this is our guy......make visible...
|
||||
if ( iCorpseID != -1 && pSoldier->bTeam == OUR_TEAM || gbPublicOpplist[OUR_TEAM][pSoldier->ubID] == SEEN_CURRENTLY )
|
||||
//if ( pSoldier->bTeam == gbPlayerNum )
|
||||
if ( iCorpseID != -1 )
|
||||
{
|
||||
MakeCorpseVisible( pSoldier, &( gRottingCorpse[ iCorpseID ] ) );
|
||||
}
|
||||
@@ -2539,9 +2540,6 @@ void LookForAndMayCommentOnSeeingCorpse( SOLDIERTYPE *pSoldier, INT32 sGridNo, U
|
||||
return;
|
||||
}
|
||||
|
||||
if (pCorpse->fActivated && pCorpse->def.bVisible != 1)
|
||||
pCorpse->def.bVisible = 1;
|
||||
|
||||
if ( pCorpse->def.ubType != ROTTING_STAGE2 )
|
||||
{
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user