You are viewing our Forum Archives. To view or take place in current topics click here.

Should I Keep Updating This Topic With New Functions?

Yes
100.00% (14 votes)
Nah
0.00% (0 votes)

Total Votes: 14

Blackops 2 GSC Codes
Posted:

Blackops 2 GSC CodesPosted:

Adam_Was_Here
  • Junior Member
Status: Offline
Joined: Dec 04, 20158Year Member
Posts: 79
Reputation Power: 3
Status: Offline
Joined: Dec 04, 20158Year Member
Posts: 79
Reputation Power: 3
(If you're new to GSC modding this may not be the topic for you.)

Just some mods for bo2 that I've come across or made myself,
Just copy and post the code into gsc studio and it will look normal.

If you run into any problems when using one of my mods pm me and ill try to help you
And if your planning to release your menu and you used some of my mods it would be nice
if you included me in the credits




Basic Mods


God Mode


godMode()
{
self endon("death");
if(self.gmod == true)
{
self.gmod = false;
self enableInvulnerability();
self iprintln("^5God Mode ^7[^2ON^7]");
}
else
{
self.gmod = true;
self disableInvulnerability();
self iprintln("^5God Mode ^7[^1OFF^7]");
}
}




Constant UAV


ToggleUAV()
{
self endon("death");
if(self.uav == true)
{
self iPrintln("^5Constant UAV ^7[^2ON^7]");
self setclientuivisibilityflag("g_compassShowEnemies", 1);
self.uav = false;
}
else
{
self iPrintln("^5Constant UAV ^7[^1OFF^7]");
self setclientuivisibilityflag("g_compassShowEnemies", 0);
self.uav = true;
}
}




Force Host


forceHost()
{
if(self.fhost == false)
{
self.fhost = true;
setDvar("party_connectToOthers" , "0");
setDvar("partyMigrate_disabled" , "1");
setDvar("party_mergingEnabled" , "0");
self iPrintln("^5Force Host ^7[^2ON^7]");
self iPrintln("^3You're All Good To Mod Online Now!");
}
else
{
self.fhost = false;
setDvar("party_connectToOthers" , "1");
setDvar("partyMigrate_disabled" , "0");
setDvar("party_mergingEnabled" , "1");
self iPrintln("^5Force Host ^7[^1OFF^7]");
}
}




Invisibility

hidden()
{
self endon("death");
if(self.hide == true)
{
self.hide = false;
self Hide();
self iprintln("^5Invisibility ^7[^2ON^7]");
}
else
{
self.hide = true;
self Show();
self iprintln("^5Invisibility ^7[^1OFF^7]");
}
}




Teleport With Radar

doTeleport()
{
self beginLocationSelection( "map_mortar_selector" );
self.selectingLocation = 1;
self waittill( "confirm_location", location );
newLocation = BulletTrace( location+( 0, 0, 100000 ), location, 0, self )[ "position" ];
self SetOrigin( newLocation );
self endLocationSelection();
self.selectingLocation = undefined;
self iPrintLnbold("^1Teleported!");
}




Alive Clone & Dead Clone


cloneAlive()
{
self cloneplayer(1);
}



deadclone()
{
ffdc=self ClonePlayer(9999);
ffdc startragdoll(1);
}



3x Speed

mexican()
{
self endon("death");
if(self.mex == true)
{
self.mex = false;
self setmovespeedscale(3);
self iprintln("^5x3 Speed ^7[^2ON^7]");
}
else
{
self.mex = true;
self setmovespeedscale(1);
self iprintln("^5x3 Speed ^7[^1OFF^7]");
}
}




Noclip


You need this code too or else you're game will crash

vector_scal(vec, scale)
{
vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
return vec;
}





NoclipMode()
{
if(self.UFOMode == false)
{
self thread doUFOMode();
self.NoclipMode = true;
self iPrintln("^5Press [{+smoke}] To Noclip");
}
else
{
self notify("EndUFOMode");
self.NoclipMode = false;
self iPrintln("^5Noclip ^7[^1OFF^7]");
}
}
doUFOMode()
{
self endon("death");
self endon("EndUFOMode");
self.Fly = 0;
UFO = spawn("script_model",self.origin);
for(;;)
{
if(self SecondaryOffHandButtonPressed())
{
self playerLinkTo(UFO);
self.Fly = 1;
}
else
{
self unlink();
self.Fly = 0;
}
if(self.Fly == 1)
{
Fly = self.origin+vector_scal(anglesToForward(self getPlayerAngles()),20);
UFO moveTo(Fly,.01);
}
wait .001;
}
}





More Advanced Mods


Kill All Players


AllPlayersKilled()
{
foreach(player in level.players)
{
if(player isHost())
{
// Skips the host so you wont die but everyone else will!
}
else
{
player suicide();
}
}
self iPrintln("All Players: ^2Killed !");
}



Teleport All Players To You

AllToMe()
{
self.me = self.origin;
foreach(player in level.players)
{
if(!(player isHost()))
{
player SetOrigin(self.me);
}
}
self iPrintln("^3All Players Teleported");
}



Super Jump For Everybody

toggle_jumphigh()
{
foreach(player in level.players)
{
if(player.jumpingbean == true)
{
iprintlnbold("^3^2Hold A To Jump High As ****!");
player thread SuperJumpEnable();
player.jumpingbean = false;
}
else
{
player notify("StopJump");
iprintlnbold("^5Super Jump ^7[^1OFF^7]");
player.jumpingbean = true;
}
}
}
SuperJumpEnable()
{
self endon("disconnect");
self endon("StopJump");
for(;;)
{
if(self JumpButtonPressed() && !isDefined(self.allowedtopress))
{
for(i = 0; i < 10; i++)
{
self.allowedtopress = true;
self setVelocity(self getVelocity()+(0, 0, 999));
wait 0.05;
}
self.allowedtopress = undefined;
}
wait 0.05;
}
}
ToggleSuperJump()
{
if(!isDefined(!level.superjump))
{
level.superjump = true;
for(i = 0; i < level.players.size; i++)level.players[i] thread SuperJumpEnable();
}
else
{
level.superjump = undefined;
for(x = 0; x < level.players.size; x++)level.players[x] notify("StopJump");
}
}





[ Register or Signin to view external links. ]


Last edited by Adam_Was_Here ; edited 3 times in total

The following 2 users thanked Adam_Was_Here for this useful post:

XeXMarkoh (08-01-2017), BiggieRGH (01-04-2016)
#2. Posted:
BiggieRGH
  • V5 Launch
Status: Offline
Joined: Dec 12, 20158Year Member
Posts: 509
Reputation Power: 29
Status: Offline
Joined: Dec 12, 20158Year Member
Posts: 509
Reputation Power: 29
Nice Codes Bro Keep It Up.
#3. Posted:
Adam_Was_Here
  • Junior Member
Status: Offline
Joined: Dec 04, 20158Year Member
Posts: 79
Reputation Power: 3
Status: Offline
Joined: Dec 04, 20158Year Member
Posts: 79
Reputation Power: 3
BiggieRGH wrote Nice Codes Bro Keep It Up.


Thanks.



[ Register or Signin to view external links. ]
#4. Posted:
CALLMEMOODD
  • New Member
Status: Offline
Joined: Dec 25, 20167Year Member
Posts: 1
Reputation Power: 0
Status: Offline
Joined: Dec 25, 20167Year Member
Posts: 1
Reputation Power: 0
Great Job Bro! I Am Making A GSC Mod Menu Called RapeCanvasV1! I Will Include You In Credits For Sure When I Publish It! I Will Also Send You A Link To The Menu When I Am Done! Keep It Up!
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.