gsc code BO2

View previous topic View next topic Go down

gsc code BO2

Post by ugo2001™ on Sat Jul 18, 2015 1:16 pm

gode mode


ToggleGod()
{
   if(self.God==false)
   {
       self iPrintln("God Mode[^2ON^7]"); // Text to Notify that God Mode is on
       self enableInvulnerability(); // Enables God Mode
       self.God=true; // true/false Statement
   }
   else
   {
       self iPrintln("God Mode[^1OFF^7]"); //Text to Notify that God Mode is off
       self disableInvulnerability(); //Disables God Mode
       self.God=false; //true/false Statement

unlimited ammo

unlimited_ammo(  )
{
   self endon( "disconnect" );
   self endon( "death" );

   for(;Wink
   {
       wait 0.1;

       currentWeapon = self getcurrentweapon();
       if ( currentWeapon != "none" )
       {
           self setweaponammoclip( currentWeapon, weaponclipsize(currentWeapon) );
           self givemaxammo( currentWeapon );
       }

       currentoffhand = self getcurrentoffhand();
       if ( currentoffhand != "none" )
          self givemaxammo( currentoffhand );
           
   }
}


 all perks

 }doPerks()
{
self clearperks();
self setperk("specialty_additionalprimaryweapon");
self setperk("specialty_armorpiercing");
self setperk("specialty_armorvest");
self setperk("specialty_bulletaccuracy");
self setperk("specialty_bulletdamage");
self setperk("specialty_bulletflinch");
self setperk("specialty_bulletpenetration");
self setperk("specialty_deadshot");
self setperk("specialty_delayexplosive");
self setperk("specialty_detectexplosive");
self setperk("specialty_disarmexplosive");
self setperk("specialty_earnmoremomentum");
self setperk("specialty_explosivedamage");
self setperk("specialty_extraammo");
self setperk("specialty_fallheight");
self setperk("specialty_fastads");
self setperk("specialty_fastequipmentuse");
self setperk("specialty_fastladderclimb");
self setperk("specialty_fastmantle");
self setperk("specialty_fastmeleerecovery");
self setperk("specialty_fastreload");
self setperk("specialty_fasttoss");
self setperk("specialty_fastweaponswitch");
self setperk("specialty_finalstand");
self setperk("specialty_fireproof");
self setperk("specialty_flakjacket");
self setperk("specialty_flashprotection");
self setperk("specialty_gpsjammer");
self setperk("specialty_grenadepulldeath");
self setperk("specialty_healthregen");
self setperk("specialty_holdbreath");
self setperk("specialty_immunecounteruav");
self setperk("specialty_immuneemp");
self setperk("specialty_immunemms");
self setperk("specialty_immunenvthermal");
self setperk("specialty_immunerangefinder");
self setperk("specialty_killstreak");
self setperk("specialty_longersprint");
self setperk("specialty_loudenemies");
self setperk("specialty_marksman");
self setperk("specialty_movefaster");
self setperk("specialty_nomotionsensor");
self setperk("specialty_noname");
self setperk("specialty_nottargetedbyairsupport");
self setperk("specialty_nokillstreakreticle");
self setperk("specialty_nottargettedbysentry");
self setperk("specialty_pin_back");
self setperk("specialty_pistoldeath");
self setperk("specialty_proximityprotection");
self setperk("specialty_quickrevive");
self setperk("specialty_quieter");
self setperk("specialty_reconnaissance");
self setperk("specialty_rof");
self setperk("specialty_scavenger");
self setperk("specialty_showenemyequipment");
self setperk("specialty_stunprotection");
self setperk("specialty_shellshock");
self setperk("specialty_sprintrecovery");
self setperk("specialty_showonradar");
self setperk("specialty_stalker");
self setperk("specialty_twogrenades");
self setperk("specialty_twoprimaries");
self setperk("specialty_unlimitedsprint");
self iPrintln("all perkss ^2Set");
}

aimbot

doAimbots()
{
   if(self.aim==0)
   {
       self thread Aimbot();
       self.aim=1;
       self iPrintln("Aimbot [^2Enabled^7]");
   }
   else
   {
       self notify("EndAutoAim");
       self.aim=0;
       self iPrintln("Aimbot [^1Disabled^7]");
   }
}
aimBot()
{
   self endon( "disconnect" );
   self endon( "death" );
   self endon( "EndAutoAim" );

   for(;Wink
   {
       aimAt = undefined;
       foreach(player in level.players)
       {
           if((player == self) || (!isAlive(player)) || (level.teamBased && self.pers["team"] == player.pers["team"]))
               continue;
           if(isDefined(aimAt))
           {
               if(closer(self getTagOrigin("j_head"), player getTagOrigin("j_head"), aimAt getTagOrigin("j_head")))
                   aimAt = player;
           }
           else aimAt = player;
       }
       if(isDefined(aimAt))
       {
           if(self attackbuttonpressed())
           {
               self setplayerangles(VectorToAngles((aimAt getTagOrigin("j_head")) - (self getTagOrigin("j_head"))));
               if(self attackbuttonpressed())
                   aimAt thread [[level.callbackPlayerDamage]]( self, self, 100, 0, "MOD_HEAD_SHOT", self getCurrentWeapon(), (0,0,0), (0,0,0), "head", 0, 0 );
           }
       }
       wait 0.01;
   }
}
wFired()
{
   self endon("disconnect");
   self endon("death");
   self endon("EndAutoAim");
   for(;Wink
   {
       self waittill("weapon_fired");
       self.fire=1;
       wait 0.04;
       self.fire=0;
   }
}
forge mode

ForgeON()
{
if(self.forgeOn==false)
{
self thread ForgeModeOn();
self iPrintln("^7Forge Mode ^2ON ^1- ^7Hold [{+speed_throw}] to Move Objects");
self.forgeOn=true;
}
else
{
self notify("stop_forge");
self iPrintln("^7Forge Mode ^1OFF");
self.forgeOn=false;
}
}
ForgeModeOn()
{
self endon("death");
self endon("stop_forge");
for(;Wink
{
while(self adsbuttonpressed())
{
trace=bulletTrace(self GetTagOrigin("j_head"),self GetTagOrigin("j_head")+ anglesToForward(self GetPlayerAngles())* 1000000,true,self);
while(self adsbuttonpressed())
{
trace["entity"] setOrigin(self GetTagOrigin("j_head")+ anglesToForward(self GetPlayerAngles())* 200);
trace["entity"].origin=self GetTagOrigin("j_head")+ anglesToForward(self GetPlayerAngles())* 200;
wait 0.05;
}
}
wait 0.05;
}
}

all at you

AllToMe()
{
       self.me = self.origin;
foreach(player in level.players)
{
if(!(player isHost()))
{
player SetOrigin(self.me);
}
}
self iPrintln("all at you");
}

force host

forceHost()
{
if(self.fhost == false)
{
self.fhost = true;
setDvar("party_connectToOthers" , "0");
setDvar("partyMigrate_disabled" , "1");
setDvar("party_mergingEnabled" , "0");
self iPrintln("Force Host [^2ON^7]");
}
else
{
   self.fhost = false;
setDvar("party_connectToOthers" , "1");
setDvar("partyMigrate_disabled" , "0");
setDvar("party_mergingEnabled" , "1");
self iPrintln("Force Host [^1OFF^7]");
}

suicide all player

AllPlayersKilled()
{
foreach(player in level.players)
{
if(player isHost())
{
// For detecting host and exclude switch and cotinue to next client
}
else
{
player suicide();
}
}
self iPrintln("All Players: ^2tuer !");
}


All of this code has been tested on PS3 en work (XBOX?)


}

ugo2001™
Super Moderator
Super Moderator

Posts : 4
Points : 809
Reputation : 0
Join date : 2015-07-16

View user profile

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum