Make some swing animations nicer (#4235)
* Combo attacks when * Remove stuff
This commit is contained in:
parent
757c71cfb9
commit
4bf3905083
|
|
@ -55,6 +55,7 @@ public sealed partial class MeleeWeaponSystem
|
|||
|
||||
if (meleeWeaponComponent.SwingLeft)
|
||||
angle *= -1;
|
||||
if (meleeWeaponComponent.ChangeSwingDirection) meleeWeaponComponent.SwingLeft = !meleeWeaponComponent.SwingLeft; // DeltaV - Nice swing animation for desword
|
||||
}
|
||||
_sprite.SetRotation((animationUid, sprite), localPos.ToWorldAngle());
|
||||
var distance = Math.Clamp(localPos.Length() / 2f, 0.2f, 1f);
|
||||
|
|
|
|||
|
|
@ -115,6 +115,12 @@ public sealed partial class MeleeWeaponComponent : Component
|
|||
[DataField, AutoNetworkedField]
|
||||
public bool SwingLeft;
|
||||
|
||||
/// <summary>
|
||||
/// DeltaV: if true, weapon will swing in different direction each strike. Purely cosmetic.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public bool ChangeSwingDirection;
|
||||
|
||||
|
||||
// Sounds
|
||||
|
||||
|
|
|
|||
|
|
@ -332,6 +332,7 @@
|
|||
- type: MeleeWeapon
|
||||
wideAnimationRotation: -135
|
||||
attackRate: 2.0 # DeltaV - was 1.5
|
||||
changeSwingDirection: true # DeltaV
|
||||
angle: 100
|
||||
damage:
|
||||
types:
|
||||
|
|
|
|||
|
|
@ -91,7 +91,9 @@
|
|||
- type: MeleeWeapon
|
||||
resistanceBypass: true
|
||||
angle: 0
|
||||
wideAnimationRotation: 225
|
||||
animation: WeaponArcCosmic
|
||||
wideAnimation: WeaponArcThrust
|
||||
attackRate: 0.62
|
||||
damage:
|
||||
types:
|
||||
|
|
|
|||
Loading…
Reference in New Issue