mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-15 16:14:35 +00:00
Reenable Zodd's rapid fire fix
Forgot this existed, whoops Use classic code
This commit is contained in:
parent
b5ed76eb54
commit
e1f42951af
1 changed files with 12 additions and 13 deletions
|
|
@ -62,21 +62,20 @@ function ShapeBaseImageData::onFire(%data, %obj, %slot)
|
||||||
{
|
{
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
// z0dd - ZOD, 9/3/02. Anti rapid fire mortar/missile fix.
|
// z0dd - ZOD, 9/3/02. Anti rapid fire mortar/missile fix.
|
||||||
// if (%obj.cantFire !$= "")
|
if (%obj.cantFire !$= "")
|
||||||
// {
|
{
|
||||||
// return 0;
|
return 0;
|
||||||
// }
|
}
|
||||||
|
|
||||||
// %wpnName = %data.getName();
|
%wpnName = %data.getName();
|
||||||
// if((%wpnName $= "MortarImage") || (%wpnName $= "MissileLauncherImage"))
|
if((%wpnName $= "MortarImage") || (%wpnName $= "MissileLauncherImage"))
|
||||||
// {
|
{
|
||||||
// %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);
|
}
|
||||||
// }
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
%obj.lfireTime[%data.getName()] = getSimTime();
|
//%obj.lfireTime[%data.getName()] = getSimTime();
|
||||||
|
|
||||||
%data.lightStart = getSimTime();
|
%data.lightStart = getSimTime();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue