]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Zombie wideswing and misc fix (#26064)
authorMr. 27 <45323883+Dutch-VanDerLinde@users.noreply.github.com>
Wed, 13 Mar 2024 10:02:10 +0000 (06:02 -0400)
committerGitHub <noreply@github.com>
Wed, 13 Mar 2024 10:02:10 +0000 (21:02 +1100)
* inital

* b

* Update MeleeWeaponComponent.cs

* Update Content.Shared/Zombies/ZombieComponent.cs

---------

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Content.Server/Zombies/ZombieSystem.Transform.cs
Content.Shared/Weapons/Melee/MeleeWeaponComponent.cs
Content.Shared/Zombies/ZombieComponent.cs

index 386a7c6419b9adb0d78674351d4561ed6abd8ccd..a4bd234307e523ac007b114a15c3565c060ccb48 100644 (file)
@@ -125,7 +125,10 @@ namespace Content.Server.Zombies
             var melee = EnsureComp<MeleeWeaponComponent>(target);
             melee.Animation = zombiecomp.AttackAnimation;
             melee.WideAnimation = zombiecomp.AttackAnimation;
+            melee.AltDisarm = false;
             melee.Range = 1.2f;
+            melee.Angle = 0.0f;
+            melee.HitSound = zombiecomp.BiteSound;
 
             if (mobState.CurrentState == MobState.Alive)
             {
index e5b35f6c0bb5b0c428d1f898e5a0515a2fb3feee..85d2e4675f7c59335f361f3d2f6e06706e895429 100644 (file)
@@ -18,7 +18,7 @@ public sealed partial class MeleeWeaponComponent : Component
     /// <summary>
     /// Does this entity do a disarm on alt attack.
     /// </summary>
-    [DataField, ViewVariables(VVAccess.ReadWrite)]
+    [DataField, ViewVariables(VVAccess.ReadWrite), AutoNetworkedField]
     public bool AltDisarm = true;
 
     /// <summary>
index 023bf751ff320d83243694c958428f125d77ec8d..85e1599e48af93ffb0906a84cc5ca7eacb85be80 100644 (file)
@@ -140,6 +140,12 @@ public sealed partial class ZombieComponent : Component, IAntagStatusIconCompone
     [DataField("greetSoundNotification")]
     public SoundSpecifier GreetSoundNotification = new SoundPathSpecifier("/Audio/Ambience/Antag/zombie_start.ogg");
 
+    /// <summary>
+    ///     Hit sound on zombie bite.
+    /// </summary>
+    [DataField]
+    public SoundSpecifier BiteSound = new SoundPathSpecifier("/Audio/Effects/bite.ogg");
+
     /// <summary>
     /// The blood reagent of the humanoid to restore in case of cloning
     /// </summary>