Satchel Slope Fix

Fixes satchel not dealing damage if placed on slopes
This commit is contained in:
ChocoTaco1 2020-08-09 13:41:07 -04:00
parent 12a2d825a2
commit cc832e1d7f

View file

@ -696,7 +696,9 @@ function SatchelChargeThrown::onDestroyed(%this, %object, %lastState)
}
%object.blowingUp = true;
RadiusExplosion(%object, %object.getPosition(), %dmgRadius, %dmgMod, %expImpulse, %object.sourceObject, %dmgType);
//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);
%object.schedule(1000, "delete");
}