Fix PA particles (#23719)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -359,7 +359,7 @@
|
||||
walkModifier: 0.6
|
||||
sprintModifier: 0.6
|
||||
- type: HeldSpeedModifier
|
||||
- type: Sprite
|
||||
- type: Sprite
|
||||
sprite: Objects/Weapons/Guns/Battery/particle_decelerator.rsi
|
||||
layers:
|
||||
- state: base
|
||||
|
||||
@@ -13,15 +13,17 @@
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user