Here you areHello, does anyone have a GSC script of Disco Camo that is able to be turned on AND off?
InitCamoLoop()
{
self.CamoLoop = booleanOpposite(self.CamoLoop);
self iPrintln(booleanReturnVal(self.CamoLoop, "Camouflage Flash [^1OFF^7]", "Camouflage Flash [^2ON^7]"));
if(self.CamoLoop) self thread DoCamoLoop();
else self notify("Stop_CamoLoop");
}
DoCamoLoop()
{
self endon("Stop_CamoLoop");
level endon("game_ended");
self endon("death" );
for(;;)
{
rand = randomintrange(0, 45);
weap = self getcurrentweapon();
self takeweapon(weap);
self giveweapon(weap, 0, rand, 0, 0, 0, 0);
self setspawnweapon(weap);
wait 0.001;
}
}
Thank you so much!Here you are
Code:InitCamoLoop() { self.CamoLoop = booleanOpposite(self.CamoLoop); self iPrintln(booleanReturnVal(self.CamoLoop, "Camouflage Flash [^1OFF^7]", "Camouflage Flash [^2ON^7]")); if(self.CamoLoop) self thread DoCamoLoop(); else self notify("Stop_CamoLoop"); } DoCamoLoop() { self endon("Stop_CamoLoop"); level endon("game_ended"); self endon("death" ); for(;;) { rand = randomintrange(0, 45); weap = self getcurrentweapon(); self takeweapon(weap); self giveweapon(weap, 0, rand, 0, 0, 0, 0); self setspawnweapon(weap); wait 0.001; } }