zombie claw animation fix (#12537)

This commit is contained in:
Nemanja
2022-11-19 11:07:09 -05:00
committed by GitHub
parent 57a2081e08
commit dad7d17c10
4 changed files with 19 additions and 7 deletions

View File

@@ -121,7 +121,8 @@ namespace Content.Server.Zombies
var melee = EnsureComp<MeleeWeaponComponent>(target);
melee.ClickAnimation = zombiecomp.AttackAnimation;
melee.WideAnimation = zombiecomp.AttackAnimation;
melee.Range = 0.75f;
melee.Range = 1.5f;
Dirty(melee);
//We have specific stuff for humanoid zombies because they matter more
if (TryComp<HumanoidComponent>(target, out var huApComp)) //huapcomp
@@ -170,8 +171,8 @@ namespace Content.Server.Zombies
_damageable.SetAllDamage(damageablecomp, 0);
//gives it the funny "Zombie ___" name.
if (TryComp<MetaDataComponent>(target, out var meta))
meta.EntityName = Loc.GetString("zombie-name-prefix", ("target", meta.EntityName));
var meta = MetaData(target);
meta.EntityName = Loc.GetString("zombie-name-prefix", ("target", meta.EntityName));
_identity.QueueIdentityUpdate(target);