mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-06-28 07:01:49 +00:00
koth
This commit is contained in:
@ -207,11 +207,45 @@ fixGamemodes()
|
||||
level.bombZones[i].onUse = ::onUsePlantObjectFix;
|
||||
break;
|
||||
}
|
||||
|
||||
if(isDefined(level.radios) && level.gametype == "koth")
|
||||
{
|
||||
level thread fixKoth();
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
wait 0.05;
|
||||
}
|
||||
}
|
||||
|
||||
fixKoth()
|
||||
{
|
||||
level.radio = undefined;
|
||||
|
||||
for(;;)
|
||||
{
|
||||
wait 0.05;
|
||||
|
||||
if(!isDefined(level.radioObject))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
for(i = level.radios.size - 1; i >= 0; i--)
|
||||
{
|
||||
if(level.radioObject != level.radios[i].gameobject)
|
||||
continue;
|
||||
|
||||
level.radio = level.radios[i];
|
||||
break;
|
||||
}
|
||||
|
||||
while(isDefined(level.radioObject) && level.radio.gameobject == level.radioObject)
|
||||
wait 0.05;
|
||||
}
|
||||
}
|
||||
|
||||
addNotifyOnAirdrops()
|
||||
{
|
||||
for (;;)
|
||||
|
Reference in New Issue
Block a user