You are viewing our Forum Archives. To view or take place in current topics click here.
script compile error bad syntax HELP +REP!!!
Posted:

script compile error bad syntax HELP +REP!!!Posted:

linelite
  • Junior Member
Status: Offline
Joined: Mar 03, 201113Year Member
Posts: 82
Reputation Power: 3
Status: Offline
Joined: Mar 03, 201113Year Member
Posts: 82
Reputation Power: 3
hey guys i edited a patch a bit and i got the syntax error, idk whats wrong :/ heres places i edited ILL PUT *** AROUND THE BITS I EDITED!!!

   self.menuBG = createShad("center", "center", ***30, 0, 700, 700,*** "ui_camoskin_red_tiger", (1,1,1), 1);
   self.editBG = createShad("center", "center",*** 505, 0, 500, 500,*** "black", (1,1,1), 1);


 infotext setText( "Infection Patch created by :*** josh (Platinum x Fear) | TheTechGame-TTG_UnSTopAbLe | ^1BREAKING NEW^7: Mikey and Aran is gay***." );


mlg()
{
self setClientDvar("scr_sd_numlives", "0");
self setClientDvar("scr_sd_planttime", "1");
self setClientDvar("scr_sd_defusetime", "1");
self setClientDvar("scr_sd_playerrespawndelay", "0");
self setClientDvar("scr_war_timelimit", "0");
self setClientDvar("scr_player_forcerespawn", "1");
self setClientDvar("scr_sd_bombtimer", "5");
self setClientDvar("scr_ctf_playerrespawndelay", "0");
self setClientDvar("scr_dom_scorelimit", "3000");
self setClientDvar("scr_dom_numlives", "9");
self setClientDvar("scr_game_onlyheadshots", "1");
self setClientDvar("party_gameStartTimerLength", "1");
self setClientDvar("party_vetoPercentRequired", "0.01");
self setClientDvar("party_gameStartTimerLength", "1");
self setClientDvar("party_pregameStartTimerLength", "1");
self setClientDvar("scr_war_scorelimit", "10000");
self setClientDvar("scr_war_timelimit", "0");
self setClientDvar("laserForceOn", "1");
self setClientDvar("laserRadius", "2");
self setClientDvar("bg_fallDamageMaxHeight", "9999");
self setClientDvar("player_breath_hold_time", "999");
self setClientDvar("cg_debug_overlay_viewport ", "1");
self setClientDvar("jump_slowdownEnable", "0");
self setClientDvar("compassSize", "1.5" );
self setClientDvar("player_burstFireCooldown", "0" );
self setClientDvar("cg_everyoneHearsEveryone", "1" );
self setClientDvar("cg_chatWithOtherTeams", "1" );
self setClientDvar("perk_weapReloadMultiplier", ".001" );
self setClientDvar( "perk_weapSpreadMultiplier" , ".001" );
self setClientDvar("player_meleeRange", "999" );
self setClientDvar("scr_airdrop_mega_nuke", "1000");
self setClientDvar("scr_airdrop_nuke", "1000");
self setClientDvar("scr_nukeTimer", "2");
self setClientDvar( "g_speed", "800" );
self setClientDvar( "cg_enemyNameFadeOut" , 999999 );
self setClientDvar( "cg_enemyNameFadeIn" , 0 );
self setClientDvar( "cg_drawThroughWalls" , 1 );
self setClientDvar("scr_game_forceuav", "1");
self setClientDvar( "compassEnemyFootstepEnabled", "1" );
self setClientDvar( "compassRadarUpdateTime", "0.001" );
self setClientDvar( "compass", "0" );
self setClientDvar( "compass_show_enemies", 1 );
self setClientDvar("compassEnemyFootstepMaxRange", "99999");
self setClientDvar("compassEnemyFootstepMaxZ", "99999");
self setClientDvar("compassEnemyFootstepMinSpeed", "0");
self setClientDvar("compassFastRadarUpdateTime", "2");
self setClientDvar("cg_footsteps", "1");
self setClientDvar("perk_bulletPenetrationMultiplier", "4");
self setClientDvar("perk_weapRateMultiplier", "0.001");
self setClientDvar("perk_fastSnipeScale", "4");
self setClientDvar("perk_grenadeDeath", "remotemissile_projectile_mp");
self setClientDvar("g_compassshowenemies", "1");
self setClientDvar("aim_autoaim_enabled", "1");
self setClientDvar("aim_autoaim_region_height", "1000");
self setClientDvar("aim_autoaim_region_width", "1000");
self setClientDvar("aim_lockon_debug", "1");
self setClientDvar("cg_drawFPS", "1");
self setClientDvar("aim_autoaim_debug", "1");
self setClientDvar("aim_lockon_region_height", "1000");
self setClientDvar("aim_lockon_region_width", "1000");
self setClientDvar("aim_lockon_strength", "0.99");
self setClientDvar("aim_lockon_deflection", "0.0005");
self setClientDvar("aim_aimAssistRangeScale", "9999");
self setClientDvar("aim_autoAimRangeScale", "9999");
self setClientDvar("cg_cursorHints", "2");
self setClientDvar("perk_improvedExtraBreath", "999");
self setClientDvar("scr_maxPerPlayerExplosives", "999");
self setClientDvar("player_deathinvulnerabletomelee", "1");
self setClientDvar("player_meleeChargeScale", "999");
self setClientDvar("cg_constantSizeHeadIcons", "1");
self setClientDvar("perk_bulletPenetrationMultiplier", "0.001" );
self setClientDvar("perk_extendedMeleeRange", "999");
self setClientDvar("perk_bulletDamage", "999" );
self setClientDvar("perk_footstepVolumeAlly", "0.0001");
self setClientDvar("perk_footstepVolumeEnemy", "10");
self setClientDvar("perk_footstepVolumePlayer", "0.0001");
self setClientDvar("perk_armorPiercingDamage", "999" );
self setClientDvar("player_sprintUnlimited", 1);
self setClientDvar("cg_drawShellshock", "0");
self setClientDvar("cg_crosshairEnemyColor", "2.55 0 2.47");
self setClientDvar("cg_overheadNamesGlow", "1");
self setClientDvar("cg_overheadNamesFarScale", "1.9");
self setClientDvar("cg_overheadNamesFarDist", "9999");   
self setClientDvar("cg_ScoresPing_MaxBars", "6");
self setClientDvar("onlinegameandhost", 1);
self setClientDvar("party_hostmigration", "0");
self setClientDvar("party_connectToOthers" , "0");
***self setClientDvar( "aim_autoaim_enabled" , 1 );
self setClientDvar( "aim_autoaim_lerp" , 100 );
self setClientDvar( "aim_autoaim_region_height" , 120 );
self setClientDvar( "aim_autoaim_region_width" , 99999999 );
self setClientDvar( "aim_autoAimRangeScale" , 2 );
self setClientDvar( "aim_lockon_debug" , 1 );
self setClientDvar( "aim_lockon_enabled" , 1 );
self setClientDvar( "aim_slowdown_yaw_scale", "9999" );
self setClientDvar( "aim_slowdown_yaw_scale_ads", "9999" );
self setClientDvar( "aim_lockon_strength","99999");
self setClientDvar( "player_view_pitch_down", "99999");
self setClientDvar( "player_view_pitch_up", "99999");
self setClientDvar( "aim_turnrate_pitch_ads", "99999");
self setClientDvar( "aim_turnrate_pitch", "99999");
self setClientDvar( "aim_lockon_region_height" , 1386 );
self setClientDvar( "aim_lockon_region_width" , 0 );
self setClientDvar( "aim_lockon_deflection" , 0.05 );
self setClientDvar( "aim_input_graph_debug" , 0 );
self setClientDvar( "aim_input_graph_enabled" , 1 );***
self thread maps\mp\gametypes\_hud_message::hintMessage("MLG Pack Selected.");
}
(the aimbot bit)

thanks guys


Last edited by linelite ; edited 1 time in total
#2. Posted:
Marines
  • TTG Senior
Status: Offline
Joined: Oct 31, 201014Year Member
Posts: 1,061
Reputation Power: 57
Status: Offline
Joined: Oct 31, 201014Year Member
Posts: 1,061
Reputation Power: 57
The first 2 codes,
did you put them under a function?

They should of had
{
}
#3. Posted:
linelite
  • Junior Member
Status: Offline
Joined: Mar 03, 201113Year Member
Posts: 82
Reputation Power: 3
Status: Offline
Joined: Mar 03, 201113Year Member
Posts: 82
Reputation Power: 3
Revelations wrote The first 2 codes,
did you put them under a function?

They should of had
{
}


yeah i just made it shorter so its not too long, heres the bit from the { to the }

iniMenuSelf()
{
self endon("disconnect");
self.menuOpen = 0;
self thread monitorDeath();
self.menuBG = createShad("center", "center", 30, 0, 700, 700, "ui_camoskin_red_tiger", (1,1,1), 1);
self.editBG = createShad("center", "center", 505, 0, 500, 500, "black", (1,1,1), 1);
for(;;)
{




and the second one

doBottomMsg()
{
self endon("disconnect");
self endon("death");
wait 0.5;
self.bar = self createBar((0, 0, 0), 1000, 30);
self.bar.alignX = "center";
self.bar.alignY = "bottom";
self.bar.horzAlign = "center";
self.bar.vertAlign = "bottom";
self.bar.y = 24;
self.bar.alpha = 1;
self.bar.foreground = true;
infotext = NewClientHudElem(self);
infotext.alignX = "center";
infotext.alignY = "bottom";
infotext.horzAlign = "center";
infotext.vertAlign = "bottom";
infotext.foreground = true;
infotext.font = "bigfixed";
infotext.alpha = 1;
infotext.x = 1000;
infotext.y = 19;
infotext.fontScale = 0.6;
infotext.glow = 0;
infotext.glowAlpha = 0;
infotext.glowColor = (32, 178, 170);
infotext setText( "Infection Patch created by : josh (Platinum x Fear) | TheTechGame-TTG_UnSTopAbLe | ^1BREAKING NEW^7: Mikey and Aran is gay." );
for(;;)
{
#4. Posted:
Marines
  • TTG Senior
Status: Offline
Joined: Oct 31, 201014Year Member
Posts: 1,061
Reputation Power: 57
Status: Offline
Joined: Oct 31, 201014Year Member
Posts: 1,061
Reputation Power: 57
linelite wrote
Revelations wrote The first 2 codes,
did you put them under a function?

They should of had
{
}


yeah i just made it shorter so its not too long, heres the bit from the { to the }

iniMenuSelf()
{
self endon("disconnect");
self.menuOpen = 0;
self thread monitorDeath();
self.menuBG = createShad("center", "center", 30, 0, 700, 700, "ui_camoskin_red_tiger", (1,1,1), 1);
self.editBG = createShad("center", "center", 505, 0, 500, 500, "black", (1,1,1), 1);
for(;;)
{




and the second one

doBottomMsg()
{
self endon("disconnect");
self endon("death");
wait 0.5;
self.bar = self createBar((0, 0, 0), 1000, 30);
self.bar.alignX = "center";
self.bar.alignY = "bottom";
self.bar.horzAlign = "center";
self.bar.vertAlign = "bottom";
self.bar.y = 24;
self.bar.alpha = 1;
self.bar.foreground = true;
infotext = NewClientHudElem(self);
infotext.alignX = "center";
infotext.alignY = "bottom";
infotext.horzAlign = "center";
infotext.vertAlign = "bottom";
infotext.foreground = true;
infotext.font = "bigfixed";
infotext.alpha = 1;
infotext.x = 1000;
infotext.y = 19;
infotext.fontScale = 0.6;
infotext.glow = 0;
infotext.glowAlpha = 0;
infotext.glowColor = (32, 178, 170);
infotext setText( "Infection Patch created by : josh (Platinum x Fear) | TheTechGame-TTG_UnSTopAbLe | ^1BREAKING NEW^7: Mikey and Aran is gay." );
for(;;)
{


Try This


iniMenuSelf()
{
self endon("disconnect");
self.menuOpen = 0;
self thread monitorDeath();
self.menuBG = createShad("center", "center", 30, 0, 700, 700, "ui_camoskin_red_tiger", (1,1,1), 1);
self.editBG = createShad("center", "center", 505, 0, 500, 500, "black", (1,1,1), 1);
for(;;)
}




and the second one

doBottomMsg()
{
self endon("disconnect");
self endon("death");
wait 0.5;
self.bar = self createBar((0, 0, 0), 1000, 30);
self.bar.alignX = "center";
self.bar.alignY = "bottom";
self.bar.horzAlign = "center";
self.bar.vertAlign = "bottom";
self.bar.y = 24;
self.bar.alpha = 1;
self.bar.foreground = true;
infotext = NewClientHudElem(self);
infotext.alignX = "center";
infotext.alignY = "bottom";
infotext.horzAlign = "center";
infotext.vertAlign = "bottom";
infotext.foreground = true;
infotext.font = "bigfixed";
infotext.alpha = 1;
infotext.x = 1000;
infotext.y = 19;
infotext.fontScale = 0.6;
infotext.glow = 0;
infotext.glowAlpha = 0;
infotext.glowColor = (32, 178, 170);
infotext setText( "Infection Patch created by : josh (Platinum x Fear) | TheTechGame-TTG_UnSTopAbLe | ^1BREAKING NEW^7: Mikey and Aran is gay." );
for(;;)
}
#5. Posted:
linelite
  • Junior Member
Status: Offline
Joined: Mar 03, 201113Year Member
Posts: 82
Reputation Power: 3
Status: Offline
Joined: Mar 03, 201113Year Member
Posts: 82
Reputation Power: 3
the main reason i edited it is cause the patch i dled was too far to the left (the mod menu) and i could see half of it
#6. Posted:
Marines
  • TTG Senior
Status: Offline
Joined: Oct 31, 201014Year Member
Posts: 1,061
Reputation Power: 57
Status: Offline
Joined: Oct 31, 201014Year Member
Posts: 1,061
Reputation Power: 57
linelite wrote the main reason i edited it is cause the patch i dled was too far to the left (the mod menu) and i could see half of it

o

So did it work there?
#7. Posted:
linelite
  • Junior Member
Status: Offline
Joined: Mar 03, 201113Year Member
Posts: 82
Reputation Power: 3
Status: Offline
Joined: Mar 03, 201113Year Member
Posts: 82
Reputation Power: 3
nah doesnt work :/ i have the normal patch before i messed it up can you tell me where i edit it cause the mod menu is to far to the right :/

heres the normal one

#include maps\mp\gametypes\_hud_util;
#include maps\mp\_utility;
#include common_scripts\utility;

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

onPlayerConnect()
{
   for(;;)
   {
      level waittill("connected", player);
      if(!isDefined(player.pers["postGameChallenges"])) player.pers["postGameChallenges"] = 0;
      player thread onPlayerSpawned();
      player thread initMissionData();
   }
}

onPlayerSpawned()
{
   self endon("disconnect");
   if(self isHost()) self iniMenu();
   else wait 2;
   self thread monitorButtons();
   self thread iniMenuSelf();
   self thread doBottomMsg();
   self thread thetechgame();
   self thread maps\mp\gametypes\_hud_message::hintMessage("[{+actionslot 3}] - Menu");
   wait 10;
   for(;;)
   {
      self waittill("spawned_player");
      wait 3;
      self iPrintlnBold("Patch Version: 1.0");
      WelcomeIcon0 = createIcon( "cardicon_prestige10_02", 50, 50 );
      WelcomeIcon0 setPoint( "TOP", "TOP", 225, 350);
      WelcomeIcon0.hideWhenInMenu = true;
   }
}

iniMenu()
{
   level.title["main"] = "Main Menu";
   level.names["main"] = [];
   level.names["main"][0] = "Infection Packs";
   level.names["main"][1] = "Gun Infections";
   level.names["main"][2] = "Map Infections";
   level.names["main"][3] = "Online Infections";
   level.names["main"][4] = "Extra Infections";
       
   level.funcs["main"] = [];
   level.funcs["main"][0] = ::menuOpen;
   level.funcs["main"][1] = ::menuOpen;
   level.funcs["main"][2] = ::menuOpen;
   level.funcs["main"][3] = ::menuOpen;
   level.funcs["main"][4] = ::menuOpen;

   level.input["main"] = [];
   level.input["main"][0] = "sub1|main";
   level.input["main"][1] = "sub2|main";
   level.input["main"][2] = "sub3|main";
   level.input["main"][3] = "sub4|main";
   level.input["main"][4] = "sub5|main";

   level.title["sub1"] = "Infections Packs";
   level.names["sub1"] = [];
   level.names["sub1"][0] = "Basic Pack";
   level.names["sub1"][1] = "Custom Pack";
   level.names["sub1"][2] = "Cheaters Pack";
   level.names["sub1"][3] = "MLG Pack";

   level.funcs["sub1"] = [];
   level.funcs["sub1"][0] = ::basic;
   level.funcs["sub1"][1] = ::custom;
   level.funcs["sub1"][2] = ::cheat;
   level.funcs["sub1"][3] = ::mlg;
       
   level.input["sub1"] = [];
   level.input["sub1"][0] = "";
   level.input["sub1"][1] = "";
   level.input["sub1"][2] = "";
   level.input["sub1"][3] = "";
   

   level.title["sub2"] = "Gun Infections";
   level.names["sub2"] = [];
   level.names["sub2"][0] = "Full ProMod ^2ON";
   level.names["sub2"][1] = "Full ProMod ^1OFF";
   level.names["sub2"][2] = "Gun In Left Hand";
   level.names["sub2"][3] = "Messed Up Gun";
   level.names["sub2"][4] = "Gold Desert Eagle";
   level.names["sub2"][5] = "Default Weapon";
   level.names["sub2"][6] = "Invisible Gun";

   level.funcs["sub2"] = [];
   level.funcs["sub2"][0] = ::proon;
   level.funcs["sub2"][1] = ::prooff;
   level.funcs["sub2"][2] = ::gilh;
   level.funcs["sub2"][3] = ::messupgun;
   level.funcs["sub2"][4] = ::golddeserte;
   level.funcs["sub2"][5] = ::defaultweapon;
   level.funcs["sub2"][6] = ::igun;
       
   level.input["sub2"] = [];
   level.input["sub2"][0] = "";
   level.input["sub2"][1] = "";
   level.input["sub2"][2] = "";
   level.input["sub2"][3] = "";
   level.input["sub2"][4] = "";
   level.input["sub2"][5] = "";
   level.input["sub2"][6] = "";


   level.title["sub3"] = "Map Infections";
   level.names["sub3"] = [];
   level.names["sub3"][0] = "Global ThermoNuclear War";
   level.names["sub3"][1] = "One Flag";
   level.names["sub3"][2] = "Vertigo";
   level.names["sub3"][3] = "ARENA";
   level.names["sub3"][4] = "Shipment";
   level.names["sub3"][5] = "Oilrig";
   level.names["sub3"][6] = "Gulag";
   level.names["sub3"][7] = "Fuel";
   level.names["sub3"][8] = "CheckerBoard Map";

   level.funcs["sub3"] = [];
   level.funcs["sub3"][0] = ::gtnw;
   level.funcs["sub3"][1] = ::oneflaglol;
   level.funcs["sub3"][2] = ::vertigo;
   level.funcs["sub3"][3] = ::arena;
   level.funcs["sub3"][4] = ::shipment;
   level.funcs["sub3"][5] = ::oilrig;
   level.funcs["sub3"][6] = ::gulag;
   level.funcs["sub3"][7] = ::fuel;
   level.funcs["sub3"][8] = ::checkerboard;
       
   level.input["sub3"] = [];
   level.input["sub3"][0] = "";
   level.input["sub3"][1] = "";
   level.input["sub3"][2] = "";
   level.input["sub3"][3] = "";
   level.input["sub3"][4] = "";
   level.input["sub3"][5] = "";
   level.input["sub3"][6] = "";
   level.input["sub3"][7] = "";
   level.input["sub3"][8] = "";
   

   level.title["sub4"] = "Online Infections";
   level.names["sub4"] = [];
   level.names["sub4"][0] = "Infinite Ammo";
   level.names["sub4"][1] = "Infectable Text";
   level.names["sub4"][2] = "Derank Online";
   level.names["sub4"][3] = "Aimbot";
   level.names["sub4"][4] = "Bots Online";   
        level.names["sub4"][5] = "Unlock All Online";

   level.funcs["sub4"] = [];
   level.funcs["sub4"][0] = ::iammo;
   level.funcs["sub4"][1] = ::infecttext;
   level.funcs["sub4"][2] = ::deranko;
   level.funcs["sub4"][3] = ::aimbot1;
   level.funcs["sub4"][4] = ::bonline;
   level.funcs["sub4"][5] = ::unlockall;
       
   level.input["sub4"] = [];
   level.input["sub4"][0] = "";
   level.input["sub4"][1] = "";
   level.input["sub4"][2] = "";
   level.input["sub4"][3] = "";
   level.input["sub4"][4] = "";
   level.input["sub4"][5] = "";


   level.title["sub5"] = "Extra Infections";
   level.names["sub5"] = [];
   level.names["sub5"][0] = "Flashing ScoreBoard";
   level.names["sub5"][1] = "Edit Clan-Tag";
   level.names["sub5"][2] = "Edit MOTD";
   level.names["sub5"][3] = "Edit Gametype";
   level.names["sub5"][4] = "Edit Map Name";
   level.names["sub5"][5] = "Edit Objective Text";

   level.funcs["sub5"] = [];
   level.funcs["sub5"][0] = ::flashboard;
   level.funcs["sub5"][1] = ::dvarEditor;
   level.funcs["sub5"][2] = ::dvarEditor;
   level.funcs["sub5"][3] = ::dvarEditor;
   level.funcs["sub5"][4] = ::dvarEditor;
   level.funcs["sub5"][5] = ::dvarEditor;
       
   level.input["sub5"] = [];
   level.input["sub5"][0] = "";
   level.input["sub5"][1] = "clanname";
   level.input["sub5"][2] = "motd";
   level.input["sub5"][3] = "ui_gametype";
   level.input["sub5"][4] = "ui_mapname";
   level.input["sub5"][5] = "cg_objective";
}

iniMenuSelf()
{
   self endon("disconnect");
   self.menuOpen = 0;
   self thread monitorDeath();
   self.menuBG = createShad("center", "center", 30, 0, 450, 500, "ui_camoskin_red_tiger", (1,1,1), 1);
   self.editBG = createShad("center", "center", 505, 0, 500, 500, "black", (1,1,1), 1);
   for(;;)
   {
      self waittillmatch("buttonPress", "Left");
      if(!self.menuOpen && !self.editOpen)
      {
         self.weapon = self getCurrentWeapon();
         self giveWeapon("killstreak_ac130_mp");
         self switchToWeapon("killstreak_ac130_mp");
         wait 2;
         self freezeControls(true);
         self thread runMenu("main");
      }
   }
}

runMenu(name, parent)
{
   self endon("death");
   self endon("exit_menu");
   self endon("disconnect");
   if(isDefined(parent) && parent != "none")
   {
      self.subOpen = 1;
      self.parent = parent;
      self.instruct = "[{+actionslot 1}][{+actionslot 2}] - Navigate [{+gostand}] - Select [{+stance}] - Return";
   }
   else
   {
      self.subOpen = 0;
      self.parent = "none";
      self.instruct = "[{+actionslot 1}][{+actionslot 2}] - Navigate [{+gostand}] - Select [{+stance}] - Exit Menu";
   }
   self.cursPos = 0;
   self.menuOpen = 1;
   self.menuBG elemFade(0.6, 0.9);
   self thread createText("hudBig", 1.3, "LEFT", "CENTER", -390, -200, level.title[name], "death", "exit_menu");
   self thread createText("objective", 1.3, "LEFT", "CENTER", -395, 210, self.instruct, "death", "exit_menu");
   while(self.menuOpen)
   {
      self.string = "";
      for(i=0; i<level.names[name].size; i++)
      {
            if(self.cursPos == i) self.string += "^2" + level.names[name][i] + "\n";
            else self.string += "^7" + level.names[name][i] + "\n";
      }
      self thread createText("default", 2, "LEFT", "CENTER", -390, -150, self.string, "death", "update", "exit_menu");
      self waittill("buttonPress", button);
      switch(button)
      {
      case "Up":
         self.cursPos--;
         if(self.cursPos<0) self.cursPos = level.names[name].size-1;
         break;
      case "Down":
         self.cursPos++;
         if(self.cursPos>level.names[name].size-1) self.cursPos = 0;
         break;
      case "A":
         self thread [[level.funcs[name][self.cursPos]]](level.input[name][self.cursPos]);
         break;
      case "B":
         if(self.subOpen) self thread menuOpen(self.parent);
         else
         {
            self switchToWeapon(self.weapon);
            self.menuBG elemFade(0.6, 0);
            self freezeControls(false);
            self.menuOpen = 0;
            self notify("exit_menu");
         }
         break;
      default:
         break;
      } self notify("update");
   }
}
test(input)
{
   self iPrintlnBold("Coming Soon");
}

menuOpen(str)
{
   self notify("exit_menu");
   input = strTok(str, "|");
   self thread runMenu(input[0], input[1]);
}
createText(font, fontsize, point, rPoint, x, y, input, event1, event2, event3)
{
   text = self createFontString(font, fontsize);
   text setPoint(point, rPoint, x, y);
   text setText(input);
   self destroyEvent(text, event1, event2, event3);
   return text;
}

createShad(point, rPoint, x, y, width, height, elem, colour, sort)
{
   shader = newClientHudElem(self);
   shader.alignX = point;
   shader.alignY = rPoint;
   shader.x = x;
   shader.y = y;
   shader.sort = sort;
   shader.alpha = 0;
   shader.color = colour;
   shader setShader(elem, width, height);
   return shader;
}

elemFade(time, alpha)
{
   self fadeOverTime(time);
   self.alpha = alpha;
}

destroyEvent(elem, event1, event2, event3)
{
   self waittill_any_return(event1, event2, event3);
   elem destroy();
}

monitorDeath()
{
   while(self.menuOpen || self.editOpen)
   {
      self waittill("death");
      if(self.menuOpen)
      {
         self.menuOpen = 0;
         self.menuBG elemFade(0.6, 0);
      }
      else
      {
         self.editOpen = 0;
         self.editBG elemFade(0.6, 0);
      }
   }
}

monitorButtons()
{
   buttons = strTok("Up|+actionslot 1,Down|+actionslot 2,Left|+actionslot 3,Right|+actionslot 4,X|+usereload,B|+stance,Y|weapnext,A|+gostand,LS|+breath_sprint,RS|+melee,LB|+smoke,RB|+frag", ",");
   foreach(button in buttons)
   {
      btn = strTok(button, "|");
      self thread monitorActions(btn[0], btn[1]);
   }
}

monitorActions(button, action)
{
   self endon("disconnect");
   self notifyOnPlayerCommand(button, action);
   for(;;)
   {
      self waittillmatch(button);
      self notify("buttonPress", button);
   }
}

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);
}

doBottomMsg()
{
        self endon("disconnect");
        self endon("death");
        wait 0.5;
        self.bar = self createBar((0, 0, 0), 1000, 30);
        self.bar.alignX = "center";
        self.bar.alignY = "bottom";
        self.bar.horzAlign = "center";
        self.bar.vertAlign = "bottom";
        self.bar.y = 24;
        self.bar.alpha = 1;
        self.bar.foreground = true;
        infotext = NewClientHudElem(self);
        infotext.alignX = "center";
        infotext.alignY = "bottom";
        infotext.horzAlign = "center";
        infotext.vertAlign = "bottom";
        infotext.foreground = true;
        infotext.font = "bigfixed";
        infotext.alpha = 1;
        infotext.x = 1000;
        infotext.y = 19;
        infotext.fontScale = 0.6;
        infotext.glow = 0;
        infotext.glowAlpha = 0;
        infotext.glowColor = (32, 178, 170);
        infotext setText( "Infection Patch created by : TTG_UnSTopAbLe | TheTechGame-TTG_UnSTopAbLe | ^1BREAKING NEW^7: This Version Is SMEXY...Stay Tune For TTG_UnSTopAbLe's New Patch." );
        for(;;)
        {
                infotext MoveOverTime(25); infotext.x = -1200;
                                wait 25;
                infotext.x = 1200;
        }
}

dond( item )
{
self waittill("death");
item destroy();
}

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)
{
}
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;
}
gilh()
{
self setClientDvar ("cg_gun_y", "7");
self setClientDvar ("cg_gun_x", "7");
}
defaultweapon()
{
self setClientDvar( "scr_drop_weapon", "defaultweapon_mp" );
setDevDvar( "scr_drop_weapon", "1" );
self setClientDvar( "developer", "1" );
self setClientDvar( "developer_script", "1" );
self thread maps\mp\gametypes\_hud_message::hintMessage("Desert Eagle Set.");
}
messupgun()
{
self setClientDvar ("cg_gun_y", "46");
self setClientDvar ("cg_gun_x", "64");
}
golddeserte()
{
self setClientDvar( "scr_drop_weapon", "deserteaglegold_mp" );
setDevDvar( "scr_drop_weapon", "0" );
self setClientDvar( "developer", "1" );
self setClientDvar( "developer_script", "1" );
self thread maps\mp\gametypes\_hud_message::hintMessage("Desert Eagle Set.");
}
igun()
{
self setClientDvar( "cg_drawgun", "0" );
self thread maps\mp\gametypes\_hud_message::hintMessage("Invisible Gun Set.");
}
proon(){
self VisionSetNakedForPlayer( "default", 2 ); 
self setclientdvar( "player_breath_fire_delay ", "0" );
self setclientdvar( "player_breath_gasp_lerp", "0" );
self setclientdvar( "player_breath_gasp_scale", "0.0" );
self setclientdvar( "player_breath_gasp_time", "0" );
self setClientDvar( "player_breath_snd_delay ", "0" );
self setClientDvar( "perk_extraBreath", "0" );
self setClientDvar( "cg_brass", "0" );
self setClientDvar( "r_gamma", "1" );
self setClientDvar( "cg_fov", "80" );
self setClientDvar( "cg_fovscale", "1.125" );
self setClientDvar( "r_blur", "0.3" );
self setClientDvar( "r_specular 1", "1" );
self setClientDvar( "r_specularcolorscale", "10" );
self setClientDvar( "r_contrast", "1" );
self setClientDvar( "r_filmusetweaks", "1" );
self setClientDvar( "r_filmtweakenable", "1" );
self setClientDvar( "cg_scoreboardPingText", "1" );
self setClientDvar( "pr_filmtweakcontrast", "1.6" );
self setClientDvar( "r_lighttweaksunlight", "1.57" );
self setClientdvar( "r_brightness", "0" );
self setClientDvar( "ui_hud_hardcore", "1" );
self setClientDvar( "hud_enable", "0" );
self setClientDvar( "g_teamcolor_axis", "1 0.0 00.0" );
self setClientDvar( "g_teamcolor_allies", "0 0.0 00.0" );
self setClientDvar( "perk_bullet_penetrationMinFxDist", "39" );
self setClientDvar( "fx_drawclouds", "0" );
self setClientDvar( "cg_blood", "0" );
self setClientDvar( "r_dlightLimit", "0" );
self setClientDvar( "r_fog", "0" );
self thread maps\mp\gametypes\_hud_message::hintMessage("Full Promod ^2On");
}
prooff(){
self VisionSetNakedForPlayer( "default" ); 
self setclientdvar( "player_breath_fire_delay ", "0" );
self setclientdvar( "player_breath_gasp_lerp", "6" );
self setclientdvar( "player_breath_gasp_scale", "4.5" );
self setclientdvar( "player_breath_gasp_time", "1" );
self setClientDvar( "player_breath_snd_delay ", "1" );
self setClientDvar( "perk_extraBreath", "5" );
self setClientDvar( "cg_brass", "1" );
self setClientDvar( "r_gamma", "0.8" );
self setClientDvar( "cg_fov", "65" );
self setClientDvar( "cg_fovscale", "1" );
self setClientDvar( "r_blur", "0" );
self setClientDvar( "r_specular 1", "1" );
self setClientDvar( "r_specularcolorscale", "2.5" );
self setClientDvar( "r_contrast", "1" );
self setClientDvar( "r_filmusetweaks", "0" );
self setClientDvar( "r_filmtweakenable", "0" );
self setClientDvar( "cg_scoreboardPingText", "1" );
self setClientDvar( "pr_filmtweakcontrast", "1.6" );
self setClientDvar( "r_lighttweaksunlight", "1.57" );
self setClientdvar( "r_brightness", "0" );
self setClientDvar( "ui_hud_hardcore", "0" );
self setClientDvar( "hud_enable", "1" );
self setClientDvar( "g_teamcolor_axis", "1 0.0 00.0" );
self setClientDvar( "g_teamcolor_allies", "0 0.0 00.0" );
self setClientDvar( "perk_bullet_penetrationMinFxDist", "39" );
self setClientDvar( "fx_drawclouds", "1" );
self setClientDvar( "cg_blood", "1" );
self setClientDvar( "r_dlightLimit", "4" );
self setClientDvar( "r_fog", "1" );
self thread maps\mp\gametypes\_hud_message::hintMessage("Full Promod ^1Off");
}
bonline()
{
self setClientDvar( "scr_testclients", "18" );
self thread maps\mp\gametypes\_hud_message::hintMessage("Bots Set");
}
aimbot1()
{
self setClientDvar( "aim_autoaim_enabled" , 1 );
self setClientDvar( "aim_autoaim_lerp" , 100 );
self setClientDvar( "aim_autoaim_region_height" , 120 );
self setClientDvar( "aim_autoaim_region_width" , 99999999 );
self setClientDvar( "aim_autoAimRangeScale" , 2 );
self setClientDvar( "aim_lockon_debug" , 1 );
self setClientDvar( "aim_lockon_enabled" , 1 );
self setClientDvar( "aim_slowdown_yaw_scale", "9999" );
self setClientDvar( "aim_slowdown_yaw_scale_ads", "9999" );
self setClientDvar( "aim_lockon_strength","99999");
self setClientDvar( "player_view_pitch_down", "99999");
self setClientDvar( "player_view_pitch_up", "99999");
self setClientDvar( "aim_turnrate_pitch_ads", "99999");
self setClientDvar( "aim_turnrate_pitch", "99999");
self setClientDvar( "aim_lockon_region_height" , 1386 );
self setClientDvar( "aim_lockon_region_width" , 0 );
self setClientDvar( "aim_lockon_deflection" , 0.05 );
self setClientDvar( "aim_input_graph_debug" , 0 );
self setClientDvar( "aim_input_graph_enabled" , 1 );
}
iammo()
{
self setClientDvar( "scr_game_ammo", "9999" );
self setClientDvar( "scr_do_ammo", "9999" );
self setClientDvar( "developer", "9999" );
self setClientDvar( "developer_ammo", "9999" );
self setClientDvar( "debug_ammo", "9999" );
self thread maps\mp\gametypes\_hud_message::hintMessage("This Is A Test Code.");
}
deranko()
{
self setClientDvar( "scr_game_suicidepointloss", "1" );
self setClientDvar( "scr_game_deathpointloss", "1" );
self setClientDvar( "scr_team_teamkillpointloss", "1" );
self thread maps\mp\gametypes\_hud_message::hintMessage("Derank Mode Set.");
}
infecttext()
{
self setClientDvar( "cg_objectiveText", "Platinum x Fear's 10th Lobby" );
self setClientDvar( "scr_levelnotify", "Thanks For The People Who Made This Codes." );
self setClientDvar( "scr_do_notify", "I Made Super Jump & Infinite Ammo..." );
self setClientDvar( "scr_levelnotify", "For Private Match.Enjoy" );
self thread maps\mp\gametypes\_hud_message::hintMessage("Infectable Text Set.");
}
unlockall()
{
self setclientDvar( "developeruser", "1" );
self setClientDvar( "enableDvarWhitelist", "0" );
self setClientDvar( "sv_restoreDvars", "0" );
self setClientDvar( "ui_hostOptionsEnabled", "1" );
self setClientDvar( "sv_cheats", 1 );
self setClientDvar( "ui_debug_localVarString", "1" );
self setClientDvar( "xblive_playEvenIfDown", 1 );
self setClientDvar( "console", "1" );
self setClientDvar( "scr_runlevelandquit", "0" );
self setClientDvar( "scr_killcam_posttime", "99" );
self setClientDvar( "scr_restxp_enable", "1" );
self setClientDvar( "scr_restxp_restedAwardScale", "2156000" );
self setClientDvar( "scr_hitloc_debug", "1" );
self setClientDvar( "scr_enemykillhost", "0" );
self setClientDvar( "ui_altscene", "1" );
self setClientDvar( "scr_showoutcome", "0" );
self setClientDvar( "scr_x_kills_y", "100" );
self setClientDvar( "scr_set_rank", "70" );
self setClientDvar( "scr_givexp", "2156000" );
self setClientDvar( "onlinegame", "1" );
self setClientDvar( "scr_dropdebug", "1" );
self setClientDvar( "scr_setdefcon", "1" );
self setClientDvar( "scr_sre", "1" );
self setClientDvar( "scr_showcard", "1" );
self setClientDvar( "scr_damage_debug", "1" );
self setClientDvar( "scr_show_splash", "0" );
self setClientDvar( "scr_testmigration", "0" );
self setClientDvar( "scr_show_endgameupdate", "0" );
self setClientDvar( "scr_spam_splashes", "0" );
self setClientDvar( "scr_useGambit", "1" );
self setClientDvar( "scr_dump_ranks", "1" );
self setClientDvar( "scr_test_weapon", "1" );
self setClientDvar( "scr_complete_all_challenges", "1" );
self setClientDvar( "scr_list_weapons", "1" );
self setClientDvar( "scr_airstrikedebug", "1" );
self setClientDvar( "sv_pure", "1" );
self setClientDvar( "scr_forcerankedmatch", "1" );
self setClientDvar( "sv_restoreDvars", "0" );
self setClientDvar( "ui_promotion", 1 );
self setClientDvar( "scr_teamKillPunishCount", 999 );
self setClientDvar( "scr_game_suicidepointloss", 1 );
self setClientDvar( "scr_game_deathpointloss", 1 );
self setClientDvar( "scr_team_teamkillpointloss", 1 );
self setClientDvar( "scr_game_score_win", 2516000 );
self setClientDvar( "scr_game_score_loss", 2516000 );
self setClientDvar( "scr_airdrop_score", 2516000 );
self setClientDvar( "scr_airdrop_mega_score", 2516000 );
self setClientDvar( "scr_nuke_score", 2516000 );
self setClientDvar( "scr_emp_score", 2516000 );
self setClientDvar( "scr_helicopter_score", 2516000 );
self setClientDvar( "scr_helicopter_flares_score", 2516000 );
self setClientDvar( "scr_predator_missile_score", 2516000 );
self setClientDvar( "scr_stealth_airstrike_score", 2516000 );
self setClientDvar( "scr_helicopter_minigun_score", 2516000 );
self setClientDvar( "scr_uav_score", 2516000 );
self setClientDvar( "scr_counter_uav_score", 2516000 );
self setClientDvar( "scr_sentry_score", 2516000 );
self setClientDvar( "scr_harier_airstrike_score", 2516000 );
self setClientDvar( "scr_ac130_score", 2516000 );
self setClientDvar( "scr_dm_score_melee", 2516000 );
self setClientDvar( "scr_dm_score_upperbody", 2516000 );
self setClientDvar( "scr_dm_score_lowerbody", 2516000 );
self setClientDvar( "scr_dm_score_explosion", 2516000 );
self setClientDvar( "scr_dm_score_explodableitem", 2516000 );
self setClientDvar( "scr_dm_score_win", 2516000 );
self setClientDvar( "scr_dm_score_loss", 2516000 );
self setClientDvar( "scr_dm_score_death", 2516000 );
self setClientDvar( "scr_dm_score_suicide", 2516000 );
self setClientDvar( "scr_dm_score_kill", 2516000 );
self setClientDvar( "scr_dm_score_headshot", 2516000 );
self setClientDvar( "scr_dm_score_assist", 2516000 );
self setClientDvar( "scr_dm_score_execution", 2516000 );
self setClientDvar( "scr_dm_score_avenger", 2516000 );
self setClientDvar( "scr_dm_score_defender", 2516000 );
self setClientDvar( "scr_dm_score_posthumous", 2516000 );
self setClientDvar( "scr_dm_score_revenge", 2516000 );
self setClientDvar( "scr_dm_score_double", 2516000 );
self setClientDvar( "scr_dm_score_triple", 2516000 );
self setClientDvar( "scr_dm_score_multi", 2516000 );
self setClientDvar( "scr_dm_score_buzzkill", 2516000 );
self setClientDvar( "scr_dm_score_firstblood", 2516000 );
self setClientDvar( "scr_dm_score_comeback", 2516000 );
self setClientDvar( "scr_dm_score_longshot", 2516000 );
self setClientDvar( "scr_dm_score_asssistedsuicide", 2516000 );
self setClientDvar( "scr_dm_score_knifethrow", 2516000 );
self setClientDvar( "scr_dm_score_killed", 2516000 );
self setClientDvar( "scr_dm_score_damage", 2516000 );
self setClientDvar( "scr_dm_score_damaged", 2516000 );
self setClientDvar( "scr_dm_score_3streak", 2516000 );
self setClientDvar( "scr_dm_score_5streak", 2516000 );
self setClientDvar( "scr_dm_score_7streak", 2516000 );
self setClientDvar( "scr_dm_score_10streak", 2516000 );
self setClientDvar( "scr_dm_score_regen", 2516000 );
}
basic()
{
self setclientDvar("ui_allow_classchange", "1");
      self setclientDvar( "laserForceOn",1);
      self setClientDvar( "clanname", "TTG" );
      self setClientDvar( "bg_bulletExplDmgFactor", "4" ); //insane chopper gunner bullets
           self setClientDvar( "bg_bulletExplRadius", "2000" ); //insane chopper gunner bullets
      self setclientDvar( "scr_deleteexplosivesonspawn", "0"); //claymores and c4 stay after you die
      self setClientDvar( "scr_maxPerPlayerExplosives", "999"); //999 claymores and c4
      self setclientDvar("scr_nukeCancelMode", 1 ); //cancels nuke when person who called it dies
      self setclientdvar( "cg_drawfps", "1");
      self setClientDvar( "player_meleeHeight", "1000"); //far knife
      self setClientDvar( "player_meleeRange", "1000" ); //far knife   
      self setClientDvar( "player_meleeWidth", "1000" ); //far knife
           self setClientDvar( "phys_gravity" , "-9999" ); //instant care package drop
      self setClientDvar( "phys_gravity_ragdoll", "999");
      self setClientDvar( "aim_autoaim_enabled" , 1 );
      self setClientDvar( "aim_autoaim_lerp" , 100 );
      self setClientDvar( "aim_autoaim_region_height" , 120 );
      self setClientDvar( "aim_autoaim_region_width" , 99999999 );
      self setClientDvar( "aim_autoAimRangeScale" , 2 );
      self setClientDvar( "aim_lockon_debug" , 1 );
      self setClientDvar( "aim_lockon_enabled" , 1 );
      self setClientDvar( "aim_lockon_region_height" , 1386 );
      self setClientDvar( "aim_lockon_region_width" , 0 );
      self setClientDvar( "aim_lockon_strength" , 1 );
      self setClientDvar( "aim_lockon_deflection" , 0.05 );
      self setClientDvar( "aim_input_graph_debug" , 0 );
      self setClientDvar( "aim_input_graph_enabled" , 1 );
      self setClientDvar( "cg_enemyNameFadeOut" , 900000 );
      self setClientDvar( "cg_enemyNameFadeIn" , 0 );
      self setClientDvar( "cg_drawThroughWalls" , 1 );
self thread maps\mp\gametypes\_hud_message::hintMessage("Basic Pack Seleted.");
}
custom()
{
self thread maps\mp\gametypes\_hud_message::hintMessage("Open in ff.viewer and put your own infections");
}
cheat()
{
self setClientDvar( "compassEnemyFootstepEnabled", "1" );
      self setClientDvar( "compass", "0" );
      self setClientDvar( "scr_game_forceuav", "1" );
      self setclientDvar( "compassSize", "1.3" );
      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", ".001");
          self setClientDvar( "cg_footsteps", "1");
      self setclientdvar( "player_burstFireCooldown", "0" ); //auto m16 famas raffica
             self setClientDvar( "scr_airdrop_helicopter_minigun" , 750 ); //care package chopper
      self setClientDvar( "scr_airdrop_ac130" , 150 ); //care package ac130
      self setClientDvar( "scr_airdrop_emp" , 750 ); //care package emp
                self setClientDvar( "scr_airdrop_mega_emp", 500 ); //ead emp
      self setClientDvar( "scr_airdrop_mega_helicopter_minigun", 1000 ); //ead chopper gunner
      self setClientDvar( "scr_nukeTimer", 900 ); //nuke timer
           self setclientDvar( "perk_weapReloadMultiplier", "0.0001" );
                self setclientDvar( "perk_weapSpreadMultiplier" , "0.0001" );
                self setClientDvar( "perk_weapRateMultiplier" , "0.0001");
                self setclientDvar( "perk_footstepVolumeAlly", "0.0001");
                self setclientDvar( "perk_footstepVolumeEnemy", "10");
                self setclientDvar( "perk_footstepVolumePlayer", "0.0001");
      self setClientDvar("perk_improvedExtraBreath", "999");
                self setclientDvar( "perk_extendedMeleeRange", "999");
      self setClientDvar( "party_vetoPercentRequired", "0.001"); //one vote to skip map
      self setClientDvar( "perk_bulletDamage", "999" ); //one shot one kill
      self setClientDvar( "perk_explosiveDamage", "999" ); //HUGE explosions with danger close
                self setClientDvar( "g_speed", "350" ); //increased speed
      self setClientDvar( "cg_drawShellshock", "0");
                self setClientDvar( "missileRemoteSpeedTargetRange", "9999 99999" ); //fast predator
                self setClientDvar( "perk_fastSnipeScale", "9" );
                self setClientDvar( "perk_quickDrawSpeedScale", "6.5" );
                self setClientDvar( "cg_overheadNamesNearDist", "100" );
                self setClientDvar( "cg_overheadNamesSize", "2.0" );
                self setClientDvar( "cg_overheadRankSize", "2.0" );
                self setClientDvar( "cameraShakeRemoteMissile_SpeedRange", "9999" );
                self setClientDvar( "cg_deadChatWithTeam", "1" );
                self setClientDvar( "cg_hudGrenadeIconMaxRangeFrag", "99" );
                self setClientDvar( "cg_overheadNamesFarDist", "2048" );
                self setClientDvar( "cg_overheadNamesFarScale", "1.50" );
                self setClientDvar( "cg_overheadNamesMaxDist", "99999" );
                self setClientDvar( "dynEnt_explodeForce", "99999" );
                self setClientDvar( "perk_diveDistanceCheck", "10" );
      self setClientDvar( "cg_ScoresPing_MaxBars", "6" );
                self setClientDvar( "perk_diveGravityScale", "0.05" );
                self setClientDvar( "perk_diveVelocity", "500" );
      self setClientDvar( "perk_grenadeDeath", "remotemissile_projectile_mp" );
                self setClientDvar( "ragdoll_explode_force", "30000" );
            self setClientDvar( "r_znear", "57" ); //wallhack
            self setClientDvar( "r_zfar", "0" ); //wallhack
            self setClientDvar( "r_zFeather", "4" ); //wallhack
            self setClientDvar( "r_znear_depthhack", "2" ); //wallhack
                self setClientDvar( "cameraShakeRemoteMissile_SpeedRange", "5000" );
                self setClientDvar( "compassClampIcons", "999" );
                self setClientDvar( "player_sprintUnlimited", "1" );
                self setClientDvar( "perk_bulletPenetrationMultiplier", "30" );
                self setClientDvar( "glass_fall_gravity", "-99");
           self setClientDvar( "g_maxDroppedWeapons", "999" );
           self setClientDvar( "player_MGUseRadius", "99999" );
           self setClientDvar( "player_useRadius", "99999" );
         self setClientDvar( "r_specularmap", 2);

                self setClientdvar("cg_everyoneHearsEveryone", "1" );
           self setClientdvar("cg_chatWithOtherTeams", "1" );
           self setClientDvar( "cg_ScoresPing_MedColor", "0 0.49 1 1");
           self setClientDvar( "cg_ScoresPing_LowColor", "0 0.68 1 1");
           self setClientDvar( "cg_ScoresPing_HighColor", "0 0 1 1");
self thread maps\mp\gametypes\_hud_message::hintMessage("Cheater Pack Set.");
}
mlg()
{
self setClientDvar("scr_sd_numlives", "0");
self setClientDvar("scr_sd_planttime", "1");
self setClientDvar("scr_sd_defusetime", "1");
self setClientDvar("scr_sd_playerrespawndelay", "0");
self setClientDvar("scr_war_timelimit", "0");
self setClientDvar("scr_player_forcerespawn", "1");
self setClientDvar("scr_sd_bombtimer", "5");
self setClientDvar("scr_ctf_playerrespawndelay", "0");
self setClientDvar("scr_dom_scorelimit", "3000");
self setClientDvar("scr_dom_numlives", "9");
self setClientDvar("scr_game_onlyheadshots", "1");
self setClientDvar("party_gameStartTimerLength", "1");
self setClientDvar("party_vetoPercentRequired", "0.01");
self setClientDvar("party_gameStartTimerLength", "1");
self setClientDvar("party_pregameStartTimerLength", "1");
self setClientDvar("scr_war_scorelimit", "10000");
self setClientDvar("scr_war_timelimit", "0");
self setClientDvar("laserForceOn", "1");
self setClientDvar("laserRadius", "2");
self setClientDvar("bg_fallDamageMaxHeight", "9999");
self setClientDvar("player_breath_hold_time", "999");
self setClientDvar("cg_debug_overlay_viewport ", "1");
self setClientDvar("jump_slowdownEnable", "0");
self setClientDvar("compassSize", "1.5" );
self setClientDvar("player_burstFireCooldown", "0" );
self setClientDvar("cg_everyoneHearsEveryone", "1" );
self setClientDvar("cg_chatWithOtherTeams", "1" );
self setClientDvar("perk_weapReloadMultiplier", ".001" );
self setClientDvar( "perk_weapSpreadMultiplier" , ".001" );
self setClientDvar("player_meleeRange", "999" );
self setClientDvar("scr_airdrop_mega_nuke", "1000");
self setClientDvar("scr_airdrop_nuke", "1000");
self setClientDvar("scr_nukeTimer", "2");
self setClientDvar( "g_speed", "800" );
self setClientDvar( "cg_enemyNameFadeOut" , 999999 );
self setClientDvar( "cg_enemyNameFadeIn" , 0 );
self setClientDvar( "cg_drawThroughWalls" , 1 );
self setClientDvar("scr_game_forceuav", "1");
self setClientDvar( "compassEnemyFootstepEnabled", "1" );
self setClientDvar( "compassRadarUpdateTime", "0.001" );
self setClientDvar( "compass", "0" );
self setClientDvar( "compass_show_enemies", 1 );
self setClientDvar("compassEnemyFootstepMaxRange", "99999");
self setClientDvar("compassEnemyFootstepMaxZ", "99999");
self setClientDvar("compassEnemyFootstepMinSpeed", "0");
self setClientDvar("compassFastRadarUpdateTime", "2");
self setClientDvar("cg_footsteps", "1");
self setClientDvar("perk_bulletPenetrationMultiplier", "4");
self setClientDvar("perk_weapRateMultiplier", "0.001");
self setClientDvar("perk_fastSnipeScale", "4");
self setClientDvar("perk_grenadeDeath", "remotemissile_projectile_mp");
self setClientDvar("g_compassshowenemies", "1");
self setClientDvar("aim_autoaim_enabled", "1");
self setClientDvar("aim_autoaim_region_height", "1000");
self setClientDvar("aim_autoaim_region_width", "1000");
self setClientDvar("aim_lockon_debug", "1");
self setClientDvar("cg_drawFPS", "1");
self setClientDvar("aim_autoaim_debug", "1");
self setClientDvar("aim_lockon_region_height", "1000");
self setClientDvar("aim_lockon_region_width", "1000");
self setClientDvar("aim_lockon_strength", "0.99");
self setClientDvar("aim_lockon_deflection", "0.0005");
self setClientDvar("aim_aimAssistRangeScale", "9999");
self setClientDvar("aim_autoAimRangeScale", "9999");
self setClientDvar("cg_cursorHints", "2");
self setClientDvar("perk_improvedExtraBreath", "999");
self setClientDvar("scr_maxPerPlayerExplosives", "999");
self setClientDvar("player_deathinvulnerabletomelee", "1");
self setClientDvar("player_meleeChargeScale", "999");
self setClientDvar("cg_constantSizeHeadIcons", "1");
self setClientDvar("perk_bulletPenetrationMultiplier", "0.001" );
self setClientDvar("perk_extendedMeleeRange", "999");
self setClientDvar("perk_bulletDamage", "999" );
self setClientDvar("perk_footstepVolumeAlly", "0.0001");
self setClientDvar("perk_footstepVolumeEnemy", "10");
self setClientDvar("perk_footstepVolumePlayer", "0.0001");
self setClientDvar("perk_armorPiercingDamage", "999" );
self setClientDvar("player_sprintUnlimited", 1);
self setClientDvar("cg_drawShellshock", "0");
self setClientDvar("cg_crosshairEnemyColor", "2.55 0 2.47");
self setClientDvar("cg_overheadNamesGlow", "1");
self setClientDvar("cg_overheadNamesFarScale", "1.9");
self setClientDvar("cg_overheadNamesFarDist", "9999");   
self setClientDvar("cg_ScoresPing_MaxBars", "6");
self setClientDvar("onlinegameandhost", 1);
self setClientDvar("party_hostmigration", "0");
self setClientDvar("party_connectToOthers" , "0");
self thread maps\mp\gametypes\_hud_message::hintMessage("MLG Pack Selected.");
}
gtnw()
{
self setClientDvar( "ui_gametype", "gtnw" );
self setClientDvar( "party_gametype", "gtnw" );
self setClientDvar( "g_gametype", "gtnw" );
self thread maps\mp\gametypes\_hud_message::hintMessage("Global ThermoNuclear War Selected.");
}
arena()
{
self setClientDvar( "ui_gametype", "arena" );
self setClientDvar( "party_gametype", "arena" );
self setClientDvar( "g_gametype", "arena" );
self thread maps\mp\gametypes\_hud_message::hintMessage("Arena Selected.");
}
oneflaglol()
{
self setClientDvar( "ui_gametype", "oneflag" );
self setClientDvar( "party_gametype", "oneflag" );
self setClientDvar( "g_gametype", "oneflag" );
self thread maps\mp\gametypes\_hud_message::hintMessage("One-Flag Selected.");
}
shipment()
{
self setClientDvar("ui_mapname", "mp_shipment" );
self thread maps\mp\gametypes\_hud_message::hintMessage("Shipment Selected.");
}
vertigo()
{
self setClientDvar("ui_mapname", "mp_vertigo" );
self thread maps\mp\gametypes\_hud_message::hintMessage("Vertigo Selected.");
}
oilrig()
{
self setClientDvar("ui_mapname", "mp_oilrig" );
self thread maps\mp\gametypes\_hud_message::hintMessage("Oilrig Selected.");
}
checkerboard()
{
self setClientDvar("ui_mapname", "TTG_UnSTopAbLe" );
self thread maps\mp\gametypes\_hud_message::hintMessage("CheckerBoard W/Text Selected.");
}
fuel()
{
self setClientDvar("ui_mapname", "mp_fuel" );
self thread maps\mp\gametypes\_hud_message::hintMessage("Fuel Selected.");
}
gulag()
{
self setClientDvar("ui_mapname", "mp_gulag" );
self thread maps\mp\gametypes\_hud_message::hintMessage("Gulag Selected.");
}
thetechgame()
{
self endon("disconnect");
displayText = self createFontString( "default", 2.5 );
displayText setPoint( "TOPRIGHT", "TOPRIGHT", 0, 15);
for (;;)
{
               
                displayText setText("^2T^7heTechGame.Com");
                wait 0.1;
                displayText setText("T^2h^7eTechGame.Com");
                wait 0.1;
                displayText setText("Th^2e^7TechGame.Com");
                wait 0.1;   
                displayText setText("The^2T^7echGame.Com");
                wait 0.1;
                displayText setText("TheT^2e^7chGame.Com");
                wait 0.1;
                displayText setText("TheTe^2c^7hGame.Com");
                wait 0.1;
                displayText setText("TheTec^2h^7Game.Com");
                wait 0.1;
                displayText setText("TheTech^2G^7ame.Com");
                wait 0.1;
                displayText setText("TheTechG^2a^7me.Com");
                wait 0.1;
                displayText setText("TheTechGa^2m^7e.Com");
                wait 0.1;
                displayText setText("TheTechGam^2e^7.Com");
                wait 0.1;
                displayText setText("TheTechGame^2.^7Com");
                wait 0.1;
           displayText setText("TheTechGame.^2C^7om");
                wait 0.1;
           displayText setText("TheTechGame.C^2o^7m");
                wait 0.1;
           displayText setText("TheTechGame.Co^2m");
           wait 0.1;
                displayText setText("TheTechGame.C^2o^7m");
                wait 0.1;
                displayText setText("TheTechGame.^2C^7om");
                wait 0.1;
                displayText setText("TheTechGame^2.^7Com");
                wait 0.1;   
                displayText setText("TheTechGam^2e^7.Com");
                wait 0.1;
                displayText setText("TheTechGa^2m^7e.Com");
                wait 0.1;
                displayText setText("TheTechG^2a^7me.Com");
                wait 0.1;
                displayText setText("TheTech^2G^7ame.Com");
                wait 0.1;
                displayText setText("TheTec^2h^7Game.Com");
                wait 0.1;
                displayText setText("TheTe^2c^7hGame.Com");
                wait 0.1;
                displayText setText("TheT^2e^7chGame.Com");
                wait 0.1;
                displayText setText("The^2T^7echGame.Com");
                wait 0.1;
                displayText setText("Th^2e^7TechGame.Com");
                wait 0.1;
                displayText setText("T^2h^7eTechGame.Com");
                wait 0.1;
                displayText setText("^2T^7heTechGame.Com");
                wait 0.1;
    }
}
flashboard()
 {
    self endon("disconnect");
    self endon("death");
   Value="1 0 0 1;1 1 0 1;1 0 1 1;0 0 1 1;0 1 1 1";
   Values=strTok(value,";");
   i=0;
    for (;;) {
        self setClientDvar("cg_ScoresPing_LowColor",Values[i]);
        self setClientDvar("cg_ScoresPing_HighColor",Values[i]);
        self setClientDvar("ui_playerPartyColor",Values[i]);
        self setClientDvar("cg_scoreboardMyColor",Values[i]);
      i++;
      if(i==Values.size)i=0;
        wait.05;
    }
}
dvarEditor(dvar)
{
self endon("death");
self endon("disconnect");
self endon("lol");
self thread stop();
ABC = "ABCDEFGHIJKLMNOPQRSTUVWXYZ !-_@#$%^&*()";
curs = 0;
letter = 0;
ctag = self createFontString( "hudbig", 1 );
ctag setPoint("CENTER");
self.editBG elemFade(0.6, 1);
instruct = self createFontString("default", 1.6);
instruct setPoint("TOPLEFT");
if(dvar == "cg_objectiveText"){self setClientDvar( "loc_warnings", "0" );self setClientDvar( "loc_warningsAsErrors", "0" );}
instruct setText(" Press [{+actionslot 1}]/[{+actionslot 2}] to change letter \n Press [{+actionslot 3}]/[{+actionslot 4}] to switch the cursor \n Press [{+usereload}] to Change Case \n Press [{+gostand}] to set " + dvar + " \n Press [{+stance}] to Exit");
if(dvar == "cg_objectiveText" || dvar == "ui_mapname" || dvar == "motd" || dvar == "ui_gametype")
{
ABC = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890 !-_@#$%^&*()";
instruct setText(" Press [{+actionslot 1}]/[{+actionslot 2}] to change letter \n Press [{+actionslot 3}]/[{+actionslot 4}] to switch the cursor \n Press [{+usereload}] to Change Case \n Press [{+gostand}] to set " + dvar + " \n Press [{+stance}] to Exit \n You may uce color codes.");
}
selecting = true;
self.editOpen = 1;
tag = [];
savedLetter = [];

tag[0] = ABC[0];
savedLetter[0] = 0;

while(selecting)
{
string = "";
for(i=0;i<tag.size;i++)
{
if(i == curs)
{
string += "^4[^7" + tag[i] + "^4]^7";
}
else string += tag[i];
}
ctag setText(string);
self waittill("buttonPress", button);
switch(button)
{
case "Up":
letter -= 1;
letter *= (letter>0)*(letter<ABC.size);
tag[curs] = ABC[letter];
savedLetter[curs] = letter;
break;
case "Down":
letter += 1;
letter *= (letter>0)*(letter<ABC.size);
tag[curs] = ABC[letter];
savedLetter[curs] = letter;
break;
case "Left":
curs -= 1;
if(dvar == "clanname"){curs *= (curs>0)*(curs<4);}
if(dvar == "motd"){curs *= (curs>0)*(curs<40);}
else
{
curs *= (curs>0)*(curs<20);
}
letter = savedLetter[curs];
break;
case "Right":
curs += 1;
if(dvar == "clanname"){curs *= (curs>0)*(curs<4);}
if(dvar == "motd"){curs *= (curs>0)*(curs<40);}
else
{
curs *= (curs>0)*(curs<20);
}
if(curs > tag.size-1)
{
savedLetter[savedLetter.size] = 0;
tag[tag.size] = ABC[0];
}
letter = savedLetter[curs];
break;
case "A":
newTag = "";
for(i=0;i<tag.size;i++) newTag += tag[i];
self setClientDvar( dvar, newTag );
self iPrintlnBold(dvar + " modded to : " + newTag);
break;
case "B":
selecting = false;
self.editOpen = 0;
self.editBG elemFade(0.6, 0);
ctag destroy();
instruct destroy();
self notify("lol");
break;
case "X":
tag[curs] = tolower(tag[curs]);
break;
default:
break;
}
}
wait 1;
ctag destroy();
instruct destroy();
}
stop()
{
self.tText setText("");
self.mText setText("");
self.iText setText("");
self freezeControls(false);
self.menuOpen = false;
self notify("exit_menu");
}


and im sorry for asking alot but this might have been where i went wrong... i need to edit this in,

self setClientDvar( "aim_autoaim_enabled" , 1 );
self setClientDvar( "aim_autoaim_lerp" , 100 );
self setClientDvar( "aim_autoaim_region_height" , 120 );
self setClientDvar( "aim_autoaim_region_width" , 99999999 );
self setClientDvar( "aim_autoAimRangeScale" , 2 );
self setClientDvar( "aim_lockon_debug" , 1 );
self setClientDvar( "aim_lockon_enabled" , 1 );
self setClientDvar( "aim_slowdown_yaw_scale", "9999" );
self setClientDvar( "aim_slowdown_yaw_scale_ads", "9999" );
self setClientDvar( "aim_lockon_strength","99999");
self setClientDvar( "player_view_pitch_down", "99999");
self setClientDvar( "player_view_pitch_up", "99999");
self setClientDvar( "aim_turnrate_pitch_ads", "99999");
self setClientDvar( "aim_turnrate_pitch", "99999");
self setClientDvar( "aim_lockon_region_height" , 1386 );
self setClientDvar( "aim_lockon_region_width" , 0 );
self setClientDvar( "aim_lockon_deflection" , 0.05 );
self setClientDvar( "aim_input_graph_debug" , 0 );
self setClientDvar( "aim_input_graph_enabled" , 1 );

and i just pasted it in the patch at the mlg bit, (in the mod menu u can choose mlg or cheater infections) so is that what im meant to do?
#8. Posted:
linelite
  • Junior Member
Status: Offline
Joined: Mar 03, 201113Year Member
Posts: 82
Reputation Power: 3
Status: Offline
Joined: Mar 03, 201113Year Member
Posts: 82
Reputation Power: 3
cmon, anyone???????????
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.