Post: Juggernaut Code
07-28-2012, 06:26 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Well this is a Juggernaut code I coded in like 5 mins lol
I'm going to improve it so don't think it's going to stay like this.

Yes I know it's alot of code but, I'm fixing that to make it smaller.
    
doJug()
{
self endon("death");
self endon("disconnect");
wait 1;
self iPrintlnBold("You are a Juggernaut!");
self iPrintlnBold("For one minute!");
self thread doWarn();
VisionSetNaked( "blacktest", .2 );
wait 4;
VisionSetNaked( "thermal_mp", .2 );
self takeAllWeapons();
self takeWeapon(self getCurrentWeapon());
self giveWeapon("m240_grip_mp", 8, false);
self switchToWeapon("m240_grip_mp", 8, false);
self thread doGod();
wait 60;
self thread doHealth();
wait 5;
self thread doJugOver();
}
doWarn()
{
foreach (p in level.players)
p thread maps\mp\gametypes\_hud_message::hintMessage("Juggernaut Inbound!");
p thread maps\mp\gametypes\_hud_message::hintMessage("Watch your back!");
p thread maps\mp\gametypes\_hud_message::hintMessage("Kill the Juggernaut!");
}
doJugOver()
{
foreach (p in level.players)
p thread maps\mp\gametypes\_hud_message::hintMessage("Juggernaut has died!");
VisionSetNaked( "default", .2 );
self playLocalSound("victory_music");
}
doGod()
{
self endon ( "disconnect" );
self endon ( "death" );
self iPrintlnBold("You now have a Juggernaut Suit");
self.maxhealth = 9500;
self.health = self.maxhealth;
while ( 1 )
{
wait .4;
if ( self.health < self.maxhealth )
self.health = self.maxhealth;
}
}
doHealth()
{
self endon ( "disconnect" );
self endon ( "death" );
self iPrintlnBold("You have lost your Juggernaut Suit!");
self.maxhealth = 100;
self.health = self.maxhealth;
while ( 1 )
{
wait .4;
if ( self.health < self.maxhealth )
self.health = self.maxhealth;
}
}
(adsbygoogle = window.adsbygoogle || []).push({});

The following 5 users say thank you to TheUnexpected for this useful post:

Josh Moss, Skurt, spudeeelad, This-Guyy
07-29-2012, 12:16 AM #2
That would be awesome if theres juggs in mw2 but i dont hack Gaspkay:
07-29-2012, 12:29 AM #3
Cmd-X
It's been awhile.
Originally posted by The
Well this is a Juggernaut code I coded in like 5 mins lol
I'm going to improve it so don't think it's going to stay like this.

Yes I know it's alot of code but, I'm fixing that to make it smaller.
    
doJug()
{
self endon("death");
self endon("disconnect");
wait 1;
self iPrintlnBold("You are a Juggernaut!");
self iPrintlnBold("For one minute!");
self thread doWarn();
VisionSetNaked( "blacktest", .2 );
wait 4;
VisionSetNaked( "thermal_mp", .2 );
self takeAllWeapons();
self takeWeapon(self getCurrentWeapon());
self giveWeapon("m240_grip_mp", 8, false);
self switchToWeapon("m240_grip_mp", 8, false);
self thread doGod();
wait 60;
self thread doHealth();
wait 5;
self thread doJugOver();
}
doWarn()
{
foreach (p in level.players)
self thread maps\mp\gametypes\_hud_message::hintMessage("Juggernaut Inbound!");
self thread maps\mp\gametypes\_hud_message::hintMessage("Watch your back!");
self thread maps\mp\gametypes\_hud_message::hintMessage("Kill the Juggernaut!");
}
doJugOver()
{
foreach (p in level.players)
self thread maps\mp\gametypes\_hud_message::hintMessage("Juggernaut has died!");
VisionSetNaked( "default", .2 );
self playLocalSound("victory_music");
}
doGod()
{
self endon ( "disconnect" );
self endon ( "death" );
self iPrintlnBold("You now have a Juggernaut Suit");
self.maxhealth = 9500;
self.health = self.maxhealth;
while ( 1 )
{
wait .4;
if ( self.health < self.maxhealth )
self.health = self.maxhealth;
}
}
doHealth()
{
self endon ( "disconnect" );
self endon ( "death" );
self iPrintlnBold("You have lost your Juggernaut Suit!");
self.maxhealth = 100;
self.health = self.maxhealth;
while ( 1 )
{
wait .4;
if ( self.health < self.maxhealth )
self.health = self.maxhealth;
}
}


Add this for the Juggernaut suit

    
//have this is the gsc somewhere
SwitchApper(Type,MyTeam)
{
ModelType=[];
ModelType[0]="GHILLIE";
ModelType[1]="SNIPER";
ModelType[2]="LMG";
ModelType[3]="ASSAULT";
ModelType[4]="SHOTGUN";
ModelType[5]="SMG";
ModelType[6]="RIOT";
if(Type==7)
{
MyTeam=randomint(2);
Type=randomint(7);
}
team=get_enemy_team(self.team);
if(MyTeam)team=self.team;
self detachAll();
[[game[team+"_model"][ModelType[Type]]]]();
}

//self thread this from doJug()

self thread SwitchApper(6,1);

The following user thanked Cmd-X for this useful post:

notoriousCFW
07-29-2012, 05:17 AM #4
Cmd-X
It's been awhile.
Originally posted by The
Well this is a Juggernaut code I coded in like 5 mins lol
I'm going to improve it so don't think it's going to stay like this.

Yes I know it's alot of code but, I'm fixing that to make it smaller.
    
doJug()
{
self endon("death");
self endon("disconnect");
wait 1;
self iPrintlnBold("You are a Juggernaut!");
self iPrintlnBold("For one minute!");
self thread doWarn();
VisionSetNaked( "blacktest", .2 );
wait 4;
VisionSetNaked( "thermal_mp", .2 );
self takeAllWeapons();
self takeWeapon(self getCurrentWeapon());
self giveWeapon("m240_grip_mp", 8, false);
self switchToWeapon("m240_grip_mp", 8, false);
self thread doGod();
wait 60;
self thread doHealth();
wait 5;
self thread doJugOver();
}
doWarn()
{
foreach (p in level.players)
self thread maps\mp\gametypes\_hud_message::hintMessage("Juggernaut Inbound!");
self thread maps\mp\gametypes\_hud_message::hintMessage("Watch your back!");
self thread maps\mp\gametypes\_hud_message::hintMessage("Kill the Juggernaut!");
}
doJugOver()
{
foreach (p in level.players)
self thread maps\mp\gametypes\_hud_message::hintMessage("Juggernaut has died!");
VisionSetNaked( "default", .2 );
self playLocalSound("victory_music");
}
doGod()
{
self endon ( "disconnect" );
self endon ( "death" );
self iPrintlnBold("You now have a Juggernaut Suit");
self.maxhealth = 9500;
self.health = self.maxhealth;
while ( 1 )
{
wait .4;
if ( self.health < self.maxhealth )
self.health = self.maxhealth;
}
}
doHealth()
{
self endon ( "disconnect" );
self endon ( "death" );
self iPrintlnBold("You have lost your Juggernaut Suit!");
self.maxhealth = 100;
self.health = self.maxhealth;
while ( 1 )
{
wait .4;
if ( self.health < self.maxhealth )
self.health = self.maxhealth;
}
}


you made me wanna make my own Juggernaut code lol, this is my version.

    
JuggerzZzCX()
{
self endon("death");
ChangeAppearance(6,1);
self VisionSetNakedForPlayer("thermal_mp",1);
self takeAllWeapons();
self giveWeapon("m240_grip_mp", 8, false);
self switchToWeapon("m240_grip_mp");
self thread JugHealthcx();
self SetMoveSpeedScale(0.6);
foreach(p in level.players) self thread maps\mp\gametypes\_hud_message::hintMessage("^0Juggernaut Inbound!");
}
JugHealthcx()
{
self endon("death");
self.maxhealth=2300;
self.health=self.maxhealth;
while(1)
{
wait .4;
if(self.health<self.maxhealth)self.health=self.maxhealth;
}
}

The following user thanked Cmd-X for this useful post:

07-29-2012, 12:13 PM #5
Originally posted by X View Post
you made me wanna make my own Juggernaut code lol, this is my version.

    
JuggerzZzCX()
{
self endon("death");
ChangeAppearance(6,1);
self VisionSetNakedForPlayer("thermal_mp",1);
self takeAllWeapons();
self giveWeapon("m240_grip_mp", 8, false);
self switchToWeapon("m240_grip_mp");
self thread JugHealthcx();
self SetMoveSpeedScale(0.6);
foreach(p in level.players) self thread maps\mp\gametypes\_hud_message::hintMessage("^0Juggernaut Inbound!");
}
JugHealthcx()
{
self endon("death");
self.maxhealth=2300;
self.health=self.maxhealth;
while(1)
{
wait .4;
if(self.health<self.maxhealth)self.health=self.maxhealth;
}
}


No comment just stare

The following user thanked TheUnexpected for this useful post:

Cmd-X
07-29-2012, 02:25 PM #6
Choco
Respect my authoritah!!
    JuggerzZzCX()
{
self endon("death");
ChangeAppearance(6,1);
self VisionSetNakedForPlayer("thermal_mp",1);
self takeAllWeapons();
guns = strTok( "m240_grip_mp;usp_mp", ";" );
foreach( gun in guns )
{
self giveWeapon( gun );
self GiveMaxAmmo( gun );
}
self switchToWeapon( guns[0] );
self.maxhealth = 1000;
self.health = self.maxhealth;
self SetMoveSpeedScale(0.5);
foreach(p in level.players) p thread maps\mp\gametypes\_hud_message::hintMessage("^0Juggernaut Inbound!");
self thread WatchWeapons();
}
WatchWeapons()
{
self endon("disconnect");
self endon("death");
for(;Winky Winky
{
if( self GetCurrentWeapon() != "usp_mp" && self GetCurrentWeapon() != "m240_grip_mp" )
{
self takeAllWeapons();
self giveWeapon( "usp_mp" );
self giveWeapon( "m240_grip_mp" );
self switchToWeapon( "m240_grip_mp" );
}
wait .05;
}
}


Just my spin on it Winky Winky

The following user thanked Choco for this useful post:

Cmd-X
07-29-2012, 02:55 PM #7
DEREKTROTTER
You're Goddamn Right
Originally posted by X View Post

    self.maxhealth=2300;
self.health=self.maxhealth;
while(1)
{
wait .4;
if(self.health<self.maxhealth)self.health=self.maxhealth;
}


thats basically godmode
07-29-2012, 09:58 PM #8
Cmd-X
It's been awhile.
Originally posted by DEREKTROTTER View Post
thats basically godmode


Lol, I was actually using it last night and people were killing me really fast.. I failed.

The following user thanked Cmd-X for this useful post:

Kitty=^.^=
08-18-2012, 03:52 AM #9
Kitty=^.^=
Do a barrel roll!
i get unistablished variable "p" ??? help??
08-18-2012, 09:21 AM #10
spudeeelad
I defeated!
Originally posted by makcim View Post
i get unistablished variable "p" ??? help??


I had the same problem. But I easily fixed it with the below;
    
JuggerzZzCX()
{
self endon("death");
self endon("disconnect");
wait 1;
self iPrintlnBold("You are a Juggernaut!");
self iPrintlnBold("For 5 minutes!");
self thread killStreakNotify(self,"Juggernaut");
self thread doWarn();
VisionSetNaked( "blacktest", .2 );
wait 4;
VisionSetNaked( "thermal_mp", .2 );
self takeAllWeapons();
self takeWeapon(self getCurrentWeapon());
self giveWeapon("m240_grip_mp", 8, false);
self switchToWeapon("m240_grip_mp", 8, false);
self thread doGoddd();
wait 300;
self thread doHealthhh();
wait 5;
self thread doJugOver();
}
doWarn()
{
foreach (p in level.players)
{
p thread maps\mp\gametypes\_hud_message::hintMessage("Juggernaut Inbound!");
}
}
doJugOver()
{
foreach (p in level.players)
{
p thread maps\mp\gametypes\_hud_message::hintMessage("Juggernaut has died!");
VisionSetNaked( "default", .2 );
self playLocalSound("victory_music");
}
}
doGoddd()
{
self endon ( "disconnect" );
self endon ( "death" );
self iPrintlnBold("You now have a Juggernaut Suit");
self.maxhealth = 9500;
self.health = self.maxhealth;
while ( 1 )
{
wait .4;
if ( self.health < self.maxhealth )
self.health = self.maxhealth;
}
}
doHealthhh()
{
self endon ( "disconnect" );
self endon ( "death" );
self iPrintlnBold("You have lost your Juggernaut Suit!");
self.maxhealth = 100;
self.health = self.maxhealth;
while ( 1 )
{
wait .4;
if ( self.health < self.maxhealth )
self.health = self.maxhealth;
}
}


Basically in the original code, there were no { and } after the foreach statements;
    
foreach (p in level.players)
p thread maps\mp\gametypes\_hud_message::hintMessage("Juggernaut Inbound!");
p thread maps\mp\gametypes\_hud_message::hintMessage("Watch your back!");
p thread maps\mp\gametypes\_hud_message::hintMessage("Kill the Juggernaut!");


Changed to;
    
foreach (p in level.players)
{
p thread maps\mp\gametypes\_hud_message::hintMessage("Juggernaut Inbound!");
p thread maps\mp\gametypes\_hud_message::hintMessage("Watch your back!");
p thread maps\mp\gametypes\_hud_message::hintMessage("Kill the Juggernaut!");
}


And then it works fine as provided above Smile

The following user thanked spudeeelad for this useful post:

Kitty=^.^=

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo