From 94a2ce8f39022bf0fa919cc96283dbfd760ac087 Mon Sep 17 00:00:00 2001 From: ChocoTaco1 Date: Tue, 11 Aug 2020 15:34:44 -0400 Subject: [PATCH] Satchel Slope Fix Ver2 --- Classic/scripts/packs/satchelCharge.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Classic/scripts/packs/satchelCharge.cs b/Classic/scripts/packs/satchelCharge.cs index 1d7e9fa..62b3d79 100644 --- a/Classic/scripts/packs/satchelCharge.cs +++ b/Classic/scripts/packs/satchelCharge.cs @@ -696,9 +696,14 @@ function SatchelChargeThrown::onDestroyed(%this, %object, %lastState) } %object.blowingUp = true; + //Slope fix by DarkTiger - RadiusExplosion(%object, vectorAdd(%object.getPosition(),"0 0 1"), %dmgRadius, %dmgMod, %expImpulse, %object.sourceObject, %dmgType); ///RadiusExplosion(%object, %object.getPosition(), %dmgRadius, %dmgMod, %expImpulse, %object.sourceObject, %dmgType); + %rot = getWords(%object.getTransform(), 3, 6); + %tmat = VectorOrthoBasis(%rot); + %upVec = getWords(%tmat, 6, 8); + %offset = vectorAdd(%object.getPosition(),vectorScale(%upVec,0.5)); + RadiusExplosion(%object, %offset, %dmgRadius, %dmgMod, %expImpulse, %object.sourceObject, %dmgType); %object.schedule(1000, "delete"); }