bFriendly should not be set from scripts because this omits needed bookkeeping.

This commit is contained in:
Christoph Oelckers 2024-10-04 18:31:04 +02:00
parent 6aa71184f7
commit 5b1f0fdc86
3 changed files with 3 additions and 3 deletions

View file

@ -250,7 +250,7 @@ extend class Actor
else if (originator.player)
{
// A player always spawns a monster friendly to him
mo.bFriendly = true;
mo.A_SetFriendly(true);
mo.SetFriendPlayer(originator.player);
Actor attacker=originator.player.attacker;

View file

@ -218,7 +218,7 @@ extend class Actor
{
if (target && IsFriend(target))
{ // And I thought you were my friend!
bFriendly = false;
A_SetFriendly(false);
}
A_NoBlocking();
A_PainShootSkull(spawntype, angle + 90);

View file

@ -118,7 +118,7 @@ class Acolyte : StrifeHumanoid
void A_BeShadowyFoe()
{
A_SetRenderStyle(HR_SHADOW, STYLE_Translucent);
bFriendly = false;
A_SetFriendly(false);
}
//============================================================================