From 7a2735885f99ea5aa5e11a3955e28823a606bf2f Mon Sep 17 00:00:00 2001 From: smallmodel <15067410+smallmodel@users.noreply.github.com> Date: Thu, 22 Feb 2024 22:50:36 +0100 Subject: [PATCH] Send information about sentient's team This fixes #259 --- code/fgame/sentient.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/code/fgame/sentient.cpp b/code/fgame/sentient.cpp index 46535362..a8f6b6d2 100644 --- a/code/fgame/sentient.cpp +++ b/code/fgame/sentient.cpp @@ -2515,6 +2515,11 @@ void Sentient::EventGerman(Event *ev) if (bRejoinSquads) { JoinNearbySquads(1024.0f); } + + // Added in 2.0 + // Tell clients about sentient team + edict->s.eFlags &= ~EF_ALLIES; + edict->s.eFlags |= EF_AXIS; } void Sentient::EventAmerican(Event *ev) @@ -2546,6 +2551,11 @@ void Sentient::EventAmerican(Event *ev) pActor->m_csMood = STRING_NERVOUS; pActor->m_csIdleMood = STRING_NERVOUS; } + + // Added in 2.0 + // Tell clients about sentient team + edict->s.eFlags &= ~EF_AXIS; + edict->s.eFlags |= EF_ALLIES; } void Sentient::EventGetTeam(Event *ev)