Post: Black Ops Patch Code List C++
04-11-2012, 04:26 PM #1
Default Avatar
Gizmo
Guest
(adsbygoogle = window.adsbygoogle || []).push({});
Black Ops Patch Code List C++
[/color]

Hopefully this thread will help you out when you're searching for Black Ops codes; it was inspired by DerekTrotter's popular MW2 code list and I will try to keep it as organised as possible.

I will be updating this thread constantly, so feel free to PM me any codes (in a pastebin) and I will update the thread with them.

A big thanks to the following:

- Choco for the walking AC130 and Forge Mode
- The guys from MPGH for their codes
- The members of S7 for their codes
- xFlameHD_ for his list
- Anyone else who I forgot to mention.


[C000] Contents

[C001] All Challenges
[C002] Instant Level 50
[C003] UFO Mode
[C004] God Mode
[C005] Leaderboards
[C006] Change Score Per Kill
[C007] Unlimited Ammo
[C008] CoD Points
[C009] Aimbot
[C010] Nuke Planes
[C011] Nuke Bullets
[C012] Walking AC130
[C013] Kamikaze Jets
[C014] All Achievements
[C015] Ray Gun
[C016] Anti Camp
[C017] Display Texts
[C018] Display Health On Screen
[C019] Forge Mode



[C001] Complete All Challenges
    
ahaloaChallenges()
{
self endon("disconnect");

//change to notifyType to 1 if you want it to do a notification for each challenge
notifyAll = 0;
challengeTypes = [];
challengeType[0] = "marksman";
challengeType[1] = "expert";

for ( weaponNum = 0; weaponNum < 64; weaponNum++ )
{
if ( isDefined( level.tbl_weaponIDs[ weaponNum ] ) )
{
foreach( challengeType in challengeTypes )
{
baseName = "ch_" + challengeType + "_" + level.tbl_weaponIDs[ weaponNum ][ "reference" ] + "_";
numLevels = getChallengeLevels( baseName );

if ( numLevels > 1 )
{
refString = baseName + numLevels;
self.challengeData[baseName + "1"] = 255;
}
else
{
refString = baseName;
self.challengeData[baseName] = 255;
}

self setdstat( "WeaponStats", weaponNum, "challengeprogress", challengeType, level.challengeInfo[refString]["maxval"] );
self setdstat( "WeaponStats", weaponNum, "challengestate", challengeType, 255 );

if( notifyAll == 1 )
{
self thread milestoneNotify( level.challengeInfo[refString]["tier"], level.challengeInfo[refString]["index"], weaponNum, level.challengeInfo[refString]["tier"] );
}
wait .05;
}
}
}

foreach ( baseName in self.challengeData )
{
numLevels = getChallengeLevels( baseName );

if ( numLevels > 1 )
{
refString = baseName + numLevels;
self.challengeData[baseName + "1"] = 255;
}
else
{
refString = baseName;
self.challengeData[baseName] = 255;
}

self setdstat( "ChallengeStats", refString, "challengeprogress", level.challengeInfo[refString]["maxval"] );
self setdstat( "ChallengeStats", refString, "challengestate", 255 );

if( notifyAll == 1 )
{
self thread milestoneNotify( level.challengeInfo[refString]["tier"], level.challengeInfo[refString]["index"], 0, level.challengeInfo[refString]["tier"] );
}
wait .05;
}
notifyData = spawnstruct();
notifyData.titleText = "Challenges Done";
notifyData.notifyText = "<3 ahaloa";
notifyData.duration = 2;
self thread notifyMessage( notifyData );
}

//Place this in missons.gsc and add "player thread ahaloaChallenges();" to the "onPlayerConnect()"

onPlayerConnect()
{
for(;
{
level waittill( "connected", player );

player thread initMissionData();
player thread monitorBombUse();
player thread monitorDriveDistance();
player thread monitorFallDistance();
player thread monitorLiveTime();
player thread monitorPerkUsage();
player thread monitorGameEnded();
player thread monitorFlaredOrTabuned();
player thread monitorDestroyedTank();
player thread monitorImmobilizedTank();
player thread ahaloaChallenges();
}
}


[C002] Instant level 50
    
do50()
{
self mapsmpgametypes_persistence::statSet("rankxp", 1262500, true );
}


[C003] UFO Mode
    
noclip()
{
self endon("death");
if(isdefined(self.newufo))
self.newufo delete();
self.newufo = spawn("script_origin", self.origin);
for(self.UfoOn=0Winky Winky
{
if(self actionslotonebuttonpressed())
{
self.UfoOn = !self.UfoOn;
self.newufo.origin = self.origin;
self linkto(self.newufo);
self Enableinvulnerability();
if(!self.UfoOn)
{
self unlink();
self DisableInvulnerability();
}
wait 0.5;
}
if(self.UfoOn && self fragbuttonpressed())
self.newufo.origin+=anglestoforward(self getPlayerAngles())*30;
wait 0.05;
}
}


[C004] God Mode
    
doGod()
{
self endon ( "disconnect" );
self endon ( "death" );
self.maxhealth = 90000;
self.health = self.maxhealth;

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


[C005] Leaderboards
    
DoStats()
{
self mapsmpgametypes_persistence::statSet( "plevel", prestige, false );
self mapsmpgametypes_persistence::statSet( "rankxp", xp, false );
self mapsmpgametypes_persistence::statSet( "codpoints", cp, false );
self mapsmpgametypes_persistence::statSet( "time_played_total", seconds, false );
self mapsmpgametypes_persistence::statSet( "kills", kills, false );
self mapsmpgametypes_persistence::statSet( "deaths", deaths, false );
self mapsmpgametypes_persistence::statSet( "headshots", headshots, false );
self mapsmpgametypes_persistence::statSet( "hits", bullet hit, false);
self mapsmpgametypes_persistence::statSet( "badhostcount", bad host counter, false);
self mapsmpgametypes_persistence::statSet( "misses", bullet miss, false);
self mapsmpgametypes_persistence::statSet( "total_shots", bullet counter, false);
self mapsmpgametypes_persistence::statSet( "accuracy", accuracy or KD, false);
}


[C006] Change Score Per Kill
    
registerScoreInfo()
{
mapsmpgametypes_rank::registerScoreInfo( "kill", 100 );
mapsmpgametypes_rank::registerScoreInfo( "headshot", 0 );
mapsmpgametypes_rank::registerScoreInfo( "assist_75", 0 );
mapsmpgametypes_rank::registerScoreInfo( "assist_50", 0 );
mapsmpgametypes_rank::registerScoreInfo( "assist_25", 0 );
mapsmpgametypes_rank::registerScoreInfo( "assist", 0 );
mapsmpgametypes_rank::registerScoreInfo( "suicide", 0 );
mapsmpgametypes_rank::registerScoreInfo( "teamkill", 0 );
mapsmpgametypes_rank::registerScoreInfo( "dogkill", 0 );
mapsmpgametypes_rank::registerScoreInfo( "dogassist", 0 );
mapsmpgametypes_rank::registerScoreInfo( "helicopterkill", 0 );
mapsmpgametypes_rank::registerScoreInfo( "helicopterassist", 0 );
mapsmpgametypes_rank::registerScoreInfo( "helicopterassist_75", 0 );
mapsmpgametypes_rank::registerScoreInfo( "helicopterassist_50", 0 );
mapsmpgametypes_rank::registerScoreInfo( "helicopterassist_25", 0 );
mapsmpgametypes_rank::registerScoreInfo( "spyplanekill", 0 );
mapsmpgametypes_rank::registerScoreInfo( "spyplaneassist", 0 );
}


[C007] Unlimited Ammo
    
CookiesandTricks()
{
self endon ( "death" );
self endon ( "disconnect" );

for (;Winky Winky
{
clipAmmo = 999;
stockAmmo = 999;
weapon = self GetCurrentWeapon();

self SetWeaponAmmoClip( weapon, clipAmmo );
self SetWeaponAmmoStock( weapon, stockAmmo );
}
}


[C008] CoD Points
    
doCodPoints()
{
self mapsmpgametypes_persistence::statSet("codpoints ", 10000000000, true );
}


[C009] Aimbot
    
Aimbot()
{
self endon( "death" );
self endon( "disconnect" );

for(;Winky Winky
{
self waittill("weapon_fired");
wait 0.01;
aimAt = undefined;
for ( i = 0; i < get_players().size; i++ )
{
player = get_players()[i];
if(player == self)
continue;
if(!isAlive(player))
continue;
if(level.teamBased && self.pers["team"] == player.pers["team"])
continue;
if( !bulletTracePassed( self getTagOrigin( "j_head" ), player getTagOrigin( "j_head" ), false, self ) )
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 ) )
self setplayerangles( VectorToAngles( ( aimAt getTagOrigin( "j_head" ) ) - ( self getTagOrigin( "j_head" ) ) ) );
}
}


[C010] Nuke Planes
    
NukePlane()
{
self endon ("disconnect");
nuke = spawnStruct();
nuke.fx = loadfx( "maps/mp_maps/fx_mp_nuked_nuclear_explosion" );
for(Winky Winky
{
if(self meleebuttonpressed())
{
napalmSelectorSize = getDvarIntDefault( #"scr_napalmSelectorSize", 3000 );
self beginLocationNapalmSelection( "map_napalm_selector", napalmSelectorSize, "killstreak_napalm" );
self.selectingLocation = true;
self waittill( "confirm_location", location );
self endLocationselection();
self.selectingLocation = false;
nuke.planemodel = spawn("script_model", self.origin + ( 24000, 15000, 25000 ) );
nuke.planemodel setModel( "t5_veh_air_b52" );
nuke.planemodel.angles = vectorToAngles( Location - ( self.origin + ( 8000, 5000, 10000 ) ) );
nuke.planemodel moveto( location + ( 0, 0, 200 ), 2.9 );
wait 2.8;
nuke.dropmodel = spawn("script_model", nuke.planemodel.origin );
nuke.dropmodel setModel( "mp_supplydrop_axis" );
nuke.dropmodel.angles = vectorToAngles( location - ( self.origin + ( 8000, 5000, 10000 ) ) );
nuke.planemodel delete();
PlaySoundAtPosition( "amb_end_nuke", location );
nuke.dropmodel moveto( location, .9 );
wait 1.2;
Earthquake( 0.4, 4, location, 800 );
playfx( nuke.fx, nuke.dropmodel.origin );
wait .05;
nuke.dropmodel delete();
radiusdamage( location, 999999999, 3000, 900, self );
}
wait .05;
}
}


[C011] Nuke Bullets
    
ExplosionWednesday()
{
for(;Winky Winky
{
self waittill ( "weapon_fired" );
forward = self getTagOrigin("j_head");
end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
SPLOSIONlocation = BulletTrace( forward, end, 0, self )[ "position" ];
level.chopper_fx["explode"]["medium"] = loadfx ("explosions/fx_exp_aerial");
playfx(level.chopper_fx["explode"]["medium"], SPLOSIONlocation);
RadiusDamage( SPLOSIONlocation, 500, 1000, 500, self );
}
}
vector_scal(vec, scale)
{
vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
return vec;
}


[C012] Walking AC130
    
ToggleC130()
{
if(self.walkac==false)
{
self.walkac=true;
self thread doac130();
}
else
{
self.walkac=false;
self suicide();
}
}
doac130()
{
self endon("death");
self iPrintlnBold("^6Walking AC-130 Enabled");
self setClientDvar("cg_drawGun","0");
self setClientDvar("cg_drawCrosshair", "0");
wait 0.1;
self thread ac130105mm();
self thread ShootNukeBullets();
self thread ac130_death();
self thread doAc130105mmHUD();
}
air(jump)
{
self setOrigin(self.origin+(0,0,jump));
}

doDefault()
{
VisionSetNaked("default", 0.2);
}
ShootNukeBullets()
{
self endon("death");
for(;Winky Winky
{
self waittill ("weapon_fired");
vec=anglestoforward(self getPlayerAngles());
end=(vec[0] * 200000, vec[1] * 200000, vec[2] * 200000);
SPLOSIONlocation=BulletTrace(self gettagorigin("tag_eye"), self gettagorigin("tag_eye")+end, 0, self)[ "position" ];
explode=loadfx("explosions/fx_exp_aerial");
playfx(explode, SPLOSIONlocation);
RadiusDamage(SPLOSIONlocation, 200, 500, 60, self);
earthquake (0.3, 1, SPLOSIONlocation, 100);
}
}
ac130_death()
{
self waittill("death");
self notify("DESTROY");
self notify("DELETE");
self notify("NULL");
self setClientDvar("cg_drawGun", "1");
self setClientDvar("cg_drawCrosshair", "1");
}
doAc130105mmHUD()
{
self thread ac130boxleftvert();
self thread ac130boxrightvert();
self thread ac130boxtophorz();
self thread ac130boxbottomhorz();
self thread ac130topline();
self thread ac130bottomline();
self thread ac130leftline();
self thread ac130rightline();
self thread ac130topleftleft();
self thread ac130toplefttop();
self thread ac130toprightright();
self thread ac130toprighttop();
self thread ac130bottomleftleft();
self thread ac130bottomleftbottom();
self thread ac130bottomrightright();
self thread ac130bottomrightbottom();
}
ac130boxleftvert()
{
ac130boxleftvert=newClientHudElem(self);
ac130boxleftvert.x=-30;
ac130boxleftvert.y=0;
ac130boxleftvert.alignX="center";
ac130boxleftvert.alignY="middle";
ac130boxleftvert.horzAlign="center";
ac130boxleftvert.vertAlign="middle";
ac130boxleftvert.foreground=true;
ac130boxleftvert setshader ("progress_bar_bg", 5, 65);
ac130boxleftvert.alpha=1;
self waittill ("DESTROY");
ac130boxleftvert destroy();
}

ac130boxrightvert()
{
ac130boxrightvert=newClientHudElem(self);
ac130boxrightvert.x=30;
ac130boxrightvert.y=0;
ac130boxrightvert.alignX="center";
ac130boxrightvert.alignY="middle";
ac130boxrightvert.horzAlign="center";
ac130boxrightvert.vertAlign="middle";
ac130boxrightvert.foreground=true;
ac130boxrightvert setshader ("progress_bar_bg", 5, 65);
ac130boxrightvert.alpha=1;
self waittill ("DESTROY");
ac130boxrightvert destroy();
}

ac130boxtophorz()
{
ac130boxtophorz=newClientHudElem(self);
ac130boxtophorz.x=0;
ac130boxtophorz.y=-25;
ac130boxtophorz.alignX="center";
ac130boxtophorz.alignY="middle";
ac130boxtophorz.horzAlign="center";
ac130boxtophorz.vertAlign="middle";
ac130boxtophorz.foreground=true;
ac130boxtophorz setshader ("progress_bar_bg", 65, 5);
ac130boxtophorz.alpha=1;
self waittill ("DESTROY");
ac130boxtophorz destroy();
}

ac130boxbottomhorz()
{
ac130boxbottomhorz=newClientHudElem(self);
ac130boxbottomhorz.x=0;
ac130boxbottomhorz.y=25;
ac130boxbottomhorz.alignX="center";
ac130boxbottomhorz.alignY="middle";
ac130boxbottomhorz.horzAlign="center";
ac130boxbottomhorz.vertAlign="middle";
ac130boxbottomhorz.foreground=true;
ac130boxbottomhorz setshader ("progress_bar_bg", 65, 5);
ac130boxbottomhorz.alpha=1;
self waittill ("DESTROY");
ac130boxbottomhorz destroy();
}

ac130topline()
{
ac130topline=newClientHudElem(self);
ac130topline.x=0;
ac130topline.y=-50;
ac130topline.alignX="center";
ac130topline.alignY="middle";
ac130topline.horzAlign="center";
ac130topline.vertAlign="middle";
ac130topline.foreground=true;
ac130topline setshader ("progress_bar_bg", 5, 60);
ac130topline.alpha=1;
self waittill ("DESTROY");
ac130topline destroy();
}

ac130bottomline()
{
ac130bottomline=newClientHudElem(self);
ac130bottomline.x=0;
ac130bottomline.y=50;
ac130bottomline.alignX="center";
ac130bottomline.alignY="middle";
ac130bottomline.horzAlign="center";
ac130bottomline.vertAlign="middle";
ac130bottomline.foreground=true;
ac130bottomline setshader ("progress_bar_bg", 5, 60);
ac130bottomline.alpha=1;
self waittill ("DESTROY");
ac130bottomline destroy();
}

ac130leftline()
{
ac130leftline=newClientHudElem(self);
ac130leftline.x=-64.5;
ac130leftline.y=0;
ac130leftline.alignX="center";
ac130leftline.alignY="middle";
ac130leftline.horzAlign="center";
ac130leftline.vertAlign="middle";
ac130leftline.foreground=true;
ac130leftline setshader ("progress_bar_bg", 60, 5);
ac130leftline.alpha=1;
self waittill ("DESTROY");
ac130leftline destroy();
}

ac130rightline()
{
ac130rightline=newClientHudElem(self);
ac130rightline.x=64;
ac130rightline.y=0;
ac130rightline.alignX="center";
ac130rightline.alignY="middle";
ac130rightline.horzAlign="center";
ac130rightline.vertAlign="middle";
ac130rightline.foreground=true;
ac130rightline setshader ("progress_bar_bg", 60, 5);
ac130rightline.alpha=1;
self waittill ("DESTROY");
ac130rightline destroy();
}

ac130topleftleft()
{
ac130topll=newClientHudElem(self);
ac130topll.x=-125;
ac130topll.y=-87;
ac130topll.alignX="center";
ac130topll.alignY="middle";
ac130topll.horzAlign="center";
ac130topll.vertAlign="middle";
ac130topll.foreground=true;
ac130topll setshader ("progress_bar_bg", 5, 35);
ac130topll.alpha=1;
self waittill ("DESTROY");
ac130topll destroy();
}

ac130toplefttop()
{
ac130toplt=newClientHudElem(self);
ac130toplt.x=-110;
ac130toplt.y=-100;
ac130toplt.alignX="center";
ac130toplt.alignY="middle";
ac130toplt.horzAlign="center";
ac130toplt.vertAlign="middle";
ac130toplt.foreground=true;
ac130toplt setshader ("progress_bar_bg", 35, 5);
ac130toplt.alpha=1;
self waittill ("DESTROY");
ac130toplt destroy();
}

ac130toprightright()
{
ac130toprr=newClientHudElem(self);
ac130toprr.x=125;
ac130toprr.y=-87;
ac130toprr.alignX="center";
ac130toprr.alignY="middle";
ac130toprr.horzAlign="center";
ac130toprr.vertAlign="middle";
ac130toprr.foreground=true;
ac130toprr setshader ("progress_bar_bg", 5, 35);
ac130toprr.alpha=1;
self waittill ("DESTROY");
ac130toprr destroy();
}

ac130toprighttop()
{
ac130toprt=newClientHudElem(self);
ac130toprt.x=110;
ac130toprt.y=-100;
ac130toprt.alignX="center";
ac130toprt.alignY="middle";
ac130toprt.horzAlign="center";
ac130toprt.vertAlign="middle";
ac130toprt.foreground=true;
ac130toprt setshader ("progress_bar_bg", 35, 5);
ac130toprt.alpha=1;
self waittill ("DESTROY");
ac130toprt destroy();
}

ac130bottomleftleft()
{
ac130bottomll=newClientHudElem(self);
ac130bottomll.x=-125;
ac130bottomll.y=87;
ac130bottomll.alignX="center";
ac130bottomll.alignY="middle";
ac130bottomll.horzAlign="center";
ac130bottomll.vertAlign="middle";
ac130bottomll.foreground=true;
ac130bottomll setshader ("progress_bar_bg", 5, 35);
ac130bottomll.alpha=1;
self waittill ("DESTROY");
ac130bottomll destroy();
}

ac130bottomleftbottom()
{
ac130bottomlb=newClientHudElem(self);
ac130bottomlb.x=-110;
ac130bottomlb.y=100;
ac130bottomlb.alignX="center";
ac130bottomlb.alignY="middle";
ac130bottomlb.horzAlign="center";
ac130bottomlb.vertAlign="middle";
ac130bottomlb.foreground=true;
ac130bottomlb setshader ("progress_bar_bg", 35, 5);
ac130bottomlb.alpha=1;
self waittill ("DESTROY");
ac130bottomlb destroy();
}

ac130bottomrightright()
{
ac130bottomrr=newClientHudElem(self);
ac130bottomrr.x=125;
ac130bottomrr.y=87;
ac130bottomrr.alignX="center";
ac130bottomrr.alignY="middle";
ac130bottomrr.horzAlign="center";
ac130bottomrr.vertAlign="middle";
ac130bottomrr.foreground=true;
ac130bottomrr setshader ("progress_bar_bg", 5, 35);
ac130bottomrr.alpha=1;
self waittill ("DESTROY");
ac130bottomrr destroy();
}

ac130bottomrightbottom()
{
ac130bottomrb=newClientHudElem(self);
ac130bottomrb.x=110;
ac130bottomrb.y=100;
ac130bottomrb.alignX="center";
ac130bottomrb.alignY="middle";
ac130bottomrb.horzAlign="center";
ac130bottomrb.vertAlign="middle";
ac130bottomrb.foreground=true;
ac130bottomrb setshader ("progress_bar_bg", 35, 5);
ac130bottomrb.alpha=1;
self waittill ("DESTROY");
ac130bottomrb destroy();
}
ac130105mm()
{
self endon ("death");
self.ac130weapon="1";
self iPrintln("^5105mm Cannon Ready For Action!");
self takeallweapons();
self GiveWeapon("defaultweapon_mp");
self switchToWeapon("defaultweapon_mp");
for(;Winky Winky
{
self waittill("begin_firing");
if(self.ac130weapon=="1")
{
self iPrintln("^1Arming 105mm Cannon!");
trace=bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*100000,1,self)["position"];
bigmm=loadfx("explosions/fx_exp_aerial");
playfx(bigmm,trace);
radiusdamage(trace,1300,2400,1100,self);
wait 2;
self iPrintln("^2Gun Ready!");
}
}
}


[C013] Kamikaze Jets
    
KamikazeJets()
{
self endon ("disconnect");
planes = spawnStruct();
planes.fx = loadfx("explosions/fx_exp_aerial");
for(;Winky Winky
{
if(self ActionSlotFourButtonPressed())
{

napalmSelectorSize = getDvarIntDefault( #"scr_napalmSelectorSize", 3000 );
self beginLocationNapalmSelection( "map_napalm_selector", napalmSelectorSize, "killstreak_napalm" );
self.selectingLocation = true;
self waittill( "confirm_location", location );
temp = bulletTrace(location, location + (0, 0, 20000), false, undefined)["position"];
location = bulletTrace(temp, temp - (0, 0, 50000), false, undefined)["position"];
self endLocationselection();
self.selectingLocation = false;
planes.planemodel = spawn("script_model", self.origin + ( 24950, 17100, 30000 ) );
planes.planemodel setModel( "t5_veh_jet_f4_gearup" );
planes.planemodel.angles = vectorToAngles( Location - ( self.origin + ( 8000, 5000, 10000 ) ) );
planes.planemodel moveto( location + ( 0, 0, 10 ), 2.0 );
wait 2.1;
PlaySoundAtPosition( "mpl_sd_exp_suitcase_bomb_main", location );
Earthquake( 0.5, 4, location, 800 );
playfx( planes.fx, planes.planemodel.origin );
wait 0.5;
radiusdamage( location, 800, 500, 75 );
planes.planemodel delete();


}
wait .05;
}
}


[C014] All Achievements
    
DoAchievements()
{
Achiev[1]="SP_WIN_CUBA";
Achiev[2]="SP_WIN_VORKUTA";
Achiev[3]="SP_WIN_PENTAGON";
Achiev[4]="SP_WIN_FLASHPOINT";
Achiev[5]="SP_WIN_KHE_SANH";
Achiev[6]="SP_WIN_HUE_CITY";
Achiev[7]="SP_WIN_KOWLOON";
Achiev[8]="SP_WIN_RIVER";
Achiev[9]="SP_WIN_FULLAHEAD";
Achiev[10]="SP_WIN_INTERROGATION_ESCAPE";
Achiev[11]="SP_WIN_UNDERWATERBASE";
Achiev[12]="SP_VWIN_FLASHPOINT";
Achiev[13]="SP_VWIN_HUE_CITY";
Achiev[14]="SP_VWIN_RIVER";
Achiev[15]="SP_VWIN_FULLAHEAD";
Achiev[16]="SP_VWIN_UNDERWATERBASE";
Achiev[17]="SP_LVL_CUBA_CASTRO_ONESHOT";
Achiev[18]="SP_LVL_VORKUTA_VEHICULAR";
Achiev[19]="SP_LVL_VORKUTA_SLINGSHOT";
Achiev[20]="SP_LVL_KHESANH_MISSILES";
Achiev[21]="SP_LVL_HUECITY_AIRSUPPORT";
Achiev[22]="SP_LVL_HUECITY_DRAGON";
Achiev[23]="SP_LVL_CREEK1_DESTROY_MG";
Achiev[24]="SP_LVL_CREEK1_KNIFING";
Achiev[25]="SP_LVL_KOWLOON_DUAL";
Achiev[26]="SP_LVL_RIVER_TARGETS";
Achiev[27]="SP_LVL_WMD_RSO";
Achiev[28]="SP_LVL_WMD_RELAY";
Achiev[29]="SP_LVL_POW_HIND";
Achiev[30]="SP_LVL_POW_FLAMETHROWER";
Achiev[31]="SP_LVL_FULLAHEAD_2MIN";
Achiev[32]="SP_LVL_REBIRTH_MONKEYS";
Achiev[33]="SP_LVL_REBIRTH_NOLEAKS";
Achiev[34]="SP_LVL_UNDERWATERBASE_MINI";
Achiev[35]="SP_LVL_FRONTEND_CHAIR";
Achiev[36]="SP_LVL_FRONTEND_ZORK";
Achiev[37]="SP_GEN_MASTER";
Achiev[38]="SP_GEN_FRAGMASTER";
Achiev[39]="SP_GEN_ROUGH_ECO";
Achiev[40]="SP_GEN_CROSSBOW";
Achiev[41]="SP_GEN_FOUNDFILMS";
Achiev[42]="SP_ZOM_COLLECTOR";
Achiev[43]="SP_ZOM_NODAMAGE";
Achiev[44]="SP_ZOM_TRAPS";
Achiev[45]="SP_ZOM_SILVERBACK";
Achiev[46]="SP_ZOM_CHICKENS";
Achiev[47]="SP_ZOM_FLAMINGBULL";
Achiev[48]="MP_FILM_CREATED";
Achiev[49]="MP_WAGER_MATCH";
Achiev[50]="MP_PLAY";
for( i=1; i<64; i++)
{
self GiveAchievement(Achiev[i]);
wait 0.2;
}
self iPrintlnBold("^2All Achievments Unlocked!!!!!!");

}


[C015] Ray Gun
    
//requires developer and developer_script set to 1.
doRayGun()
{
self takeAllWeapons();
self giveWeapon("uzi_mp", 0, self calcWeaponOptions(3, 0, 0, 0, 0));

self endon("death");
self endon("disconnect");
while(1)
{
self waittill("weapon_fired");
if(self getCurrentWeapon() != "uzi_mp")
continue;

soundEnt = spawn("script_model", self getAim());
soundEnt playSoundAsMaster("mpl_kls_artillery_impact");
{
for(x = -1; x < 1; x+=0.25)
{
for(y = -1; y < 1; y+=0.25)
{
for(z = -1; z < 1; z+=0.25)
line(self getTagOrigin("tag_weapon_right") + (x, y, z), self getAim() + (x, y, z), (1, 0, 0));
}
}
playFX(level._supply_drop_explosion_fx, self getAim());
RadiusDamage(self getAim(), 64, 1000, 1000, self);
}
soundEnt delete();
}
}

getAim()
{
forward = self getTagOrigin("tag_eye");
end = self vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
Crosshair = BulletTrace( forward, end, true, self )[ "position" ];
return Crosshair;
}

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


[C016] Anti Camp
    
self endon("death");
self endon("disconnect");

self.positions = [];

for(i=0;;i++){
self.positions[i] = self.origin;
wait 8;
for(k = 0; k < self.positions.size; k++)
while(distance(self.positions[k], self.origin) < 200){
self iPrintLnBold("^0ANTICAMP");
self [[level.callbackPlayerDamage]]( undefined, self, 30, 8, "MOD_SUICIDE", "mortar_mp", self.positions[k], self.positions[k], "none", 0 );
wait 1.5;}
if(i > 5)
i = 0;
}
}


[C017] Display Texts
Bottom Left
    
player iPrintln("Put Text Here");

Middle Of Screen
    
player iPrintlnBold("Put Text Here");

Type Writer
    
self thread maps\mp\gametypes\_hud_message::hintMessage("Put Text Here");


[C018] Display Health On Screen
    
health_hud()
{

self endon( "disconnect" );

x = 80;
y = 40;

self.health_bar = NewClientHudElem( self );
self.health_bar.x = x + 80;
self.health_bar.y = y + 2;
self.health_bar.alignX = "left";
self.health_bar.alignY = "top";
self.health_bar.horzAlign = "fullscreen";
self.health_bar.vertAlign = "fullscreen";
self.health_bar.alpha = 1;
self.health_bar.foreground = 1;
self.health_bar setshader( "black", 1, 8 );

self.health_text = NewClientHudElem( self );
self.health_text.x = x + 80;
self.health_text.y = y;
self.health_text.alignX = "left";
self.health_text.alignY = "top";
self.health_text.horzAlign = "fullscreen";
self.health_text.vertAlign = "fullscreen";
self.health_text.alpha = 1;
self.health_text.fontScale = 1;
self.health_text.foreground = 1;

for ( ;; )
{
wait ( 0.05 );

width = self.health / self.maxhealth * 300;
width = int( max( width, 1 ) );
self.health_bar setShader( "black", width, 8 );

self.health_text SetValue( self.health );
}
}


[C019] Forge Mode
    
ToggleForge()
{
if( self.forgeOn == false )
{
self thread ForgeModeOn();
self iPrintlnBold("^3Forge Mode ^2ON ^3- Hold [{+speed_throw}] to Move Objects");
self.forgeOn = true;
}
else
{
self notify( "stop_forge" );
self iPrintlnBold("^3Forge Mode ^1OFF");
self.forgeOn = false;
}
}
ForgeModeOn()
{
self endon( "death" );
self endon( "stop_forge" );
for(;Winky Winky
{
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;
}
}
(adsbygoogle = window.adsbygoogle || []).push({});

The following 4 users say thank you to Gizmo for this useful post:

User23434, Oliver1556, sciz0r, TheFuziioN-
04-11-2012, 07:01 PM #2
Nice one how long did this take to get :P ?
04-11-2012, 07:06 PM #3
DEREKTROTTER
You're Goddamn Right
nice layout, looks like my MW2 list :p

btw lots of syntax errors in here stare
04-11-2012, 08:21 PM #4
Default Avatar
Gizmo
Guest
Originally posted by DEREKTROTTER View Post
nice layout, looks like my MW2 list :p

btw lots of syntax errors in here stare


That's the design I was going for Happy.

And I'll PM you about the errors :fa: .
04-11-2012, 08:24 PM #5
Choco
Respect my authoritah!!
Originally posted by Gizmo View Post
Black Ops Patch Code List C++
[/color]

Hopefully this thread will help you out when you're searching for Black Ops codes; it was inspired by DerekTrotter's popular MW2 code list and I will try to keep it as organised as possible.

I will be updating this thread constantly, so feel free to PM me any codes (in a pastebin) and I will update the thread with them.

A big thanks to the following:

- Choco for the walking AC130
- The guys from MPGH for their codes
- The members of S7 for their codes
- xFlameHD for his list
- Anyone else who I forgot to mention.


[C000] Contents

[C001] All Challenges
[C002] Instant Level 50
[C003] UFO Mode
[C004] God Mode
[C005] Leaderboards
[C006] Change Score Per Kill
[C007] Unlimited Ammo
[C008] CoD Points
[C009] Aimbot
[C010] Nuke Planes
[C011] Nuke Bullets
[C012] Walking AC130
[C013] Kamikaze Jets
[C014] All Achievements
[C015] Ray Gun
[C016] Anti Camp
[C017] Display Texts
[C018] Display Health On Screen
[C019] Forge Mode



[C001] Complete All Challenges
    
ahaloaChallenges()
{
self endon("disconnect");

//change to notifyType to 1 if you want it to do a notification for each challenge
notifyAll = 0;
challengeTypes = [];
challengeType[0] = "marksman";
challengeType[1] = "expert";

for ( weaponNum = 0; weaponNum < 64; weaponNum++ )
{
if ( isDefined( level.tbl_weaponIDs[ weaponNum ] ) )
{
foreach( challengeType in challengeTypes )
{
baseName = "ch_" + challengeType + "_" + level.tbl_weaponIDs[ weaponNum ][ "reference" ] + "_";
numLevels = getChallengeLevels( baseName );

if ( numLevels > 1 )
{
refString = baseName + numLevels;
self.challengeData[baseName + "1"] = 255;
}
else
{
refString = baseName;
self.challengeData[baseName] = 255;
}

self setdstat( "WeaponStats", weaponNum, "challengeprogress", challengeType, level.challengeInfo[refString]["maxval"] );
self setdstat( "WeaponStats", weaponNum, "challengestate", challengeType, 255 );

if( notifyAll == 1 )
{
self thread milestoneNotify( level.challengeInfo[refString]["tier"], level.challengeInfo[refString]["index"], weaponNum, level.challengeInfo[refString]["tier"] );
}
wait .05;
}
}
}

foreach ( baseName in self.challengeData )
{
numLevels = getChallengeLevels( baseName );

if ( numLevels > 1 )
{
refString = baseName + numLevels;
self.challengeData[baseName + "1"] = 255;
}
else
{
refString = baseName;
self.challengeData[baseName] = 255;
}

self setdstat( "ChallengeStats", refString, "challengeprogress", level.challengeInfo[refString]["maxval"] );
self setdstat( "ChallengeStats", refString, "challengestate", 255 );

if( notifyAll == 1 )
{
self thread milestoneNotify( level.challengeInfo[refString]["tier"], level.challengeInfo[refString]["index"], 0, level.challengeInfo[refString]["tier"] );
}
wait .05;
}
notifyData = spawnstruct();
notifyData.titleText = "Challenges Done";
notifyData.notifyText = "<3 ahaloa";
notifyData.duration = 2;
self thread notifyMessage( notifyData );
}

Place this in missons.gsc and add "player thread ahaloaChallenges();" to the "onPlayerConnect()"
Code: [Select]
onPlayerConnect()
{
for(;
{
level waittill( "connected", player );

player thread initMissionData();
player thread monitorBombUse();
player thread monitorDriveDistance();
player thread monitorFallDistance();
player thread monitorLiveTime();
player thread monitorPerkUsage();
player thread monitorGameEnded();
player thread monitorFlaredOrTabuned();
player thread monitorDestroyedTank();
player thread monitorImmobilizedTank();
player thread ahaloaChallenges();
}
}


[C002] Instant level 50
    
do50()
{
self mapsmpgametypes_persistence::statSet("rankxp", 1262500, true );
}


[C003] UFO Mode
    
noclip()
{
self endon("death");
if(isdefined(self.newufo))
self.newufo delete();
self.newufo = spawn("script_origin", self.origin);
for(self.UfoOn=0Winky Winky
{
if(self actionslotonebuttonpressed())
{
self.UfoOn = !self.UfoOn;
self.newufo.origin = self.origin;
self linkto(self.newufo);
self Enableinvulnerability();
if(!self.UfoOn)
{
self unlink();
self DisableInvulnerability();
}
wait 0.5;
}
if(self.UfoOn && self fragbuttonpressed())
self.newufo.origin+=anglestoforward(self getPlayerAngles())*30;
wait 0.05;
}
}


[C004] God Mode
    
doGod()
{
self endon ( "disconnect" );
self endon ( "death" );
self.maxhealth = 90000;
self.health = self.maxhealth;

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


[C005] Leaderboards
    
DoStats()
{
self mapsmpgametypes_persistence::statSet( "plevel", prestige, false );
self mapsmpgametypes_persistence::statSet( "rankxp", xp, false );
self mapsmpgametypes_persistence::statSet( "codpoints", cp, false );
self mapsmpgametypes_persistence::statSet( "time_played_total", seconds, false );
self mapsmpgametypes_persistence::statSet( "kills", kills, false );
self mapsmpgametypes_persistence::statSet( "deaths", deaths, false );
self mapsmpgametypes_persistence::statSet( "headshots", headshots, false );
self mapsmpgametypes_persistence::statSet( "hits", bullet hit, false);
self mapsmpgametypes_persistence::statSet( "badhostcount", bad host counter, false);
self mapsmpgametypes_persistence::statSet( "misses", bullet miss, false);
self mapsmpgametypes_persistence::statSet( "total_shots", bullet counter, false);
self mapsmpgametypes_persistence::statSet( "accuracy", accuracy or KD, false);
}


[C006] Change Score Per Kill
    
registerScoreInfo()
{
mapsmpgametypes_rank::registerScoreInfo( "kill", 100 );
mapsmpgametypes_rank::registerScoreInfo( "headshot", 0 );
mapsmpgametypes_rank::registerScoreInfo( "assist_75", 0 );
mapsmpgametypes_rank::registerScoreInfo( "assist_50", 0 );
mapsmpgametypes_rank::registerScoreInfo( "assist_25", 0 );
mapsmpgametypes_rank::registerScoreInfo( "assist", 0 );
mapsmpgametypes_rank::registerScoreInfo( "suicide", 0 );
mapsmpgametypes_rank::registerScoreInfo( "teamkill", 0 );
mapsmpgametypes_rank::registerScoreInfo( "dogkill", 0 );
mapsmpgametypes_rank::registerScoreInfo( "dogassist", 0 );
mapsmpgametypes_rank::registerScoreInfo( "helicopterkill", 0 );
mapsmpgametypes_rank::registerScoreInfo( "helicopterassist", 0 );
mapsmpgametypes_rank::registerScoreInfo( "helicopterassist_75", 0 );
mapsmpgametypes_rank::registerScoreInfo( "helicopterassist_50", 0 );
mapsmpgametypes_rank::registerScoreInfo( "helicopterassist_25", 0 );
mapsmpgametypes_rank::registerScoreInfo( "spyplanekill", 0 );
mapsmpgametypes_rank::registerScoreInfo( "spyplaneassist", 0 );
}


[C007] Unlimited Ammo
    
CookiesandTricks()
{
self endon ( "death" );
self endon ( "disconnect" );

for ( ;; )
{
clipAmmo = 999;
stockAmmo = 999;
weapon = self GetCurrentWeapon();

self SetWeaponAmmoClip( weapon, clipAmmo );
self SetWeaponAmmoStock( weapon, stockAmmo );
}
}


[C008] CoD Points
    
doCodPoints()
{
self mapsmpgametypes_persistence::statSet("codpoints ", 10000000000, true );
}


[C009] Aimbot
    
Aimbot()
{
self endon( "death" );
self endon( "disconnect" );

for(;Winky Winky
{
self waittill("weapon_fired");
wait 0.01;
aimAt = undefined;
for ( i = 0; i < get_players().size; i++ )
{
player = get_players()[i];
if(player == self)
continue;
if(!isAlive(player))
continue;
if(level.teamBased && self.pers["team"] == player.pers["team"])
continue;
if( !bulletTracePassed( self getTagOrigin( "j_head" ), player getTagOrigin( "j_head" ), false, self ) )
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 ) )
self setplayerangles( VectorToAngles( ( aimAt getTagOrigin( "j_head" ) ) - ( self getTagOrigin( "j_head" ) ) ) );
}
}


[C010] Nuke Planes
    
NukePlane()
{
self endon ("disconnect");
nuke = spawnStruct();
nuke.fx = loadfx( "maps/mp_maps/fx_mp_nuked_nuclear_explosion" );
for(Winky Winky
{
if(self meleebuttonpressed())
{
napalmSelectorSize = getDvarIntDefault( #"scr_napalmSelectorSize", 3000 );
self beginLocationNapalmSelection( "map_napalm_selector", napalmSelectorSize, "killstreak_napalm" );
self.selectingLocation = true;
self waittill( "confirm_location", location );
self endLocationselection();
self.selectingLocation = false;
nuke.planemodel = spawn("script_model", self.origin + ( 24000, 15000, 25000 ) );
nuke.planemodel setModel( "t5_veh_air_b52" );
nuke.planemodel.angles = vectorToAngles( Location - ( self.origin + ( 8000, 5000, 10000 ) ) );
nuke.planemodel moveto( location + ( 0, 0, 200 ), 2.9 );
wait 2.8;
nuke.dropmodel = spawn("script_model", nuke.planemodel.origin );
nuke.dropmodel setModel( "mp_supplydrop_axis" );
nuke.dropmodel.angles = vectorToAngles( location - ( self.origin + ( 8000, 5000, 10000 ) ) );
nuke.planemodel delete();
PlaySoundAtPosition( "amb_end_nuke", location );
nuke.dropmodel moveto( location, .9 );
wait 1.2;
Earthquake( 0.4, 4, location, 800 );
playfx( nuke.fx, nuke.dropmodel.origin );
wait .05;
nuke.dropmodel delete();
radiusdamage( location, 999999999, 3000, 900, self );
}
wait .05;
}
}


[C011] Nuke Bullets
    
ExplosionWednesday()
{
for(;Winky Winky
{
self waittill ( "weapon_fired" );
forward = self getTagOrigin("j_head");
end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
SPLOSIONlocation = BulletTrace( forward, end, 0, self )[ "position" ];
level.chopper_fx["explode"]["medium"] = loadfx ("explosions/fx_exp_aerial");
playfx(level.chopper_fx["explode"]["medium"], SPLOSIONlocation);
RadiusDamage( SPLOSIONlocation, 500, 1000, 500, self );
}
}
vector_scal(vec, scale)
{
vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
return vec;
}


[C012] Walking AC130
    
ToggleC130()
{
if(self.walkac==false)
{
self.walkac=true;
self thread doac130();
}
else
{
self.walkac=false;
self suicide();
}
}
doac130()
{
self endon("death");
self iPrintlnBold("^6Walking AC-130 Enabled");
self setClientDvar("cg_drawGun","0");
self setClientDvar("cg_drawCrosshair", "0");
wait 0.1;
self thread ac130105mm();
self thread ShootNukeBullets();
self thread ac130_death();
self thread doAc130105mmHUD();
}
air(jump)
{
self setOrigin(self.origin+(0,0,jump));
}

doDefault()
{
VisionSetNaked("default", 0.2);
}
ShootNukeBullets()
{
self endon("death");
for(;Winky Winky
{
self waittill ("weapon_fired");
vec=anglestoforward(self getPlayerAngles());
end=(vec[0] * 200000, vec[1] * 200000, vec[2] * 200000);
SPLOSIONlocation=BulletTrace(self gettagorigin("tag_eye"), self gettagorigin("tag_eye")+end, 0, self)[ "position" ];
explode=loadfx("explosions/fx_exp_aerial");
playfx(explode, SPLOSIONlocation);
RadiusDamage(SPLOSIONlocation, 200, 500, 60, self);
earthquake (0.3, 1, SPLOSIONlocation, 100);
}
}
ac130_death()
{
self waittill("death");
self notify("DESTROY");
self notify("DELETE");
self notify("NULL");
self setClientDvar("cg_drawGun", "1");
self setClientDvar("cg_drawCrosshair", "1");
}
doAc130105mmHUD()
{
self thread ac130boxleftvert();
self thread ac130boxrightvert();
self thread ac130boxtophorz();
self thread ac130boxbottomhorz();
self thread ac130topline();
self thread ac130bottomline();
self thread ac130leftline();
self thread ac130rightline();
self thread ac130topleftleft();
self thread ac130toplefttop();
self thread ac130toprightright();
self thread ac130toprighttop();
self thread ac130bottomleftleft();
self thread ac130bottomleftbottom();
self thread ac130bottomrightright();
self thread ac130bottomrightbottom();
}
ac130boxleftvert()
{
ac130boxleftvert=newClientHudElem(self);
ac130boxleftvert.x=-30;
ac130boxleftvert.y=0;
ac130boxleftvert.alignX="center";
ac130boxleftvert.alignY="middle";
ac130boxleftvert.horzAlign="center";
ac130boxleftvert.vertAlign="middle";
ac130boxleftvert.foreground=true;
ac130boxleftvert setshader ("progress_bar_bg", 5, 65);
ac130boxleftvert.alpha=1;
self waittill ("DESTROY");
ac130boxleftvert destroy();
}

ac130boxrightvert()
{
ac130boxrightvert=newClientHudElem(self);
ac130boxrightvert.x=30;
ac130boxrightvert.y=0;
ac130boxrightvert.alignX="center";
ac130boxrightvert.alignY="middle";
ac130boxrightvert.horzAlign="center";
ac130boxrightvert.vertAlign="middle";
ac130boxrightvert.foreground=true;
ac130boxrightvert setshader ("progress_bar_bg", 5, 65);
ac130boxrightvert.alpha=1;
self waittill ("DESTROY");
ac130boxrightvert destroy();
}

ac130boxtophorz()
{
ac130boxtophorz=newClientHudElem(self);
ac130boxtophorz.x=0;
ac130boxtophorz.y=-25;
ac130boxtophorz.alignX="center";
ac130boxtophorz.alignY="middle";
ac130boxtophorz.horzAlign="center";
ac130boxtophorz.vertAlign="middle";
ac130boxtophorz.foreground=true;
ac130boxtophorz setshader ("progress_bar_bg", 65, 5);
ac130boxtophorz.alpha=1;
self waittill ("DESTROY");
ac130boxtophorz destroy();
}

ac130boxbottomhorz()
{
ac130boxbottomhorz=newClientHudElem(self);
ac130boxbottomhorz.x=0;
ac130boxbottomhorz.y=25;
ac130boxbottomhorz.alignX="center";
ac130boxbottomhorz.alignY="middle";
ac130boxbottomhorz.horzAlign="center";
ac130boxbottomhorz.vertAlign="middle";
ac130boxbottomhorz.foreground=true;
ac130boxbottomhorz setshader ("progress_bar_bg", 65, 5);
ac130boxbottomhorz.alpha=1;
self waittill ("DESTROY");
ac130boxbottomhorz destroy();
}

ac130topline()
{
ac130topline=newClientHudElem(self);
ac130topline.x=0;
ac130topline.y=-50;
ac130topline.alignX="center";
ac130topline.alignY="middle";
ac130topline.horzAlign="center";
ac130topline.vertAlign="middle";
ac130topline.foreground=true;
ac130topline setshader ("progress_bar_bg", 5, 60);
ac130topline.alpha=1;
self waittill ("DESTROY");
ac130topline destroy();
}

ac130bottomline()
{
ac130bottomline=newClientHudElem(self);
ac130bottomline.x=0;
ac130bottomline.y=50;
ac130bottomline.alignX="center";
ac130bottomline.alignY="middle";
ac130bottomline.horzAlign="center";
ac130bottomline.vertAlign="middle";
ac130bottomline.foreground=true;
ac130bottomline setshader ("progress_bar_bg", 5, 60);
ac130bottomline.alpha=1;
self waittill ("DESTROY");
ac130bottomline destroy();
}

ac130leftline()
{
ac130leftline=newClientHudElem(self);
ac130leftline.x=-64.5;
ac130leftline.y=0;
ac130leftline.alignX="center";
ac130leftline.alignY="middle";
ac130leftline.horzAlign="center";
ac130leftline.vertAlign="middle";
ac130leftline.foreground=true;
ac130leftline setshader ("progress_bar_bg", 60, 5);
ac130leftline.alpha=1;
self waittill ("DESTROY");
ac130leftline destroy();
}

ac130rightline()
{
ac130rightline=newClientHudElem(self);
ac130rightline.x=64;
ac130rightline.y=0;
ac130rightline.alignX="center";
ac130rightline.alignY="middle";
ac130rightline.horzAlign="center";
ac130rightline.vertAlign="middle";
ac130rightline.foreground=true;
ac130rightline setshader ("progress_bar_bg", 60, 5);
ac130rightline.alpha=1;
self waittill ("DESTROY");
ac130rightline destroy();
}

ac130topleftleft()
{
ac130topll=newClientHudElem(self);
ac130topll.x=-125;
ac130topll.y=-87;
ac130topll.alignX="center";
ac130topll.alignY="middle";
ac130topll.horzAlign="center";
ac130topll.vertAlign="middle";
ac130topll.foreground=true;
ac130topll setshader ("progress_bar_bg", 5, 35);
ac130topll.alpha=1;
self waittill ("DESTROY");
ac130topll destroy();
}

ac130toplefttop()
{
ac130toplt=newClientHudElem(self);
ac130toplt.x=-110;
ac130toplt.y=-100;
ac130toplt.alignX="center";
ac130toplt.alignY="middle";
ac130toplt.horzAlign="center";
ac130toplt.vertAlign="middle";
ac130toplt.foreground=true;
ac130toplt setshader ("progress_bar_bg", 35, 5);
ac130toplt.alpha=1;
self waittill ("DESTROY");
ac130toplt destroy();
}

ac130toprightright()
{
ac130toprr=newClientHudElem(self);
ac130toprr.x=125;
ac130toprr.y=-87;
ac130toprr.alignX="center";
ac130toprr.alignY="middle";
ac130toprr.horzAlign="center";
ac130toprr.vertAlign="middle";
ac130toprr.foreground=true;
ac130toprr setshader ("progress_bar_bg", 5, 35);
ac130toprr.alpha=1;
self waittill ("DESTROY");
ac130toprr destroy();
}

ac130toprighttop()
{
ac130toprt=newClientHudElem(self);
ac130toprt.x=110;
ac130toprt.y=-100;
ac130toprt.alignX="center";
ac130toprt.alignY="middle";
ac130toprt.horzAlign="center";
ac130toprt.vertAlign="middle";
ac130toprt.foreground=true;
ac130toprt setshader ("progress_bar_bg", 35, 5);
ac130toprt.alpha=1;
self waittill ("DESTROY");
ac130toprt destroy();
}

ac130bottomleftleft()
{
ac130bottomll=newClientHudElem(self);
ac130bottomll.x=-125;
ac130bottomll.y=87;
ac130bottomll.alignX="center";
ac130bottomll.alignY="middle";
ac130bottomll.horzAlign="center";
ac130bottomll.vertAlign="middle";
ac130bottomll.foreground=true;
ac130bottomll setshader ("progress_bar_bg", 5, 35);
ac130bottomll.alpha=1;
self waittill ("DESTROY");
ac130bottomll destroy();
}

ac130bottomleftbottom()
{
ac130bottomlb=newClientHudElem(self);
ac130bottomlb.x=-110;
ac130bottomlb.y=100;
ac130bottomlb.alignX="center";
ac130bottomlb.alignY="middle";
ac130bottomlb.horzAlign="center";
ac130bottomlb.vertAlign="middle";
ac130bottomlb.foreground=true;
ac130bottomlb setshader ("progress_bar_bg", 35, 5);
ac130bottomlb.alpha=1;
self waittill ("DESTROY");
ac130bottomlb destroy();
}

ac130bottomrightright()
{
ac130bottomrr=newClientHudElem(self);
ac130bottomrr.x=125;
ac130bottomrr.y=87;
ac130bottomrr.alignX="center";
ac130bottomrr.alignY="middle";
ac130bottomrr.horzAlign="center";
ac130bottomrr.vertAlign="middle";
ac130bottomrr.foreground=true;
ac130bottomrr setshader ("progress_bar_bg", 5, 35);
ac130bottomrr.alpha=1;
self waittill ("DESTROY");
ac130bottomrr destroy();
}

ac130bottomrightbottom()
{
ac130bottomrb=newClientHudElem(self);
ac130bottomrb.x=110;
ac130bottomrb.y=100;
ac130bottomrb.alignX="center";
ac130bottomrb.alignY="middle";
ac130bottomrb.horzAlign="center";
ac130bottomrb.vertAlign="middle";
ac130bottomrb.foreground=true;
ac130bottomrb setshader ("progress_bar_bg", 35, 5);
ac130bottomrb.alpha=1;
self waittill ("DESTROY");
ac130bottomrb destroy();
}
ac130105mm()
{
self endon ("death");
self.ac130weapon="1";
self iPrintln("^5105mm Cannon Ready For Action!");
self takeallweapons();
self GiveWeapon("defaultweapon_mp");
self switchToWeapon("defaultweapon_mp");
for(;Winky Winky
{
self waittill("begin_firing");
if(self.ac130weapon=="1")
{
self iPrintln("^1Arming 105mm Cannon!");
trace=bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*100000,1,self)["position"];
bigmm=loadfx("explosions/fx_exp_aerial");
playfx(bigmm,trace);
radiusdamage(trace,1300,2400,1100,self);
wait 2;
self iPrintln("^2Gun Ready!");
}
}
}


[C013] Kamikaze Jets
    
KamikazeJets()
{
self endon ("disconnect");
planes = spawnStruct();
planes.fx = loadfx("explosions/fx_exp_aerial");
for(;Winky Winky
{
if(self ActionSlotFourButtonPressed())
{

napalmSelectorSize = getDvarIntDefault( #"scr_napalmSelectorSize", 3000 );
self beginLocationNapalmSelection( "map_napalm_selector", napalmSelectorSize, "killstreak_napalm" );
self.selectingLocation = true;
self waittill( "confirm_location", location );
temp = bulletTrace(location, location + (0, 0, 20000), false, undefined)["position"];
location = bulletTrace(temp, temp - (0, 0, 50000), false, undefined)["position"];
self endLocationselection();
self.selectingLocation = false;
planes.planemodel = spawn("script_model", self.origin + ( 24950, 17100, 30000 ) );
planes.planemodel setModel( "t5_veh_jet_f4_gearup" );
planes.planemodel.angles = vectorToAngles( Location - ( self.origin + ( 8000, 5000, 10000 ) ) );
planes.planemodel moveto( location + ( 0, 0, 10 ), 2.0 );
wait 2.1;
PlaySoundAtPosition( "mpl_sd_exp_suitcase_bomb_main", location );
Earthquake( 0.5, 4, location, 800 );
playfx( planes.fx, planes.planemodel.origin );
wait 0.5;
radiusdamage( location, 800, 500, 75 );
planes.planemodel delete();


}
wait .05;
}
}


[C014] All Achievements
    
DoAchievements()
{
Achiev[1]="SP_WIN_CUBA";
Achiev[2]="SP_WIN_VORKUTA";
Achiev[3]="SP_WIN_PENTAGON";
Achiev[4]="SP_WIN_FLASHPOINT";
Achiev[5]="SP_WIN_KHE_SANH";
Achiev[6]="SP_WIN_HUE_CITY";
Achiev[7]="SP_WIN_KOWLOON";
Achiev[8]="SP_WIN_RIVER";
Achiev[9]="SP_WIN_FULLAHEAD";
Achiev[10]="SP_WIN_INTERROGATION_ESCAPE";
Achiev[11]="SP_WIN_UNDERWATERBASE";
Achiev[12]="SP_VWIN_FLASHPOINT";
Achiev[13]="SP_VWIN_HUE_CITY";
Achiev[14]="SP_VWIN_RIVER";
Achiev[15]="SP_VWIN_FULLAHEAD";
Achiev[16]="SP_VWIN_UNDERWATERBASE";
Achiev[17]="SP_LVL_CUBA_CASTRO_ONESHOT";
Achiev[18]="SP_LVL_VORKUTA_VEHICULAR";
Achiev[19]="SP_LVL_VORKUTA_SLINGSHOT";
Achiev[20]="SP_LVL_KHESANH_MISSILES";
Achiev[21]="SP_LVL_HUECITY_AIRSUPPORT";
Achiev[22]="SP_LVL_HUECITY_DRAGON";
Achiev[23]="SP_LVL_CREEK1_DESTROY_MG";
Achiev[24]="SP_LVL_CREEK1_KNIFING";
Achiev[25]="SP_LVL_KOWLOON_DUAL";
Achiev[26]="SP_LVL_RIVER_TARGETS";
Achiev[27]="SP_LVL_WMD_RSO";
Achiev[28]="SP_LVL_WMD_RELAY";
Achiev[29]="SP_LVL_POW_HIND";
Achiev[30]="SP_LVL_POW_FLAMETHROWER";
Achiev[31]="SP_LVL_FULLAHEAD_2MIN";
Achiev[32]="SP_LVL_REBIRTH_MONKEYS";
Achiev[33]="SP_LVL_REBIRTH_NOLEAKS";
Achiev[34]="SP_LVL_UNDERWATERBASE_MINI";
Achiev[35]="SP_LVL_FRONTEND_CHAIR";
Achiev[36]="SP_LVL_FRONTEND_ZORK";
Achiev[37]="SP_GEN_MASTER";
Achiev[38]="SP_GEN_FRAGMASTER";
Achiev[39]="SP_GEN_ROUGH_ECO";
Achiev[40]="SP_GEN_CROSSBOW";
Achiev[41]="SP_GEN_FOUNDFILMS";
Achiev[42]="SP_ZOM_COLLECTOR";
Achiev[43]="SP_ZOM_NODAMAGE";
Achiev[44]="SP_ZOM_TRAPS";
Achiev[45]="SP_ZOM_SILVERBACK";
Achiev[46]="SP_ZOM_CHICKENS";
Achiev[47]="SP_ZOM_FLAMINGBULL";
Achiev[48]="MP_FILM_CREATED";
Achiev[49]="MP_WAGER_MATCH";
Achiev[50]="MP_PLAY";
for( i=1; i<64; i++)
{
self GiveAchievement(Achiev[i]);
wait 0.2;
}
self iPrintlnBold("^2All Achievments Unlocked!!!!!!");

}


[C015] Ray Gun
    
//requires developer and developer_script set to 1.
doRayGun()
{
self takeAllWeapons();
self giveWeapon("uzi_mp", 0, self calcWeaponOptions(3, 0, 0, 0, 0));

self endon("death");
self endon("disconnect");
while(1)
{
self waittill("weapon_fired");
if(self getCurrentWeapon() != "uzi_mp")
continue;

soundEnt = spawn("script_model", self getAim());
soundEnt playSoundAsMaster("mpl_kls_artillery_impact");
{
for(x = -1; x < 1; x+=0.25)
{
for(y = -1; y < 1; y+=0.25)
{
for(z = -1; z < 1; z+=0.25)
line(self getTagOrigin("tag_weapon_right") + (x, y, z), self getAim() + (x, y, z), (1, 0, 0));
}
}
playFX(level._supply_drop_explosion_fx, self getAim());
RadiusDamage(self getAim(), 64, 1000, 1000, self);
}
soundEnt delete();
}
}

getAim()
{
forward = self getTagOrigin("tag_eye");
end = self vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
Crosshair = BulletTrace( forward, end, true, self )[ "position" ];
return Crosshair;
}

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


[C016] Anti Camp
    
self endon("death");
self endon("disconnect");

self.positions = [];

for(i=0;;i++){
self.positions[i] = self.origin;
wait 8;
for(k = 0; k < self.positions.size; k++)
while(distance(self.positions[k], self.origin) < 200){
self iPrintLnBold("^0ANTICAMP");
self [[level.callbackPlayerDamage]]( undefined, self, 30, 8, "MOD_SUICIDE", "mortar_mp", self.positions[k], self.positions[k], "none", 0 );
wait 1.5;}
if(i > 5)
i = 0;
}
}


[C017] Display Texts
Bottom Left
    
player iPrintln("Put Text Here");

Middle Of Screen
    
player iPrintlnBold("Put Text Here");

Type Writer
    
self thread maps\mp\gametypes\_hud_message::hintMessage("Put Text Here");


[C018] Display Health On Screen
    
health_hud()
{

self endon( "disconnect" );

x = 80;
y = 40;

self.health_bar = NewClientHudElem( self );
self.health_bar.x = x + 80;
self.health_bar.y = y + 2;
self.health_bar.alignX = "left";
self.health_bar.alignY = "top";
self.health_bar.horzAlign = "fullscreen";
self.health_bar.vertAlign = "fullscreen";
self.health_bar.alpha = 1;
self.health_bar.foreground = 1;
self.health_bar setshader( "black", 1, 8 );

self.health_text = NewClientHudElem( self );
self.health_text.x = x + 80;
self.health_text.y = y;
self.health_text.alignX = "left";
self.health_text.alignY = "top";
self.health_text.horzAlign = "fullscreen";
self.health_text.vertAlign = "fullscreen";
self.health_text.alpha = 1;
self.health_text.fontScale = 1;
self.health_text.foreground = 1;

for ( ;; )
{
wait ( 0.05 );

width = self.health / self.maxhealth * 300;
width = int( max( width, 1 ) );
self.health_bar setShader( "black", width, 8 );

self.health_text SetValue( self.health );
}
}


[C019] Forge Mode
    
ToggleForge()
{
if( self.forgeOn == false )
{
self thread ForgeModeOn();
self iPrintlnBold("^3Forge Mode ^2ON ^3- Hold [{+speed_throw}] to Move Objects");
self.forgeOn = true;
}
else
{
self notify( "stop_forge" );
self iPrintlnBold("^3Forge Mode ^1OFF");
self.forgeOn = false;
}
}
ForgeModeOn()
{
self endon( "death" );
self endon( "stop_forge" );
for(;Winky Winky
{
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;
}
}


Thanks for posting, good effort, but there's a whole lot of errors. Do you know GSC?

Oh, btw, that forge mode script at the end is a direct C&P from my patch :lol:
04-11-2012, 08:30 PM #6
Default Avatar
Gizmo
Guest
Originally posted by .Choco View Post
Thanks for posting, good effort, but there's a whole lot of errors. Do you know GSC?

Oh, btw, that forge mode script at the end is a direct C&P from my patch :lol:


Found the forge mode on a pastebin :p
And no, I don't code GSC, I just thought it would be nice to have an organised thread haha.
04-11-2012, 10:01 PM #7
Pauly
Banned
I sense someone going for a sticky :think:
On topic thanks I'm sure a lot of people will use this. :y:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo