Added line 75 and 414
This commit is contained in:
ChocoTaco1 2022-05-30 12:49:09 -04:00
parent 13d6fb08a1
commit 6c7caeee3d

View file

@ -72,6 +72,7 @@ function ShapeBaseImageData::onFire(%data, %obj, %slot)
{ {
%obj.cantFire = 1; %obj.cantFire = 1;
%preventTime = %data.stateTimeoutValue[4]; %preventTime = %data.stateTimeoutValue[4];
//%preventTime = (%data.stateTimeoutValue[4] + %data.stateTimeoutValue[3]) - 0.032;
%obj.reloadSchedule = schedule(%preventTime * 1000, %obj, resetFire, %obj); %obj.reloadSchedule = schedule(%preventTime * 1000, %obj, resetFire, %obj);
} }
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
@ -410,6 +411,7 @@ function ShockLanceImage::onFire(%this, %obj, %slot)
%obj.cantfire = 1; %obj.cantfire = 1;
%preventTime = %this.stateTimeoutValue[4]; %preventTime = %this.stateTimeoutValue[4];
//%preventTime = (%data.stateTimeoutValue[4] + %data.stateTimeoutValue[3]) - 0.032;
%obj.reloadSchedule = schedule(%preventTime * 1000, %obj, resetFire, %obj); %obj.reloadSchedule = schedule(%preventTime * 1000, %obj, resetFire, %obj);
if( %obj.getEnergyLevel() < %this.minEnergy ) // z0dd - ZOD, 5/22/03. Check energy level first if( %obj.getEnergyLevel() < %this.minEnergy ) // z0dd - ZOD, 5/22/03. Check energy level first