This commit is contained in:
ChocoTaco1 2022-08-03 06:30:07 -04:00
parent 8a351efc89
commit 61d48961e9

18
Classic/scripts/autoexec/TacoOverrides.cs Normal file → Executable file
View file

@ -341,12 +341,12 @@ if (!isActivePackage(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));
}
// 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));
// }