]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Makes knives fly straight when thrown (#33615)
authorSpaceRox1244 <138547931+SpaceRox1244@users.noreply.github.com>
Thu, 28 Nov 2024 13:09:47 +0000 (08:09 -0500)
committerGitHub <noreply@github.com>
Thu, 28 Nov 2024 13:09:47 +0000 (16:09 +0300)
Gives knives a thrown angle

Resources/Prototypes/Entities/Objects/Weapons/Melee/knife.yml

index 42a78ef077e043acf953e007edb958ff6009f641..6f0d4ebfd97877150fa6d22305f30fea295b09cf 100644 (file)
@@ -96,6 +96,7 @@
         Slash: 12
   - type: EmbeddableProjectile
     sound: /Audio/Weapons/star_hit.ogg
+    offset: -0.15,0.0
   - type: LandAtCursor
   - type: DamageOtherOnHit
     damage:
       sprite: Objects/Weapons/Melee/combat_knife.rsi
   - type: DisarmMalus
     malus: 0.225
+  - type: ThrowingAngle
+    angle: 225
 
 - type: entity
   name: survival knife
         Slash: 5
   - type: EmbeddableProjectile
     sound: /Audio/Weapons/star_hit.ogg
+    offset: -0.15,0.0
   - type: LandAtCursor
   - type: DamageOtherOnHit
     ignoreResistances: true
         Piercing: 15
   - type: Item
     sprite: Objects/Weapons/Melee/throwing_knife.rsi
+  - type: ThrowingAngle
+    angle: 225