make zombies go into FIGHT MODE (#11565)

This commit is contained in:
Nemanja
2022-09-27 20:13:35 -04:00
committed by GitHub
parent 0b1a6e4e5b
commit 34799a7298

View File

@@ -108,7 +108,8 @@ namespace Content.Server.Zombies
//This is needed for stupid entities that fuck up combat mode component
//in an attempt to make an entity not attack. This is the easiest way to do it.
RemComp<CombatModeComponent>(target);
AddComp<CombatModeComponent>(target);
var combat = AddComp<CombatModeComponent>(target);
combat.IsInCombatMode = true;
var vocal = EnsureComp<VocalComponent>(target);
var scream = new SoundCollectionSpecifier ("ZombieScreams");