Send information about sentient's team

This fixes #259
This commit is contained in:
smallmodel 2024-02-22 22:50:36 +01:00
parent cc721a3db6
commit 7a2735885f
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -2515,6 +2515,11 @@ void Sentient::EventGerman(Event *ev)
if (bRejoinSquads) { if (bRejoinSquads) {
JoinNearbySquads(1024.0f); 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) void Sentient::EventAmerican(Event *ev)
@ -2546,6 +2551,11 @@ void Sentient::EventAmerican(Event *ev)
pActor->m_csMood = STRING_NERVOUS; pActor->m_csMood = STRING_NERVOUS;
pActor->m_csIdleMood = 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) void Sentient::EventGetTeam(Event *ev)