]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Makes bullet casings destructible by explosions (#27910)
authorFlareguy <78941145+Flareguy@users.noreply.github.com>
Wed, 15 May 2024 00:23:24 +0000 (19:23 -0500)
committerGitHub <noreply@github.com>
Wed, 15 May 2024 00:23:24 +0000 (20:23 -0400)
makes casings destructible

Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/base_cartridge.yml

index e188ee8c658ff05b93dc4f2d1e7217c1ba1ca13c..98f8c6402d71260435ed45f5ed6f135b8eb223c7 100644 (file)
           - ItemMask
         restitution: 0.3  # fite me
         friction: 0.2
+  - type: Damageable
+    damageContainer: StructuralInorganic
+    damageModifierSet: StrongMetallic # We only want explosions breaking them (for the most part)
+  - type: Destructible
+    thresholds:
+    - trigger:
+        !type:DamageTrigger
+        damage: 75
+      behaviors:
+      - !type:DoActsBehavior
+        acts: [ "Destruction" ]
   - type: Tag
     tags:
     - Cartridge