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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

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");