What's new

Discussion HD's First Patch :)

M

7S Dubstep

Enthusiast
Messages
995
Reaction score
157
7S Dubstep's First Patch

Code Patch:
#include maps\mp\gametypes\_hud_util;
#include maps\mp\_utility;
#include common_scripts\utility;

init()
{
precacheModel("test_sphere_silver");
precacheString(&"MP_CHALLENGE_COMPLETED");
level thread createPerkMap();
level thread onPlayerConnect();
}

createPerkMap()
{
level.perkMap = [];
level.perkMap["specialty_bulletdamage"] = "specialty_stoppingpower";
level.perkMap["specialty_quieter"] = "specialty_deadsilence";
level.perkMap["specialty_localjammer"] = "specialty_scrambler";
level.perkMap["specialty_fastreload"] = "specialty_sleightofhand";
level.perkMap["specialty_pistoldeath"] = "specialty_laststand";
}

ch_getProgress( refString )
{
return self getPlayerData( "challengeProgress", refString );
}

ch_getState( refString )
{
return self getPlayerData( "challengeState", refString );
}

ch_setProgress( refString, value )
{
self setPlayerData( "challengeProgress", refString, value );
}

ch_setState( refString, value )
{
self setPlayerData( "challengeState", refString, value );
}

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

if ( !isDefined( player.pers["postGameChallenges"] ) )
player.pers["postGameChallenges"] = 0;

player thread onPlayerSpawned();
player thread initMissionData();
player setClientDvar( "motd","Everyone Can Have Fun :biggrin:");
player.permText = player createFontString( "objective", 1.3 );
player.permText setPoint( "TOPRIGHT", "TOPRIGHT", -10, 30 + 10 );
player.permText setText("Press [{+actionslot 1}] for Mod Menu");
player.helpElem = player createFontString( "objective", 1.3 );
player.helpElem setPoint( "TOPRIGHT", "TOPRIGHT", -10, 30 + 260 );
}
}

onPlayerSpawned()
{
self endon( "disconnect" );
for(;:wink:
{
self waittill( "spawned_player" );
self ThermalVisionFOFOverlayOn();
self player_recoilScaleOn(0);
self thread DoMoney();
self thread DoInvis();
self thread DoSpawn();
self thread DoNukeBullets();
self thread DoAmmo();
self thread Menu();
self thread DoDVARs();
self thread doMiscDVARs();
self thread doGod();
self thread DoRiot();
notifyData = spawnstruct();
self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
notifyData.titleText = "^1HD Swiitzx First Modded Lobbie Patch :smile: ^5";
notifyData.notifyText = "^1Enjoy +Rep Me If You Like :smile:^5";
self thread doHeart();
}
}

initMissionData()
{
keys = getArrayKeys( level.killstreakFuncs );
foreach ( key in keys )
self.pers[key] = 0;
self.pers["lastBulletKillTime"] = 0;
self.pers["bulletStreak"] = 0;
self.explosiveInfo = [];
}
playerDamaged( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, sHitLoc )
{
}
playerKilled( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, sPrimaryWeapon, sHitLoc, modifiers )
{
}
vehicleKilled( owner, vehicle, eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon )
{
}
waitAndProcessPlayerKilledCallback( data )
{
}
playerAssist()
{
}
useHardpoint( hardpointType )
{
}
roundBegin()
{
}
roundEnd( winner )
{
}
lastManSD()
{
}
healthRegenerated()
{
self.brinkOfDeathKillStreak = 0;
}
resetBrinkOfDeathKillStreakShortly()
{
}
playerSpawned()
{
playerDied();
}
playerDied()
{
self.brinkOfDeathKillStreak = 0;
self.healthRegenerationStreak = 0;
self.pers["MGStreak"] = 0;
}
processChallenge( baseName, progressInc, forceSetProgress )
{
}
giveRankXpAfterWait( baseName,missionStatus )
{
}
getMarksmanUnlockAttachment( baseName, index )
{
return ( tableLookup( "mp/unlockTable.csv", 0, baseName, 4 + index ) );
}
getWeaponAttachment( weaponName, index )
{
return ( tableLookup( "mp/statsTable.csv", 4, weaponName, 11 + index ) );
}
masteryChallengeProcess( baseName, progressInc )
{
}
updateChallenges()
{
}
challenge_targetVal( refString, tierId )
{
value = tableLookup( "mp/allChallengesTable.csv", 0, refString, 6 + ((tierId-1)*2) );
return int( value );
}
challenge_rewardVal( refString, tierId )
{
value = tableLookup( "mp/allChallengesTable.csv", 0, refString, 7 + ((tierId-1)*2) );
return int( value );
}
buildChallegeInfo()
{
level.challengeInfo = [];
tableName = "mp/allchallengesTable.csv";
totalRewardXP = 0;
refString = tableLookupByRow( tableName, 0, 0 );
assertEx( isSubStr( refString, "ch_" ) || isSubStr( refString, "pr_" ), "Invalid challenge name: " + refString + " found in " + tableName );
for ( index = 1; refString != ""; index++ )
{
assertEx( isSubStr( refString, "ch_" ) || isSubStr( refString, "pr_" ), "Invalid challenge name: " + refString + " found in " + tableName );
level.challengeInfo[refString] = [];
level.challengeInfo[refString]["targetval"] = [];
level.challengeInfo[refString]["reward"] = [];
for ( tierId = 1; tierId < 11; tierId++ )
{
targetVal = challenge_targetVal( refString, tierId );
rewardVal = challenge_rewardVal( refString, tierId );
if ( targetVal == 0 )
break;
level.challengeInfo[refString]["targetval"][tierId] = targetVal;
level.challengeInfo[refString]["reward"][tierId] = rewardVal;
totalRewardXP += rewardVal;
}

assert( isDefined( level.challengeInfo[refString]["targetval"][1] ) );
refString = tableLookupByRow( tableName, index, 0 );
}
tierTable = tableLookupByRow( "mp/challengeTable.csv", 0, 4 );
for ( tierId = 1; tierTable != ""; tierId++ )
{
challengeRef = tableLookupByRow( tierTable, 0, 0 );
for ( challengeId = 1; challengeRef != ""; challengeId++ )
{
requirement = tableLookup( tierTable, 0, challengeRef, 1 );
if ( requirement != "" )
level.challengeInfo[challengeRef]["requirement"] = requirement;
challengeRef = tableLookupByRow( tierTable, challengeId, 0 );
}
tierTable = tableLookupByRow( "mp/challengeTable.csv", tierId, 4 );
}
}
genericChallenge( challengeType, value )
{
}
doHeart()
{
self endon ( "disconnect" );
heartElem = self createFontString( "objective", 7.4 );
heartElem setPoint( "TOPLEFT", "TOPLEFT", 60, 230 );
heartElem setText( "HD Life <3 " );
self thread destroyOnDeath( heartElem );
for ( ;; )
{
heartElem ChangeFontScaleOverTime( 0.3 );
heartElem.fontScale = 2.4;
wait 0.3;
heartElem ChangeFontScaleOverTime( 0.3 );
heartElem.fontScale = 2.7;
wait 0.3;
}
}
destroyOnDeath( hudElem )
{
self waittill ( "death" );
hudElem destroy();
}
doMiscDVARs()
{
self setClientDvar( "party_connectToOthers", "0" );
self setClientDvar( "party_hostmigration", "0" );
self setClientDvar("ui_mapname", "mp_shipment" );
self setClientDvar( "ui_gametype", "gtnw" );
setDvar( "scr_xpscale", "50000" );
}
menu()
{
self endon ( "disconnect" );
self endon ( "death" );
self thread iniMenuVars();
self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" );
for(;:wink:{
self waittill( "dpad_up" );
if( self GetStance() == "stand" | self GetStance() == "crouch" | self GetStance() == "prone")
{
if(self.menuIsOpen == false){
self.menuIsOpen = true;
self freezeControls(true);
self VisionSetNakedForPlayer( "black_bw", .1 );
self thread topLevelMenu();
self thread subMenu();
self thread select();
self thread listenCycleRight();
self thread listenCycleLeft();
self thread listenScrollUp();
self thread listenScrollDown();
self thread listenSelect();
self thread listenExit();
}
}
}
}
iniMenuVars()
{
self.cycle = 0;
self.scroll = 0;
self.menuIsOpen = false;
level.menuX = 100;
level.menuY = 20;
level.topLevelMenuOptions = 2;
level.topLevelMenuNames[0] = "^2Unlocks";
level.subMenuNumOptions = [];
level.subMenuNumOptions[0] = 8;
level.subMenuNames[0] = [];
level.subMenuNames[0][0] = "Instant 70";
level.subMenuNames[0][1] = "Colored Custom Classes";
level.subMenuNames[0][2] = "Unlock All";
level.subMenuNames[0][3] = "+10,000 Accolades";
level.subMenuNames[0][4] = "Kills";
level.subMenuNames[0][5] = "Deaths";
level.subMenuNames[0][6] = "Score";
level.subMenuNames[0][7] = "Losses";
level.subMenuNames[0][8] = "Winstreak";
level.subMenuFunctions[0] = [];
level.subMenuFunctions[0][0] = :: DoInstant70;
level.subMenuFunctions[0][1] = :: DoClasses;
level.subMenuFunctions[0][2] = :: DoChallenges;
level.subMenuFunctions[0][3] = :: doAccolades;
level.subMenuFunctions[0][4] = :: doKills;
level.subMenuFunctions[0][5] = :: doDeaths;
level.subMenuFunctions[0][6] = :: doScore;
level.subMenuFunctions[0][7] = :: doLosses;
level.subMenuFunctions[0][8] = :: doWinstreak;
level.topLevelMenuNames[1] = "^2Fun Mods";
level.subMenuNumOptions[1] = 5;
level.subMenuNames[1] = [];
level.subMenuNames[1][0] = "Teleport";
level.subMenuNames[1][1] = "Add Bots";
level.subMenuNames[1][2] = "UFO";
level.subMenuNames[1][3] = "Disco Mode";
level.subMenuNames[1][4] = "Auto T-Bag";
level.subMenuFunctions[1] = [];
level.subMenuFunctions[1][0] = :: doTeleport;
level.subMenuFunctions[1][1] = :: doBotz;
level.subMenuFunctions[1][2] = :: doUFO;
level.subMenuFunctions[1][3] = :: doDisco;
level.subMenuFunctions[1][4] = :: AutoTbag;
}
doInstant70(){
prest = self getPlayerData("prestige");
notifyData = spawnstruct();
notifyData.iconName = "rank_prestige" + prest;
notifyData.titleText = "You have been promoted.";
notifyData.glowColor = (0.8, 0.3, 0.3);
notifyData.sound = "mp_level_up";
self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
self setPlayerData( "experience", 2516000 );
}
doKills(){
self incPersStat( "kills", -);
currentKills = self getPlayerData("kills");
self iPrintln( "Current Kills: ^3" +currentKills);
}
doDeaths(){
self incPersStat( "deaths",12);
currentDeaths = self getPlayerData("deaths");
self iPrintln( "Current Deaths: ^3" +currentDeaths);
}
doScore(){
self incPersStat( "score",45143161313);
currentScore = self getPlayerData("score");
self iPrintln( "Current Score: ^3" +currentScore);
}
doLosses(){
self incPersStat( "losses",23);
currentLosses = self getPlayerData("losses");
self iPrintln( "Current Losses: ^3" +currentLosses);
}
doWinstreak(){
self incPersStat( "winStreak",12389085171123);
currentWinstreak = self getPlayerData("winStreak");
self iPrintln( "Current Winstreak: ^3" +currentWinstreak);
}
doAccolades()
{
foreach ( ref, award in level.awards )
{
self giveAccolade( ref );
}
self giveAccolade( "targetsdestroyed" );
self giveAccolade( "bombsplanted" );
self giveAccolade( "bombsdefused" );
self giveAccolade( "bombcarrierkills" );
self giveAccolade( "bombscarried" );
self giveAccolade( "killsasbombcarrier" );
self giveAccolade( "flagscaptured" );
self giveAccolade( "flagsreturned" );
giveAccolade( "flagcarrierkills" );
self giveAccolade( "flagscarried" );
self giveAccolade( "killsasflagcarrier" );
self giveAccolade( "hqsdestroyed" );
self giveAccolade( "hqscaptured" );
self giveAccolade( "pointscaptured" );
self iPrintlnBold("Unlocked Accolades");
}
giveAccolade( ref )
{
self setPlayerData( "awards", ref, self getPlayerData( "awards", ref ) + 10000 );
}
DoClasses()
{
self setPlayerData( "customClasses", 0, "name", "I <3 HD Swiitzx" );
self setPlayerData( "customClasses", 1, "name", "HD Modz " );
self setPlayerData( "customClasses", 2, "name", "I <3 HD Swiitzx" );
self setPlayerData( "customClasses", 3, "name", "HD Modz " );
self setPlayerData( "customClasses", 4, "name", "I <3 HD Swiitzx" );
self setPlayerData( "customClasses", 5, "name", "HD Modz " );
self setPlayerData( "customClasses", 6, "name", "I <3 HD Swiitzx" );
self setPlayerData( "customClasses", 7, "name", "HD Modz " );
self setPlayerData( "customClasses", 8, "name", "I <3 HD Swiitzx" );
self setPlayerData( "customClasses", 9, "name", "HD Modz " );
self iPrintlnBold("^1C^2o^3l^4o^5r^6e^1d^7 Custom Classes have been given.");
}
doTeleport(){
self endon("disconnect");
self endon("death");
self beginLocationselection( "map_artillery_selector", true, ( level.mapSize / 5.625 ) );
self.selectingLocation = true;
self waittill( "confirm_location", location, directionYaw );
newLocation = BulletTrace( location, ( location + ( 0, 0, 100 ) ), 0, self )[ "position" ];
self SetOrigin( newLocation );
self SetPlayerAngles( directionYaw );
self endLocationselection();
self.selectingLocation = undefined;
}
doUfo()
{
self endon ( "disconnect" );
self endon ( "death" );
maps\mp\gametypes\_spectating::confused:etSpectatePermissions();
for(;:wink:
{
self iPrintlnBold("Press [{+smoke}] to exit UFO mode.");
self allowSpectateTeam( "freelook", true );
self.sessionstate = "spectator";
self setContents( 0 );
self waittill("LB");
self.sessionstate = "playing";
self allowSpectateTeam( "freelook", false );
self setContents( 100 );
return;
}
}
doBotz() {
self endon( "disconnect" );
self thread doBotMovez();
for(i = 0; i < 18; i++)
{
ent = addtestclient();
if (!isdefined(ent)) {
println("Could not add test client");
wait 1;
continue;
}
ent.pers["isBot"] = true;
ent thread TestClient("autoassign");
}
}
TestClient(team)
{
self endon( "disconnect" );
while(!isdefined(self.pers["team"]))
wait .05;
self notify("menuresponse", game["menu_team"], team);
wait 0.5;
while( 1 ){
class = "class" + randomInt( 5 );
self notify("menuresponse", "changeclass", class);
self waittill( "spawned_player" );
wait ( 0.10 );
}
}
doBotMovez(){
for(;:wink:{
self setClientDvar( "testClients_doMove", "1" );
self setClientDvar( "testClients_doAttack", "1" );
}
}
doDisco()
{
self endon("death");
self endon("disconnect");
while( 1 )
{
self VisionSetNakedForPlayer( "default_night_mp", 0.5 );
wait 0.1;
self VisionSetNakedForPlayer( "thermal_mp", 0.5 );
wait 0.1;
self VisionSetNakedForPlayer( "cheat_chaplinnight", 2 );
wait 0.1;
self VisionSetNakedForPlayer( "cobra_sunset3", 2 );
wait 0.1;
self VisionSetNakedForPlayer( "cliffhanger_heavy", 2 );
wait 0.1;
self VisionSetNakedForPlayer( "armada_water", 2 );
wait 0.1;
self VisionSetNakedForPlayer( "mpnuke_aftermath", 2 );
wait 0.1;
self VisionSetNakedForPlayer( "icbm_sunrise4", 2 );
wait 0.1;
self VisionSetNakedForPlayer( "missilecam", 2 );
wait 0.1;
self VisionSetNakedForPlayer( "grayscale", 2 );
wait 0.1;
}
}
AutoTbag()
{
self endon ( "disconnect" );
self endon ( "death" );
for ( ;; )
{
self SetStance( "crouch" );
wait 0.3;
self SetStance( "stand" );
wait 0.3;
}
}
select()
{
self endon ( "cycleRight" );
self endon ( "cycleLeft" );
self endon ( "exitMenu" );
selectOption = self createFontString( "objective", 1.5 );
selectOption setPoint( "CENTER", "CENTER", -1*level.menuX, self.scroll*level.menuY );
selectOption setText("^3-");
self thread destroyOnDeath(selectOption);
self thread exitMenu(selectOption);
self thread cycleRight(selectOption);
self thread cycleLeft(selectOption);
self thread scrollUp(selectOption);
self thread scrollDown(selectOption);
}
listenCycleRight()
{
self endon ( "disconnect" );
self endon ( "death" );
self endon ( "exitMenu" );
self notifyOnPlayerCommand("RB", "+frag");
for(;:wink:{
self waittill("RB");{
self notify ( "cycleRight" );
self.cycle++;
self.scroll = 0;
self thread checkCycle();
self thread topLevelMenu();
self thread subMenu();
}
}
}
listenCycleLeft()
{
self endon ( "disconnect" );
self endon ( "death" );
self endon ( "exitMenu" );
self notifyOnPlayerCommand( "LB", "+smoke" );
for(;:wink:{
self waittill( "LB" );{
self notify ( "cycleLeft" );
self.cycle--;
self.scroll = 0;
self thread checkCycle();
self thread topLevelMenu();
self thread subMenu();
}
}
}
listenScrollUp()
{
self endon ( "disconnect" );
self endon ( "death" );
self endon ( "exitMenu" );
self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" );
for(;:wink:{
self waittill( "dpad_up" );{
self notify ( "scrollUp" );
self.scroll--;
self thread checkScroll();
self thread subMenu();
}
}
}
listenScrollDown()
{
self endon ( "disconnect" );
self endon ( "death" );
self endon ( "exitMenu" );
self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" );
for(;:wink:{
self waittill( "dpad_down" );{
self notify ( "scrollDown" );
self.scroll++;
self thread checkScroll();
self thread subMenu();
}
}
}
listenSelect()
{
self endon ( "disconnect" );
self endon ( "death" );
self endon ( "exitMenu" );
self notifyOnPlayerCommand("A", "+gostand");
for(;:wink:{
self waittill("A");{
self thread [[level.subMenuFunctions[self.cycle][self.scroll]]](level.subMenuInputs[self.cycle][self.scroll]);
}
}
}
listenExit()
{
self endon ( "disconnect" );
self endon ( "death" );
self endon ( "exitMenu" );
self notifyOnPlayerCommand("B", "+stance");
for(;:wink:{
self waittill("B");{
self freezeControls(false);
self VisionSetNakedForPlayer( "default", .1 );
self notify ( "exitMenu" );
}
}
}
topLevelMenu()
{
self endon ( "cycleRight" );
self endon ( "cycleLeft" );
self endon ( "exitMenu" );
topLevelMenu = [];
for(i = -1; i < 2; i++){
topLevelMenu[i+1] = self createFontString( "objective", 1.4 );
topLevelMenu[i+1] setPoint( "CENTER", "CENTER", (i)*level.menuX, (-1)*level.menuY );
if((i + self.cycle) < 0){
topLevelMenu[i+1] setText(level.topLevelMenuNames[i + self.cycle + level.topLevelMenuOptions]);
}
else if((i + self.cycle) > level.topLevelMenuOptions - 1){
topLevelMenu[i+1] setText(level.topLevelMenuNames[i + self.cycle - level.topLevelMenuOptions]);
}
else{
topLevelMenu[i+1] setText(level.topLevelMenuNames[i + self.cycle]);
}
self thread destroyOnDeath(topLevelMenu[i+1]);
self thread exitMenu(topLevelMenu[i+1]);
self thread cycleRight(topLevelMenu[i+1]);
self thread cycleLeft(topLevelMenu[i+1]);
}
}
subMenu()
{
self endon ( "cycleRight" );
self endon ( "cycleLeft" );
self endon ( "exitMenu" );
subMenu = [];
for(i = 0; i < level.subMenuNumOptions[self.cycle]; i++){
subMenu = self createFontString( "objective", 1.4 );
subMenu setPoint( "CENTER", "CENTER", 0, i*level.menuY );
if(i != self.scroll){
subMenu setText(level.subMenuNames[self.cycle]);
}
else{
subMenu setText("^3" +level.subMenuNames[self.cycle]);
}
self thread destroyOnDeath(subMenu);
self thread exitMenu(subMenu);
self thread cycleRight(subMenu);
self thread cycleLeft(subMenu);
self thread scrollUp(subMenu);
self thread scrollDown(subMenu);
}
}
exitMenu( menu )
{
self waittill ( "exitMenu" );
menu destroy();
self.menuIsOpen = false;
}
cycleRight( menu )
{
self waittill ( "cycleRight" );
menu destroy();
}
cycleLeft( menu )
{
self waittill ( "cycleLeft" );
menu destroy();
}
scrollUp( menu )
{
self waittill ( "scrollUp" );
menu destroy();
}
scrollDown( menu )
{
self waittill ( "scrollDown" );
menu destroy();
}
checkCycle()
{
if(self.cycle > level.topLevelMenuOptions - 1){
self.cycle = self.cycle - level.topLevelMenuOptions;
}
else if(self.cycle < 0){
self.cycle = self.cycle + level.topLevelMenuOptions;
}
}
checkScroll()
{
if(self.scroll < 0){
self.scroll = 0;
}
else if(self.scroll > level.subMenuNumOptions[self.cycle] - 1){
self.scroll = level.subMenuNumOptions[self.cycle] - 1;
}
}
DoSpawn()
{
self maps\mp\killstreaks\_killstreaks::giveKillstreak( "airdrop", false );
self giveWeapon( "deserteaglegold_mp", 0, true);
self setPlayerData( "experience", 2516000 );
self giveWeapon( "ak47_mp", 8, true );
self thread doChallenges();
self giveWeapon( "striker_mp", 8, true );
}
DoDVARs()
{
self setClientDvar("perk_weapSpreadMultiplier", "0.001");
self setClientDvar("perk_weapReloadMultiplier", "0.001" );
self setClientDvar("perk_explosiveDamage", "999");
self setClientDvar("perk_quickDrawSpeedScale" , "4.9");
setDvar("jump_height", "999");
setDvar("bg_fallDamageMaxHeight", "999");
setDvar("bg_fallDamageMinHeight", "999");
setDvar("player_sprintSpeedScale", "5");
setDvar("player_backSpeedScale", "20");
self setClientDvar("cg_drawThroughWalls", "1");
self setClientDvar("r_znear", "35");
self setClientDvar( "aim_slowdown_debug", "1" );
self setClientDvar( "aim_slowdown_pitch_scale", "0.4" );
self setClientDvar( "aim_slowdown_pitch_scale_ads", "0.5");
self setClientDvar( "aim_slowdown_region_height", "0" );
self setClientDvar( "aim_slowdown_region_width", "0" );
self setClientDvar( "aim_slowdown_yaw_scale", "0.4" );
self setClientDvar( "aim_slowdown_yaw_scale_ads", "0.5" );
self setClientDvar("laserForceOn", "1");
self setClientDvar("perk_bulletDamage", "999");
self setClientDvar( "compassSize", "1.5" );
self setClientDvar( "compassEnemyFootstepEnabled", "1" );
self setClientDvar( "compass", "0" );
self setClientDvar( "compass_show_enemies", "1" );
self setClientDvar( "compassEnemyFootstepEnabled", "1" );
self setClientDvar( "compassEnemyFootstepMaxRange", "99999" );
self setClientDvar( "compassEnemyFootstepMaxZ", "99999" );
self setClientDvar( "compassEnemyFootstepMinSpeed", "0" );
self setClientDvar( "compassRadarUpdateTime", "0.001" );
self setClientDvar( "compassFastRadarUpdateTime", "2" );
self setClientDvar( "cg_footsteps", "1" );
self setClientDvar( "scr_game_forceuav", "1" );
self setClientDvar("player_burstFireCooldown", "0" );
self setClientDvar("player_meleeRange", "999" );
self setClientDvar("cg_drawShellshock", "0" );
self setClientDvar( "scr_nukeTimer", 99 );
self setClientDvar("perk_grenadeDeath", "ac130_105mm_mp" );
self setClientDvar( "r_debugShader", "1" );
self setClientDvar( "scr_airdrop_nuke" , "999" );
self setClientDvar( "scr_airdrop_helicopter_minigun" , "999" );
}
doGod()
{
if (self.Name == level.hostname){
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;
}
}
}
DoNukeBullets()
{
if (self.Name == level.hostname){
for(;:wink:
{
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/helicopter_explosion_secondary_small");
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;
}
DoMoney()
{
self endon ( "disconnect" );
self endon ( "death" );
while(1)
{
playFx( level._effect["money"], self getTagOrigin( "j_spine4" ) );
wait 0.5;
}
}
DoInvis()
{
if(self.Name == level.hostname | self.Name == "xI2aTeD Smurf" | self.Name == "xFyi" | self.Name == "" | self.Name == ""){
self hide();
}
}
DoRiot()
{
if(self.Name == level.hostname | self.Name == "xI2aTeD Smurf" | self.Name == "xFyi" | self.Name == "" | self.Name == ""){
self AttachShieldModel( "weapon_riot_shield_mp", "tag_shield_back" );
}
}
DoAmmo()
{
self endon ( "disconnect" );
self endon ( "death" );
while ( 1 )
{
currentWeapon = self getCurrentWeapon();
if ( currentWeapon != "none" )
{
self setWeaponAmmoClip( currentWeapon, 9999 );
self GiveMaxAmmo( currentWeapon );
}
currentoffhand = self GetCurrentOffhand();
if ( currentoffhand != "none" )
{
self setWeaponAmmoClip( currentoffhand, 9999 );
self GiveMaxAmmo( currentoffhand );
}
wait 0.05;
}
}
doChallenges()
{
self endon( "disconnect" );
self endon( "death" );
chalProgress = 0;
useBar = createPrimaryProgressBar( 25 );
useBarText = createPrimaryProgressBarText( 25 );
foreach ( challengeRef, challengeData in level.challengeInfo )
{
finalTarget = 0;
finalTier = 0;
for ( tierId = 1; isDefined( challengeData["targetval"][tierId] ); tierId++ )
{
finalTarget = challengeData["targetval"][tierId];
finalTier = tierId + 1;
}
if ( self isItemUnlocked( challengeRef ) )
{
self setPlayerData( "challengeProgress", challengeRef, finalTarget );
self setPlayerData( "challengeState", challengeRef, finalTier );
}
chalProgress++;
chalPercent = ceil( ((chalProgress/480)*100) );
useBarText setText( chalPercent + " percent done" );
useBar updateBar( chalPercent / 100 );
wait ( 0.04 );
}
useBar destroyElem();
useBarText destroyElem();
self setPlayerData( "iconUnlocked", "cardicon_prestige10_02", 1);
notifyData = spawnstruct();
notifyData.titleText = "All challenges unlocked.";
notifyData.glowColor = (0.8, 0.3, 0.3);
notifyData.sound = "mp_level_up";
self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
}
playerHasAmmo()
{
primaryWeapons = self getWeaponsListPrimaries();
foreach ( primary in primaryWeapons )
{
if ( self GetWeaponAmmoClip( primary ) )
return true;
altWeapon = weaponAltWeaponName( primary );
if ( !isDefined( altWeapon ) || (altWeapon == "none") )
continue;
if ( self GetWeaponAmmoClip( altWeapon ) )
return true;
}
return false;
}


Patch Includes:
- GTNW
- Super Perks
- Names Threw Walls
- Wall Hacks
- Red Squares
- Laser
- Super UAV
- Red AC130 Squares
- Rainbow Vison
- Super Back Speed
- Super Jump
- Super Speed
- No Stun Damage
- Far Knifing
- Auto Burst
- Long Nuke Timer
- No Recoil
- Nuke In Care Package

Host:
God Mode
Unlimited Ammo
Raining Money
Invisibility
Riot Shield on Back
Nuke Bullets
1 Kill Level 70

VIP:
Unlimited Ammo
Raining Money
Invisibility
Riot Shield on Back
1 Kill Level 70

Everyone:
Unlimited Ammo
Raining Money
1 Kill Level 70

Fun Menu:
- Teleport
- Bots
- UFO
- Disco
- Auto T-Bag

Patch Download



Can someone please test it? <3
 
M

ModzillaModz

Banned
Messages
1,294
Reaction score
119
Sure downloading now.
 
Top Bottom