Implement field-deltas for melee (#33977)
* Implement field-deltas for melee * Review
This commit is contained in:
@@ -132,6 +132,16 @@ public sealed partial class ZombieSystem
|
||||
melee.Angle = 0.0f;
|
||||
melee.HitSound = zombiecomp.BiteSound;
|
||||
|
||||
DirtyFields(target, melee, null, fields:
|
||||
[
|
||||
nameof(MeleeWeaponComponent.Animation),
|
||||
nameof(MeleeWeaponComponent.WideAnimation),
|
||||
nameof(MeleeWeaponComponent.AltDisarm),
|
||||
nameof(MeleeWeaponComponent.Range),
|
||||
nameof(MeleeWeaponComponent.Angle),
|
||||
nameof(MeleeWeaponComponent.HitSound),
|
||||
]);
|
||||
|
||||
if (mobState.CurrentState == MobState.Alive)
|
||||
{
|
||||
// Groaning when damaged
|
||||
|
||||
Reference in New Issue
Block a user