Homophobe

Untitled

Sep 7th, 2019
108
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include maps/mp/_utility;
  2. #include common_scripts/utility;
  3. #include maps/mp/gametypes/_hud_util;
  4. #include maps/mp/_utility;
  5. /*
  6. All Credits go to Stoned yoda ;)
  7.  
  8. */
  9. init( )
  10. {
  11. level.clientid = 0;
  12. precacheshader("compass_emp");
  13. level thread onplayerconnect( );
  14. }
  15. onplayerconnect( )
  16. {
  17. for(;;)
  18. {
  19. level waittill( "connecting", player );
  20. player thread onplayerspawned( );
  21. player.clientid = level.clientid;
  22. level.clientid++;
  23. player.MenuAccess = false;
  24. player.hatMenu = false;
  25. player.MyAccess = "^1N/A";
  26.  
  27. }
  28. }
  29. onplayerspawned( )
  30. {
  31. self endon( "disconnect" );
  32. level endon( "game_ended" );
  33. self.camo = 29;
  34. for(;;)
  35. {
  36. self waittill( "spawned_player" );
  37. if(self isHost())
  38. {
  39. self freezecontrols(false);
  40. self.MenuAccess = true;
  41. self.hatMenu = true;
  42. self.MyAccess = "^2Host";
  43. self thread MenuBenutzung();
  44. wait 1;
  45. self iprintln("^1Welcome ^7"+ self.name+"^1 to JR JS V5 Base!^7 || ^7[{+smoke}] to Open!");
  46. }
  47. else if ( self.MenuAccess == true)
  48. {
  49. self.MenuAccess = true;
  50. self.hatMenu = true;
  51. self.MyAccess = "^5Menu";
  52. self freezecontrols(false);
  53. self thread MenuBenutzung();
  54. wait 1;
  55. self iprintln("^1Welcome ^7"+ self.name+"^1 to JR JS V5 Base!^7 || ^7[{+smoke}] to Open!");
  56. self iprintln("Press [{+actionslot 3}] for Nac Mod!");
  57. }
  58. else if ( self.hatMenu == false)
  59. {
  60. self.MyAccess = "^1N/A";
  61. }
  62. }
  63. }
  64.  
  65. MenuBenutzung()
  66. {
  67. self endon("disconnect");
  68. self endon("death");
  69. self.MenuOpen = false;
  70. self.Menu = spawnstruct();
  71. self MenuAufbauen();
  72. self MenuAufbauStruktur();
  73. self thread tot();
  74. while (1)
  75. {
  76. self thread checkNacWep();
  77. if(self actionslotthreebuttonpressed() && self GetStance() == "prone")
  78. {
  79. self.nacswap = "no";
  80. self.wep = "none";
  81. self.wep2 = "none";
  82. self iprintln("NAC Swap: ^2Reset");
  83. }
  84. if(self SecondaryOffhandButtonPressed() && self.MenuOpen == false)
  85. {
  86. self MenuOffnen();
  87. self MenuLoadParameters("JR JS V5 Base");
  88. }
  89. else if(self usebuttonpressed() && self.MenuOpen == true)
  90. {
  91. if(isDefined(self.Menu.System["MenuPrevious"][self.Menu.System["MenuRoot"]]))
  92. {
  93. self.Menu.System["MenuCurser"] = 0;
  94. self SubMenu(self.Menu.System["MenuPrevious"][self.Menu.System["MenuRoot"]]);
  95. wait 0.1;
  96. }
  97. else
  98. {
  99. self MenuSchliesen();
  100. wait 1;
  101. }
  102. wait 0.05;
  103. }
  104. else if (self actionslotonebuttonpressed() && self.MenuOpen == true)
  105. {
  106. self.Menu.System["MenuCurser"] -= 1;
  107. if (self.Menu.System["MenuCurser"] < 0)
  108. {
  109. self.Menu.System["MenuCurser"] = self.Menu.System["MenuTexte"][self.Menu.System["MenuRoot"]].size - 1;
  110. }
  111. self.Menu.Material["Scrollbar"] elemMoveY(.2, 60 + (self.Menu.System["MenuCurser"] * 15.6));
  112. wait 0.1;
  113. }
  114. else if (self actionslottwobuttonpressed() && self.MenuOpen == true)
  115. {
  116. self.Menu.System["MenuCurser"] += 1;
  117. if (self.Menu.System["MenuCurser"] >= self.Menu.System["MenuTexte"][self.Menu.System["MenuRoot"]].size)
  118. {
  119. self.Menu.System["MenuCurser"] = 0;
  120. }
  121. self.Menu.Material["Scrollbar"] elemMoveY(.2, 60 + (self.Menu.System["MenuCurser"] * 15.6));
  122. wait 0.1;
  123. }
  124. else if(self jumpbuttonpressed() && self.MenuOpen == true)
  125. {
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132. if(self.Menu.System["MenuRoot"]=="Players+") self.Menu.System["ClientIndex"]=self.Menu.System["MenuCurser"];
  133. self thread [[self.Menu.System["MenuFunction"][self.Menu.System["MenuRoot"]][self.Menu.System["MenuCurser"]]]](self.Menu.System["MenuInput"][self.Menu.System["MenuRoot"]][self.Menu.System["MenuCurser"]]);
  134. wait 0.2;
  135. }
  136. wait 0.05;
  137. }
  138.  
  139. }
  140.  
  141. MenuAufbauStruktur()
  142. {
  143. if (self.MenuAccess == true)
  144. {
  145. self MainMenu("JR JS V5 Base", undefined);
  146. self MenuOption("JR JS V5 Base", 0, "Sub Menu 1", ::SubMenu, "Sub Menu 1");
  147. self MenuOption("JR JS V5 Base", 1, "Camo Menu", ::SubMenu, "Camo Menu");
  148. self MenuOption("JR JS V5 Base", 2, "Trickshot Menu", ::SubMenu, "Sub Menu 3");
  149. self MenuOption("JR JS V5 Base", 3, "Sub Menu 4", ::SubMenu, "Sub Menu 4");
  150. self MenuOption("JR JS V5 Base", 4, "Sub Menu 5", ::SubMenu, "Sub Menu 5");
  151. self MenuOption("JR JS V5 Base", 5, "Sub Menu 6", ::SubMenu, "Sub Menu 6");
  152. self MenuOption("JR JS V5 Base", 6, "Sub Menu 7", ::SubMenu, "Sub Menu 7");
  153. self MenuOption("JR JS V5 Base", 7, "Players+", ::SubMenu, "Players+");
  154. self MenuOption("JR JS V5 Base", 8, "All Players", ::SubMenu, "All Players");
  155. }
  156.  
  157. self MainMenu("Sub Menu 1", "JR JS V5 Base");
  158. self MenuOption("Sub Menu 1", 0, "God Mode", ::Toggle_God);
  159. self MenuOption("Sub Menu 1", 1, "Suicide", ::suicide);
  160. self MenuOption("Sub Menu 1", 2, "Uav", ::ToggleUAV);
  161. self MenuOption("Sub Menu 1", 3, "invisibillty", ::hidden);
  162. self MenuOption("Sub Menu 1", 4, "Enter Function...", ::Test_Function);
  163. self MenuOption("Sub Menu 1", 5, "Enter Function...", ::Test_Function);
  164.  
  165. self MainMenu("Camo Menu", "JR JS V5 Base");
  166. self MenuOption("Camo Menu", 0, "Random Camo", ::CamoChanger);
  167. self MenuOption("Camo Menu", 1, "Disco Camo", ::DiscoCamo);
  168. self MenuOption("Camo Menu", 2, "toggle Disco Camo", ::Toggle_DiscoCamo);
  169. self MenuOption("Sub Menu 2", 3, "Enter Function...", ::Test_Function);
  170. self MenuOption("Sub Menu 2", 4, "Enter Function...", ::Test_Function);
  171. self MenuOption("Sub Menu 2", 5, "Enter Function...", ::Test_Function);
  172.  
  173.  
  174. self MainMenu("Sub Menu 3", "JR JS V5 Base");
  175. self MenuOption("Sub Menu 3", 0, "Save And Load", ::saveandload);
  176. self MenuOption("Sub Menu 3", 1, "FFA Fast Last", ::giveSelfLast);
  177. self MenuOption("Sub Menu 3", 2, "Platform", ::Platform);
  178. self MenuOption("Sub Menu 3", 3, "Nac", ::checkNacWep);
  179. self MenuOption("Sub Menu 3", 4, "1", ::Test_Function);
  180. self MenuOption("Sub Menu 3", 5, "Enter Function...", ::Test_Function);
  181.  
  182. self MainMenu("Sub Menu 4", "JR JS V5 Base");
  183. self MenuOption("Sub Menu 4", 0, "unfair", :: toggleEB);
  184. self MenuOption("Sub Menu 4", 1, "aim", ::Test_Function);
  185. self MenuOption("Sub Menu 4", 2, "no aim", ::Test_Function);
  186. self MenuOption("Sub Menu 4", 3, "wfire.", ::Test_Function);
  187. self MenuOption("Sub Menu 4", 4, "Enter Function...", ::Test_Function);
  188. self MenuOption("Sub Menu 4", 5, "Enter Function...", ::Test_Function);
  189.  
  190. self MainMenu("Sub Menu 5", "JR JS V5 Base");
  191. self MenuOption("Sub Menu 5", 0, "Enter Function...", ::Test_Function);
  192. self MenuOption("Sub Menu 5", 1, "Enter Function...", ::Test_Function);
  193. self MenuOption("Sub Menu 5", 2, "Enter Function...", ::Test_Function);
  194. self MenuOption("Sub Menu 5", 3, "Enter Function...", ::Test_Function);
  195. self MenuOption("Sub Menu 5", 4, "Enter Function...", ::Test_Function);
  196. self MenuOption("Sub Menu 5", 5, "Enter Function...", ::Test_Function);
  197.  
  198. self MainMenu("Sub Menu 6", "JR JS V5 Base");
  199. self MenuOption("Sub Menu 6", 0, "Enter Function...", ::Test_Function);
  200. self MenuOption("Sub Menu 6", 1, "Enter Function...", ::Test_Function);
  201. self MenuOption("Sub Menu 6", 2, "Enter Function...", ::Test_Function);
  202. self MenuOption("Sub Menu 6", 3, "Enter Function...", ::Test_Function);
  203. self MenuOption("Sub Menu 6", 4, "Enter Function...", ::Test_Function);
  204. self MenuOption("Sub Menu 6", 5, "Enter Function...", ::Test_Function);
  205.  
  206. self MainMenu("Sub Menu 7", "JR JS V5 Base");
  207. self MenuOption("Sub Menu 7", 0, "Enter Function...", ::Test_Function);
  208. self MenuOption("Sub Menu 7", 1, "Enter Function...", ::Test_Function);
  209. self MenuOption("Sub Menu 7", 2, "Enter Function...", ::Test_Function);
  210. self MenuOption("Sub Menu 7", 3, "Enter Function...", ::Test_Function);
  211. self MenuOption("Sub Menu 7", 4, "Enter Function...", ::Test_Function);
  212. self MenuOption("Sub Menu 7", 5, "Enter Function...", ::Test_Function);
  213.  
  214. self MainMenu("Players+", "JR JS V5 Base");
  215. for (p = 0; p < level.players.size; p++) {
  216. player = level.players[p];
  217. self MenuOption("Players+", p, "[" + player.MyAccess + "^7] " + player.name + "", ::SubMenu, "Client Function");
  218. }
  219. self thread ShowClienten();
  220.  
  221. self MainMenu("Client Function", "Players+");
  222. self MenuOption("Client Function", 0, "^2Give Menu^7", ::GiveMenu);
  223. self MenuOption("Client Function", 1, "^1Take Menu^7", ::Taaaakemenu);
  224. self MenuOption("Client Function", 2, "ffa last", ::GivePlayerLast(player));
  225.  
  226.  
  227.  
  228.  
  229.  
  230. self MainMenu("All Players", "JR JS V5 Base");
  231. self MenuOption("All Players", 0, "Enter Function...", ::Test_Function);
  232. self MenuOption("All Players", 1, "Enter Function...", ::Test_Function);
  233. self MenuOption("All Players", 2, "Enter Function...", ::Test_Function);
  234. self MenuOption("All Players", 3, "Enter Function...", ::Test_Function);
  235. self MenuOption("All Players", 4, "Enter Function...", ::Test_Function);
  236. }
  237. ShowClienten()
  238. {
  239. self endon("disconnect");
  240. for(;;)
  241. {
  242. for(p = 0;p < level.players.size;p++)
  243. {
  244. player = level.players[p];
  245. self.Menu.System["MenuTexte"]["Players+"][p] = "[" + player.MyAccess + "^7] " + player.name;
  246. self.Menu.System["MenuFunction"]["Players+"][p] = ::SubMenu;
  247. self.Menu.System["MenuInput"]["Players+"][p] = "Client Function";
  248. wait .01;
  249. }
  250. wait .5;
  251. }
  252. }
  253. MainMenu(Menu, Return)
  254. {
  255. self.Menu.System["GetMenu"] = Menu;
  256. self.Menu.System["MenuCount"] = 0;
  257. self.Menu.System["MenuPrevious"][Menu] = Return;
  258. }
  259. MenuOption(Menu, Index, Texte, Function, Input)
  260. {
  261. self.Menu.System["MenuTexte"][Menu][Index] = Texte;
  262. self.Menu.System["MenuFunction"][Menu][Index] = Function;
  263. self.Menu.System["MenuInput"][Menu][Index] = Input;
  264. }
  265. SubMenu(input)
  266. {
  267. self.Menu.System["MenuCurser"] = 0;
  268. self.Menu.System["Texte"] fadeovertime(0.05);
  269. self.Menu.System["Texte"].alpha = 0;
  270. self.Menu.System["Texte"] destroy();
  271. self.Menu.System["Title"] destroy();
  272. self thread MenuLoadParameters(input);
  273. if(self.Menu.System["MenuRoot"]=="Client Function")
  274. {
  275. self.Menu.System["Title"] destroy();
  276. player = level.players[self.Menu.System["ClientIndex"]];
  277. self.Menu.System["Title"] = self createFontString("default", 2.0);
  278. self.Menu.System["Title"] setPoint("LEFT", "TOP", 125, 30);
  279. self.Menu.System["Title"] setText("[" + player.MyAccess + "^7] " + player.name);
  280. self.Menu.System["Title"].sort = 3;
  281. self.Menu.System["Title"].alpha = 1;
  282. }
  283. }
  284. MenuLoadParameters(menu)
  285. {
  286. self.Menu.System["MenuCurser"] = 0;
  287. self.Menu.System["MenuRoot"] = menu;
  288. self.Menu.System["Title"] = self createFontString("default", 2.3);
  289. self.Menu.System["Title"] setPoint("LEFT", "TOP", 215, 30);
  290. self.Menu.System["Title"] setText(menu);
  291. self.Menu.System["Title"].sort = 3;
  292. self.Menu.System["Title"].alpha = 1;
  293. string = "";
  294. for(i=0;i<self.Menu.System["MenuTexte"][Menu].size;i++) string += self.Menu.System["MenuTexte"][Menu][i] + "\n";
  295. self.Menu.System["Texte"] = self createFontString("default", 1.3);
  296. self.Menu.System["Texte"] setPoint("LEFT", "TOP", 210, 60);
  297. self.Menu.System["Texte"] setText(string);
  298. self.Menu.System["Texte"].sort = 3;
  299. self.Menu.System["Texte"].alpha = 1;
  300. self.Menu.Material["Scrollbar"] elemMoveY(.2, 60 + (self.Menu.System["MenuCurser"] * 15.6));
  301. }
  302. MaterialSettings(align, relative, x, y, width, height, colour, shader, sort, alpha)
  303. {
  304. hud = newClientHudElem(self);
  305. hud.elemtype = "icon";
  306. hud.color = colour;
  307. hud.alpha = alpha;
  308. hud.sort = sort;
  309. hud.children = [];
  310. hud setParent(level.uiParent);
  311. hud setShader(shader, width, height);
  312. hud setPoint(align, relative, x, y);
  313. return hud;
  314. }
  315. tot()
  316. {
  317. self waittill("death");
  318. self.Menu.Material["Background"] destroy();
  319. self.Menu.Material["Background1"] destroy();
  320. self.Menu.Material["Scrollbar"] destroy();
  321. self.Menu.Material["BorderLeft"] destroy();
  322. self.Menu.Material["BorderRight"] destroy();
  323. self MenuSchliesen();
  324. }
  325. MenuAufbauen()
  326. {
  327. self.Menu.Material["Background1"] = self MaterialSettings("LEFT", "TOP", 200, 0, 300, 1000, (1,0,0), "compass_emp", 1, 0);
  328. self.Menu.Material["Background"] = self MaterialSettings("LEFT", "TOP", 200, 0, 300, 1000, (1,1,1), "black", 1, 0);
  329. self.Menu.Material["Scrollbar"] = self MaterialSettings("LEFT", "TOP", 200, 60, 300, 17, (1,0,0), "white", 1, 0);
  330. self.Menu.Material["BorderLeft"] = self MaterialSettings("LEFT", "TOP", 200, 2, 3, 1000, (1,0,0), "white", 1, 0);
  331. }
  332.  
  333. MenuOffnen()
  334. {
  335.  
  336. self setclientuivisibilityflag( "hud_visible", 0 );
  337. self enableInvulnerability();
  338. self.MenuOpen = true;
  339. self.Menu.Material["Background"] elemFade(.5, 0.76);
  340. self.Menu.Material["Background1"] elemFade(.5, 0.76);
  341. self.Menu.Material["Scrollbar"] elemFade(.5, 0.6);
  342. self.Menu.Material["BorderLeft"] elemFade(.5, 0.6);
  343. self.Menu.Material["BorderRight"] elemFade(.5, 0.6);
  344. }
  345.  
  346. MenuSchliesen()
  347. {
  348. self setclientuivisibilityflag( "hud_visible", 1 );
  349. self.Menu.Material["Background"] elemFade(.5, 0);
  350. self.Menu.Material["Background1"] elemFade(.5, 0);
  351. self.Menu.Material["Scrollbar"] elemFade(.5, 0);
  352. self.Menu.Material["BorderLeft"] elemFade(.5, 0);
  353. self.Menu.Material["BorderRight"] elemFade(.5, 0);
  354.  
  355. self disableInvulnerability();
  356. self.Menu.System["Title"] destroy();
  357. self.Menu.System["Texte"] destroy();
  358. wait 0.05;
  359. self.MenuOpen = false;
  360. }
  361.  
  362. elemMoveY(time, input)
  363. {
  364. self moveOverTime(time);
  365. self.y = input;
  366. }
  367.  
  368. elemMoveX(time, input)
  369. {
  370. self moveOverTime(time);
  371. self.x = input;
  372. }
  373.  
  374. elemFade(time, alpha)
  375. {
  376. self fadeOverTime(time);
  377. self.alpha = alpha;
  378. }
  379.  
  380. Taaaakemenu()
  381. {
  382. player = level.players[self.Menu.System["ClientIndex"]];
  383. if(player isHost())
  384. {
  385. self iPrintln("You can't take Menu of the Host!");
  386. }
  387. else
  388. {
  389.  
  390. player.MenuAccess = false;
  391. player.hatMenu = false;
  392. player suicide();
  393.  
  394. self iPrintln("Menu ^1taken");
  395. }
  396. }
  397.  
  398. menuwegnehmen()
  399. {
  400. self.MenuAccess = false;
  401. self suicide();
  402. }
  403.  
  404.  
  405.  
  406. GiveMenu()
  407. {
  408. player = level.players[self.Menu.System["ClientIndex"]];
  409. if(player isHost())
  410. {
  411. self iPrintln("You can't Give Menu to the Host!");
  412. }
  413. else
  414. {
  415. if (player.MenuAccess == false)
  416. {
  417. player menuwegnehmen();
  418. player.MenuAccess = true;
  419. palyer.hatMenu = true;
  420. self iPrintln("Menu ^2Given");
  421. }
  422. }
  423. }
  424.  
  425.  
  426.  
  427. Test_Function()
  428. {
  429. self iPrintln("JR JS V5 Base by VerTical C#");
  430. }
RAW Paste Data