Answered Disco Camo Script W/ Toggle?

Slander

Redacted T6 Moderator
Messages
192
Reaction score
128
Points
393
Hello, does anyone have a GSC script of Disco Camo that is able to be turned on AND off?
 

Richi987

Veteran
Messages
77
Reaction score
42
Points
793
Hello, does anyone have a GSC script of Disco Camo that is able to be turned on AND off?
Here you are :wink:
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;
    }
}
 

Slander

Redacted T6 Moderator
Messages
192
Reaction score
128
Points
393
Here you are :wink:
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;
    }
}
Thank you so much!
 
Top