redo of the script:
function MA5C_ICWSImage::onLoadCheck(%this,%obj,%slot)
{
if(%obj.toolAmmo[%obj.currTool] <= 0)
%obj.setImageAmmo(%slot,0);
else
%obj.setImageAmmo(%slot,1);
if(%obj.toolAmmo[%obj.currTool] > 16)
%obj.mountImage(MA5C_ICWSImage,0);
%obj.unMountImage(MA5C_ICWSmedImage,0);
%obj.unMountImage(MA5C_ICWSlowImage,1);
if(%obj.toolAmmo[%obj.currTool] <= 16)
%obj.mountImage(MA5C_ICWSmedImage,0);
%obj.unMountImage(MA5C_ICWSImage,0);
if(%obj.toolAmmo[%obj.currTool] <= 7)
%obj.mountImage(MA5C_ICWSlowImage,0);
%obj.unMountImage(MA5C_ICWSmedImage,1);
}
function MA5C_ICWSImage::onReloadStart(%this,%obj,%slot)
{
%obj.toolAmmo[%obj.currTool] = 0;
%obj.unMountImage(MA5C_ICWSImage,0);
%obj.unMountImage(MA5C_ICWSmedImage,1);
%obj.mountImage(MA5C_ICWSlowImage,0);
}
function MA5C_ICWSImage::onReloaded(%this,%obj,%slot)
{
%obj.toolAmmo[%obj.currTool] = 32;
%obj.setImageAmmo(%slot,1);
}
sorry for tri-post