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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user