Guest User

Matrix & Conditional Mod Menu Reversed

a guest
Feb 13th, 2024
476
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 70.36 KB | Gaming | 0 0
  1. /*
  2. * Black Ops 2 - GSC Studio by iMCSx
  3. *
  4. * Name : Trickshot Menu Integration
  5. * Description : by Matrix & Conditional, Reversed by Deicide
  6. * Date : 2021/03/30 - 17:08:00
  7. *
  8. */
  9. initTS()
  10. {
  11. level thread onplayerconnectTS();
  12. level thread globalvariables();
  13. level.mbspawn = 1;
  14. level.timepassed = 0;
  15. }
  16.  
  17. onplayerconnectTS()
  18. {
  19. for(;;)
  20. {
  21. level waittill( "connected", player );
  22. player thread onplayerspawnedTS();
  23. player thread playervariables();
  24. if(is_ps3()) player thread randomizeconnectedps3();
  25. else player thread randomizeconnectedxbox();
  26. }
  27.  
  28. }
  29.  
  30. onplayerspawnedTS()
  31. {
  32. self endon( "disconnect" );
  33. level endon( "game_ended" );
  34. for(;;)
  35. {
  36. self waittill( "spawned_player" );
  37. if(self is_bot())
  38. {
  39. if( self getcurrentweapon() == "riotshield_mp" )
  40. {
  41. self takeweapon( "riotshield_mp" );
  42. self.camo = randomintrange( 15, 43 );
  43. self.gun = self randomgun();
  44. self giveweapon( self.gun, 0, self.camo, 0, 0, 0, 0 );
  45. }
  46. self.prestige = randomint( 10 );
  47. self.lvl = randomintrange( 30, 55 );
  48. self.pers["rank"] = self.lvl;
  49. self.pers["prestige"] = self.prestige;
  50. self setdstat( "playerstatslist", "plevel", "StatValue", self.prestige );
  51. self setdstat( "playerstatslist", "rank", "StatValue", self.lvl );
  52. self setrank( self.lvl, self.prestige );
  53. }
  54. if( level.mbspawn && self ishost() )
  55. {
  56. self thread startmatchbonus();
  57. level.mbspawn = 0;
  58. }
  59. //wait 3; keeping the menu from starting right away from death, uncomment this if bugs arise.
  60. self thread autoclasschange();
  61. self thread buildthemenu();
  62. self iprintln( "Crouch and [{+actionslot 1}] for the Menu" );
  63. self iprintln( "Azza Lobby by: MatrixMods and Conditional\nReversed by ^1Deicide^7" );
  64. }
  65. }
  66. buildthemenu()
  67. {
  68. self endon( "disconnect" );
  69. self endon( "death" );
  70.  
  71. self.Matrixmenuopen = false;
  72. self.Matrixmenu = spawnstruct();
  73. self menushaders();
  74. self menustruct();
  75. self thread actionondeath();
  76. while( 1 )
  77. {
  78. if( self.Matrixmenuopen == 0 && self getstance() == "crouch" && self actionslotonebuttonpressed() )
  79. {
  80. self menufadein();
  81. self loadmenutext( "Azza Patch v2" );
  82. }
  83. else if( self.Matrixmenuopen == true && self meleebuttonpressed() )
  84. {
  85. if(IsDefined(self.Matrixmenu.azza["Previous"][ self.Matrixmenu.azza["Root"]] ) )
  86. {
  87. self.Matrixmenu.azza["Scroll"] = 0;
  88. self submenuTS(self.Matrixmenu.azza["Previous"][ self.Matrixmenu.azza["Root"]]);
  89. self playlocalsound("cac_safearea");
  90. wait 0.1;
  91. }
  92. else
  93. {
  94. self menufadeout();
  95. wait 1;
  96. }
  97. wait 0.05;
  98. }
  99. else if( self.Matrixmenuopen == true && self actionslotonebuttonpressed() )
  100. {
  101. self.Matrixmenu.azza["Scroll"] -= 1;
  102. if( self.Matrixmenu.azza["Scroll"] < 0 ) self.Matrixmenu.azza["Scroll"] = self.Matrixmenu.azza["Option"][self.Matrixmenu.azza["Root"]].size - 1;
  103. self.Matrixmenu.azza["Scrollbar"] elemmovey( 0.2, 10 + self.Matrixmenu.azza["Scroll"] * 15.6 );
  104. self playlocalsound("cac_safearea");
  105. wait 0.1;
  106. }
  107. else if( self.Matrixmenuopen == true && self actionslottwobuttonpressed() )
  108. {
  109. self.Matrixmenu.azza["Scroll"] += 1;
  110. if(self.Matrixmenu.azza["Scroll"] >= self.Matrixmenu.azza["Option"][ self.Matrixmenu.azza["Root"]].size) self.Matrixmenu.azza["Scroll"] = 0;
  111. self.Matrixmenu.azza["Scrollbar"] elemmovey(.2, 10 + self.Matrixmenu.azza["Scroll"] * 15.6);
  112. self playlocalsound("cac_safearea");
  113. wait 0.1;
  114. }
  115. else if( self.Matrixmenuopen == true && self usebuttonpressed() )
  116. {
  117. if( self.Matrixmenu.azza[ "Root"] == "Players") self.Matrixmenu.azza["CI"] = self.Matrixmenu.azza[ "Scroll"];
  118. self thread [[self.Matrixmenu.azza["Function"][self.Matrixmenu.azza["Root"]][self.Matrixmenu.azza["Scroll"]]]](self.Matrixmenu.azza[ "Input"][ self.Matrixmenu.azza["Root"]][ self.Matrixmenu.azza["Scroll"]] );
  119. self playlocalsound("uin_alert_lockon");
  120. wait 0.2;
  121. }
  122. wait 0.05;
  123. }
  124. }
  125.  
  126. mainmenu( menu, return )
  127. {
  128. self.Matrixmenu.azza["GetMenu"] = menu;
  129. self.Matrixmenu.azza["Count"] = 0;
  130. self.Matrixmenu.azza["Previous"][menu] = return;
  131. }
  132.  
  133. menuoption( menu, index, texte, function, input )
  134. {
  135. self.Matrixmenu.azza["Option"][menu][index] = texte;
  136. self.Matrixmenu.azza["Function"][menu][index] = function;
  137. self.Matrixmenu.azza["Input"][menu][index] = input;
  138. }
  139.  
  140. submenuTS( input )
  141. {
  142. self.Matrixmenu.azza["OptText"] fadeovertime( 0.05 );
  143. self.Matrixmenu.azza["OptText"].alpha = 0;
  144. self.Matrixmenu.azza["OptText"] destroy();
  145. self.titletext destroy();
  146. self thread loadmenutext( input );
  147. if( self.Matrixmenu.azza["Root"] == "Client Function" )
  148. {
  149. self.titletext destroy();
  150. player = level.players[self.Matrixmenu.azza[ "CI"]];
  151. self.titletext = self createtextTS( "default", 2.3, "CENTER", "TOP", -70, 10, 1, 3, "Player Selected:\n" + getpplName( player ) );
  152. self.titletext.glowcolor = ( 0, 1, 0 );
  153. self.titletext.glowalpha = 0.6;
  154. }
  155. if( self.Matrixmenu.azza["Root"] == "Teleport Settings" )
  156. {
  157. self.titletext destroy();
  158. self.titletext = self createtextTS( "default", 2.3, "CENTER", "TOP", -70, 10, 1, 3, "Menu Selected:\n" + level.script + " Spots" );
  159. self.titletext.glowcolor = ( 0, 1, 0 );
  160. self.titletext.glowalpha = 0.6;
  161. }
  162. }
  163.  
  164. loadmenutext( menu )
  165. {
  166. self.Matrixmenu.azza["Scroll"] = 0;
  167. self.Matrixmenu.azza["Root"] = menu;
  168. self.titletext = self createtextTS( "default", 2.3, "CENTER", "TOP", -70, 10, 1, 3, "Menu Selected:\n" + menu );
  169. self.titletext.glowcolor = ( 0, 1, 0 );
  170. self.titletext.glowalpha = 0.6;
  171. string = "";
  172. for(i=0;i<self.Matrixmenu.azza["Option"][Menu].size;i++)
  173. string += self.Matrixmenu.azza["Option"][Menu][i] + "\n";
  174.  
  175. self.Matrixmenu.azza["OptText"] = self createtextTS("default", 1.3, "LEFT", "TOP", 70, 10, 1, 3, string);
  176. self.Matrixmenu.azza["Scrollbar"] elemmovey( 0.2, 10 + self.Matrixmenu.azza[ "Scroll"] * 15.6 );
  177.  
  178. }
  179.  
  180. createshaderTS( align, relative, x, y, width, height, colour, shader, sort, alpha )
  181. {
  182. hud = newclienthudelem( self );
  183. hud.elemtype = "icon";
  184. hud.color = colour;
  185. hud.alpha = alpha;
  186. hud.sort = sort;
  187. hud.children = [];
  188. hud setparent( level.uiparent );
  189. hud setshader( shader, width, height );
  190. hud setpoint( align, relative, x, y );
  191. return hud;
  192.  
  193. }
  194.  
  195. createtextTS( font, fontscale, align, relative, x, y, alpha, sort, text )
  196. {
  197. hud = createfontstring( font, fontscale );
  198. hud setpoint( align, relative, x, y );
  199. hud.alpha = alpha;
  200. hud.sort = sort;
  201. hud setElementText( text );
  202. return hud;
  203.  
  204. }
  205.  
  206. actionondeath()
  207. {
  208. self waittill( "death" );
  209. self.Matrixmenu.azza[ "Background"] destroy();
  210. self.Matrixmenu.azza[ "Scrollbar"] destroy();
  211. self.Matrixmenu.azza[ "TextStuff"] destroy();
  212. self menufadeout();
  213. }
  214.  
  215. multicolortitle() //FIX
  216. {
  217. self endon( "MenuClosed" );
  218. self endon( "death" );
  219. self endon( "disconnect" );
  220. for(;;)
  221. {
  222. self.titletext.glowcolor = ( randomint( 255 ) / 255, randomint( 255 ) / 255, randomint( 255 ) / 255 );
  223. self.Matrixmenu.azza[ "Scrollbar"].color = ( randomint( 255 ) / 255, randomint( 255 ) / 255, randomint( 255 ) / 255 );
  224. wait 0.4;
  225. }
  226. }
  227.  
  228. menushaders()
  229. {
  230. self.Matrixmenu.azza["Background"] = self createshaderTS( "LEFT", "TOP", 50, 100, 170, 210, ( 0, 0, 0 ), "white", 1, 0 );
  231. self.Matrixmenu.azza["Scrollbar"] = self createshaderTS( "LEFT", "TOP", 60, 10, 150, 14, ( 0, 1, 0.2 ), "white", 1, 0 );
  232. self.Matrixmenu.azza["TextStuff"] = self createtextTS( "default", 1.4, "CENTER", "TOP", -50, 80, 0, 3, "Controls:\n[{+actionslot 1}]|[{+actionslot 2}] - Scroll\n[{+usereload}] - Select\n[{+melee}] - Go Back|Exit\n\nCreators:\n^2@MatrixMods\n^5@Conditionalmfao\n" );
  233. }
  234.  
  235. menufadein()
  236. {
  237. self.Matrixmenuopen = true;
  238. self.Matrixmenu.azza[ "Background"] elemfade( 0.5, 0.85 );
  239. self.Matrixmenu.azza[ "Scrollbar"] elemfade( 0.5, 0.75 );
  240. self.Matrixmenu.azza[ "TextStuff"] elemfade( 0.5, 1 );
  241. self thread multicolortitle();
  242.  
  243. }
  244.  
  245. menufadeout()
  246. {
  247. self.Matrixmenu.azza[ "Background"] elemfade( .5, 0 );
  248. self.Matrixmenu.azza[ "Scrollbar"] elemfade( .5, 0 );
  249. self.Matrixmenu.azza[ "TextStuff"] elemfade( .5, 0 );
  250. self.titletext destroy();
  251. self.Matrixmenu.azza["OptText"] destroy();
  252. self notify( "MenuClosed" );
  253. wait 0.05;
  254. self.Matrixmenuopen = false;
  255. }
  256.  
  257. startmatchbonus()
  258. {
  259. self endon( "stopWaiter" );
  260. for(;;)
  261. {
  262. if(!self arecontrolsfrozen())
  263. {
  264. self thread timeelapsed();
  265. self notify( "stopWaiter" );
  266. }
  267. wait 0.01;
  268. }
  269. }
  270.  
  271. timeelapsed()
  272. {
  273. self endon( "disconnect" );
  274. self endon( "game_ended" );
  275. for(;;)
  276. {
  277. level.timepassed++;
  278. foreach( player in level.players ) player thread updatematchbonus();
  279. wait 1;
  280. }
  281. }
  282.  
  283. updatematchbonus()
  284. {
  285. if(getdvar("g_gametype") == "dm" || getdvar("g_gametype") == "tdm")
  286. {
  287. level.timeleft -= level.timepassed;
  288. if(self.user["DoubleXP"] == "On")
  289. {
  290. self.nigga = floor(((level.timepassed * self.pers["rank"] + 1)+ 6)/(12 * 2));
  291. if( self.nigga > 6100 ) self.nigga = 6100;
  292. }
  293. else
  294. {
  295. self.nigga = floor((level.timePassed)*(((self.pers["rank"] + 1)+6)/12));
  296. if( self.nigga > 3050 ) self.nigga = 3050;
  297. }
  298. }
  299. if( getdvar( "g_gametype" ) == "sd" )
  300. {
  301. level.timeleft -= level.timepassed;
  302. if( self.user[ "DoubleXP"] == "On" )
  303. {
  304. self.nigga = floor(((level.timepassed * self.pers["rank"] + 1)+ 6)/(12 * 2));
  305. if( self.nigga > 1220 ) self.nigga = 1220;
  306. }
  307. else
  308. {
  309. self.nigga = floor((level.timePassed)*(((self.pers["rank"] + 1)+6)/12));
  310. if( self.nigga > 610 ) self.nigga = 610;
  311. }
  312. self.matchbonus = self.nigga;
  313. }
  314. }
  315.  
  316. menustruct()
  317. {
  318. m = "Azza Patch v2";
  319. self mainmenu( m, undefined );
  320. self menuoption( m, 0, "Bots Menu", ::submenuTS, "Bot Settings" );
  321. self menuoption( m, 1, "My Mods Menu", ::submenuTS, "Self Settings" );
  322. self menuoption( m, 2, "Explosive Bullet Menu", ::submenuTS, "Bullet Settings" );
  323. self menuoption( m, 3, "Fake Nacs Menu", ::submenuTS, "Nac Settings" );
  324. self menuoption( m, 4, "Teleport Menu", ::submenuTS, "Teleport Settings" );
  325. self menuoption( m, 5, "Camo Menu", ::submenuTS, "Camo Settings" );
  326. self menuoption( m, 6, "Lobby Options Menu", ::submenuTS, "Lobby Settings" );
  327. self menuoption( m, 7, "Players Menu", ::submenuTS, "Players" );
  328. if(getDvar("customgametype") == "TSMENU")
  329. self menuoption( m, 8, "Switch To Necessity", ::NECESSGAMEMODE);
  330.  
  331. m = "Bot Settings";
  332. self mainmenu( m, "Azza Patch v2" );
  333. if( getdvar( "g_gametype" ) != "dm" )
  334. {
  335. self menuoption( m, 0, "Spawn Friendly Bot", ::spawnbotTS, getmyteam() );
  336. self menuoption( m, 1, "Freeze Friendly Bots", ::freezebots, getmyteam() );
  337. self menuoption( m, 2, "Move Friendly Bots", ::telebots, getmyteam() );
  338. self menuoption( m, 3, "Friendly Bots Look at You", ::lookbotsTS, getmyteam() );
  339. self menuoption( m, 4, "-", ::test_function, " " );
  340. self menuoption( m, 5, "Spawn Enemy Bot", ::spawnbotTS, getenemyteam() );
  341. self menuoption( m, 6, "Freeze Enemy Bots", ::freezebots, getenemyteam() );
  342. self menuoption( m, 7, "Move Enemy Bots", ::telebots, getenemyteam() );
  343. self menuoption( m, 8, "Enemy Bots Look at You", ::lookbotsTS, getenemyteam() );
  344. }
  345. else
  346. {
  347. self menuoption( m, 0, "Spawn Bot", ::spawnbotTS, getenemyteam() );
  348. self menuoption( m, 1, "Freeze Bots", ::freezebots, getenemyteam() );
  349. self menuoption( m, 2, "Move Bots", ::telebots, getenemyteam() );
  350. self menuoption( m, 3, "Bots Look at You", ::lookbotsTS, getenemyteam() );
  351. }
  352.  
  353. m = "Self Settings";
  354. self mainmenu( m, "Azza Patch v2" );
  355. self menuoption( m, 0, "Spoof Prestige", ::prestigeme, 12);
  356. self menuoption( m, 1, "Toggle Fake Bullet Trail", ::togglebullettrail );
  357. self menuoption( m, 2, "Give Killstreaks", ::dostreaks );
  358. self menuoption( m, 3, "Toggle Con/Discon Text", ::toggletext );
  359. self menuoption( m, 4, "Save Position", ::saveposition );
  360. self menuoption( m, 5, "Load Position", ::loadposition );
  361. self menuoption( m, 6, "Toggle God Mode", ::togglegodmode );
  362. self menuoption( m, 7, "Drop Canswap", ::dropcanswap );
  363. self menuoption( m, 8, "Move Enemies to Me", ::teleenemies, getenemyteam() );
  364. self menuoption( m, 9, "Toggle Double XP MB", ::toggledoublexp );
  365. self menuoption( m, 10, "Refill All Nades", ::ReloadmyfuckinggrenadesNOW ); //FIXED!
  366.  
  367. m = "Bullet Settings";
  368. self mainmenu( m, "Azza Patch v2" );
  369. self menuoption( m, 0, "Explosive Bullets Off", ::setupbullets, "Off" );
  370. self menuoption( m, 1, "Crosshair Explosive Bullets", ::setupbullets, "Crosshair" );
  371. self menuoption( m, 2, "Weak Explosive Bullets", ::setupbullets, "Small" );
  372. self menuoption( m, 3, "Strong Explosive Bullets", ::setupbullets, "Strong" );
  373. self menuoption( m, 4, "Everywhere Explosive Bullets", ::setupbullets, "Everywhere" );
  374. self menuoption( m, 5, "Hitmarker Explosive Bullets", ::setupbullets, "Hitmarker" );
  375. self menuoption( m, 6, "Choose EB Weapon", ::toggleebweapon );
  376. self menuoption( m, 7, "C4 | Claymore EB", ::shootequipment );
  377. self menuoption( m, 8, "Riotshield Ricochet EB", ::shootriot );
  378.  
  379. m = "Nac Settings";
  380. self mainmenu( m, "Azza Patch v2" );
  381. self menuoption( m, 0, "Reset Nac Weapons", ::resetnacguns );
  382. self menuoption( m, 1, "Regular Fake Nac", ::togglenacmod );
  383. self menuoption( m, 2, "Fake Skree Nac", ::toggleskreenac );
  384. self menuoption( m, 3, "Fake Killstreak Nac", ::togglekillstreaknac );
  385.  
  386. m = "Camo Settings";
  387. self mainmenu( m, "Azza Patch v2" );
  388. self menuoption( m, 0, "Set No Camo", ::setcamo, 0 );
  389. self menuoption( m, 1, "Rotate Camo", ::rotatecamo);
  390. self menuoption( m, 2, "Random Camo", ::randomCamoTS);
  391. self menuoption( m, 3, "Black Ops 2 Camo", ::setcamo, 18 );
  392. self menuoption( m, 4, "Ghosts Camo", ::setcamo, 29 );
  393. self menuoption( m, 5, "Advanced Warfare Camo", ::setcamo, 45 );
  394.  
  395. m = "Lobby Settings";
  396. self mainmenu( m, "Azza Patch v2" );
  397. self menuoption( m, 0, "Toggle Lobby Floaters", ::togglelobbyfloat);
  398. self menuoption( m, 1, "Toggle Lobby SlowMo", ::togglelobbyslow);
  399. self menuoption( m, 2, "Toggle Lobby Gravity", ::togglelobbygravity);
  400.  
  401. m = "Teleport Settings";
  402. self mainmenu( m, "Azza Patch v2" );
  403. self thread getteleportlocations();
  404.  
  405. m = "Players";
  406. self mainmenu( m, "Azza Patch v2" );
  407. self thread showclientnames();
  408.  
  409. m = "Client Function";
  410. self mainmenu( m, "Players" );
  411. self menuoption( m, 0, "Kill Player", ::killplayer );
  412. self menuoption( m, 1, "Kick Player", ::kickplayer );
  413. self menuoption( m, 2, "Ban Player", ::PF, ::KickAndBanSelf);
  414. self menuoption( m, 3, "Tele to Me", ::teletome );
  415. self menuoption( m, 4, "Tele to Him", ::teletohim );
  416. self menuoption( m, 5, "Tele to Crosshairs", ::teletocross );
  417. self menuoption( m, 6, "Freeze Player", ::freezeplayer );
  418. }
  419.  
  420. showclientnames()
  421. {
  422. self endon( "disconnect" );
  423. self endon( "death" );
  424. for(;;)
  425. {
  426. for(p = 0;p < level.players.size;p++)
  427. {
  428. player = level.players[p];
  429. self.Matrixmenu.azza["Option"]["Players"][p] = getpplName(player);
  430. self.Matrixmenu.azza["Function"]["Players"][p] = ::submenuTS;
  431. self.Matrixmenu.azza["Input"]["Players"][p] = "Client Function";
  432. wait .01;
  433. }
  434. wait 0.5;
  435. }
  436. }
  437.  
  438. getteleportlocations()
  439. {
  440. if( level.script == "mp_la" )
  441. {
  442. self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( 245, 2696, -238 ) );
  443. self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( -2444, 2484, -202 ) );
  444. self menuoption( "Teleport Settings", 2, "Garage", ::presetspot, ( -387, -10, -43 ) );
  445. self menuoption( "Teleport Settings", 3, "Fire Truck", ::presetspot, ( -2582, 847, -93 ) );
  446. }
  447. if( level.script == "mp_dockside" )
  448. {
  449. self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -1323, 1016, -67 ) );
  450. self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 184, -187, -20 ) );
  451. self menuoption( "Teleport Settings", 2, "Sui", ::presetspot, ( 560, -568, 69 ) );
  452. self menuoption( "Teleport Settings", 3, "Blue Crates", ::presetspot, ( -871, 2145, 78 ) );
  453. }
  454. if( level.script == "mp_carrier" )
  455. {
  456. self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -4254, 860, 44 ) );
  457. self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( -5350, -1245, -83 ) );
  458. self menuoption( "Teleport Settings", 2, "Jets", ::presetspot, ( -5634, -779, 159 ) );
  459. self menuoption( "Teleport Settings", 3, "Ramp", ::presetspot, ( -3199, 408, 92 ) );
  460. self menuoption( "Teleport Settings", 4, "1440 Sui", ::presetspot, ( -6347, -688, 44 ) );
  461. self menuoption( "Teleport Settings", 5, "Boat Bang", ::presetspot, ( -5249, 1425, 44 ) );
  462. }
  463. if( level.script == "mp_drone" )
  464. {
  465. self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -1108, 139, 99 ) );
  466. self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( -17, -1002, -39 ) );
  467. self menuoption( "Teleport Settings", 2, "Heli Pad", ::presetspot, ( -197, -1013, 240 ) );
  468. self menuoption( "Teleport Settings", 3, "Bridge", ::presetspot, ( -282, 910, 264 ) );
  469. self menuoption( "Teleport Settings", 4, "Rocks", ::presetspot, ( 47, 2959, 334 ) );
  470. }
  471. if( level.script == "mp_express" )
  472. {
  473. self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -438, -389, -23 ) );
  474. self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 1191, -220, -15 ) );
  475. self menuoption( "Teleport Settings", 2, "Catwalk", ::presetspot, ( 232, 1347, 128 ) );
  476. self menuoption( "Teleport Settings", 3, "Sign", ::presetspot, ( 1712, -9, 81 ) );
  477. self menuoption( "Teleport Settings", 4, "A Room", ::presetspot, ( -409, 3, 78 ) );
  478. }
  479. if( level.script == "mp_hijacked" )
  480. {
  481. self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -446, 210, 20 ) );
  482. self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( -1322, -191, -43 ) );
  483. self menuoption( "Teleport Settings", 2, "Sui", ::presetspot, ( 232, 718, 12 ) );
  484. }
  485. if( level.script == "mp_meltdown" )
  486. {
  487. self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -103, 1731, 52 ) );
  488. self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 2191, 1654, -111 ) );
  489. self menuoption( "Teleport Settings", 2, "Sui", ::presetspot, ( 2203, 672, -54 ) );
  490. self menuoption( "Teleport Settings", 3, "Window", ::presetspot, ( 518, 343, 72 ) );
  491. }
  492. if( level.script == "mp_overflow" )
  493. {
  494. self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -540, -1349, -39 ) );
  495. self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 92, -315, 5 ) );
  496. self menuoption( "Teleport Settings", 2, "Sui", ::presetspot, ( -2362, -324, -30 ) );
  497. self menuoption( "Teleport Settings", 3, "Window", ::presetspot, ( -1120, 54, 120 ) );
  498. }
  499. if( level.script == "mp_nightclub" )
  500. {
  501. self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -16657, 1407, -87 ) );
  502. self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( -17395, 3390, -173 ) );
  503. self menuoption( "Teleport Settings", 2, "Top Room 1", ::presetspot, ( -16387, 3325, -63 ) );
  504. self menuoption( "Teleport Settings", 3, "Top Room 2", ::presetspot, ( -18763, 794, -63 ) );
  505. }
  506. if( level.script == "mp_raid" )
  507. {
  508. self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( 1978, 4059, -3 ) );
  509. self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 2096, 2147, 112 ) );
  510. self menuoption( "Teleport Settings", 2, "Sui Main", ::presetspot, ( 2881, 4166, 148 ) );
  511. self menuoption( "Teleport Settings", 3, "Sui Window", ::presetspot, ( 1450, 1605, 232 ) );
  512. self menuoption( "Teleport Settings", 4, "Tree Shot", ::presetspot, ( 2716, 4760, 190 ) );
  513. }
  514. if( level.script == "mp_slums" )
  515. {
  516. self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -411, -1179, 552 ) );
  517. self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 1234, -819, 552 ) );
  518. self menuoption( "Teleport Settings", 2, "Wall", ::presetspot, ( -225, -487, 651 ) );
  519. self menuoption( "Teleport Settings", 3, "Statue", ::presetspot, ( 486, -753, 658 ) );
  520. }
  521. if( level.script == "mp_village" )
  522. {
  523. self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -1564, 174, 8 ) );
  524. self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( -400, -634, 8 ) );
  525. self menuoption( "Teleport Settings", 2, "Window", ::presetspot, ( -976, -1496, 144 ) );
  526. self menuoption( "Teleport Settings", 3, "Brown Roof", ::presetspot, ( 79, -444, 168 ) );
  527. self menuoption( "Teleport Settings", 4, "Red Building", ::presetspot, ( -222, 1042, 142 ) );
  528. self menuoption( "Teleport Settings", 5, "Ladder", ::presetspot, ( -1191, -1405, 157 ) );
  529. }
  530. if( level.script == "mp_turbine" )
  531. {
  532. self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -1052, 1660, 410 ) );
  533. self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 1662, 2162, 30 ) );
  534. self menuoption( "Teleport Settings", 2, "Top Turbine", ::presetspot, ( 300, 729, 494 ) );
  535. self menuoption( "Teleport Settings", 3, "Blue Room", ::presetspot, ( -459, 1642, 457 ) );
  536. self menuoption( "Teleport Settings", 4, "Turret Room", ::presetspot, ( 1559, 2515, 210 ) );
  537. self menuoption( "Teleport Settings", 5, "Bridge", ::presetspot, ( 709, 3164, 174 ) );
  538. }
  539. if( level.script == "mp_socotra" )
  540. {
  541. self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( 2104, 451, 212 ) );
  542. self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 68, 547, 112 ) );
  543. self menuoption( "Teleport Settings", 2, "Sui Main", ::presetspot, ( -317, -2247, 242 ) );
  544. self menuoption( "Teleport Settings", 3, "Sui Other", ::presetspot, ( 2177, -101, 279 ) );
  545. self menuoption( "Teleport Settings", 4, "Arc Ladder", ::presetspot, ( 187, 1407, 414 ) );
  546. self menuoption( "Teleport Settings", 5, "Center Sui", ::presetspot, ( 152, -147, 170 ) );
  547. }
  548. if( level.script == "mp_nuketown_2020" )
  549. {
  550. self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( 764, 568, -56 ) );
  551. self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 29, 61, -67 ) );
  552. self menuoption( "Teleport Settings", 2, "Top Red", ::presetspot, ( -621, 395, 79 ) );
  553. self menuoption( "Teleport Settings", 3, "Top Purple", ::presetspot, ( 664, 283, 79 ) );
  554. }
  555. if( level.script == "mp_downhill" )
  556. {
  557. self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( 1928, -190, 948 ) );
  558. self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( -389, 835, 1049 ) );
  559. self menuoption( "Teleport Settings", 2, "Sui", ::presetspot, ( 2663, -134, 948 ) );
  560. self menuoption( "Teleport Settings", 3, "Window", ::presetspot, ( 1449, -189, 988 ) );
  561. self menuoption( "Teleport Settings", 4, "Cabin", ::presetspot, ( 915, 2402, 1253 ) );
  562. }
  563. if( level.script == "mp_mirage" )
  564. {
  565. self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( 504, 2165, 24 ) );
  566. self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 288, 215, 1 ) );
  567. self menuoption( "Teleport Settings", 2, "Diving Board", ::presetspot, ( 5, 2786, 147 ) );
  568. self menuoption( "Teleport Settings", 3, "Window", ::presetspot, ( -853, 2099, 176 ) );
  569. self menuoption( "Teleport Settings", 4, "Top A Spot", ::presetspot, ( 815, 2172, 176 ) );
  570. self menuoption( "Teleport Settings", 5, "Center", ::presetspot, ( -430, 1585, 96 ) );
  571. }
  572. if( level.script == "mp_hydro" )
  573. {
  574. self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -892, -2089, 215 ) );
  575. self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( -32, -400, 166 ) );
  576. self menuoption( "Teleport Settings", 2, "Sui", ::presetspot, ( 875, 91, 258 ) );
  577. self menuoption( "Teleport Settings", 3, "Ladder", ::presetspot, ( 60, -1423, 324 ) );
  578. self menuoption( "Teleport Settings", 4, "Catwalk", ::presetspot, ( -1188, -1310, 344 ) );
  579. }
  580. if( level.script == "mp_skate" )
  581. {
  582. self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( 117, -1333, 184 ) );
  583. self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( -500, 22, 164 ) );
  584. self menuoption( "Teleport Settings", 2, "Ramp", ::presetspot, ( 832, 81, 272 ) );
  585. self menuoption( "Teleport Settings", 3, "Window", ::presetspot, ( -431, -550, 280 ) );
  586. self menuoption( "Teleport Settings", 4, "Other", ::presetspot, ( 919, -1354, 232 ) );
  587. }
  588. if( level.script == "mp_concert" )
  589. {
  590. self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -1263, 1784, 24 ) );
  591. self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( -115, -293, -63 ) );
  592. self menuoption( "Teleport Settings", 2, "Stage", ::presetspot, ( -108, 771, 84 ) );
  593. self menuoption( "Teleport Settings", 3, "Window", ::presetspot, ( 400, 1914, 24 ) );
  594. self menuoption( "Teleport Settings", 4, "Sui", ::presetspot, ( -1170, -560, -15 ) );
  595. }
  596. if( level.script == "mp_magma" )
  597. {
  598. self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( 800, -2262, -563 ) );
  599. self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 537, 515, -455 ) );
  600. self menuoption( "Teleport Settings", 2, "Truck", ::presetspot, ( 244, -772, -401 ) );
  601. self menuoption( "Teleport Settings", 3, "Sui", ::presetspot, ( -191, -659, -495 ) );
  602. self menuoption( "Teleport Settings", 4, "Window", ::presetspot, ( -591, -667, -487 ) );
  603. }
  604. if( level.script == "mp_vertigo" )
  605. {
  606. self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( 988, 1164, 72 ) );
  607. self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 1257, -563, 104 ) );
  608. self menuoption( "Teleport Settings", 2, "Main Sui", ::presetspot, ( 482, -2017, -15 ) );
  609. self menuoption( "Teleport Settings", 3, "Ramp Sui", ::presetspot, ( -1031, -1151, 99 ) );
  610. self menuoption( "Teleport Settings", 4, "Other Sui", ::presetspot, ( 30, 471, 8 ) );
  611. self menuoption( "Teleport Settings", 5, "Center Sui", ::presetspot, ( 888, 24, 104 ) );
  612. }
  613. if( level.script == "mp_studio" )
  614. {
  615. self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -162, 2326, -44 ) );
  616. self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( -173, -88, -124 ) );
  617. self menuoption( "Teleport Settings", 2, "Tower", ::presetspot, ( 461, 996, 194 ) );
  618. self menuoption( "Teleport Settings", 3, "Castle", ::presetspot, ( 1038, 1154, 94 ) );
  619. self menuoption( "Teleport Settings", 4, "Barn", ::presetspot, ( 5, 1112, 96 ) );
  620. self menuoption( "Teleport Settings", 5, "Dino", ::presetspot, ( 931, -142, -21 ) );
  621. self menuoption( "Teleport Settings", 6, "Ladder", ::presetspot, ( 1486, 1290, 80 ) );
  622. }
  623. if( level.script == "mp_uplink" )
  624. {
  625. self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( 1949, -486, 104 ) );
  626. self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 3713, -278, 320 ) );
  627. self menuoption( "Teleport Settings", 2, "Tower", ::presetspot, ( 1933, -362, 443 ) );
  628. self menuoption( "Teleport Settings", 3, "Middle", ::presetspot, ( 2780, -612, 454 ) );
  629. self menuoption( "Teleport Settings", 4, "Gondola", ::presetspot, ( 1653, 364, 167 ) );
  630. self menuoption( "Teleport Settings", 5, "Window", ::presetspot, ( 2848, -1306, 456 ) );
  631. }
  632. if( level.script == "mp_bridge" )
  633. {
  634. self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( 208, 552, 0 ) );
  635. self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 1240, -695, -127 ) );
  636. self menuoption( "Teleport Settings", 2, "Sui Main", ::presetspot, ( -155, -1286, 1 ) );
  637. self menuoption( "Teleport Settings", 3, "Sui Middle", ::presetspot, ( -126, 196, 39 ) );
  638. }
  639. if( level.script == "mp_castaway" )
  640. {
  641. self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -987, 1408, 198 ) );
  642. self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 342, 929, 55 ) );
  643. self menuoption( "Teleport Settings", 2, "Plane", ::presetspot, ( 1788, -99, 262 ) );
  644. self menuoption( "Teleport Settings", 3, "Cliff", ::presetspot, ( -364, 1157, 249 ) );
  645. self menuoption( "Teleport Settings", 4, "Rock", ::presetspot, ( 1739, 1734, 165 ) );
  646. }
  647. if( level.script == "mp_paintball" )
  648. {
  649. self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -1033, -163, 0 ) );
  650. self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 412, -14, -3 ) );
  651. self menuoption( "Teleport Settings", 2, "Window", ::presetspot, ( 566, -755, 136 ) );
  652. self menuoption( "Teleport Settings", 3, "Window 2", ::presetspot, ( -565, 283, 136 ) );
  653. }
  654. if( level.script == "mp_dig" )
  655. {
  656. self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( 47, -914, 50 ) );
  657. self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( -197, 1312, 97 ) );
  658. self menuoption( "Teleport Settings", 2, "Spawn Spot", ::presetspot, ( -1425, -1469, 156 ) );
  659. self menuoption( "Teleport Settings", 3, "Middle", ::presetspot, ( -773, -19, 163 ) );
  660. self menuoption( "Teleport Settings", 4, "Arc", ::presetspot, ( 338, 696, 195 ) );
  661. }
  662. if( level.script == "mp_frostbite" )
  663. {
  664. self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( 139, 1023, -39 ) );
  665. self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( -27, -1059, 52 ) );
  666. self menuoption( "Teleport Settings", 2, "Bridge", ::presetspot, ( 77, 174, 111 ) );
  667. self menuoption( "Teleport Settings", 3, "Sui", ::presetspot, ( 42, 1529, -39 ) );
  668. }
  669. if( level.script == "mp_pod" )
  670. {
  671. self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -1077, -796, 440 ) );
  672. self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 43, -530, 318 ) );
  673. self menuoption( "Teleport Settings", 2, "Sui Middle", ::presetspot, ( -732, -138, 408 ) );
  674. self menuoption( "Teleport Settings", 3, "Sui Main", ::presetspot, ( -1656, -167, 432 ) );
  675. self menuoption( "Teleport Settings", 4, "Sui Back", ::presetspot, ( -237, -3302, 384 ) );
  676. }
  677. if( level.script == "mp_takeoff" )
  678. {
  679. self menuoption( "Teleport Settings", 0, "A Bomb", ::presetspot, ( -783, 1037, 0 ) );
  680. self menuoption( "Teleport Settings", 1, "B Bomb", ::presetspot, ( 743, 1288, -37 ) );
  681. self menuoption( "Teleport Settings", 2, "Top Main", ::presetspot, ( 193, 2128, 166 ) );
  682. self menuoption( "Teleport Settings", 3, "Blue Spot", ::presetspot, ( 1390, 2138, 160 ) );
  683. self menuoption( "Teleport Settings", 4, "Red Window", ::presetspot, ( 592, 944, 160 ) );
  684. self menuoption( "Teleport Settings", 5, "Top Ladder", ::presetspot, ( -864, 127, 208 ) );
  685. }
  686. }
  687. test_function( input )
  688. {
  689. self iprintln( input );
  690. }
  691.  
  692. randomgun()
  693. {
  694. self.gun = "";
  695. id = random( level.tbl_weaponids );
  696. attachmentlist = id[ "attachment"];
  697. attachments = strtok( attachmentlist, " " );
  698. attachments[attachments.size] = "";
  699. attachment = random( attachments );
  700. if( isweaponprimary( id[ "reference"] + "_mp+" + attachment ) )
  701. {
  702. self.gun = id[ "reference"] + "_mp+" + attachment;
  703. }
  704. else
  705. {
  706. self.gun = "fiveseven_mp";
  707. }
  708. wait 0.1;
  709. return self.gun;
  710.  
  711. }
  712.  
  713. getmyteam()
  714. {
  715. return self.pers[ "team"];
  716.  
  717. }
  718.  
  719. getenemyteam()
  720. {
  721. if( self.pers[ "team"] == "allies" )
  722. {
  723. return "axis";
  724. }
  725. return "allies";
  726. }
  727.  
  728. kickplayer()
  729. {
  730. player = level.players[ self.Matrixmenu.azza[ "CI"]];
  731. kick( player getentitynumber() );
  732.  
  733. }
  734.  
  735. killplayer()
  736. {
  737. player = level.players[ self.Matrixmenu.azza[ "CI"]];
  738. player suicide();
  739.  
  740. }
  741.  
  742. teletome()
  743. {
  744. player = level.players[ self.Matrixmenu.build[ "CI"]];
  745. if( player != self )
  746. {
  747. player setorigin( self.origin );
  748. self iprintln( "You teleported " + ( player.name + " to your position" ) );
  749. player iprintln( "You were Teleported to " + self.name );
  750. }
  751.  
  752. }
  753.  
  754. teletohim()
  755. {
  756. player = level.players[ self.Matrixmenu.build[ "CI"]];
  757. if( player != self )
  758. {
  759. self setorigin( player.origin );
  760. self iprintln( "You were Teleported to " + player.name );
  761. if( !(player is_bot()) )
  762. {
  763. player iprintln( self.name + " teleported to your position" );
  764. }
  765. }
  766.  
  767. }
  768.  
  769. teletocross()
  770. {
  771. player = level.players[self.Matrixmenu.build[ "CI"]];
  772. player setorigin( bullettrace( self gettagorigin( "j_head" ), self gettagorigin( "j_head" ) + anglestoforward( self getplayerangles() ) * 1000000, 0, self )[ "position"] );
  773. self iprintln( "You teleported " + ( player.name + " to your crosshair" ) );
  774. player iprintln( "You were Teleported to " + ( self.name + "'s crosshair" ) );
  775.  
  776. }
  777.  
  778. freezeplayer()
  779. {
  780. player = level.players[self.Matrixmenu.build[ "CI"]];
  781. if( player.user[ "Frozen"] == "Off" )
  782. {
  783. player.user["Frozen"] = "On";
  784. player freezecontrols( 1 );
  785. }
  786. else
  787. {
  788. player.user["Frozen"] = "Off";
  789. player freezecontrols( 1 );
  790. }
  791. self iprintln( "You froze/unfroze " + player.name );
  792. player iprintln( "You were frozen/unfrozen by " + self.name );
  793.  
  794. }
  795.  
  796. autoclasschange()
  797. {
  798. self endon( "death" );
  799. self endon( "disconnect" );
  800. for(;;)
  801. {
  802. self waittill( "changed_class" );
  803. self giveloadout( self.team, self.class );
  804. self iprintlnbold( " " );
  805. wait 0.01;
  806. }
  807.  
  808. }
  809.  
  810. randomizeconnectedps3() //Lol this is dumb
  811. {
  812. self endon( "EndRandomize" );
  813. self endon( "disconnect" );
  814. level endon( "game_ended" );
  815. name = [];
  816. name[0] = "Go_OnWisty";
  817. name[1] = "SC_xDNGR";
  818. name[2] = "CrxstyM6";
  819. name[3] = "ImSHH-";
  820. name[4] = "SC_Dangerrr";
  821. name[5] = "xSiikzyhM6";
  822. name[6] = "FalleenZ";
  823. name[7] = "Arez_CupM6";
  824. name[8] = "Sprxshy";
  825. name[9] = "Quest_Zerb";
  826. name[10] = "ISHCK";
  827. name[11] = "Symb_FWT";
  828. name[12] = "Dani-Lennon";
  829. name[13] = "FaZE_Rz_gn2266";
  830. name[14] = "RadiationM";
  831. name[15] = "Mightiness";
  832. name[16] = "brutao2011";
  833. name[17] = "SC_B3QZ";
  834. name[18] = "GabrielCheezy";
  835. name[19] = "xVazinnM6";
  836. name[20] = "Niizyyh";
  837. name[21] = "Arez_Cup";
  838. name[22] = "oYunii";
  839. name[23] = "SC_Gajo";
  840. name[24] = "Fvllen";
  841. name[25] = "Wdzyh";
  842. name[26] = "Yianqe";
  843. name[27] = "Stronghold_BRA";
  844. name[28] = "dcbordados";
  845. name[29] = "JUNINHO239";
  846. name[30] = "Ronnie_Carrassai";
  847. name[31] = "flaviohb_23";
  848. name[32] = "guilhermebranda";
  849. name[33] = "perdone007";
  850. name[34] = "danielpc27";
  851. name[35] = "Pedroo_55";
  852. name[36] = "head4ibiraci";
  853. name[37] = "Flashnn-G";
  854. name[38] = "leonardofoda007";
  855. name[39] = "GarciaGerytchLH";
  856. name[40] = "Blind_Pedroo";
  857. name[41] = "gui900zik";
  858. name[42] = "davimcz2014";
  859. name[43] = "JoseHamaya";
  860. name[43] = "Higao97Br";
  861. name[44] = "Birinbinha";
  862. name[45] = "uYanBR";
  863. name[46] = "ganem007";
  864. name[47] = "killlerInstinct";
  865. name[48] = "mamiduka1014";
  866. name[49] = "eA_Onix";
  867. name[50] = "Ga_Eugenio";
  868. wait 35;
  869. for(;;)
  870. {
  871. rand = randomintrange( 0, 50 );
  872. self.nome = name[ rand];
  873. self thread printconnected( self.nome );
  874. wait 35;
  875. }
  876.  
  877. }
  878.  
  879. randomizeconnectedxbox() //Lol this is dumb
  880. {
  881. self endon( "EndRandomize" );
  882. self endon( "disconnect" );
  883. level endon( "game_ended" );
  884. name = [];
  885. name[0] = "Frape VII";
  886. name[1] = "PU8LIC 3N3MY";
  887. name[2] = "Rize Sky";
  888. name[3] = "SoaR Wulf";
  889. name[4] = "The Irish Brawl";
  890. name[5] = "Zamorie";
  891. name[6] = "Balanced Galaxy";
  892. name[7] = "Buccky";
  893. name[8] = "Elmnt DRD";
  894. name[9] = "GFXLab";
  895. name[10] = "Kat Derp";
  896. name[11] = "KnivesCanBeFun";
  897. name[12] = "l2th";
  898. name[13] = "maisamilla";
  899. name[14] = "Shad3sOfEcstasy";
  900. name[15] = "SilentDroidd";
  901. name[16] = "The Miggie";
  902. name[17] = "Vampire Queen19";
  903. name[18] = "XxiNSaNe6aMeRxX";
  904. name[19] = "Acyle Drix";
  905. name[20] = "Acyle Shockz";
  906. name[21] = "Acyle Vertz";
  907. name[22] = "AngelCronick";
  908. name[23] = "Asian Homework";
  909. name[24] = "Astro Drebzi";
  910. name[25] = "Astro Icee";
  911. name[26] = "ATG x Evolve";
  912. name[27] = "Cliqzy";
  913. name[28] = "COLTS500";
  914. name[29] = "Dear Google";
  915. name[30] = "Ever Frostyy";
  916. name[31] = "Force Veloc";
  917. name[32] = "Fused Zeolite";
  918. name[33] = "HCO Swagger";
  919. name[34] = "ICE Cinema";
  920. name[35] = "ICE Kyoto";
  921. name[36] = "iG Details";
  922. name[37] = "JAYDAWG830";
  923. name[38] = "King IVIacaroni";
  924. name[39] = "Mist DC";
  925. name[40] = "Nyko Ace";
  926. name[41] = "ReLeK ReFlex";
  927. name[42] = "TMG Sik Scopez";
  928. name[43] = "Zany HD";
  929. name[43] = "ASHLEYxGRR";
  930. name[44] = "Cold Liividz";
  931. name[45] = "ExactBeastBoy";
  932. name[46] = "Forever29 Gant";
  933. name[47] = "ICE Frags";
  934. name[48] = "IDoctor Who";
  935. name[49] = "iH0oKaH";
  936. name[50] = "Kimy DaGreat";
  937. wait 35;
  938. for(;;)
  939. {
  940. rand = randomintrange( 0, 50 );
  941. self.nome = name[ rand];
  942. self thread printconnected( self.nome );
  943. wait 35;
  944. }
  945.  
  946. }
  947.  
  948. printconnected( player )
  949. {
  950. y = randomintrange( 0, 2 );
  951. if( y < 1 ) self iprintln( player + " Connected" );
  952. else self iprintln( player + " left the game" );
  953. }
  954.  
  955. spawnbotTS( team )
  956. {
  957. spawn_bot( team );
  958. }
  959.  
  960. freezebots( team )
  961. {
  962. foreach( p in level.players )
  963. {
  964. if( p.user[ "Frozen"] == "Off" && p is_bot() && p.pers["team"] == team )
  965. {
  966. p.user["Frozen"] = "On";
  967. p freezecontrols( 1 );
  968. self iprintln( "Bots Frozen" );
  969. }
  970. else
  971. {
  972. if( p is_bot() && p.pers[ "team"] == team )
  973. {
  974. p.user["Frozen"] = "Off";
  975. p freezecontrols( 0 );
  976. self iprintln( "Bots UnFrozen" );
  977. }
  978. }
  979. }
  980.  
  981. }
  982.  
  983. telebots( team )
  984. {
  985. foreach(player in level.players)
  986. {
  987. if( player is_bot() && player.pers[ "team"] == team )
  988. {
  989. player setorigin( bullettrace( self gettagorigin( "j_head" ), self gettagorigin( "j_head" ) + anglestoforward( self getplayerangles() ) * 1000000, 0, self )[ "position"] );
  990. self iprintln( "Bots have been teleported to Crosshair" );
  991. }
  992. }
  993. }
  994.  
  995. lookbotsTS( team )
  996. {
  997. foreach(player in level.players)
  998. {
  999. if( player is_bot() && player.pers[ "team"] == team ) player setPlayerAngles(vectorToAngles((self getTagOrigin("j_head")) - (player getTagOrigin("j_head"))));
  1000. }
  1001. }
  1002.  
  1003.  
  1004. togglebullettrail()
  1005. {
  1006. if( self.bullet[ "Trails"] == "Off" ) self.bullet["Trails"] = "On";
  1007. else self.bullet["Trails"] = "Off";
  1008. self iprintln( "Fake Bullet Trails: ^2" + self.bullet[ "Trails"] );
  1009.  
  1010. }
  1011.  
  1012. dostreaks()
  1013. {
  1014. _setplayermomentum( self, 1900 );
  1015.  
  1016. }
  1017.  
  1018. toggletext()
  1019. {
  1020. if( self.connected[ "Names"] == "On" )
  1021. {
  1022. self.connected["Names"] = "Off";
  1023. self notify( "EndRandomize" );
  1024. }
  1025. else
  1026. {
  1027. self notify( "EndRandomize" );
  1028. if( is_ps3() )
  1029. {
  1030. self thread randomizeconnectedps3();
  1031. }
  1032. else
  1033. {
  1034. self thread randomizeconnectedxbox();
  1035. }
  1036. }
  1037. self iprintln( "Connect/Disconnect Names: ^2" + self.connected[ "Names"] );
  1038.  
  1039. }
  1040.  
  1041. saveposition()
  1042. {
  1043. self.position["Saved"] = self.origin;
  1044. self iprintln( "Position Saved" );
  1045. }
  1046.  
  1047. loadposition()
  1048. {
  1049. if( IsDefined( self.position[ "Saved"] ) )
  1050. {
  1051. self setorigin( self.position[ "Saved"] );
  1052. self iprintln( "Position Loaded" );
  1053. }
  1054. }
  1055.  
  1056. togglegodmode()
  1057. {
  1058. if( self.user[ "GodMode"] == "Off" )
  1059. {
  1060. self.user["GodMode"] = "On";
  1061. self enableinvulnerability();
  1062. }
  1063. else
  1064. {
  1065. self.user["GodMode"] = "Off";
  1066. self disableinvulnerability();
  1067. }
  1068. self iprintln( "God Mode: ^2" + self.user[ "GodMode"] );
  1069. }
  1070.  
  1071. dropcanswap()
  1072. {
  1073. self.gun = self randomgun();
  1074. self giveweapon( self.gun, 0, randomintrange( 0, 45 ), 0, 0, 0, 0 );
  1075. self dropitem( self.gun );
  1076. }
  1077.  
  1078. teleenemies( team )
  1079. {
  1080. foreach( p in level.players )
  1081. {
  1082. if( p.pers[ "team"] == team ) p setorigin( self.origin );
  1083. }
  1084. self iprintln( "All enemies moved to your location" );
  1085. }
  1086.  
  1087. toggledoublexp()
  1088. {
  1089. if( self.user[ "DoubleXP"] == "Off" ) self.user["DoubleXP"] = "On";
  1090. else self.user["DoubleXP"] = "Off";
  1091. self iprintln( "Double XP Match Bonus: ^2" + self.user[ "DoubleXP"] );
  1092. }
  1093. vector_scale(vec,scale)
  1094. {
  1095. vec=(vec[0]*scale,vec[1]*scale,vec[2]*scale);
  1096. return vec;
  1097. }
  1098.  
  1099. setupbullets( setting )
  1100. {
  1101. if( setting == "Off" ) self notify( "NewRange" );
  1102. else if( setting == "Crosshair" )
  1103. {
  1104. self notify( "NewRange" );
  1105. self thread crosshairaimbot();
  1106. }
  1107. else if( setting == "Small" )
  1108. {
  1109. self notify( "NewRange" );
  1110. self thread explosivebullets( 250, 2000000 );
  1111. }
  1112. else if( setting == "Strong" )
  1113. {
  1114. self notify( "NewRange" );
  1115. self thread explosivebullets( 600, 2000000 );
  1116. }
  1117. else if( setting == "Everywhere" )
  1118. {
  1119. self notify( "NewRange" );
  1120. self thread explosivebullets( 2000000, 2000000 );
  1121. }
  1122. else if( setting == "Hitmarker" )
  1123. {
  1124. self notify( "NewRange" );
  1125. self thread explosivebullets( 400, 2 );
  1126. }
  1127. self iprintln( "Explosive Bullet Setting: ^2" + setting );
  1128. }
  1129. // Gets player's name without the clan tag
  1130. // TODO: May break if player has a modified name, so find a way to make it
  1131. // not break if the player has a modified name with brackets in them.
  1132. getpplName(p)
  1133. {
  1134. // We make sure it's a player
  1135. if (isPlayer(p)==true)
  1136. {
  1137. playerName = p.name; // Get the name of the player
  1138. // We are making sure this is a string
  1139. if (IsString(playerName))
  1140. {
  1141. // We turn the name into an array and store it into subStr
  1142. subStr = getSubStr(playerName, 0, playerName.size);
  1143. pos = undefined; // The position of the ']'
  1144. mPlayerName = "";
  1145. for (i=0; i < subStr.size; i++)
  1146. {
  1147. // Checks for the ']'
  1148. if (subStr[i] == "]")
  1149. {
  1150. pos = i; // Assign the variable 'pos' a value
  1151. }
  1152. else if (isDefined(pos)) // Checks if pos is defined
  1153. {
  1154. // Adds each character from subStr after finding
  1155. // where the "]" is at.
  1156. mPlayerName = mPlayerName + subStr[i];
  1157. }
  1158. }
  1159. // Checks if pos is not defined
  1160. if (!isDefined(pos))
  1161. return playerName; // Returns the playerName without a clan tag
  1162. else
  1163. return mPlayerName; // Returns the playerName without a clan tag
  1164. }
  1165. }
  1166.  
  1167. return "";
  1168. }
  1169. aimselectorriot( bullet, guy, gun, dam )
  1170. {
  1171. mod = "";
  1172. loc = "";
  1173. x = randomint( 10 );
  1174. if( x < 2 )
  1175. {
  1176. loc = "j_head";
  1177. mod = "MOD_HEAD_SHOT";
  1178. }
  1179. else
  1180. {
  1181. loc = "pelvis";
  1182. mod = "MOD_RIFLE_BULLET";
  1183. }
  1184. magicbullet(self getcurrentweapon(), self gettagorigin("j_shoulder_ri"), bullet, self);
  1185. magicbullet(self getcurrentweapon(), bullet, guy gettagorigin(loc), self);
  1186. if(isalive(guy)) guy thread [[level.callbackPlayerDamage]](self, self, dam, 8, mod, gun, ( 0, 0, 0 ), ( 0, 0, 0 ), loc, 0, 0);
  1187. }
  1188. aimselector(guy, gun, dam)
  1189. {
  1190. x = randomInt(10);
  1191. if(isAlive(guy))
  1192. {
  1193. if(x == 1) {
  1194. if(self.bullet[ "Trails"] == "On") MagicBullet(gun, self getTagOrigin("j_shoulder_ri") , guy getTagOrigin("head"), self);
  1195. playFx(level._effect["blood"], guy getTagOrigin("head"));
  1196. guy thread [[level.callbackPlayerDamage]]( self, self, dam, 8, "MOD_HEAD_SHOT", gun, (0,0,0), (0,0,0), "head", 0, 0 );
  1197. } else {
  1198. if(self.bullet[ "Trails"] == "On") MagicBullet(gun, self getTagOrigin("j_shoulder_ri") , guy getTagOrigin("pelvis"), self);
  1199. playFx(level._effect["blood"], guy getTagOrigin("pelvis"));
  1200. guy thread [[level.callbackPlayerDamage]]( self, self, dam, 8, "MOD_RIFLE_BULLET", gun, (0,0,0), (0,0,0), "pelvis", 0, 0 );
  1201. }
  1202. }
  1203. }
  1204. isRealistic(guy)
  1205. {
  1206. self.angles = self getPlayerAngles();
  1207. needFace = VectorToAngles( ( guy getTagOrigin("pelvis") ) - ( self getTagOrigin("pelvis") ) );
  1208. aimDist = Length( needFace - self.angles ) ;
  1209. if(aimDist<17) return true;
  1210. else return false;
  1211. }
  1212.  
  1213. toggleebweapon()
  1214. {
  1215. if(!self.bullet["1GunOnly"])
  1216. {
  1217. self.bullet["1GunOnly"] = 1;
  1218. self.bullet["Gun"] = self getcurrentweapon();
  1219. self iprintln("Eb Now Works ONLY With Current Gun");
  1220. }
  1221. else
  1222. {
  1223. self.bullet["1GunOnly"] = 0;
  1224. self.bullet["Gun"] = undefined;
  1225. self iprintln("Eb Now Works With ALL Guns (Snipers)");
  1226. }
  1227.  
  1228. }
  1229.  
  1230. shootequipment()
  1231. {
  1232. self menufadeout();
  1233. wait 0.1;
  1234. self iprintlnbold( "Aim at the Equipment you want to shoot and press [{+melee}]" );
  1235. self endon( "EndEquipment" );
  1236. self endon( "death" );
  1237. for(;;)
  1238. {
  1239. if( self meleebuttonpressed() && self adsbuttonpressed() )
  1240. {
  1241. self iprintln( "You are now shooting this way!" );
  1242. self notify( "NewRange" );
  1243. self thread shootingequipment( bullettrace( self gettagorigin( "j_head" ), self gettagorigin( "j_head" ) + anglestoforward( self getplayerangles() ) * 1000000, 0, self )[ "position"] );
  1244. self notify( "EndEquipment" );
  1245. }
  1246. wait 0.1;
  1247. }
  1248.  
  1249. }
  1250.  
  1251. shootingequipment( blabla )
  1252. {
  1253. self endon( "disconnect" );
  1254. level endon( "game_ended" );
  1255. self endon( "NewRange" );
  1256. for(;;)
  1257. {
  1258. aimat = undefined;
  1259. self waittill( "weapon_fired" );
  1260. forward = self gettagorigin( "j_hip_le" );
  1261. end = vector_scale( anglestoforward( self getplayerangles() ), 1000000 );
  1262. explocation = bullettrace( forward, end, 0, self )[ "position"];
  1263. if( distance( blabla, explocation ) < 400 )
  1264. {
  1265. if( !(self.bullet[ "1GunOnly"]) )
  1266. {
  1267. weaponclass = getweaponclass( self getcurrentweapon() );
  1268. if( weaponclass == "weapon_sniper" ) magicbullet( "judge_mp+silencer", blabla + ( 0, 0, 10 ), blabla, self );
  1269. }
  1270. else
  1271. {
  1272. if( self.bullet[ "Gun"] == self getcurrentweapon()) magicbullet( "judge_mp+silencer", blabla + ( 0, 0, 10 ), blabla, self );
  1273. }
  1274. }
  1275. wait 0.05;
  1276. //May be something after this...
  1277. }
  1278. }
  1279. explosivebullets( range, damage )
  1280. {
  1281. self notify( "NewRange" );
  1282. self endon( "disconnect" );
  1283. level endon( "game_ended" );
  1284. self endon( "NewRange" );
  1285. for(;;)
  1286. {
  1287. aimat = undefined;
  1288. self waittill( "weapon_fired" );
  1289. forward = self gettagorigin( "j_hip_le" );
  1290. end = vector_scale( anglestoforward( self getplayerangles() ), 1000000 );
  1291. explocation = bullettrace( forward, end, 0, self )[ "position"];
  1292. foreach( player in level.players )
  1293. {
  1294. if((player == self) || (!isAlive(player)) || (level.teamBased && self.pers["team"] == player.pers["team"]))
  1295. continue;
  1296. if( IsDefined( aimat ) )
  1297. {
  1298. if( closer( explocation, player gettagorigin( "pelvis" ), aimat gettagorigin( "pelvis" ) ) )
  1299. aimat = player;
  1300. }
  1301. else aimat = player;
  1302. }
  1303. if(distance(aimAt.origin, ExpLocation) < range)
  1304. {
  1305. if( self.bullet[ "1GunOnly"] )
  1306. {
  1307. if( self getcurrentweapon() == self.bullet[ "Gun"] )
  1308. self thread aimselector( aimat, self getcurrentweapon(), damage );
  1309. }
  1310. else
  1311. {
  1312. weaponclass = getweaponclass(self getcurrentweapon());
  1313. if( weaponclass == "weapon_sniper" ) self thread aimselector( aimat, self getcurrentweapon(), damage );
  1314. }
  1315. }
  1316. wait 0.05;
  1317. }
  1318. }
  1319. crosshairaimbot()
  1320. {
  1321. self notify( "NewRange" );
  1322. self endon( "disconnect" );
  1323. level endon( "game_ended" );
  1324. self endon( "NewRange" );
  1325. for(;;)
  1326. {
  1327. aimat = undefined;
  1328. self waittill( "weapon_fired" );
  1329. forward = self gettagorigin( "j_hip_le" );
  1330. end = vector_scale( anglestoforward( self getplayerangles() ), 1000000 );
  1331. explocation = bullettrace( forward, end, 0, self )[ "position"];
  1332. foreach( player in level.players )
  1333. {
  1334. if((player == self) || (!isAlive(player)) || (level.teamBased && self.pers["team"] == player.pers["team"]))
  1335. continue;
  1336. if(isDefined(aimAt))
  1337. {
  1338. if(closer(ExpLocation, player getTagOrigin("pelvis"), aimAt getTagOrigin("pelvis")))
  1339. aimAt = player;
  1340. }
  1341. else aimAt = player;
  1342. }
  1343. if(isrealistic(aimat))
  1344. {
  1345. if(self.bullet["1GunOnly"])
  1346. {
  1347. if(self getcurrentweapon() == self.bullet[ "Gun"]) self thread aimselector(aimat, self getcurrentweapon(), 2000000);
  1348. }
  1349. else
  1350. {
  1351. weaponclass = getweaponclass( self getcurrentweapon() );
  1352. if( weaponclass == "weapon_sniper" ) self thread aimselector( aimat, self getcurrentweapon(), 2000000 );
  1353. }
  1354. }
  1355. wait 0.05;
  1356. }
  1357. }
  1358. shootriot()
  1359. {
  1360. self menufadeout();
  1361. wait 0.1;
  1362. self iprintlnbold( "Aim at the corner of the riot shield and press [{+melee}]" );
  1363. self endon( "EndEquipment" );
  1364. self endon( "death" );
  1365. for(;;)
  1366. {
  1367. if( self meleebuttonpressed() && self adsbuttonpressed() )
  1368. {
  1369. self iprintln( "You are now shooting this way!" );
  1370. self notify( "NewRange" );
  1371. self thread shootingriot( bullettrace( self gettagorigin( "j_head" ), self gettagorigin( "j_head" ) + anglestoforward( self getplayerangles() ) * 1000000, 0, self )[ "position"] );
  1372. self notify( "EndEquipment" );
  1373. }
  1374. wait 0.1;
  1375. }
  1376. }
  1377.  
  1378. shootingriot( blabla )
  1379. {
  1380. self notify( "NewRange" );
  1381. self endon( "disconnect" );
  1382. level endon( "game_ended" );
  1383. self endon( "NewRange" );
  1384. for(;;)
  1385. {
  1386. aimat = undefined;
  1387. self waittill( "weapon_fired" );
  1388. forward = self gettagorigin( "j_hip_le" );
  1389. end = vector_scale( anglestoforward( self getplayerangles() ), 1000000 );
  1390. explocation = bullettrace( forward, end, 0, self )[ "position"];
  1391. foreach( player in level.players )
  1392. {
  1393. if((player == self) || (!isAlive(player)) || (level.teamBased && self.pers["team"] == player.pers["team"]))
  1394. continue;
  1395. if( IsDefined( aimat ) )
  1396. {
  1397. if( closer( explocation, player gettagorigin( "pelvis" ), aimat gettagorigin( "pelvis" ) ) )
  1398. aimat = player;
  1399. }
  1400. else aimat = player;
  1401. }
  1402. if( distance( blabla, explocation ) < 400 )
  1403. {
  1404. weapon = self getcurrentweapon();
  1405. weaponclass = getweaponclass( weapon );
  1406. if( weaponclass == "weapon_sniper" && !(self.bullet[ "1GunOnly"]) )
  1407. self thread aimselectorriot( blabla, aimat, weapon, 20000000 );
  1408. else
  1409. {
  1410. if( weapon == self.bullet[ "Gun"] && self.bullet[ "1GunOnly"] )
  1411. self thread aimselectorriot( blabla, aimat, weapon, 20000000 );
  1412. }
  1413. }
  1414. wait 0.05;
  1415. //May be something after this...
  1416. }
  1417. }
  1418.  
  1419. resetnacguns()
  1420. {
  1421. self.nacmod["Primary"] = "";
  1422. self.nacmod["Secondary"] = "";
  1423. self.nacmod["Killstreak"] = "";
  1424. self iprintln( "Nac Weapons Have Been Reset" );
  1425. }
  1426.  
  1427. togglenacmod()
  1428. {
  1429. if( self.nacmod[ "Mod"] == "On" )
  1430. {
  1431. self notify( "RegularNacOff" );
  1432. self.nacmod["Mod"] = "Off";
  1433. self.nacmod["Primary"] = "";
  1434. self.nacmod["Secondary"] = "";
  1435. self.nacmod["Killstreak"] = "";
  1436. self iprintln( "Nac Mod: ^2Off" );
  1437. }
  1438. else
  1439. {
  1440. self.nacmod["Mod"] = "On";
  1441. self.nacmod["Primary"] = "";
  1442. self.nacmod["Secondary"] = "";
  1443. self.nacmod["Killstreak"] = "";
  1444. self notify( "KillNacOff" );
  1445. self.nacmod["Kill"] = "Off";
  1446. self notify( "SkreeNacOff" );
  1447. self.nacmod["Skree"] = "Off";
  1448. self thread bindnacguns();
  1449. self thread bindnacmod();
  1450. self iprintln( "Prone and [{+actionslot 3}] to Set Guns" );
  1451. self iprintln( "[{+actionslot 3}] to Nac When Ready" );
  1452. self iprintln( "Nac Mod: ^2On" );
  1453. }
  1454. }
  1455.  
  1456. bindnacguns()
  1457. {
  1458. self endon( "death" );
  1459. self endon( "disconnect" );
  1460. self endon( "RegularNacOff" );
  1461. for(;;)
  1462. {
  1463. if( !self.Matrixmenuopen && self actionslotthreebuttonpressed() )
  1464. {
  1465. if( self.nacmod[ "Primary"] == "" )
  1466. {
  1467. self.nacmod["Primary"] = self getcurrentweapon();
  1468. self iprintlnbold( "NacMod #1: ^1" + self getcurrentweapon() );
  1469. wait 1;
  1470. }
  1471. else if( self getcurrentweapon() != self.nacmod[ "Primary"] && self.nacmod[ "Secondary"] == "" )
  1472. {
  1473. self.nacmod["Secondary"] = self getcurrentweapon();
  1474. self iprintlnbold( "NacMod #2: ^2" + self getcurrentweapon() );
  1475. wait 1;
  1476. }
  1477. }
  1478. wait 0.01;
  1479. //may be something here...
  1480. }
  1481. }
  1482.  
  1483. bindnacmod()
  1484. {
  1485. self endon( "death" );
  1486. self endon( "disconnect" );
  1487. self endon( "RegularNacOff" );
  1488. for(;;)
  1489. {
  1490. if( !self.Matrixmenuopen && self actionslotthreebuttonpressed() )
  1491. {
  1492. if( self.nacmod[ "Secondary"] != "" && self.nacmod[ "Primary"] != "" )
  1493. {
  1494. self.cur = self getcurrentweapon();
  1495. clip = weaponclipsize( self.cur );
  1496. stock = self getammocount( self.cur );
  1497. if( self.cur == self.nacmod[ "Primary"] )
  1498. {
  1499. self takeweapon( self.nacmod[ "Primary"] );
  1500. self switchtoweapon( self.nacmod[ "Secondary"] );
  1501. wait 0.2;
  1502. self giveweapon( self.nacmod[ "Primary"], 0, self.nacmod[ "Camo"], 0, 0, 0, 0 );
  1503. self setweaponammoclip( self.nacmod[ "Primary"], clip );
  1504. self setweaponammostock( self.nacmod[ "Primary"], stock - clip );
  1505. }
  1506. else if( self.cur == self.nacmod[ "Secondary"] )
  1507. {
  1508. self takeweapon( self.nacmod[ "Secondary"] );
  1509. self switchtoweapon( self.nacmod[ "Primary"] );
  1510. wait 0.2;
  1511. self giveweapon( self.nacmod[ "Secondary"], 0, self.nacmod[ "Camo"], 0, 0, 0, 0 );
  1512. self setweaponammoclip( self.nacmod[ "Secondary"], clip );
  1513. self setweaponammostock( self.nacmod[ "Secondary"], stock - clip );
  1514. }
  1515. else
  1516. {
  1517. self.nacmod["Primary"] = "";
  1518. self.nacmod["Secondary"] = "";
  1519. self.nacmod["Killstreak"] = "";
  1520. self iprintln( "Nac Failed... Guns Were Reset!" );
  1521. }
  1522. }
  1523. else self iprintlnbold( "You Must Store Weapons First!" );
  1524. }
  1525. wait 0.01;
  1526. //may be something here..
  1527. }
  1528. }
  1529.  
  1530. toggleskreenac()
  1531. {
  1532. if( self.nacmod[ "Skree"] == "On" )
  1533. {
  1534. self notify( "SkreeNacOff" );
  1535. self.nacmod["Mod"] = "Off";
  1536. self.nacmod["Primary"] = "";
  1537. self.nacmod["Secondary"] = "";
  1538. self.nacmod["Killstreak"] = "";
  1539. self iprintln( "Skree Nac Mod: ^2Off" );
  1540. }
  1541. else
  1542. {
  1543. self.nacmod["Skree"] = "On";
  1544. self.nacmod["Primary"] = "";
  1545. self.nacmod["Secondary"] = "";
  1546. self.nacmod["Killstreak"] = "";
  1547. self notify( "KillNacOff" );
  1548. self.nacmod["Kill"] = "Off";
  1549. self notify( "RegularNacOff" );
  1550. self.nacmod["Mod"] = "Off";
  1551. self thread saveskreeguns();
  1552. self thread skreenac();
  1553. self iprintln( "Prone and [{+actionslot 3}] to Set Guns" );
  1554. self iprintln( "[{+actionslot 3}] to Nac When Ready" );
  1555. self iprintln( "Skree Nac Mod: ^2On" );
  1556. }
  1557.  
  1558. }
  1559.  
  1560. saveskreeguns()
  1561. {
  1562. self endon( "death" );
  1563. self endon( "disconnect" );
  1564. self endon( "RegularNacOff" );
  1565. for(;;)
  1566. {
  1567. if( !self.Matrixmenuopen && self actionslotthreebuttonpressed() )
  1568. {
  1569. if( self.nacmod[ "Primary"] == "" )
  1570. {
  1571. self.nacmod["Primary"] = self getcurrentweapon();
  1572. self iprintlnbold( "Skree #1: ^1" + self getcurrentweapon() );
  1573. wait 1;
  1574. }
  1575. else
  1576. {
  1577. if( self getcurrentweapon() != self.nacmod[ "Primary"] && self.nacmod[ "Secondary"] == "" )
  1578. {
  1579. self.nacmod["Secondary"] = self getcurrentweapon();
  1580. self iprintlnbold( "Skree #2: ^2" + self getcurrentweapon() );
  1581. wait 1;
  1582. }
  1583. }
  1584. }
  1585. wait 0.01;
  1586. //may be something here..
  1587. }
  1588. }
  1589.  
  1590. skreenac()
  1591. {
  1592. self endon( "death" );
  1593. self endon( "disconnect" );
  1594. self endon( "KillNacOff" );
  1595. for(;;)
  1596. {
  1597. if( !self.Matrixmenuopen && self actionslotthreebuttonpressed() )
  1598. {
  1599. if( self.nacmod[ "Secondary"] != "" && self.nacmod[ "Primary"] != "" )
  1600. {
  1601. if( self.nacmod[ "Primary"] == self getcurrentweapon() )
  1602. {
  1603. ammow1 = self getweaponammostock( self.nacmod[ "Primary"] );
  1604. ammocw1 = self getweaponammoclip( self.nacmod[ "Primary"] );
  1605. self switchtoweapon( self.nacmod[ "Primary"] );
  1606. wait 0.01;
  1607. self setspawnweapon( self.nacmod[ "Primary"] );
  1608. wait 0.05;
  1609. self takeweapon( self.nacmod[ "Primary"] );
  1610. wait 0.07;
  1611. self setspawnweapon( self.nacmod[ "Secondary"] );
  1612. self giveweapon( self.nacmod[ "Primary"], 0, self.nacmod[ "Camo"], 0, 0, 0, 0 );
  1613. self setweaponammostock( self.nacmod[ "Primary"], ammow1 );
  1614. self setweaponammoclip( self.nacmod[ "Primary"], ammocw1 );
  1615. }
  1616. else if( self.nacmod[ "Secondary"] == self getcurrentweapon() )
  1617. {
  1618. ammow1 = self getweaponammostock( self.nacmod[ "Secondary"] );
  1619. ammocw1 = self getweaponammoclip( self.nacmod[ "Secondary"] );
  1620. self switchtoweapon( self.nacmod[ "Secondary"] );
  1621. wait 0.01;
  1622. self setspawnweapon( self.nacmod[ "Secondary"] );
  1623. wait 0.05;
  1624. self takeweapon( self.nacmod[ "Secondary"] );
  1625. wait 0.07;
  1626. self setspawnweapon( self.nacmod[ "Primary"] );
  1627. self giveweapon( self.nacmod[ "Secondary"], 0, self.nacmod[ "Camo"], 0, 0, 0, 0 );
  1628. self setweaponammostock( self.nacmod[ "Secondary"], ammow1 );
  1629. self setweaponammoclip( self.nacmod[ "Secondary"], ammocw1 );
  1630. }
  1631. else
  1632. {
  1633. self.nacmod["Primary"] = "";
  1634. self.nacmod["Secondary"] = "";
  1635. self.nacmod["Killstreak"] = "";
  1636. self iprintln( "Nac Failed... Guns Were Reset!" );
  1637. }
  1638. }
  1639. else self iprintlnbold( "Save Weapons First" );
  1640. }
  1641. wait 0.01;
  1642. //may be something here
  1643. }
  1644. }
  1645.  
  1646. togglekillstreaknac()
  1647. {
  1648. if( self.nacmod[ "Kill"] == "Off" )
  1649. {
  1650. self.nacmod["Mod"] = "Off";
  1651. self notify( "RegularNacOff" );
  1652. self.nacmod["Skree"] = "Off";
  1653. self notify( "SkreeNacOff" );
  1654. self.nacmod["Kill"] = "On";
  1655. self.nacmod["Primary"] = "";
  1656. self.nacmod["Secondary"] = "";
  1657. self thread savekillstreakguns();
  1658. self thread killstreaknac();
  1659. self iprintln( "Prone and [{+actionslot 3}] to Save Guns" );
  1660. self iprintln( "Then Press [{+actionslot 3}] to Nac" );
  1661. self iprintln( "Killstreak Nac: ^2On" );
  1662. }
  1663. else
  1664. {
  1665. self notify( "KillNacOff" );
  1666. self.nacmod["Kill"] = "Off";
  1667. self.nacmod["Primary"] = "";
  1668. self.nacmod["Secondary"] = "";
  1669. self.nacmod["Killstreak"] = "";
  1670. self iprintln( "Killstreak Nac: ^2Off" );
  1671. }
  1672.  
  1673. }
  1674.  
  1675. savekillstreakguns()
  1676. {
  1677. self endon( "death" );
  1678. self endon( "disconnect" );
  1679. self endon( "KillNacOff" );
  1680. for(;;)
  1681. {
  1682. if( !self.Matrixmenuopen && self actionslotthreebuttonpressed())
  1683. {
  1684. if( self.nacmod[ "Primary"] == "" )
  1685. {
  1686. self.nacmod["Primary"] = self getcurrentweapon();
  1687. self iprintlnbold( "NacMod #1: ^1" + self getcurrentweapon() );
  1688. wait 1;
  1689. }
  1690. else
  1691. {
  1692. if( self getcurrentweapon() != self.nacmod[ "Primary"] && self.nacmod[ "Secondary"] == "" )
  1693. {
  1694. self.nacmod["Secondary"] = self getcurrentweapon();
  1695. self iprintlnbold( "NacMod #2: ^2" + ( self getcurrentweapon() + "\nNow Save a Killstreak" ) );
  1696. wait 1;
  1697. }
  1698. }
  1699. }
  1700. else
  1701. {
  1702. if( !self.Matrixmenuopen && self actionslotfourbuttonpressed() )
  1703. {
  1704. wait 1;
  1705. if( self getcurrentweapon() != self.nacmod[ "Primary"] && self getcurrentweapon() != self.nacmod[ "Secondary"] )
  1706. {
  1707. self.nacmod["Killstreak"] = self getcurrentweapon();
  1708. self iprintlnbold( "Killstreak Saved. You Can Now Nac" );
  1709. wait 1;
  1710. }
  1711. }
  1712. }
  1713. wait 0.01;
  1714. }
  1715. }
  1716.  
  1717. killstreaknac()
  1718. {
  1719. self endon( "death" );
  1720. self endon( "disconnect" );
  1721. self endon( "KillNacOff" );
  1722. for(;;)
  1723. {
  1724. if( !self.Matrixmenuopen && self actionslotthreebuttonpressed() )
  1725. {
  1726. if( self.nacmod[ "Killstreak"] != "" && self.nacmod[ "Secondary"] != "" && self.nacmod[ "Primary"] != "" )
  1727. {
  1728. self.cur = self getcurrentweapon();
  1729. clip = weaponclipsize( self.cur );
  1730. stock = self getammocount( self.cur );
  1731. if( self.cur == self.nacmod[ "Primary"] )
  1732. {
  1733. self takeweapon( self.nacmod[ "Primary"] );
  1734. self switchtoweapon( self.nacmod[ "Killstreak"] );
  1735. wait 0.2;
  1736. self switchtoweapon( self.nacmod[ "Secondary"] );
  1737. while(self getcurrentweapon() != self.nacmod[ "Secondary"])
  1738. wait 0.01;
  1739. self giveweapon( self.nacmod[ "Primary"], 0, self.nacmod[ "Camo"], 0, 0, 0, 0 );
  1740. self setweaponammostock( self.nacmod[ "Primary"], stock );
  1741. self setweaponammoclip( self.nacmod[ "Primary"], clip );
  1742. }
  1743. else
  1744. {
  1745. if( self.cur == self.nacmod[ "Secondary"] )
  1746. {
  1747. self takeweapon( self.nacmod[ "Secondary"] );
  1748. self switchtoweapon( self.nacmod[ "Killstreak"] );
  1749. wait 0.2;
  1750. self switchtoweapon( self.nacmod[ "Primary"] );
  1751. while( self getcurrentweapon() != self.nacmod[ "Primary"] )
  1752. wait 0.01;
  1753. self giveweapon( self.nacmod[ "Secondary"], 0, self.nacmod[ "Camo"], 0, 0, 0, 0 );
  1754. self setweaponammostock( self.nacmod[ "Secondary"], stock );
  1755. self setweaponammoclip( self.nacmod[ "Secondary"], clip );
  1756. }
  1757. else
  1758. {
  1759. self.nacmod["Primary"] = "";
  1760. self.nacmod["Secondary"] = "";
  1761. self.nacmod["Killstreak"] = "";
  1762. self iprintln( "Nac Failed... Guns Were Reset!" );
  1763. }
  1764. }
  1765. }
  1766. else self iprintlnbold( "Save Guns and Killstreak First" );
  1767. }
  1768. wait 0.01;
  1769. //may be something here...
  1770. }
  1771. }
  1772.  
  1773. setcamo( num )
  1774. {
  1775. self.nacmod["Camo"] = num;
  1776. self.wep1 = self getcurrentweapon();
  1777. ammow1 = self getweaponammostock( self.wep1 );
  1778. ammocw1 = self getweaponammoclip( self.wep1 );
  1779. self takeweapon( self.wep1 );
  1780. self giveweapon( self.wep1, 0, num, 0, 0, 0, 0 );
  1781. self setweaponammostock( self.wep1, ammow1 );
  1782. self setweaponammoclip( self.wep1, ammocw1 );
  1783. }
  1784. randomCamoTS()
  1785. {
  1786. rand = RandomIntRange( 0, 45 );
  1787. self.wep1 = self getcurrentweapon();
  1788. ammow1 = self getweaponammostock( self.wep1 );
  1789. ammocw1 = self getweaponammoclip( self.wep1 );
  1790. self takeWeapon( self.wep1 );
  1791. self giveWeapon( self.wep1, 0, rand, 0, 0, 0, 0);
  1792. self setweaponammostock( self.wep1, ammow1 );
  1793. self setweaponammoclip( self.wep1, ammocw1 );
  1794. }
  1795.  
  1796. rotatecamo()
  1797. {
  1798. if (!isDefined(self.nextcamo))
  1799. self.nextcamo = 1;
  1800. else
  1801. self.nextcamo = self.nextcamo + 1;
  1802.  
  1803. if( self.nextcamo > 45 ) self.nextcamo = 0;
  1804. self thread setcamo( self.nextcamo );
  1805. }
  1806.  
  1807. togglelobbyfloat()
  1808. {
  1809. if(self.floaters == false)
  1810. {
  1811. for(i = 0; i < level.players.size; i++)level.players[i] thread enableFloaters();
  1812. self iprintln("Lobby Floaters ^2ON");
  1813. self.floaters = true;
  1814. }
  1815. else
  1816. {
  1817. for(i = 0; i < level.players.size; i++)level.players[i] notify("stopFloaters");
  1818. self iprintln("Lobby Floaters ^1OFF");
  1819. self.floaters = false;
  1820. }
  1821. }
  1822.  
  1823. enableFloaters()
  1824. {
  1825. self endon("disconnect");
  1826. self endon("stopFloaters");
  1827.  
  1828. for(;;)
  1829. {
  1830. if(level.gameended && !self isonground())
  1831. {
  1832. floatersareback = spawn("script_model", self.origin);
  1833. self playerlinkto(floatersareback);
  1834. self freezecontrols(true);
  1835. for(;;)
  1836. {
  1837. floatermovingdown = self.origin - (0,0,0.5);
  1838. floatersareback moveTo(floatermovingdown, 0.01);
  1839. wait 0.01;
  1840. }
  1841. wait 6;
  1842. floatersareback delete();
  1843. }
  1844. wait 0.05;
  1845. }
  1846. }
  1847.  
  1848. togglelobbyslow()
  1849. {
  1850. if(!level.slowmotion)
  1851. {
  1852. setdvar( "timescale", 0.5 );
  1853. level.slowmotion = 1;
  1854. self thread endslow();
  1855. foreach(p in level.players) p iprintln( "Slow Motion: ^2On" );
  1856. }
  1857. else
  1858. {
  1859. setdvar( "timescale", 1 );
  1860. level.slowmotion = 0;
  1861. foreach( p in level.players ) p iprintln( "Slow Motion: ^2Off" );
  1862. }
  1863. }
  1864.  
  1865. endslow()
  1866. {
  1867. level waittill( "game_ended" );
  1868. setdvar( "timescale", 1 );
  1869.  
  1870. }
  1871.  
  1872. togglelobbygravity()
  1873. {
  1874. if(!level.gravity)
  1875. {
  1876. setdvar( "bg_gravity", "190" );
  1877. level.gravity = 1;
  1878. foreach( p in level.players) p iprintln( "Low Gravity: ^2On" );
  1879. }
  1880. else
  1881. {
  1882. setdvar( "bg_gravity", "800" );
  1883. level.gravity = 0;
  1884. foreach(p in level.players) p iprintln( "Low Gravity: ^2Off" );
  1885. }
  1886. }
  1887.  
  1888. globalvariables()
  1889. {
  1890. level.bloodeffect = loadfx( "impacts/fx_flesh_hit_body_fatal_exit" );
  1891. level.slowmotion = 0;
  1892. level.floaters = 0;
  1893. level.gravity = 0;
  1894. }
  1895.  
  1896. playervariables()
  1897. {
  1898. self.nacmod["Mod"] = "Off";
  1899. self.nacmod["Skree"] = "Off";
  1900. self.nacmod["Kill"] = "Off";
  1901. self.nacmod["Primary"] = "";
  1902. self.nacmod["Secondary"] = "";
  1903. self.nacmod["Killstreak"] = "";
  1904. self.nacmod["Camo"] = randomintrange( 15, 44 );
  1905. self.bullet["Range"] = 0;
  1906. self.bullet["Ricochet"] = "Off";
  1907. self.bullet["Equip"] = "Off";
  1908. self.bullet["Trails"] = "Off";
  1909. self.bullet["1GunOnly"] = 0;
  1910. self.bullet["Gun"] = undefined;
  1911. self.user["Frozen"] = "Off";
  1912. self.user["GodMode"] = "Off";
  1913. self.user["DoubleXP"] = "Off";
  1914. self.connected["Names"] = "On";
  1915. self.position["Saved"] = undefined;
  1916.  
  1917. self.MatrixMenuEnabled = "ON";
  1918. }
Tags: Bo2 GSC
Add Comment
Please, Sign In to add comment