mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-19 16:14:44 +00:00
Flag explosion fix
Don't completely stop the flag when it hits an explosion
This commit is contained in:
parent
b44b5444bd
commit
abd61a4d73
11
Classic/scripts/autoexec/TacoOverrides.cs
Executable file → Normal file
11
Classic/scripts/autoexec/TacoOverrides.cs
Executable file → Normal file
|
|
@ -339,3 +339,14 @@ function ShapeBase::throwWeapon(%this)
|
||||||
// Prevent package from being activated if it is already
|
// Prevent package from being activated if it is already
|
||||||
if (!isActivePackage(TacoOverrides))
|
if (!isActivePackage(TacoOverrides))
|
||||||
activatePackage(TacoOverrides);
|
activatePackage(TacoOverrides);
|
||||||
|
|
||||||
|
//Flag explosion fix
|
||||||
|
function Item::applyImpulse(%this, %position, %impulseVec)
|
||||||
|
{
|
||||||
|
%data = %this.getDatablock();
|
||||||
|
%x = getWord(%impulseVec, 0) / %data.mass;
|
||||||
|
%y = getWord(%impulseVec, 1) / %data.mass;
|
||||||
|
%z = getWord(%impulseVec, 2) / %data.mass;
|
||||||
|
%vel = %x SPC %y SPC %z;
|
||||||
|
%this.setVelocity(vectorAdd(%this.getVelocity(), %vel));
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue