Skip to content

Commit

Permalink
Makes knives fly straight when thrown (space-wizards#33615)
Browse files Browse the repository at this point in the history
Gives knives a thrown angle
  • Loading branch information
SpaceRox1244 authored Nov 28, 2024
1 parent a206acc commit f6813e3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Resources/Prototypes/Entities/Objects/Weapons/Melee/knife.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
Slash: 12
- type: EmbeddableProjectile
sound: /Audio/Weapons/star_hit.ogg
offset: -0.15,0.0
- type: LandAtCursor
- type: DamageOtherOnHit
damage:
Expand All @@ -108,6 +109,8 @@
sprite: Objects/Weapons/Melee/combat_knife.rsi
- type: DisarmMalus
malus: 0.225
- type: ThrowingAngle
angle: 225

- type: entity
name: survival knife
Expand Down Expand Up @@ -286,6 +289,7 @@
Slash: 5
- type: EmbeddableProjectile
sound: /Audio/Weapons/star_hit.ogg
offset: -0.15,0.0
- type: LandAtCursor
- type: DamageOtherOnHit
ignoreResistances: true
Expand All @@ -295,3 +299,5 @@
Piercing: 15
- type: Item
sprite: Objects/Weapons/Melee/throwing_knife.rsi
- type: ThrowingAngle
angle: 225

0 comments on commit f6813e3

Please sign in to comment.