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;
|
||||
|
||||
7
Content.Server/Zombies/InitialInfectedExemptComponent.cs
Normal file
7
Content.Server/Zombies/InitialInfectedExemptComponent.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace Content.Server.Zombies;
|
||||
|
||||
[RegisterComponent]
|
||||
public partial class InitialInfectedExemptComponent : Component
|
||||
{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user