* inital
* b
* Update MeleeWeaponComponent.cs
* Update Content.Shared/Zombies/ZombieComponent.cs
---------
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
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)
{
/// <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>
[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>