mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
- Implement hostile coop for -FRIENDLY players.
This commit is contained in:
parent
786c4f01c8
commit
ff3d3f13c8
2 changed files with 1 additions and 4 deletions
|
@ -250,9 +250,6 @@ void P_NoiseAlert (AActor *target, AActor *emitter, bool splash, double maxdist)
|
|||
if (emitter == NULL)
|
||||
return;
|
||||
|
||||
/*if (target != NULL && target->player && !(target->flags & MF_FRIENDLY))
|
||||
return;*/
|
||||
|
||||
if (target != NULL && target->player && (target->player->cheats & CF_NOTARGET))
|
||||
return;
|
||||
|
||||
|
|
|
@ -7273,7 +7273,7 @@ bool AActor::IsTeammate (AActor *other)
|
|||
}
|
||||
else if (!deathmatch && player && other->player)
|
||||
{
|
||||
return true;
|
||||
return (!((flags ^ other->flags) & MF_FRIENDLY));
|
||||
}
|
||||
else if (teamplay)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue