mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
Make 3rd party corpses invisible till they in fov
This commit is contained in:
@@ -1112,8 +1112,7 @@ BOOLEAN TurnSoldierIntoCorpse( SOLDIERTYPE *pSoldier, BOOLEAN fRemoveMerc, BOOLE
|
|||||||
iCorpseID = AddRottingCorpse( &Corpse );
|
iCorpseID = AddRottingCorpse( &Corpse );
|
||||||
|
|
||||||
// If this is our guy......make visible...
|
// If this is our guy......make visible...
|
||||||
//if ( pSoldier->bTeam == gbPlayerNum )
|
if ( iCorpseID != -1 && pSoldier->bTeam == OUR_TEAM || gbPublicOpplist[OUR_TEAM][pSoldier->ubID] == SEEN_CURRENTLY )
|
||||||
if ( iCorpseID != -1 )
|
|
||||||
{
|
{
|
||||||
MakeCorpseVisible( pSoldier, &( gRottingCorpse[ iCorpseID ] ) );
|
MakeCorpseVisible( pSoldier, &( gRottingCorpse[ iCorpseID ] ) );
|
||||||
}
|
}
|
||||||
@@ -2528,6 +2527,15 @@ void LookForAndMayCommentOnSeeingCorpse( SOLDIERTYPE *pSoldier, INT32 sGridNo, U
|
|||||||
INT8 bToleranceThreshold = 0;
|
INT8 bToleranceThreshold = 0;
|
||||||
SOLDIERTYPE *pTeamSoldier;
|
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 )
|
if ( QuoteExp[ pSoldier->ubProfile ].QuoteExpHeadShotOnly == 1 )
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user