From e920445b2b666323f5382965b2b762c67ccf9871 Mon Sep 17 00:00:00 2001 From: Aleks976 Date: Wed, 1 Jun 2016 18:31:43 -0400 Subject: [PATCH 1/2] Will disable missiles from being able to blow eachother up, as it serves no gameplay purpose for missiles to be able to shoot eachother down. Gattling turrets will still be able to destroy missiles. --- Sources/Sandbox.Game/Game/ParticleEffects/MyExplosion.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Sources/Sandbox.Game/Game/ParticleEffects/MyExplosion.cs b/Sources/Sandbox.Game/Game/ParticleEffects/MyExplosion.cs index 60b4430d99..48e0d4160b 100644 --- a/Sources/Sandbox.Game/Game/ParticleEffects/MyExplosion.cs +++ b/Sources/Sandbox.Game/Game/ParticleEffects/MyExplosion.cs @@ -549,6 +549,13 @@ private void ApplyVolumetricExplosionOnEntities(ref MyExplosionInfo m_explosionI } } + //Special case for other Missiles + var missile = entity as MyMissile; + if (missile != null) + { + continue; + } + var raycastDamageInfo = explosionDamageInfo.ExplosionDamage.ComputeDamageForEntity(entity.PositionComp.WorldAABB.Center); float damage = raycastDamageInfo.DamageRemaining; From 7e8206504c07e4afbfc91220d3237bee3420156e Mon Sep 17 00:00:00 2001 From: Aleks976 Date: Wed, 1 Jun 2016 18:56:35 -0400 Subject: [PATCH 2/2] Made code a bit simpler --- Sources/Sandbox.Game/Game/ParticleEffects/MyExplosion.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Sources/Sandbox.Game/Game/ParticleEffects/MyExplosion.cs b/Sources/Sandbox.Game/Game/ParticleEffects/MyExplosion.cs index 48e0d4160b..7ed7338149 100644 --- a/Sources/Sandbox.Game/Game/ParticleEffects/MyExplosion.cs +++ b/Sources/Sandbox.Game/Game/ParticleEffects/MyExplosion.cs @@ -550,8 +550,7 @@ private void ApplyVolumetricExplosionOnEntities(ref MyExplosionInfo m_explosionI } //Special case for other Missiles - var missile = entity as MyMissile; - if (missile != null) + if (entity is MyMissile) { continue; }