Mortar/Missile reload changes

This commit is contained in:
ChocoTaco 2023-03-04 17:36:39 -05:00
parent a50899cdf9
commit e93efa685c
4 changed files with 1701 additions and 21 deletions

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

@ -324,15 +324,15 @@ function serverCmdScopeCommanderMap(%client, %scope)
}
//Mortar Throw Reload Fix
function ShapeBase::throwWeapon(%this)
{
if((%this.getMountedImage($WeaponSlot).getName() $= "MortarImage" || %this.getMountedImage($WeaponSlot).getName() $= "MissileLauncherImage" || %this.getMountedImage($WeaponSlot).getName() $= "ShockLanceImage") &&
(%this.getImageState($WeaponSlot) $= "Reload" || %this.getImageState($WeaponSlot) $= "Fire")){
return;
}
// function ShapeBase::throwWeapon(%this)
// {
// if((%this.getMountedImage($WeaponSlot).getName() $= "MortarImage" || %this.getMountedImage($WeaponSlot).getName() $= "MissileLauncherImage" || %this.getMountedImage($WeaponSlot).getName() $= "ShockLanceImage") &&
// (%this.getImageState($WeaponSlot) $= "Reload" || %this.getImageState($WeaponSlot) $= "Fire")){
// return;
// }
parent::throwWeapon(%this);
}
// parent::throwWeapon(%this);
// }
// Added object check