]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix PA particles (#23719)
authorNemanja <98561806+EmoGarbage404@users.noreply.github.com>
Mon, 8 Jan 2024 06:22:46 +0000 (01:22 -0500)
committerGitHub <noreply@github.com>
Mon, 8 Jan 2024 06:22:46 +0000 (23:22 -0700)
Content.Server/Projectiles/ProjectileSystem.cs
Resources/Prototypes/Entities/Objects/Weapons/Guns/Battery/battery_guns.yml
Resources/Prototypes/Entities/Structures/Power/Generation/PA/particles.yml

index 1d256071d622828d1e9d18380ccfbad8996b9a54..8c6b84ec047343d24c05287d82b0f8a0d6b6d8ad 100644 (file)
@@ -71,18 +71,14 @@ public sealed class ProjectileSystem : SharedProjectileSystem
 
         component.DamagedEntity = true;
 
-        if (component.DeleteOnCollide )
-        {
-            QueueDel(uid);
-        }
         if (component.CanPenetrate)
         {
             component.DamagedEntity = false;
 
-            if (!TryComp<MobStateComponent>(target, out var mobState))
+            if (component.DeleteOnCollide && !HasComp<MobStateComponent>(target))
                 QueueDel(uid);
         }
-        else if (component.DeleteOnCollide && !component.CanPenetrate)
+        else if (component.DeleteOnCollide)
         {
             QueueDel(uid);
         }
index bf9579d65bdd970aadce7fad224da10d903f496b..46a29d20bdad50adc7a0e1002136df162e986d7d 100644 (file)
       walkModifier: 0.6
       sprintModifier: 0.6
     - type: HeldSpeedModifier
-    - type: Sprite 
+    - type: Sprite
       sprite: Objects/Weapons/Guns/Battery/particle_decelerator.rsi
       layers:
         - state: base
index 951c9ec5c997d36fc1f6dd32efeb6ad5392815c6..101ebc94bd03be656acf3ca95bd6d25cc95193a3 100644 (file)
         map: [ "unshaded" ]
     - type: Projectile
       deleteOnCollide: false
+      canPenetrate: true
+      impactEffect: null
       soundHit:
         path: /Audio/Weapons/Guns/Hits/bullet_hit.ogg
       damage:
         types:
-          Radiation: 10
+          Radiation: 25
     - type: Physics
     - type: Fixtures
       fixtures:
-        fix1:
+        projectile:
           shape:
             !type:PhysShapeAabb
             bounds: "-0.48,-0.48,0.48,0.48"