Other changes

This commit is contained in:
Ragora 2013-03-17 23:06:58 -04:00
parent 182661dd82
commit 6170ff8255
13 changed files with 1716 additions and 1849 deletions

View file

@ -617,7 +617,9 @@ datablock ShapeBaseImageData(ScoutChaingunParam)
function shrikeMissileImage::onFire(%data,%obj,%slot)
{
%p = Parent::onFire(%data, %obj, %slot);
%obj.getMountNodeObject(0).decInventory(%data.ammo, 1);
%mountNodeObj = %obj.getMountNodeObject(0);
if (isObject(%mountNodeObj))
%mountnodeObj.decInventory(%data.ammo, 1);
MissileSet.add(%p);
if(%obj.isdrone == 1)
@ -729,4 +731,4 @@ function fighterdropflares(%obj,%time,%life,%chance){
serverPlay3D(GrenadeThrowSound, getBoxCenter(%obj.getWorldBox()));
%p.schedule(%life, "delete");
schedule(%time,0,"FighterDropFlares",%obj,%time,%life,%chance);
}
}