Post: Togglable Radar Scripts
11-14-2015, 07:41 PM #1
BullyWiiPlaza
Climbing up the ladder
(adsbygoogle = window.adsbygoogle || []).push({}); The following scripts are for giving the player constant UAV, continuously calling in UAVs, Counter UAVs and Orbital VSATs. You also need to activate the utility scripts below. I do not take credit for the constant UAV and Orbital VSAT calling codes since they have been known/used before.

For everyone who is wondering:
The looping is needed on all of them, otherwise they will expire after some time (even the constant UAV one does that). In my opinion, this is more convenient than going back and re-running the functions after some time.

Also, please do not hate or flame if you think this release is pointless or weak so just enjoy these neat scripts I decided to share. Thanks Enzo
Radar scripts:
    toggleKeepEnablingUAV()
{
self.unlimitedUAV = booleanOpposite(self.unlimitedUAV);
self printToggleState("Unlimited UAV", self.unlimitedUAV);

if(self.unlimitedUAV)
{
self thread keepEnablingUAV();
}
else
{
self notify("stopEnablingUAV");
}
}

keepEnablingUAV()
{
self endon("disconnect");
self endon("stopEnablingUAV");

while(true)
{
self maps\mp\killstreaks\_spyplane::callSpyplane("radar_mp");

wait level.spyplaneViewTime; // 30 seconds
}
}

toggleKeepEnablingCounterUAV()
{
self.unlimitedCounterUAV = booleanOpposite(self.unlimitedCounterUAV);
self printToggleState("Unlimited Counter UAV", self.unlimitedCounterUAV);

if(self.unlimitedCounterUAV)
{
self thread keepEnablingCounterUAV();
}
else
{
self notify("stopEnablingCounterUAV");
}
}

keepEnablingCounterUAV()
{
self endon("disconnect");
self endon("stopEnablingCounterUAV");

while(true)
{
self maps\mp\killstreaks\_spyplane::callCounterUAV("counteruav_mp");

wait level.counterUAVViewTime; // 30 seconds
}
}

toggleKeepEnablingOrbitalVSAT()
{
self.unlimitedOrbitalVSAT = booleanOpposite(self.unlimitedOrbitalVSAT);
self printToggleState("Unlimited Orbital VSAT", self.unlimitedOrbitalVSAT);

if(self.unlimitedOrbitalVSAT)
{
self thread keepEnablingOrbitalVSAT();
}
else
{
self notify("stopEnablingOrbitalVSAT");
}
}

keepEnablingOrbitalVSAT()
{
self endon("disconnect");
self endon("stopEnablingOrbitalVSAT");

while(true)
{
self maps\mp\killstreaks\_spyplane::callSatellite("radardirection_mp");

wait level.radarLongViewTime; // 45 seconds
}
}

toggleConstantUAV()
{
self.constantUAV = booleanOpposite(self.constantUAV);
self printToggleState("Constant UAV", self.constantUAV);

if(self.constantUAV)
{
self thread keepEnablingConstantUAV();
}
else
{
self notify("stopConstantUAV");
self setClientUiVisibilityFlag("g_compassShowEnemies", false);
}
}

keepEnablingConstantUAV()
{
self endon("disconnect");
self endon("stopConstantUAV");

while(true)
{
self setClientUiVisibilityFlag("g_compassShowEnemies", true);

wait 1;
}
}

Boolean utilities:
    booleanOpposite(boolean)
{
return (!isDefined(boolean) || !boolean);
}

booleanToString(booleanVariable)
{
return booleanVariable ? "^2ON^7" : "^1OFF^7";
}

Printing utilities:
    printToggleState(modName, toggleVariable, printGlobally)
{
if(!isDefined(printGlobally))
{
printGlobally = false;
}

message = modName + " ";

if(toggleVariable)
{
message += booleanToString(true);

if(printGlobally)
{
iPrintlnBold(message);
return;
}

self iPrintln(message);
return;
}

message += booleanToString(false);

if(printGlobally)
{
iPrintlnBold(message);
return;
}

self iPrintln(message);
}
(adsbygoogle = window.adsbygoogle || []).push({});

The following 3 users say thank you to BullyWiiPlaza for this useful post:

itsSorrow, jackwilburn, L33T HAXOR
11-14-2015, 07:51 PM #2
itsSorrow
In my man cave
Originally posted by BullyWiiPlaza View Post
The following scripts are for giving the player constant UAV, continuously calling in UAVs, Counter UAVs and Orbital VSATs. You also need to activate the utility scripts below. I do not take credit for the constant UAV and Orbital VSAT calling codes since they have been known/used before.

For everyone who is wondering:
The looping is needed on all of them, otherwise they will expire after some time (even the constant UAV one does that). In my opinion, this is more convenient than going back and re-running the functions after some time.

Also, please do not hate or flame if you think this release is pointless or weak so just enjoy these neat scripts I decided to share. Thanks Enzo
Radar scripts:
    toggleKeepEnablingUAV()
{
self.unlimitedUAV = booleanOpposite(self.unlimitedUAV);
self printToggleState("Unlimited UAV", self.unlimitedUAV);

if(self.unlimitedUAV)
{
self thread keepEnablingUAV();
}
else
{
self notify("stopEnablingUAV");
}
}

keepEnablingUAV()
{
self endon("disconnect");
self endon("stopEnablingUAV");

while(true)
{
self maps\mp\killstreaks\_spyplane::callSpyplane("radar_mp");

wait level.spyplaneViewTime; // 30 seconds
}
}

toggleKeepEnablingCounterUAV()
{
self.unlimitedCounterUAV = booleanOpposite(self.unlimitedCounterUAV);
self printToggleState("Unlimited Counter UAV", self.unlimitedCounterUAV);

if(self.unlimitedCounterUAV)
{
self thread keepEnablingCounterUAV();
}
else
{
self notify("stopEnablingCounterUAV");
}
}

keepEnablingCounterUAV()
{
self endon("disconnect");
self endon("stopEnablingCounterUAV");

while(true)
{
self maps\mp\killstreaks\_spyplane::callCounterUAV("counteruav_mp");

wait level.counterUAVViewTime; // 30 seconds
}
}

toggleKeepEnablingOrbitalVSAT()
{
self.unlimitedOrbitalVSAT = booleanOpposite(self.unlimitedOrbitalVSAT);
self printToggleState("Unlimited Orbital VSAT", self.unlimitedOrbitalVSAT);

if(self.unlimitedOrbitalVSAT)
{
self thread keepEnablingOrbitalVSAT();
}
else
{
self notify("stopEnablingOrbitalVSAT");
}
}

keepEnablingOrbitalVSAT()
{
self endon("disconnect");
self endon("stopEnablingOrbitalVSAT");

while(true)
{
self maps\mp\killstreaks\_spyplane::callSatellite("radardirection_mp");

wait level.radarLongViewTime; // 45 seconds
}
}

toggleConstantUAV()
{
self.constantUAV = booleanOpposite(self.constantUAV);
self printToggleState("Constant UAV", self.constantUAV);

if(self.constantUAV)
{
self thread keepEnablingConstantUAV();
}
else
{
self notify("stopConstantUAV");
self setClientUiVisibilityFlag("g_compassShowEnemies", false);
}
}

keepEnablingConstantUAV()
{
self endon("disconnect");
self endon("stopConstantUAV");

while(true)
{
self setClientUiVisibilityFlag("g_compassShowEnemies", true);

wait 1;
}
}

Boolean utilities:
    booleanOpposite(boolean)
{
return (!isDefined(boolean) || !boolean);
}

booleanToString(booleanVariable)
{
return booleanVariable ? "^2ON^7" : "^1OFF^7";
}

Printing utilities:
    printToggleState(modName, toggleVariable, printGlobally)
{
if(!isDefined(printGlobally))
{
printGlobally = false;
}

message = modName + " ";

if(toggleVariable)
{
message += booleanToString(true);

if(printGlobally)
{
iPrintlnBold(message);
return;
}

self iPrintln(message);
return;
}

message += booleanToString(false);

if(printGlobally)
{
iPrintlnBold(message);
return;
}

self iPrintln(message);
}


cool scripts
11-14-2015, 10:11 PM #3
Nice, thanks for sharing this Smile
11-15-2015, 01:54 AM #4
jackwilburn
Bounty hunter
Thanks man!
11-15-2015, 08:33 AM #5
Procyon
Gym leader
What was wrong with the regular uav script?...
11-15-2015, 11:54 PM #6
Tristen
Who’s Jim Erased?
dont reallly understand what to do but seems nice xD

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo