Make 3rd party corpses invisible till they in fov

This commit is contained in:
steph-pg
2025-10-14 05:35:40 -03:00
committed by majcosta
parent b19efcf1b4
commit 07dbf9c848
+10 -2
View File
@@ -1112,8 +1112,7 @@ BOOLEAN TurnSoldierIntoCorpse( SOLDIERTYPE *pSoldier, BOOLEAN fRemoveMerc, BOOLE
iCorpseID = AddRottingCorpse( &Corpse );
// If this is our guy......make visible...
//if ( pSoldier->bTeam == gbPlayerNum )
if ( iCorpseID != -1 )
if ( iCorpseID != -1 && pSoldier->bTeam == OUR_TEAM || gbPublicOpplist[OUR_TEAM][pSoldier->ubID] == SEEN_CURRENTLY )
{
MakeCorpseVisible( pSoldier, &( gRottingCorpse[ iCorpseID ] ) );
}
@@ -2528,6 +2527,15 @@ void LookForAndMayCommentOnSeeingCorpse( SOLDIERTYPE *pSoldier, INT32 sGridNo, U
INT8 bToleranceThreshold = 0;
SOLDIERTYPE *pTeamSoldier;
pCorpse = GetCorpseAtGridNo(sGridNo, ubLevel);
if (pCorpse == NULL)
{
return;
}
if (pCorpse->fActivated && pCorpse->def.bVisible != 1)
pCorpse->def.bVisible = 1;
if ( QuoteExp[ pSoldier->ubProfile ].QuoteExpHeadShotOnly == 1 )
{
return;