ERT, DeathSquad and Central Command Officer Inital Infected immunity (#23601)

II immunity

Make ERT, DeathSquad and Central Command officers immune to being II
This commit is contained in:
Simon
2024-01-27 03:56:09 +01:00
committed by GitHub
parent 76a76eb186
commit bb828af6d3
3 changed files with 32 additions and 0 deletions

View File

@@ -273,6 +273,10 @@ public sealed class ZombieRuleSystem : GameRuleSystem<ZombieRuleComponent>
{
if (player.AttachedEntity == null || !HasComp<HumanoidAppearanceComponent>(player.AttachedEntity) || HasComp<ZombieImmuneComponent>(player.AttachedEntity))
continue;
if (HasComp<InitialInfectedExemptComponent>(player.AttachedEntity))
continue; // used (for example) on ERT
playerList.Add(player);
var pref = (HumanoidCharacterProfile) _prefs.GetPreferences(player.UserId).SelectedCharacter;