Guest User

UltimateMod v1.1

a guest
Jan 20th, 2015
352
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class ultimatemod extends mutator config (UltimateMod) ;
  2.  
  3. var config bool bAllowRifles ; // Allow Rifles true or false
  4. var config bool bAllowMgs ; // Allow Machine Guns true or false
  5. var config bool bAllowSnipers ; // Allow Snipers true or false
  6. var config bool bRiflesOnly ; // Rifles Only true or false
  7. var config bool bMgsOnly ; // Machine Guns Only true or false
  8. var config bool bSnipersonly ; // Snipers Only true or false
  9. var config bool bShottyOnly ; // Shotgun Only true or false
  10. var config bool bM9Only ; // M9 Only true or false
  11. var config bool bNVG ; // Allow Night Vision Goggles true or false
  12. var config bool bDefaultSettings ; // Default Mod Settings rue or false
  13. var config bool bAllow203 ; // Allow 203's true or false
  14. var config bool bAllowRockets ; // Allow Rockets true or false
  15. var config bool bEveryoneIsMedic ; // Everyone Is A Medic With 10 Patches true or false
  16. var config bool bForceclass ; // self Forceclass AvailableWeapons & Admin Forceclass
  17. var config bool bNormal ; // Normal GamePlay On or Off
  18. var config bool bAllowGrenades ; // Allow Grenades true or false
  19. var config bool bWeaponsForcer ; // Forceclass everyone a weapon at the start of the round, Weapons Forcer On or Off
  20. var config bool bObjectives ; // Objectives On or Off
  21. var config bool bAllowIGPlayerForceClass ; // Allow choosing weapons in the middle of a round or haveing them forced next round
  22.  
  23. var config bool bLogoAdder ; // LogoAdder On or Off
  24.  
  25. var config array <int> Logo ; // LogoAdder: Logo number/Group Number to Add Player To
  26. var config array <string> PlayerName ; // LogoAdder: Name Of Player to Give/add to Logo/Group
  27.  
  28. var config string Option_ForceClass ; // Weapons Forcer: Weapon Class to force
  29.  
  30. var string sclass_name ; // class name To Force
  31.  
  32. struct PData
  33. {
  34. var string weapon ; // PlayerData[nr].weapon, Weapon to remeber/force
  35. var int PlayerID ; // PlayerData[nr].PlayerID, PlayerID to Remeber/force weapon to
  36. };
  37.  
  38. var int z ;
  39. var array <PData> PlayerData ;
  40.  
  41. event PreBeginPlay ()
  42. {
  43. Level.Game.BaseMutator.AddMutator(self);
  44. Log("This mod is property of the Ba.^ Brothers N Arms Clan !");
  45. Log("This mod is made by Ba.^LEEFFM");
  46. Log("THERE IS NO WARRANTY FOR THIS MOD! We do not take responsibility for any harm done by this MOD!");
  47. Log("LEEFFM'S Ultimate Mod Is Loaded");
  48. settimer(100,true);
  49. }
  50.  
  51. function ModifyPlayer (Pawn Other)
  52. {
  53. local HumanController HC ;
  54. local AGP_Objective Objective ;
  55. local class<SoldierClass> sclass ;
  56. local int PlayerID ;
  57. local int nr ;
  58.  
  59. HC = HumanController ( Other.PlayerReplicationInfo.GetController () ) ;
  60. nr = GetPlayer (HC) ;
  61. PlayerID = HC.PlayerReplicationInfo.PlayerID;
  62.  
  63. if (bNormal)
  64. {
  65. bDefaultSettings = false ;
  66. } else if (!bNormal)
  67. {
  68. HC.ClientMessage ("") ;
  69. HC.ClientMessage ("Type 'mutate clist' to show a list of commands!") ;
  70. HC.ClientMessage ("Type 'mutate rules' to show Server Rules!") ;
  71. HC.ClientMessage ("Press the ~ button!") ;
  72. HC.ClientMessage ("") ;
  73. }
  74.  
  75. if (bLogoAdder)
  76. {
  77. LogoAdder (HC) ;
  78. }
  79.  
  80. if (bNVG)
  81. {
  82. AGP_Pawn(Other).Level.bTeam0HasNVGs = True;
  83. AGP_Pawn(Other).Level.bTeam1HasNVGs = true;
  84. } else if (!bNVG)
  85. {
  86. AGP_Pawn(Other).Level.bTeam0HasNVGs = False;
  87. AGP_Pawn(Other).Level.bTeam1HasNVGs = False;
  88. }
  89.  
  90. if (bAllow203)
  91. {
  92. AGP_Pawn(Other).Level.bTeam0AllowM203Mod = true;
  93. AGP_Pawn(Other).Level.bTeam1AllowM203Mod = true;
  94. } else if (!bAllow203)
  95. {
  96. AGP_Pawn(Other).Level.bTeam0AllowM203Mod = false;
  97. AGP_Pawn(Other).Level.bTeam1AllowM203Mod = false;
  98. }
  99.  
  100. if (bForceclass)
  101. {
  102. if (HC.PlayerReplicationInfo.bVIPPS)
  103. {
  104. return ;
  105. }
  106.  
  107. sclass_name = Forceclass_Weapon (HC);
  108. sclass_name = AvailableWeapons () ;
  109.  
  110. switch (sclass_name) // Switch statment fixes shotgun 7 rounds one bullet bug
  111. {
  112. case "Ultimatemod.ClassBreacher":
  113. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  114. HC.newTeamClass (sclass) ;
  115. privateset("Weapon_M870_Shotgun PickupAmmoCount 5");
  116. privateset("PickupAmmo_762mm_5_Rounds AmmoAmount 5");
  117. privateset("Ammo_762mm_5_Rounds AmmoAmount 5");
  118. privateset("Ammo_762mm_5_Rounds MaxAmmo 5");
  119. break;
  120. case"Ultimatemod.ClassDemolitions":
  121. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  122. HC.newTeamClass (sclass) ;
  123. privateset("Weapon_M870_Shotgun PickupAmmoCount 5");
  124. privateset("PickupAmmo_762mm_5_Rounds AmmoAmount 5");
  125. privateset("Ammo_762mm_5_Rounds AmmoAmount 5");
  126. privateset("Ammo_762mm_5_Rounds MaxAmmo 5");
  127. break;
  128. }
  129. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ; //is needed with the above switch statement!
  130. HC.newTeamClass (sclass) ; //is needed with the above switch statement!
  131. }
  132.  
  133. if (HC.PlayerReplicationInfo.PlayerID == PlayerData[nr].PlayerID)
  134. {
  135. sclass_name = PlayerData[nr].weapon ;
  136. sclass_name = AvailableWeapons () ;
  137.  
  138. switch (sclass_name) // Switch statment fixes shotgun 7 rounds one bullet bug
  139. {
  140. case "Ultimatemod.ClassBreacher":
  141. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  142. HC.newTeamClass (sclass) ;
  143. privateset("Weapon_M870_Shotgun PickupAmmoCount 5");
  144. privateset("PickupAmmo_762mm_5_Rounds AmmoAmount 5");
  145. privateset("Ammo_762mm_5_Rounds AmmoAmount 5");
  146. privateset("Ammo_762mm_5_Rounds MaxAmmo 5");
  147. break;
  148. case"Ultimatemod.ClassDemolitions":
  149. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  150. HC.newTeamClass (sclass) ;
  151. privateset("Weapon_M870_Shotgun PickupAmmoCount 5");
  152. privateset("PickupAmmo_762mm_5_Rounds AmmoAmount 5");
  153. privateset("Ammo_762mm_5_Rounds AmmoAmount 5");
  154. privateset("Ammo_762mm_5_Rounds MaxAmmo 5");
  155. break;
  156. }
  157. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ; //is needed with the above switch statement!
  158. HC.newTeamClass (sclass) ; //is needed with the above switch statement!
  159. }
  160.  
  161. if (bEveryoneIsMedic)
  162. {
  163. HC.PlayerReplicationInfo.bIsMedic = true; // Make Everyone Medic
  164. MedicPatches (HC) ; // Give Everyone 10 Medic Patches
  165. }
  166.  
  167. if (bWeaponsForcer)
  168. {
  169. WeaponsForcer (HC, PlayerID) ;
  170. }
  171.  
  172. if (bObjectives)
  173. {
  174. Objective.bDisabled = false;
  175. Objective.bInactive = false;
  176. } else if (!bObjectives)
  177. {
  178. disableobjective () ;
  179. }
  180. }
  181.  
  182. function Mutate (string MutateString, PlayerController Sender)
  183. {
  184. local array<string> Parts ;
  185. local HumanController HC ;
  186. local string Command ;
  187. local string Option ;
  188. local int PlayerID ;
  189.  
  190. HC = HumanController(Sender);
  191. Split( MutateString, " ", Parts);
  192. Command = caps(Parts[0]) ;
  193. Option = caps(Parts[1]) ;
  194.  
  195. if (Command ~= "RULES")
  196. {
  197. HC.ClientMessage ("") ;
  198.  
  199. if (bNVG)
  200. {
  201. HC.ClientMessage ("Settings: NIGHT VISION GOGGLES ALLOWED!") ;
  202. }
  203.  
  204. if (!bObjectives)
  205. {
  206. HC.ClientMessage ("Settings: OBJECTIVES ARE NOT ALLOWED!") ;
  207. }
  208.  
  209. if (!bAllowGrenades)
  210. {
  211. HC.ClientMessage ("Settings: GRENADES ARE NOT ALLOWED!") ;
  212. }
  213.  
  214. if (!bAllowRifles)
  215. {
  216. HC.ClientMessage ("Settings: RIFLES ARE NOT ALLOWED!") ;
  217. }
  218.  
  219. if (!bAllowMgs)
  220. {
  221. HC.ClientMessage ("Settings: MACHINE GUNS ARE NOT ALLOWED") ;
  222. }
  223.  
  224. if (!bAllowSnipers)
  225. {
  226. HC.ClientMessage ("Settings: SNIPERS ARE NOT ALLOWED") ;
  227. }
  228.  
  229. if (!bAllow203)
  230. {
  231. HC.ClientMessage ("Settings: 203 WEAPONS ARE NOT ALLOWED!") ;
  232. }
  233.  
  234. if (!bAllowRockets)
  235. {
  236. HC.ClientMessage ("Settings: ROCKETS ARE NOT ALLOWED!") ;
  237. }
  238.  
  239. if (bRiflesOnly)
  240. {
  241. HC.ClientMessage ("Settings: RIFLES ONLY ACTIVATED!") ;
  242. }
  243.  
  244. if (bMgsOnly)
  245. {
  246. HC.ClientMessage ("Settings: MACHINE GUNS ONLY ACTIVATED!") ;
  247. }
  248.  
  249. if (bSnipersOnly)
  250. {
  251. HC.ClientMessage ("Settings: SNIPERS ONLY ACTIVATED!") ;
  252. }
  253.  
  254. if (bShottyOnly)
  255. {
  256. HC.ClientMessage ("Settings: SHOTTY ONLY ACTIVATED!") ;
  257. }
  258.  
  259. if (bM9Only)
  260. {
  261. HC.ClientMessage ("Settings: M9 ONLY ACTIVATED!") ;
  262. }
  263.  
  264. if (bDefaultSettings)
  265. {
  266. HC.ClientMessage ("Settings: RESTRICTIONS OFF!") ;
  267. }
  268.  
  269. if (bNormal)
  270. {
  271. HC.ClientMessage ("Settings: Normal GamePlay On!") ;
  272. }
  273. HC.ClientMessage ("Pipeline Rules: Main Only Untill 4v4!") ;
  274. HC.ClientMessage ("Rules: No Recruting!") ;
  275. HC.ClientMessage ("Rules: Listen To Admins!") ;
  276. HC.ClientMessage ("Rules: Be Respectful!") ;
  277. HC.ClientMessage ("") ;
  278. } else if ( (Command ~= "restart") && (Sender.PlayerReplicationInfo.bAdmin) )
  279. {
  280. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  281. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  282. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  283. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  284. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  285. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  286. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  287. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  288. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  289. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  290. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  291. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  292. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  293. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  294. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  295. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  296. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  297. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  298. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  299. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  300. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  301. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  302. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  303. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  304. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  305. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  306. HC.ConsoleCommand ("Admin Say SERVER IS RESTARTING!!!") ;
  307. } else if (Command ~= "allowgrenades")
  308. {
  309. if (!Sender.PlayerReplicationInfo.bAdmin)
  310. {
  311. HC.ClientMessage ("") ;
  312. HC.ClientMessage ("You Are Not A Server Admin!") ;
  313. HC.ClientMessage ("") ;
  314. } else if (Sender.PlayerReplicationInfo.bAdmin)
  315. {
  316. if (Option ~= "")
  317. {
  318. HC.ClientMessage ("") ;
  319. HC.ClientMessage ("Type 'mutate allowgrenades 1' to allow Grenades, Type 'mutate allowgrenades 2' to not allow Grenades!") ;
  320. HC.ClientMessage ("") ;
  321. } else if (Option ~= "1")
  322. {
  323. if (bAllowGrenades)
  324. {
  325. HC.ClientMessage ("") ;
  326. HC.ClientMessage ("Grenades Are Already Allowed!") ;
  327. HC.ClientMessage ("") ;
  328. } else if (!bAllowGrenades)
  329. {
  330. bAllowGrenades = true ;
  331. checkdefaultsettings () ;
  332. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  333. Level.Game.BroadcastHandler.Broadcast (None,"Grenades Are Now Allowed!") ;
  334. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  335. HC.NotifyAdminMessage ("GRENADES ARE NOW ALLOWED!") ;
  336. }
  337. } else if (Option ~= "2")
  338. {
  339. if (!bAllowGrenades)
  340. {
  341. HC.ClientMessage ("") ;
  342. HC.ClientMessage ("Grenades Are Already Not Allowed!") ;
  343. HC.ClientMessage ("") ;
  344. } else if (bAllowGrenades)
  345. {
  346. bAllowGrenades = false ;
  347. checkdefaultsettings () ;
  348. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  349. Level.Game.BroadcastHandler.Broadcast (None,"Grenades Are No Longer Allowed!") ;
  350. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  351. HC.NotifyAdminMessage ("GRENADES ARE NO LONGER ALLOWED!") ;
  352. }
  353. }
  354.  
  355. if (!bAllowGrenades)
  356. {
  357. bDefaultSettings = false ;
  358. }
  359. }
  360. } else if (Command ~= "allowrifles")
  361. {
  362. if (!Sender.PlayerReplicationInfo.bAdmin)
  363. {
  364. HC.ClientMessage ("") ;
  365. HC.ClientMessage ("You Are Not A Server Admin!") ;
  366. HC.ClientMessage ("") ;
  367. } else if (Sender.PlayerReplicationInfo.bAdmin)
  368. {
  369. if (Option ~= "")
  370. {
  371. HC.ClientMessage ("") ;
  372. HC.ClientMessage ("Type 'mutate allowrifles 1' to allow Rifles, Type 'mutate alowrifles 2' to not allow Rifles!") ;
  373. HC.ClientMessage ("") ;
  374. } else if (Option ~= "1")
  375. {
  376. if (bAllowRifles)
  377. {
  378. HC.ClientMessage ("") ;
  379. HC.ClientMessage ("Rifles Are Already Allowed!") ;
  380. HC.ClientMessage ("") ;
  381. } else if (!bAllowRifles)
  382. {
  383. bAllowRifles = true ;
  384. bAllow203 = true ;
  385. checkdefaultsettings () ;
  386. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  387. Level.Game.BroadcastHandler.Broadcast (None,"Rifles Are Now Allowed!") ;
  388. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  389. HC.NotifyAdminMessage ("RIFLES ARE NOW ALLOWED!") ;
  390. }
  391. } else if (Option ~= "2")
  392. {
  393. if (!bAllowRifles)
  394. {
  395. HC.ClientMessage ("") ;
  396. HC.ClientMessage ("Rifles Are Already Not Allowed!") ;
  397. HC.ClientMessage ("") ;
  398. } else if (bAllowRifles)
  399. {
  400. bAllowRifles = false ;
  401. checkdefaultsettings () ;
  402. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  403. Level.Game.BroadcastHandler.Broadcast (None,"Rifles Are No Longer Allowed!") ;
  404. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  405. HC.NotifyAdminMessage ("RIFLES ARE NO LONGER ALLOWED!") ;
  406. }
  407. }
  408.  
  409. if (!bAllowRifles)
  410. {
  411. bDefaultSettings = false ;
  412. bAllow203 = false ;
  413. }
  414. }
  415. } else if (Command ~= "allow203")
  416. {
  417. if (!Sender.PlayerReplicationInfo.bAdmin)
  418. {
  419. HC.ClientMessage ("") ;
  420. HC.ClientMessage ("You Are Not A Server Admin!") ;
  421. HC.ClientMessage ("") ;
  422. } else if (Sender.PlayerReplicationInfo.bAdmin)
  423. {
  424. if (Option ~= "")
  425. {
  426. HC.ClientMessage ("") ;
  427. HC.ClientMessage ("Type 'mutate allow203' to allow Grenade Launchers, Type 'mutate allow203 2' to not allow Grenade Launchers!") ;
  428. HC.ClientMessage ("") ;
  429. } else if (Option ~= "1")
  430. {
  431. if (bAllow203)
  432. {
  433. HC.ClientMessage ("") ;
  434. HC.ClientMessage ("203s Are Already Allowed!") ;
  435. HC.ClientMessage ("") ;
  436. } else if (!bAllow203)
  437. {
  438. bAllow203 = true ;
  439. checkdefaultsettings () ;
  440. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  441. Level.Game.BroadcastHandler.Broadcast (None,"203's Are Now Allowed!") ;
  442. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  443. HC.NotifyAdminMessage ("203S ARE NOW ALLOWED!") ;
  444. }
  445. } else if (Option ~= "2")
  446. {
  447. if (!bAllow203)
  448. {
  449. HC.ClientMessage ("") ;
  450. HC.ClientMessage ("203s Are Already Not Allowed!") ;
  451. HC.ClientMessage ("") ;
  452. } else if (bAllow203)
  453. {
  454. bAllow203 = false ;
  455. checkdefaultsettings () ;
  456. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  457. Level.Game.BroadcastHandler.Broadcast (None,"203's Are No Longer Allowed!") ;
  458. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  459. HC.NotifyAdminMessage ("203S ARE NO LONGER ALLOWED!") ;
  460. }
  461. }
  462.  
  463. if (!bAllow203)
  464. {
  465. bDefaultSettings = false ;
  466. }
  467. }
  468. } else if (Command ~= "allowmgs")
  469. {
  470. if (!Sender.PlayerReplicationInfo.bAdmin)
  471. {
  472. HC.ClientMessage ("") ;
  473. HC.ClientMessage ("You Are Not A Server Admin!") ;
  474. HC.ClientMessage ("") ;
  475. } else if (Sender.PlayerReplicationInfo.bAdmin)
  476. {
  477. if (Option ~= "")
  478. {
  479. HC.ClientMessage ("") ;
  480. HC.ClientMessage ("Type 'mutate mgsonly 1' for Machine Gun's Only, Type 'mutate mgsonly 2' to turn Machine Gun's only off!") ;
  481. HC.ClientMessage ("") ;
  482. } else if (Option ~= "1")
  483. {
  484. if (bAllowMgs)
  485. {
  486. HC.ClientMessage ("") ;
  487. HC.ClientMessage ("Machine Guns Are Already Allowed!") ;
  488. HC.ClientMessage ("") ;
  489. } else if (!bAllowMgs)
  490. {
  491. bAllowMgs = true ;
  492. checkdefaultsettings () ;
  493. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  494. Level.Game.BroadcastHandler.Broadcast (None,"Machine Guns Are Now Allowed!") ;
  495. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  496. HC.NotifyAdminMessage ("MACHINE GUNS ARE NOW ALLOWED!") ;
  497. }
  498. } else if (Option ~= "2")
  499. {
  500. if (!bAllowMgs)
  501. {
  502. HC.ClientMessage ("") ;
  503. HC.ClientMessage ("Machine Guns Are Already Not Allowed!") ;
  504. HC.ClientMessage ("") ;
  505. } else if (bAllowMgs)
  506. {
  507. bAllowMgs = false ;
  508. checkdefaultsettings () ;
  509. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  510. Level.Game.BroadcastHandler.Broadcast (None,"Machine Guns Are No Longer Allowed!") ;
  511. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  512. HC.NotifyAdminMessage ("MACHINE GUNS ARE NO LONGER ALLOWED!") ;
  513. }
  514. }
  515.  
  516. if (!bAllowMgs)
  517. {
  518. bDefaultSettings = false ;
  519. }
  520. }
  521. } else if (Command ~= "allowsnipers")
  522. {
  523. if (!Sender.PlayerReplicationInfo.bAdmin)
  524. {
  525. HC.ClientMessage ("") ;
  526. HC.ClientMessage ("You Are Not A Server Admin!") ;
  527. HC.ClientMessage ("") ;
  528. } else if (Sender.PlayerReplicationInfo.bAdmin)
  529. {
  530. if (bAllowSnipers)
  531. {
  532. switch (Option)
  533. {
  534. case "":
  535. HC.ClientMessage ("") ;
  536. HC.ClientMessage ("Type 'mutate snipersonly 1' for Sniper's Only, Type 'mutate snipersonly 2' to turn Sniper's only off!") ;
  537. HC.ClientMessage ("") ;
  538. break;
  539. case "1":
  540. HC.ClientMessage ("") ;
  541. HC.ClientMessage ("Snipers Are Already Allowed!") ;
  542. HC.ClientMessage ("") ;
  543. break;
  544. case "2":
  545. bAllowSnipers = false ;
  546. checkdefaultsettings () ;
  547. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  548. Level.Game.BroadcastHandler.Broadcast (None,"Snipers Are No Longer Allowed!") ;
  549. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  550. HC.NotifyAdminMessage ("SNIPERS ARE NO LONGER ALLOWED!") ;
  551. break;
  552. }
  553. }else if (!bAllowSnipers)
  554. {
  555. switch (Option)
  556. {
  557. case "":
  558. HC.ClientMessage ("") ;
  559. HC.ClientMessage ("Type 'mutate snipersonly 1' for Sniper's Only, Type 'mutate snipersonly 2' to turn Sniper's only off!") ;
  560. HC.ClientMessage ("") ;
  561. break;
  562. case "1":
  563. bAllowSnipers = true ;
  564. checkdefaultsettings () ;
  565. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  566. Level.Game.BroadcastHandler.Broadcast (None,"Snipers Are Now Allowed!") ;
  567. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  568. HC.NotifyAdminMessage ("SNIPERS ARE NOW ALLOWED!") ;
  569. break;
  570. case "2":
  571. HC.ClientMessage ("") ;
  572. HC.ClientMessage ("Snipers Are Already Not Allowed!") ;
  573. HC.ClientMessage ("") ;
  574. break;
  575. }
  576. }
  577.  
  578. if (!bAllowSnipers)
  579. {
  580. bDefaultSettings = false ;
  581. }
  582. }
  583. } else if (Command ~= "allowrockets")
  584. {
  585. if (!Sender.PlayerReplicationInfo.bAdmin)
  586. {
  587. HC.ClientMessage ("") ;
  588. HC.ClientMessage ("You Are Not A Server Admin!") ;
  589. HC.ClientMessage ("") ;
  590. } else if (Sender.PlayerReplicationInfo.bAdmin)
  591. {
  592. if (bAllowRockets)
  593. {
  594. switch (Option)
  595. {
  596. case "":
  597. HC.ClientMessage ("") ;
  598. HC.ClientMessage ("Type 'mutate allowrockets 1' to allow Rockets, Type 'mutate allowrockets 2' to not allow Rockets!") ;
  599. HC.ClientMessage ("") ;
  600. break;
  601. case "1":
  602. HC.ClientMessage ("") ;
  603. HC.ClientMessage ("Rockets Are Already Allowed!") ;
  604. HC.ClientMessage ("") ;
  605. break;
  606. case "2":
  607. bAllowRockets = false ;
  608. checkdefaultsettings () ;
  609. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  610. Level.Game.BroadcastHandler.Broadcast (None,"Rockets Are No Longer Allowed!") ;
  611. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  612. HC.NotifyAdminMessage ("ROCKETS ARE NO LONGER ALLOWED!") ;
  613. break;
  614. }
  615. }else if (!bAllowRockets)
  616. {
  617. switch (Option)
  618. {
  619. case "":
  620. HC.ClientMessage ("") ;
  621. HC.ClientMessage ("Type 'mutate allowrockets 1' to allow Rockets, Type 'mutate allowrockets 2' to not allow Rockets!") ;
  622. HC.ClientMessage ("") ;
  623. break;
  624. case "1":
  625. bAllowRockets = true ;
  626. checkdefaultsettings () ;
  627. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  628. Level.Game.BroadcastHandler.Broadcast (None,"Rockets Are Now Allowed!") ;
  629. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  630. HC.NotifyAdminMessage ("ROCKETS ARE NOW ALLOWED!") ;
  631. break;
  632. case "2":
  633. HC.ClientMessage ("") ;
  634. HC.ClientMessage ("Rockets Are Already Not Allowed!") ;
  635. HC.ClientMessage ("") ;
  636. break;
  637. }
  638. }
  639. if (!bAllowRockets)
  640. {
  641. bDefaultSettings = false ;
  642. }
  643. }
  644. } else if (Command ~= "allownvg")
  645. {
  646. if (!Sender.PlayerReplicationInfo.bAdmin)
  647. {
  648. HC.ClientMessage ("") ;
  649. HC.ClientMessage ("You Are Not A Server Admin!") ;
  650. HC.ClientMessage ("") ;
  651. } else if (Sender.PlayerReplicationInfo.bAdmin)
  652. {
  653. if (Option ~= "")
  654. {
  655. HC.ClientMessage ("") ;
  656. HC.ClientMessage ("Type 'mutate allownvg 1' to allow Night Vision, Type 'mutate allownvg 2' to not allow Night Vision!") ;
  657. HC.ClientMessage ("") ;
  658.  
  659. } else if (Option ~= "1")
  660. {
  661. if (bNVG)
  662. {
  663. HC.ClientMessage ("") ;
  664. HC.ClientMessage ("NVGs Are Already Allowed!") ;
  665. HC.ClientMessage ("") ;
  666. } else if (!bNVG)
  667. {
  668. bNVG = true ;
  669. checkdefaultsettings () ;
  670. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  671. Level.Game.BroadcastHandler.Broadcast (None,"Night Vision Goggles Are Now Allowed!") ;
  672. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  673. HC.NotifyAdminMessage ("NIGHT VISION GOGGLES ARE NOW ALLOWED!") ;
  674. }
  675. } else if (Option ~= "2")
  676. {
  677. if (!bNVG)
  678. {
  679. HC.ClientMessage ("") ;
  680. HC.ClientMessage ("NVGs Are Already Not Allowed!") ;
  681. HC.ClientMessage ("") ;
  682. } else if (bNVG)
  683. {
  684. bNVG = false ;
  685. checkdefaultsettings () ;
  686. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  687. Level.Game.BroadcastHandler.Broadcast (None,"Night Vision Goggles Are No Longer Allowed!") ;
  688. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  689. HC.NotifyAdminMessage ("NIGHT VISION GOGGLES ARE NO LONGER ALLOWED!") ;
  690. }
  691. }
  692.  
  693. if (!bNVG)
  694. {
  695. bDefaultSettings = false ;
  696. }
  697. }
  698. } else if (Command ~= "riflesonly")
  699. {
  700. if (Sender.PlayerReplicationInfo.bAdmin)
  701. {
  702. if (Option ~= "")
  703. {
  704. HC.ClientMessage ("") ;
  705. HC.ClientMessage ("Type 'mutate riflesonly 1' for Rifle's Only, Type 'mutate riflesonly 2' to turn Rifle's only off!") ;
  706. HC.ClientMessage ("") ;
  707. } else if (Option ~= "1")
  708. {
  709. if (bRiflesOnly)
  710. {
  711. HC.ClientMessage ("") ;
  712. HC.ClientMessage ("Rifles Only Already Activated!") ;
  713. HC.ClientMessage ("") ;
  714. } else if (!bRiflesOnly)
  715. {
  716. bRiflesOnly= true ;
  717. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  718. Level.Game.BroadcastHandler.Broadcast (None,"Rifles Only Activated!") ;
  719. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  720. HC.NotifyAdminMessage ("RIFLES ONLY ACTIVATED!") ;
  721. }
  722. } else if (Option ~= "2")
  723. {
  724. if (!bRiflesOnly)
  725. {
  726. HC.ClientMessage ("") ;
  727. HC.ClientMessage ("Rifles Only Already Deactivated!") ;
  728. HC.ClientMessage ("") ;
  729. } else if (bRiflesOnly)
  730. {
  731. bRiflesOnly = false ;
  732. turnallowstrue () ;
  733. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  734. Level.Game.BroadcastHandler.Broadcast (None,"Rifles Only Dectivated!") ;
  735. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  736. HC.NotifyAdminMessage ("RIFLES ONLY DEACTIVATED!") ;
  737. }
  738. }
  739.  
  740. if (bRiflesOnly)
  741. {
  742. turnonlysfalse () ;
  743. turnallowsfalse () ;
  744. bDefaultSettings = false ;
  745. bRiflesOnly = true ;
  746. bAllowRifles = true ;
  747. }
  748. } else if (!Sender.PlayerReplicationInfo.bAdmin)
  749. {
  750. HC.ClientMessage ("") ;
  751. HC.ClientMessage ("You Are Not An Admin!") ;
  752. HC.ClientMessage ("") ;
  753. }
  754. } else if (Command ~= "mgsonly")
  755. {
  756. if (Sender.PlayerReplicationInfo.bAdmin)
  757. {
  758. if (Option ~= "")
  759. {
  760. HC.ClientMessage ("") ;
  761. HC.ClientMessage ("Type 'mutate mgsonly 1' for Machine Gun's Only, Type 'mutate mgsonly 2' to turn Machine Gun's only off!") ;
  762. HC.ClientMessage ("") ;
  763. } else if (Option ~= "1")
  764. {
  765. if (bMgsOnly)
  766. {
  767. HC.ClientMessage ("") ;
  768. HC.ClientMessage ("Machine Guns Only Already Activated!") ;
  769. HC.ClientMessage ("") ;
  770. } else if (!bMgsOnly)
  771. {
  772. bMgsOnly= true ;
  773. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  774. Level.Game.BroadcastHandler.Broadcast (None,"Machine Guns Only Activated!") ;
  775. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  776. HC.NotifyAdminMessage ("MACHINE GUNS ONLY ACTIVATED!") ;
  777. }
  778. } else if (Option ~= "2")
  779. {
  780. if (!bMgsOnly)
  781. {
  782. HC.ClientMessage ("") ;
  783. HC.ClientMessage ("Machine Guns Only Already Deactivated!") ;
  784. HC.ClientMessage ("") ;
  785. } else if (bMgsOnly)
  786. {
  787. bMgsOnly = false ;
  788. turnallowstrue () ;
  789. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  790. Level.Game.BroadcastHandler.Broadcast (None,"Machine Guns Only Deactivated!") ;
  791. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  792. HC.NotifyAdminMessage ("MACHINE GUNS ONLY DEACTIVATED!") ;
  793. }
  794. }
  795.  
  796. if (bMgsOnly)
  797. {
  798. turnonlysfalse () ;
  799. turnallowsfalse () ;
  800. bDefaultSettings = false ;
  801. bMgsOnly = true ;
  802. bAllowMgs = true ;
  803. }
  804. } else if (!Sender.PlayerReplicationInfo.bAdmin)
  805. {
  806. HC.ClientMessage ("") ;
  807. HC.ClientMessage ("You Are Not An Admin!") ;
  808. HC.ClientMessage ("") ;
  809. }
  810.  
  811. } else if (Command ~= "snipersonly")
  812. {
  813. if (Sender.PlayerReplicationInfo.bAdmin)
  814. {
  815. if (Option ~= "")
  816. {
  817. HC.ClientMessage ("") ;
  818. HC.ClientMessage ("Type 'mutate snipersonly 1' for Sniper's Only, Type 'mutate snipersonly 2' to turn Sniper's only off!") ;
  819. HC.ClientMessage ("") ;
  820. } else if (Option ~= "1")
  821. {
  822. if (bSnipersOnly)
  823. {
  824. HC.ClientMessage ("") ;
  825. HC.ClientMessage ("Snipers Only Already Activated!") ;
  826. HC.ClientMessage ("") ;
  827. } else if (!bSnipersOnly)
  828. {
  829. bSnipersOnly= true ;
  830. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  831. Level.Game.BroadcastHandler.Broadcast (None,"Snipers Only Activated!") ;
  832. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  833. HC.NotifyAdminMessage ("SNIPERS ONLY ACTIVATED!") ;
  834. }
  835. } else if (Option ~= "2")
  836. {
  837. if (!bSnipersOnly)
  838. {
  839. HC.ClientMessage ("") ;
  840. HC.ClientMessage ("Snipers Only Already Deactivated!") ;
  841. HC.ClientMessage ("") ;
  842. } else if (bSnipersOnly)
  843. {
  844. bSnipersOnly = false ;
  845. turnallowstrue () ;
  846. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  847. Level.Game.BroadcastHandler.Broadcast (None,"Snipers Only Dectivated!") ;
  848. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  849. HC.NotifyAdminMessage ("SNIPERS ONLY DEACTIVATED!") ;
  850. }
  851. }
  852.  
  853. if (bSnipersOnly)
  854. {
  855. turnonlysfalse () ;
  856. turnallowsfalse () ;
  857. bDefaultSettings = false ;
  858. bSnipersOnly = true ;
  859. bAllowSnipers = true ;
  860. }
  861. } else if (!Sender.PlayerReplicationInfo.bAdmin)
  862. {
  863. HC.ClientMessage ("") ;
  864. HC.ClientMessage ("You Are Not An Admin!") ;
  865. HC.ClientMessage ("") ;
  866. }
  867. } else if (Command ~= "shottyonly")
  868. {
  869. if (Sender.PlayerReplicationInfo.bAdmin)
  870. {
  871. if (Option ~= "")
  872. {
  873. HC.ClientMessage ("") ;
  874. HC.ClientMessage ("Type 'mutate shottyonly 1' for Shotgun's Only, Type 'mutate shottyonly 2' to turn Shotgun's only off!") ;
  875. HC.ClientMessage ("") ;
  876. } else if (Option ~= "1")
  877. {
  878. if (bShottyOnly)
  879. {
  880. HC.ClientMessage ("") ;
  881. HC.ClientMessage ("Shotty Only Already Activated!") ;
  882. HC.ClientMessage ("") ;
  883. } else if (!bShottyOnly)
  884. {
  885. bShottyOnly= true ;
  886. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  887. Level.Game.BroadcastHandler.Broadcast (None,"Shotty Only Activated!") ;
  888. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  889. HC.NotifyAdminMessage ("SHOTTY ONLY ACTIVATED!") ;
  890. }
  891. } else if (Option ~= "2")
  892. {
  893. if (!bShottyOnly)
  894. {
  895. HC.ClientMessage ("") ;
  896. HC.ClientMessage ("Shotty Only Already Deactivated!") ;
  897. HC.ClientMessage ("") ;
  898. } else if (bShottyOnly)
  899. {
  900. bShottyOnly = false ;
  901. turnallowstrue () ;
  902. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  903. Level.Game.BroadcastHandler.Broadcast (None,"Shotty Only Deactivated!") ;
  904. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  905. HC.NotifyAdminMessage ("SHOTTY ONLY DEACTIVATED!") ;
  906. }
  907. }
  908.  
  909. if (bShottyOnly)
  910. {
  911. turnonlysfalse () ;
  912. turnallowsfalse () ;
  913. checkdefaultsettings () ;
  914. bShottyOnly = true ;
  915. }
  916. } else if (!Sender.PlayerReplicationInfo.bAdmin)
  917. {
  918. HC.ClientMessage ("") ;
  919. HC.ClientMessage ("You Are Not An Admin!") ;
  920. HC.ClientMessage ("") ;
  921. }
  922. } else if (Command ~= "M9only")
  923. {
  924. if (Sender.PlayerReplicationInfo.bAdmin)
  925. {
  926. if (Option ~= "")
  927. {
  928. HC.ClientMessage ("") ;
  929. HC.ClientMessage ("Type 'mutate m9only 1' for M9's Only, Type 'mutate m9only 2' to turn M9's only off!") ;
  930. HC.ClientMessage ("") ;
  931. } else if (Option ~= "1")
  932. {
  933. if (bM9Only)
  934. {
  935. HC.ClientMessage ("") ;
  936. HC.ClientMessage ("M9 Only Already Activated!") ;
  937. HC.ClientMessage ("") ;
  938. } else if (!bM9Only)
  939. {
  940. bM9Only= true ;
  941. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  942. Level.Game.BroadcastHandler.Broadcast (None,"M9 Only Activated!") ;
  943. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  944. HC.NotifyAdminMessage ("M9 ONLY ACTIVATED!") ;
  945. }
  946. } else if (Option ~= "2")
  947. {
  948. if (!bM9Only)
  949. {
  950. HC.ClientMessage ("") ;
  951. HC.ClientMessage ("M9 Only Already Deactivated!") ;
  952. HC.ClientMessage ("") ;
  953. } else if (bM9Only)
  954. {
  955. bM9Only = false ;
  956. turnallowstrue () ;
  957. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  958. Level.Game.BroadcastHandler.Broadcast (None,"M9 Only Dectivated!") ;
  959. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  960. HC.NotifyAdminMessage ("M9 ONLY DEACTIVATED!") ;
  961. }
  962. }
  963.  
  964. if (bM9Only)
  965. {
  966. turnonlysfalse () ;
  967. turnallowsfalse () ;
  968. bDefaultSettings = false ;
  969. bM9Only = true ;
  970. }
  971. } else if (!Sender.PlayerReplicationInfo.bAdmin)
  972. {
  973. HC.ClientMessage ("") ;
  974. HC.ClientMessage ("You Are Not An Admin!") ;
  975. HC.ClientMessage ("") ;
  976. }
  977. } else if (Command ~= "ThirdPerson")
  978. {
  979. if (bNormal)
  980. {
  981. HC.ClientMessage ("") ;
  982. HC.ClientMessage ("Third Person Cant Be Used With Normal Gameplay!") ;
  983. HC.ClientMessage ("") ;
  984. return ;
  985. }
  986.  
  987. if (HC.Pawn == none)
  988. {
  989. HC.ClientMessage ("") ;
  990. HC.ClientMessage ("You Have To Be Alive To Activate ThirdPerson!") ;
  991. HC.ClientMessage ("") ;
  992. } else if (HC.Pawn != none)
  993. {
  994. if (HC.bBehindView)
  995. {
  996. HC.ClientMessage ("") ;
  997. HC.ClientMessage ("You Are Already In ThirdPerson!") ;
  998. HC.ClientMessage ("") ;
  999. } else if (!HC.bBehindView)
  1000. {
  1001. HC.ClientMessage ("") ;
  1002. HC.ClientMessage ("You Are Now In ThirdPerson!") ;
  1003. HC.ClientMessage ("") ;
  1004. HC.ClientSetBehindView (true) ;
  1005. HC.bBehindView = true ;
  1006. }
  1007. }
  1008. } else if (Command ~= "FirstPerson")
  1009. {
  1010. if (HC.Pawn == none)
  1011. {
  1012. HC.ClientMessage ("") ;
  1013. HC.ClientMessage ("You Have To Be Alive To Activate FirstPerson!") ;
  1014. HC.ClientMessage ("") ;
  1015. } else if (HC.Pawn != none)
  1016. {
  1017. if (!HC.bBehindView)
  1018. {
  1019. HC.ClientMessage ("") ;
  1020. HC.ClientMessage ("You Are Already In FirstPerson!") ;
  1021. HC.ClientMessage ("") ;
  1022. } else if (HC.bBehindView)
  1023. {
  1024. HC.ClientMessage ("") ;
  1025. HC.ClientMessage ("You Are Now In FirstPerson!") ;
  1026. HC.ClientMessage ("") ;
  1027. HC.ClientSetBehindView (false) ;
  1028. HC.bBehindView = false ;
  1029. }
  1030. }
  1031. } else if (Command ~= "Objectives")
  1032. {
  1033. if (Sender.PlayerReplicationInfo.bAdmin)
  1034. {
  1035. if (Option ~= "")
  1036. {
  1037. HC.ClientMessage ("") ;
  1038. HC.ClientMessage ("Type 'mutate objectives 1' to allow Objectives, Type 'mutate objectives 2' to not allow Objectives!") ;
  1039. HC.ClientMessage ("") ;
  1040. } else if (Option ~= "1")
  1041. {
  1042. if (bObjectives)
  1043. {
  1044. HC.ClientMessage ("") ;
  1045. HC.ClientMessage ("Objectives Already Activated!") ;
  1046. HC.ClientMessage ("") ;
  1047. } else if (!bRiflesOnly)
  1048. {
  1049. bObjectives = true ;
  1050. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  1051. Level.Game.BroadcastHandler.Broadcast (None,"Objectives Activated!") ;
  1052. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  1053. HC.NotifyAdminMessage ("Objectives ONLY ACTIVATED!") ;
  1054. }
  1055. } else if (Option ~= "2")
  1056. {
  1057. if (!bObjectives)
  1058. {
  1059. HC.ClientMessage ("") ;
  1060. HC.ClientMessage ("Objectives Already Deactivated!") ;
  1061. HC.ClientMessage ("") ;
  1062. } else if (bObjectives)
  1063. {
  1064. bObjectives = false ;
  1065. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  1066. Level.Game.BroadcastHandler.Broadcast (None,"Objectives Dectivated!") ;
  1067. Level.Game.BroadcastHandler.Broadcast (None,"") ;
  1068. HC.NotifyAdminMessage ("Objectives DEACTIVATED!") ;
  1069. }
  1070. }
  1071.  
  1072. if (bObjectives) {
  1073. bDefaultSettings = false ;
  1074. }
  1075. }
  1076. } else
  1077. {
  1078. if (Sender.PlayerReplicationInfo.bAdmin)
  1079. {
  1080. if (bNormal)
  1081. {
  1082. switch (command)
  1083. {
  1084. case "class":
  1085. HC.ClientMessage ("") ;
  1086. HC.ClientMessage ("Command 'mutate class' is Not Allowed!") ;
  1087. HC.ClientMessage ("") ;
  1088. break;
  1089. case "kill":
  1090. PlayerID = int(Parts[1]);
  1091. Kill(PlayerID);
  1092. break;
  1093. case "Forcclass":
  1094. AdminForceClass (Option) ;
  1095. break;
  1096. case "jail":
  1097. PlayerID = int(Parts[1]);
  1098. Jail(PlayerID);
  1099. break;
  1100. case "roekick":
  1101. PlayerID = int(Parts[1]);
  1102. RoeKick(PlayerID);
  1103. break;
  1104. case "nadekick":
  1105. PlayerID = int(Parts[1]);
  1106. NadeKick(PlayerID);
  1107. break;
  1108. case "clist":
  1109. switch (Option)
  1110. {
  1111. case "":
  1112. HC.ClientMessage ("") ;
  1113. HC.ClientMessage ("Type 'mutate clist 2' for page 2 of clist!") ;
  1114. HC.ClientMessage ("Type 'mutate allowrockets 1' to allow Rockets, Type 'mutate allowrockets 2' to not allow Rockets!") ;
  1115. HC.ClientMessage ("") ;
  1116. break;
  1117. case "2":
  1118. HC.ClientMessage ("") ;
  1119. HC.ClientMessage ("Type 'mutate clist 3' for page 3 of clist!") ;
  1120. HC.ClientMessage ("Type 'mutate allowsnipers 1' to allow Snipers, Type 'mutate allowsnipers 2' to not allow Snipers!") ;
  1121. HC.ClientMessage ("Type 'mutate allowmgs 1' to allow Machine Guns, Type 'mutate alowmgs 2' to not allow Machine Guns!") ;
  1122. HC.ClientMessage ("Type 'mutate allowrifles 1' to allow Rifles, Type 'mutate alowrifles 2' to not allow Rifles!") ;
  1123. HC.ClientMessage ("Type 'mutate allowgrenades 1' to allow Grenades, Type 'mutate allowgrenades 2' to not allow Grenades!") ;
  1124. HC.ClientMessage ("Type 'mutate allownvg 1' to allow Night Vision, Type 'mutate allownvg 2' to not allow Night Vision!") ;
  1125. HC.ClientMessage ("Type 'mutate rules' for a list of Server Rules!") ;
  1126. HC.ClientMessage ("") ;
  1127. break;
  1128. case"3":
  1129. HC.ClientMessage ("") ;
  1130. HC.ClientMessage ("Type 'mutate clist 4' for page 4 of clist!") ;
  1131. HC.ClientMessage ("Type 'mutate m9only 1' for M9's Only, Type 'mutate m9only 2' to turn M9's only off!") ;
  1132. HC.ClientMessage ("Type 'mutate shottyonly 1' for Shotgun's Only, Type 'mutate shottyonly 2' to turn Shotgun's only off!") ;
  1133. HC.ClientMessage ("Type 'mutate snipersonly 1' for Sniper's Only, Type 'mutate snipersonly 2' to turn Sniper's only off!") ;
  1134. HC.ClientMessage ("Type 'mutate mgsonly 1' for Machine Gun's Only, Type 'mutate mgsonly 2' to turn Machine Gun's only off!") ;
  1135. HC.ClientMessage ("Type 'mutate riflesonly 1' for Rifle's Only, Type 'mutate riflesonly 2' to turn Rifle's only off!") ;
  1136. HC.ClientMessage ("Type 'mutate objectives 1' to allow Objectives, Type 'mutate objectives 2' to not allow Objectives!") ;
  1137. HC.ClientMessage ("") ;
  1138. break;
  1139. case"4":
  1140. HC.ClientMessage ("") ;
  1141. HC.ClientMessage ("Type 'playerlist' for a list of players!") ;
  1142. HC.ClientMessage ("Type 'mutate restart' to notfiy Restarting Server!") ;
  1143. HC.ClientMessage ("Type 'mutate jail [PlayerID]' to Send a Player to Leavenworth!") ;
  1144. HC.ClientMessage ("Type 'mutate kill [PlayerID]' to Kill a Player!") ;
  1145. HC.ClientMessage ("Type 'mutate roekick [PlayerID]' to Send a Player to Mout Shoot House for Excessive ROE!") ;
  1146. HC.ClientMessage ("Type 'mutate nadekick [PlayerID]' to Send a Player to Us Weapons for Nading Firendly's!") ;
  1147. HC.ClientMessage ("") ;
  1148. break;
  1149. default:
  1150. HC.ClientMessage ("") ;
  1151. HC.ClientMessage ("Invalid Clist Page!") ;
  1152. HC.ClientMessage ("Clist Pages Are: 2,3,4") ;
  1153. HC.ClientMessage ("Type 'mutate clist' for Page 1 of clist!") ;
  1154. HC.ClientMessage ("") ;
  1155. break;
  1156. }
  1157. break;
  1158. default:
  1159. HC.ClientMessage ("") ;
  1160. HC.ClientMessage ("Invalid Command!") ;
  1161. HC.ClientMessage ("") ;
  1162. break;
  1163. }
  1164.  
  1165. } else if (!bNormal)
  1166. {
  1167. switch (command)
  1168. {
  1169. case "class":
  1170. PlayerID = HC.PlayerReplicationInfo.PlayerID ;
  1171. WhichPlayerForce (HC, PlayerID, Option) ;
  1172. break;
  1173. case "kill":
  1174. PlayerID = int(Parts[1]);
  1175. Kill(PlayerID);
  1176. break;
  1177. case "Forceclass":
  1178. AdminForceClass (Option) ;
  1179. break;
  1180. case "jail":
  1181. PlayerID = int(Parts[1]);
  1182. Jail(PlayerID);
  1183. break;
  1184. case "roekick":
  1185. PlayerID = int(Parts[1]);
  1186. RoeKick(PlayerID);
  1187. break;
  1188. case "nadekick":
  1189. PlayerID = int(Parts[1]);
  1190. NadeKick(PlayerID);
  1191. break;
  1192. case "clist":
  1193. switch (Option)
  1194. {
  1195. case "":
  1196. HC.ClientMessage ("") ;
  1197. HC.ClientMessage ("Type 'mutate clist 2' for page 2 of clist!") ;
  1198. HC.ClientMessage ("Type 'mutate allowrockets 1' to allow Rockets, Type 'mutate allowrockets 2' to not allow Rockets!") ;
  1199. AvailableClistClasses (HC) ;
  1200. HC.ClientMessage ("Type 'mutate class [WeaponsClass]' to pick a weapon!") ;
  1201. HC.ClientMessage ("Type 'mutate firstperson' for FirstPerson View!") ;
  1202. HC.ClientMessage ("Type 'mutate thirdperson' for ThirdPerson View!") ;
  1203. HC.ClientMessage ("") ;
  1204. break;
  1205. case "2":
  1206. HC.ClientMessage ("") ;
  1207. HC.ClientMessage ("Type 'mutate clist 3' for page 3 of clist!") ;
  1208. HC.ClientMessage ("Type 'mutate allowsnipers 1' to allow Snipers, Type 'mutate allowsnipers 2' to not allow Snipers!") ;
  1209. HC.ClientMessage ("Type 'mutate allowmgs 1' to allow Machine Guns, Type 'mutate alowmgs 2' to not allow Machine Guns!" ) ;
  1210. HC.ClientMessage ("Type 'mutate allowrifles 1' to allow Rifles, Type 'mutate alowrifles 2' to not allow Rifles!") ;
  1211. HC.ClientMessage ("Type 'mutate allowgrenades 1' to allow Grenades, Type 'mutate allowgrenades 2' to not allow Grenades!") ;
  1212. HC.ClientMessage ("Type 'mutate allownvg 1' to allow Night Vision, Type 'mutate allownvg 2' to not allow Night Vision!") ;
  1213. HC.ClientMessage ("Type 'mutate rules' for a list of Server Rules!") ;
  1214. HC.ClientMessage ("") ;
  1215. break;
  1216. case "3":
  1217. HC.ClientMessage ("") ;
  1218. HC.ClientMessage ("Type 'mutate clist 4' for page 4 of clist!") ;
  1219. HC.ClientMessage ("Type 'mutate m9only 1' for M9's Only, Type 'mutate m9only 2' to turn M9's only off!") ;
  1220. HC.ClientMessage ("Type 'mutate shottyonly 1' for Shotgun's Only, Type 'mutate shottyonly 2' to turn Shotgun's only off!") ;
  1221. HC.ClientMessage ("Type 'mutate snipersonly 1' for Sniper's Only, Type 'mutate snipersonly 2' to turn Sniper's only off!") ;
  1222. HC.ClientMessage ("Type 'mutate mgsonly 1' for Machine Gun's Only, Type 'mutate mgsonly 2' to turn Machine Gun's only off!") ;
  1223. HC.ClientMessage ("Type 'mutate riflesonly 1' for Rifle's Only, Type 'mutate riflesonly 2' to turn Rifle's only off!") ;
  1224. HC.ClientMessage ("Type 'mutate objectives 1' to allow Objectives, Type 'mutate objectives 2' to not allow Objectives!") ;
  1225. HC.ClientMessage ("") ;
  1226. break;
  1227. case "4":
  1228. HC.ClientMessage ("") ;
  1229. HC.ClientMessage ("Type 'playerlist' for a list of players!") ;
  1230. HC.ClientMessage ("Type 'mutate restart' to notify Restarting Server!") ;
  1231. HC.ClientMessage ("Type 'mutate jail [PlayerID]' to Send a Player to Leavenworth for violations of Rules!") ;
  1232. HC.ClientMessage ("Type 'mutate kill [PlayerID]' to Kill a Player for violations of Rules!") ;
  1233. HC.ClientMessage ("Type 'mutate roekick [PlayerID]' to Send a Player to Mout Shoot House for Excessive ROE!") ;
  1234. HC.ClientMessage ("Type 'mutate nadekick [PlayerID]' to Send a Player to Us Weapons for Nading Firendly's!") ;
  1235. HC.ClientMessage ("") ;
  1236. break;
  1237. default:
  1238. HC.ClientMessage ("") ;
  1239. HC.ClientMessage ("Invalid Clist Page!") ;
  1240. HC.ClientMessage ("Clist Pages Are: 2,3,4") ;
  1241. HC.ClientMessage ("Type 'mutate clist' for Page 1 of clist!") ;
  1242. HC.ClientMessage ("") ;
  1243. break;
  1244. }
  1245. break;
  1246. default:
  1247. HC.ClientMessage ("") ;
  1248. HC.ClientMessage ("Invalid Command!") ;
  1249. HC.ClientMessage ("") ;
  1250. break;
  1251. }
  1252. }
  1253. } else if (!Sender.PlayerReplicationInfo.bAdmin)
  1254. {
  1255. if (bNormal)
  1256. {
  1257. switch (command)
  1258. {
  1259. case "class":
  1260. HC.ClientMessage ("") ;
  1261. HC.ClientMessage ("Command 'mutate class' is Not Allowed!") ;
  1262. HC.ClientMessage ("") ;
  1263. case "kill":
  1264. HC.ClientMessage ("") ;
  1265. HC.ClientMessage ("Command 'mutate kill' is for Administrator's only!") ;
  1266. HC.ClientMessage ("") ;
  1267. case "Forceclass":
  1268. HC.ClientMessage ("") ;
  1269. HC.ClientMessage ("Command 'mutate forceclass' is for Administrator's only!") ;
  1270. HC.ClientMessage ("") ;
  1271. break;
  1272. case "jail":
  1273. HC.ClientMessage ("") ;
  1274. HC.ClientMessage ("Command 'mutate jail' is for Administrator's only!") ;
  1275. HC.ClientMessage ("") ;
  1276. break;
  1277. case "roekick":
  1278. HC.ClientMessage ("") ;
  1279. HC.ClientMessage ("Command 'mutate roekick' is for Administrator's only!") ;
  1280. HC.ClientMessage ("") ;
  1281. break;
  1282. case "nadekick":
  1283. HC.ClientMessage ("") ;
  1284. HC.ClientMessage ("Command 'mutate nadekick' is for Administrator's only!") ;
  1285. HC.ClientMessage ("") ;
  1286. break;
  1287. case "clist":
  1288. switch (Option)
  1289. {
  1290. case "":
  1291. HC.ClientMessage ("") ;
  1292. HC.ClientMessage ("Type 'mutate rules' for a list of the Server Rules!") ;
  1293. HC.ClientMessage ("") ;
  1294. break;
  1295. }
  1296. break;
  1297. default:
  1298. HC.ClientMessage ("") ;
  1299. HC.ClientMessage ("Invalid Command!") ;
  1300. HC.ClientMessage ("") ;
  1301. break;
  1302. }
  1303. } else if (!bNormal)
  1304. {
  1305. switch (command)
  1306. {
  1307. case "class":
  1308. PlayerID = HC.PlayerReplicationInfo.PlayerID ;
  1309. WhichPlayerForce (HC, PlayerID, Option) ;
  1310. break;
  1311. case "kill":
  1312. HC.ClientMessage ("") ;
  1313. HC.ClientMessage ("Command 'mutate kill' is for Administrator's only!") ;
  1314. HC.ClientMessage ("") ;
  1315. break;
  1316. case "Forceclass":
  1317. HC.ClientMessage ("") ;
  1318. HC.ClientMessage ("Command 'mutate forceclass' is for Administrator's only!") ;
  1319. HC.ClientMessage ("") ;
  1320. break;
  1321. case "jail":
  1322. HC.ClientMessage ("") ;
  1323. HC.ClientMessage ("Command 'mutate jail' is for Administrator's only!") ;
  1324. HC.ClientMessage ("") ;
  1325. break;
  1326. case "roekick":
  1327. HC.ClientMessage ("") ;
  1328. HC.ClientMessage ("Command 'mutate roekick' is for Administrator's only!") ;
  1329. HC.ClientMessage ("") ;
  1330. break;
  1331. case "nadekick":
  1332. HC.ClientMessage ("") ;
  1333. HC.ClientMessage ("Command 'mutate nadekick' is for Administrator's only!") ;
  1334. HC.ClientMessage ("") ;
  1335. break;
  1336. case "clist":
  1337. switch (Option)
  1338. {
  1339. case "":
  1340. HC.ClientMessage ("") ;
  1341. HC.ClientMessage ("Type 'mutate clist 2' for page 2 of clist!") ;
  1342. AvailableClistClasses (HC) ;
  1343. HC.ClientMessage ("Type 'mutate class [WeaponsClass]' to pick a weapon!") ;
  1344. HC.ClientMessage ("Type 'mutate firstperson' for FirstPerson View!") ;
  1345. HC.ClientMessage ("Type 'mutate thirdperson' for ThirdPerson View!") ;
  1346. HC.ClientMessage ("") ;
  1347. break;
  1348. default:
  1349. HC.ClientMessage("") ;
  1350. HC.ClientMessage("Invalid Clist Page!") ;
  1351. HC.ClientMessage("Type 'mutate clist' for Page 1 of clist!") ;
  1352. HC.ClientMessage("") ;
  1353. }
  1354. break;
  1355. default:
  1356. HC.ClientMessage ("") ;
  1357. HC.ClientMessage ("Invalid Command!") ;
  1358. HC.ClientMessage ("") ;
  1359. break;
  1360. }
  1361. }
  1362. }
  1363. }
  1364. }
  1365.  
  1366. function timer ()
  1367. {
  1368. if (!bNormal)
  1369. {
  1370. Level.Game.BroadcastHandler.Broadcast (None,"Type 'mutate clist' for a list of Commands!") ;
  1371. }
  1372. Level.Game.BroadcastHandler.Broadcast (None,"Type 'mutate rules' for a list of Server Rules") ;
  1373. Level.Game.BroadcastHandler.Broadcast (None,"Press the ~ button") ;
  1374. }
  1375.  
  1376. function turnallowsfalse ()
  1377. {
  1378. bAllowRifles = false ;
  1379. bAllowMgs = false ;
  1380. bAllowSnipers = false ;
  1381. bAllow203 = false ;
  1382. bAllowRockets = false ;
  1383. bDefaultSettings = false ;
  1384. }
  1385.  
  1386. function turnallowstrue ()
  1387. {
  1388. bAllowRifles = true ;
  1389. bAllowMgs = true ;
  1390. bAllowSnipers = true ;
  1391. bAllow203 = true ;
  1392. bNVG = true ;
  1393. bAllowRockets = true ;
  1394. bDefaultSettings = true ;
  1395. }
  1396.  
  1397. function turnonlysfalse ()
  1398. {
  1399. bRiflesOnly = false ;
  1400. bMgsOnly = false ;
  1401. bSnipersOnly = false ;
  1402. bShottyOnly = false ;
  1403. bM9Only = false ;
  1404. bDefaultSettings = true ;
  1405. }
  1406.  
  1407. function checkdefaultsettings ()
  1408. {
  1409. if (bAllowRifles && bAllow203 && bAllowMgs && bAllowSnipers && bAllowRockets && bObjectives && bNVG && !bNormal)
  1410. {
  1411. bDefaultSettings = true ;
  1412. } else
  1413. {
  1414. bDefaultSettings = false ;
  1415. }
  1416. }
  1417.  
  1418.  
  1419. function string Forceclass_Weapon (HumanController HC)
  1420. {
  1421. local string Result ;
  1422.  
  1423. if (bRiflesOnly)
  1424. {
  1425. Result = "Ultimatemod.ClassRifleman" ;
  1426. }
  1427.  
  1428. if (bMgsOnly)
  1429. {
  1430. Result = "Ultimatemod.ClassAutomaticRifleman" ;
  1431. }
  1432.  
  1433. if (bSnipersOnly)
  1434. {
  1435. Result = "AGP_Characters.ClassSniper" ;
  1436. }
  1437.  
  1438. if (bShottyOnly)
  1439. {
  1440. Result = "Ultimatemod.ClassBreacher" ;
  1441. }
  1442.  
  1443. if (bM9Only)
  1444. {
  1445. Result = "AGP_Characters.ClassPistol" ;
  1446. }
  1447.  
  1448. if (!bAllowRifles)
  1449. {
  1450. Result = "Ultimatemod.ClassBreacher" ;
  1451. }
  1452.  
  1453. if (bAllowRifles && !bAllowMgs || !bAllowSnipers || !bAllow203 || !bAllowRockets)
  1454. {
  1455. Result = "Ultimatemod.ClassRifleman" ;
  1456. }
  1457.  
  1458. switch (HC.DesiredTeamClassName)
  1459. {
  1460. case "AGP_Characters.ClassRifleman":
  1461. Result = "Ultimatemod.ClassRifleman" ;
  1462. break;
  1463. }
  1464.  
  1465. if (!bAllowGrenades)
  1466. {
  1467. Result = "Ultimatemod.ClassRifleman" ;
  1468. }
  1469.  
  1470. if (HC.PlayerReplicationInfo.bVIPPS)
  1471. {
  1472. HC.ClientMessage ("Sorry VIP's Cannot Be Forceclassed Weapons!") ;
  1473. } else if (!HC.PlayerReplicationInfo.bVIPPS)
  1474. {
  1475. return Result ;
  1476. }
  1477. }
  1478.  
  1479. function Kill (Int PlayerID)
  1480. {
  1481. local HumanController HC;
  1482. local int i;
  1483.  
  1484. for (i = 0; i < Level.Game.GameReplicationInfo.PRIArray.Length; i++)
  1485. {
  1486. HC = HumanController(Level.Game.GameReplicationInfo.PRIArray[i].GetController());
  1487.  
  1488. if (HC != None)
  1489. {
  1490. if (HC.PlayerReplicationInfo.PlayerID == PlayerID)
  1491. {
  1492.  
  1493. if (HC.Pawn == none)
  1494. {
  1495. HC.ClientMessage("You Cant Kill Dead Bodies Private!") ;
  1496. } else if (HC.Pawn != None)
  1497. {
  1498. Level.Game.BroadcastHandler.Broadcast (None,""$HC.PlayerReplicationInfo.PlayerName$" was killed by an Admin for Violation(s) of Server Rules!") ;
  1499. HC.Pawn.TakeDamage(100,None,vect(0.00,0.00,0.00),vect(0.00,0.00,256.00),class'Suicided');
  1500. }
  1501. }
  1502. }
  1503. }
  1504. }
  1505.  
  1506. function Jail (Int PlayerID)
  1507. {
  1508. local HumanController HC;
  1509. local int i;
  1510.  
  1511. for (i = 0; i < Level.Game.GameReplicationInfo.PRIArray.Length; i++)
  1512. {
  1513. HC = HumanController(Level.Game.GameReplicationInfo.PRIArray[i].GetController());
  1514.  
  1515. if (HC != None)
  1516. {
  1517. if (HC.PlayerReplicationInfo.PlayerID == PlayerID)
  1518. {
  1519. Level.Game.BroadcastHandler.Broadcast (None,""$HC.PlayerReplicationInfo.PlayerName$" was Court Marshalled by an Admin for Violation(s) of Server Rules!") ;
  1520. HC.ClientTravel ("Leavenworth",TRAVEL_Absolute,false) ;
  1521. }
  1522. }
  1523. }
  1524. }
  1525.  
  1526. function NadeKick (int PlayerID)
  1527. {
  1528. local HumanController HC;
  1529. local int i;
  1530.  
  1531. for (i = 0; i < Level.Game.GameReplicationInfo.PRIArray.Length; i++)
  1532. {
  1533. HC = HumanController(Level.Game.GameReplicationInfo.PRIArray[i].GetController());
  1534.  
  1535. if (HC != None)
  1536. {
  1537. if (HC.PlayerReplicationInfo.PlayerID == PlayerID)
  1538. {
  1539. Level.Game.BroadcastHandler.Broadcast (None,""$HC.PlayerReplicationInfo.PlayerName$" was Sent To Weapons Training by an Admin for Grenading a Firendly!") ;
  1540. HC.ClientTravel ("US_Weapons",TRAVEL_Absolute,false) ;
  1541. }
  1542. }
  1543. }
  1544. }
  1545.  
  1546. function ROEKick (int PlayerID)
  1547. {
  1548. local HumanController HC;
  1549. local int i;
  1550.  
  1551. for (i = 0; i < Level.Game.GameReplicationInfo.PRIArray.Length; i++)
  1552. {
  1553. HC = HumanController(Level.Game.GameReplicationInfo.PRIArray[i].GetController());
  1554.  
  1555. if (HC != None)
  1556. {
  1557. if (HC.PlayerReplicationInfo.PlayerID == PlayerID)
  1558. {
  1559. Level.Game.BroadcastHandler.Broadcast (None,""$HC.PlayerReplicationInfo.PlayerName$" was Sent To Shoot House by an Admin for Firendly Fire!") ;
  1560. HC.ClientTravel ("mout",TRAVEL_Absolute,false) ;
  1561. }
  1562. }
  1563. }
  1564. }
  1565.  
  1566. function IdleKick ()
  1567. {
  1568. local HumanController HC;
  1569. local int i;
  1570. local int PlayerID ;
  1571.  
  1572. PlayerID = HC.PlayerReplicationInfo.PlayerID;
  1573.  
  1574. for (i = 0; i < Level.Game.GameReplicationInfo.PRIArray.Length; i++)
  1575. {
  1576. HC = HumanController(Level.Game.GameReplicationInfo.PRIArray[i].GetController());
  1577.  
  1578. if (HC != None)
  1579. {
  1580. if (HC.PlayerReplicationInfo.PlayerID == PlayerID)
  1581. {
  1582. Level.Game.BroadcastHandler.Broadcast (None,""$HC.PlayerReplicationInfo.PlayerName$" was Killed for being Idle!") ;
  1583. HC.Pawn.TakeDamage(100,None,vect(0.00,0.00,0.00),vect(0.00,0.00,256.00),class'Suicided');
  1584. }
  1585. }
  1586. }
  1587. }
  1588.  
  1589. function AdminForceClass (string WeaponsClass)
  1590. {
  1591. local HumanController HC ;
  1592. local int PlayerID ;
  1593. local int i ;
  1594. local string sclass_name ;
  1595. local class<SoldierClass> sclass ;
  1596.  
  1597. PlayerID = HC.PlayerReplicationInfo.PlayerID ;
  1598.  
  1599. for (i = 0; i < Level.Game.GameReplicationInfo.PRIArray.Length; i++)
  1600. {
  1601. HC = HumanController(Level.Game.GameReplicationInfo.PRIArray[i].GetController());
  1602.  
  1603. if (HC.PlayerReplicationInfo.bVIPPS)
  1604. {
  1605. HC.ClientMessage ("Sorry VIP's Cannot Be Forceclassed Weapons!") ;
  1606. return ;
  1607. }
  1608. switch (WeaponsClass)
  1609. {
  1610. case "R":
  1611. sclass_name = "Ultimatemod.ClassRifleman";
  1612. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1613. HC.newTeamClass (sclass) ;
  1614. HC.ClientMessage ("") ;
  1615. HC.ClientMessage ("Everyone has been forced a R by an Admin!") ;
  1616. HC.ClientMessage ("") ;
  1617. break ;
  1618. case "M16":
  1619. sclass_name = "Ultimatemod.ClassRiflemanM16" ;
  1620. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1621. HC.newTeamClass (sclass) ;
  1622. HC.ClientMessage ("") ;
  1623. HC.ClientMessage ("Everyone has been forced a M16 by an Admin!") ;
  1624. HC.ClientMessage ("") ;
  1625. break;
  1626. case "AK":
  1627. sclass_name = "Ultimatemod.ClassRiflemanAK";
  1628. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1629. HC.newTeamClass (sclass) ;
  1630. HC.ClientMessage ("") ;
  1631. HC.ClientMessage ("Everyone has been forced a AK by an Admin!") ;
  1632. HC.ClientMessage ("") ;
  1633. break ;
  1634. case "G":
  1635. sclass_name = "Ultimatemod.ClassGrenadier";
  1636. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1637. HC.newTeamClass (sclass) ;
  1638. HC.ClientMessage ("") ;
  1639. HC.ClientMessage ("Everyone has been forced a G by an Admin!") ;
  1640. HC.ClientMessage ("") ;
  1641. break ;
  1642. case "GP":
  1643. sclass_name = "Ultimatemod.ClassGrenadierGP";
  1644. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1645. HC.newTeamClass (sclass) ;
  1646. HC.ClientMessage ("") ;
  1647. HC.ClientMessage ("Everyone has been forced a GP by an Admin!") ;
  1648. HC.ClientMessage ("") ;
  1649. break ;
  1650. case "SF":
  1651. sclass_name = "Ultimatemod.ClassSF";
  1652. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1653. HC.newTeamClass (sclass) ;
  1654. HC.ClientMessage ("") ;
  1655. HC.ClientMessage ("Everyone has been forced a SF by an Admin!") ;
  1656. HC.ClientMessage ("") ;
  1657. break ;
  1658. case "AK74SU":
  1659. sclass_name = "Ultimatemod.ClassRiflemanAK74SU";
  1660. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1661. HC.newTeamClass (sclass) ;
  1662. HC.ClientMessage ("") ;
  1663. HC.ClientMessage ("Everyone has been forced a AK74SU by an Admin!") ;
  1664. HC.ClientMessage ("") ;
  1665. break ;
  1666. case "PSO":
  1667. sclass_name = "Ultimatemod.ClassRiflemanPSO";
  1668. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1669. HC.newTeamClass (sclass) ;
  1670. HC.ClientMessage ("") ;
  1671. HC.ClientMessage ("Everyone has been forced a PSO by an Admin!") ;
  1672. HC.ClientMessage ("") ;
  1673. break ;
  1674. case "M":
  1675. case "M4A1":
  1676. case "M4":
  1677. sclass_name = "Ultimatemod.ClassRiflemanM4A1";
  1678. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1679. HC.newTeamClass (sclass) ;
  1680. HC.ClientMessage ("") ;
  1681. HC.ClientMessage ("Everyone has been forced a M4 by an Admin!") ;
  1682. HC.ClientMessage ("") ;
  1683. break ;
  1684. case "D":
  1685. case "BREACHER":
  1686. sclass_name = "Ultimatemod.ClassDemolitions";
  1687. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1688. HC.newTeamClass (sclass) ;
  1689. privateset("Weapon_M870_Shotgun PickupAmmoCount 5");
  1690. privateset("PickupAmmo_762mm_5_Rounds AmmoAmount 5");
  1691. privateset("Ammo_762mm_5_Rounds AmmoAmount 5");
  1692. privateset("Ammo_762mm_5_Rounds MaxAmmo 5");
  1693. HC.ClientMessage ("") ;
  1694. HC.ClientMessage ("Everyone has been forced a DOOR BREACHER by an Admin!") ;
  1695. HC.ClientMessage ("") ;
  1696. break ;
  1697. case "AR":
  1698. sclass_name = "Ultimatemod.ClassAutomaticRifleman";
  1699. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1700. HC.newTeamClass (sclass) ;
  1701. HC.ClientMessage ("") ;
  1702. HC.ClientMessage ("Everyone has been forced a AR by an Admin!") ;
  1703. HC.ClientMessage ("") ;
  1704. break ;
  1705. case "RPK":
  1706. sclass_name = "Ultimatemod.ClassAutomaticRiflemanRPK";
  1707. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1708. HC.newTeamClass (sclass) ;
  1709. HC.ClientMessage ("") ;
  1710. HC.ClientMessage ("Everyone has been forced a RPK by an Admin!") ;
  1711. HC.ClientMessage ("") ;
  1712. break ;
  1713. case "RPG":
  1714. sclass_name = "Ultimatemod.ClassRPGRocket";
  1715. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1716. HC.newTeamClass (sclass) ;
  1717. HC.ClientMessage ("") ;
  1718. HC.ClientMessage ("Everyone has been forced a RPG by an Admin!") ;
  1719. HC.ClientMessage ("") ;
  1720. break ;
  1721. case "AT4":
  1722. sclass_name = "Ultimatemod.ClassAT4Rocket";
  1723. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1724. HC.newTeamClass (sclass) ;
  1725. HC.ClientMessage ("") ;
  1726. HC.ClientMessage ("Everyone has been forced a AT4 by an Admin!") ;
  1727. HC.ClientMessage ("") ;
  1728. break ;
  1729. case "BDM":
  1730. sclass_name = "Ultimatemod.ClassBDMRocket";
  1731. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1732. HC.newTeamClass (sclass) ;
  1733. HC.ClientMessage ("") ;
  1734. HC.ClientMessage ("Everyone has been forced a BDM by an Admin!") ;
  1735. HC.ClientMessage ("") ;
  1736. break ;
  1737. case "M9":
  1738. case "PISTOL":
  1739. sclass_name = "AGP_Characters.ClassPistol";
  1740. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1741. HC.newTeamClass (sclass) ;
  1742. HC.ClientMessage ("") ;
  1743. HC.ClientMessage ("Everyone has been forced a M9 by an Admin!") ;
  1744. HC.ClientMessage ("") ;
  1745. break ;
  1746. case "SHOTTY":
  1747. case "B":
  1748. case "SHOTGUN":
  1749. sclass_name = "Ultimatemod.ClassBreacher";
  1750. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1751. HC.newTeamClass (sclass) ;
  1752. privateset("Weapon_M870_Shotgun PickupAmmoCount 5");
  1753. privateset("PickupAmmo_762mm_5_Rounds AmmoAmount 5");
  1754. privateset("Ammo_762mm_5_Rounds AmmoAmount 5");
  1755. privateset("Ammo_762mm_5_Rounds MaxAmmo 5");
  1756. HC.ClientMessage ("") ;
  1757. HC.ClientMessage ("Everyone has been forced a SHOTGUN by an Admin!") ;
  1758. HC.ClientMessage ("") ;
  1759. break ;
  1760. case "S":
  1761. case "SNIPER":
  1762. sclass_name = "AGP_Characters.ClassSniper";
  1763. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1764. HC.newTeamClass (sclass) ;
  1765. HC.ClientMessage ("") ;
  1766. HC.ClientMessage ("Everyone has been forced a S by an Admin!") ;
  1767. HC.ClientMessage ("") ;
  1768. break ;
  1769. case "SPR":
  1770. sclass_name = "Ultimatemod.ClassSniperSPR";
  1771. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1772. HC.newTeamClass (sclass) ;
  1773. HC.ClientMessage ("") ;
  1774. HC.ClientMessage ("Everyone has been forced a SPR by an Admin!") ;
  1775. HC.ClientMessage ("") ;
  1776. break ;
  1777. case "S24":
  1778. sclass_name = "Ultimatemod.ClassSniperM24";
  1779. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1780. HC.newTeamClass (sclass) ;
  1781. HC.ClientMessage ("") ;
  1782. HC.ClientMessage ("Everyone has been forced a S24 by an Admin!") ;
  1783. HC.ClientMessage ("") ;
  1784. break ;
  1785. case "MOS":
  1786. sclass_name = "Ultimatemod.ClassSniperMOS";
  1787. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1788. HC.newTeamClass (sclass) ;
  1789. HC.ClientMessage ("") ;
  1790. HC.ClientMessage ("Everyone has been forced a MOS by an Admin!") ;
  1791. HC.ClientMessage ("") ;
  1792. break ;
  1793. case "SVD":
  1794. sclass_name = "Ultimatemod.ClassSniperSVD";
  1795. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1796. HC.newTeamClass (sclass) ;
  1797. HC.ClientMessage ("") ;
  1798. HC.ClientMessage ("Everyone has been forced a SVD by an Admin!") ;
  1799. HC.ClientMessage ("") ;
  1800. break ;
  1801. case "V":
  1802. case "VSS":
  1803. sclass_name = "Ultimatemod.ClassSniperVSS";
  1804. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1805. HC.newTeamClass (sclass) ;
  1806. HC.ClientMessage ("") ;
  1807. HC.ClientMessage ("Everyone has been forced a V by an Admin!") ;
  1808. HC.ClientMessage ("") ;
  1809. break ;
  1810. }
  1811.  
  1812. if (bEveryoneIsMedic)
  1813. {
  1814. MedicPatches (HC) ;
  1815. }
  1816. }
  1817. }
  1818.  
  1819. function int Getplayer (HumanController HC)
  1820. {
  1821. local int B ;
  1822.  
  1823. for (B=0; B < PlayerData.Length; B++)
  1824. {
  1825. if ( PlayerData[B].PlayerID == HC.PlayerReplicationInfo.PlayerID )
  1826. {
  1827. return B;
  1828. }
  1829. }
  1830. return -1 ;
  1831. }
  1832.  
  1833. function WhichPlayerForce (HumanController HC, int PlayerID, string Option)
  1834. {
  1835. if (bAllowIGPlayerForceclass)
  1836. {
  1837. IGPlayerForceClass (HC, PlayerID, Option) ;
  1838. } else if (!bAllowIGPlayerForceClass)
  1839. {
  1840. PlayerForceClass (HC, PlayerID, Option) ;
  1841. }
  1842. }
  1843.  
  1844. function PlayerForceClass (HumanController HC, int PlayerID, string Weapon)
  1845. {
  1846. local int i ;
  1847. local int nr;
  1848. local class<SoldierClass> sclass ;
  1849.  
  1850. nr = Getplayer (HC) ;
  1851.  
  1852. if (bNormal)
  1853. {
  1854. return;
  1855. }
  1856.  
  1857. if (nr == -1)
  1858. {
  1859. nr = z ;
  1860. PlayerData.Insert(z, 1) ;
  1861. PlayerData[z].PlayerID = HC.PlayerReplicationInfo.PlayerID ;
  1862. }
  1863.  
  1864. for (i = 0; i < Level.Game.GameReplicationInfo.PRIArray.Length; i++)
  1865. {
  1866. HC = HumanController(Level.Game.GameReplicationInfo.PRIArray[i].GetController());
  1867.  
  1868. if (HC.PlayerReplicationInfo.PlayerID == PlayerID)
  1869. {
  1870. if (HC.PlayerReplicationInfo.bVIPPS)
  1871. {
  1872. HC.ClientMessage ("") ;
  1873. HC.ClientMessage ("Sorry VIP's Cannot Forceclass Weapons!") ;
  1874. HC.ClientMessage ("") ;
  1875. return ;
  1876. } else if (bNormal)
  1877. {
  1878. HC.ClientMessage ("") ;
  1879. HC.ClientMessage ("Forceclass Not Allowed During Normal Gameplay!") ;
  1880. HC.ClientMessage ("") ;
  1881. return ;
  1882. }
  1883.  
  1884. switch (Weapon)
  1885. {
  1886. case "R":
  1887. case "Rifleman":
  1888. PlayerData[nr].weapon = "Ultimatemod.ClassRifleman" ;
  1889. sclass_name = PlayerData[nr].weapon ;
  1890. sclass_name = AvailableWeapons () ;
  1891. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1892. HC.newTeamClass (sclass) ;
  1893. HC.ClientMessage ("You Have Picked a R!") ;
  1894. break;
  1895. case "M4":
  1896. case "M":
  1897. case "M4A1":
  1898. PlayerData[nr].weapon = "Ultimatemod.ClassRiflemanM4A1" ;
  1899. sclass_name = PlayerData[nr].weapon ;
  1900. sclass_name = AvailableWeapons () ;
  1901. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1902. HC.newTeamClass (sclass) ;
  1903. HC.ClientMessage ("You Have Picked a M4!") ;
  1904. break;
  1905. case "M16":
  1906. PlayerData[nr].weapon = "Ultimatemod.ClassRiflemanM16" ;
  1907. sclass_name = PlayerData[nr].weapon ;
  1908. sclass_name = AvailableWeapons () ;
  1909. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1910. HC.newTeamClass (sclass) ;
  1911. HC.ClientMessage ("You Have Picked a M16!") ;
  1912. break;
  1913. case "AK":
  1914. case "AK47":
  1915. PlayerData[nr].weapon = "Ultimatemod.ClassRiflemanAK" ;
  1916. sclass_name = PlayerData[nr].weapon ;
  1917. sclass_name = AvailableWeapons () ;
  1918. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1919. HC.newTeamClass (sclass) ;
  1920. HC.ClientMessage ("You Have Picked a AK!") ;
  1921. break;
  1922. case "G":
  1923. case "Grenaider":
  1924. PlayerData[nr].weapon = "Ultimatemod.ClassGrenadier" ;
  1925. sclass_name = PlayerData[nr].weapon ;
  1926. sclass_name = AvailableWeapons () ;
  1927. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1928. HC.newTeamClass (sclass) ;
  1929. HC.ClientMessage ("You Have Picked a G!") ;
  1930. break;
  1931. case "GP":
  1932. PlayerData[nr].weapon = "Ultimatemod.ClassGrenadierGP" ;
  1933. sclass_name = PlayerData[nr].weapon ;
  1934. sclass_name = AvailableWeapons () ;
  1935. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1936. HC.newTeamClass (sclass) ;
  1937. HC.ClientMessage ("You Have Picked a G!") ;
  1938. break;
  1939. case "AK74SU":
  1940. PlayerData[nr].weapon = "Ultimatemod.ClassRiflemanAK74su" ;
  1941. sclass_name = PlayerData[nr].weapon ;
  1942. sclass_name = AvailableWeapons () ;
  1943. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1944. HC.newTeamClass (sclass) ;
  1945. HC.ClientMessage ("You Have Picked a AK74SU!") ;
  1946. break;
  1947. case "PSO":
  1948. PlayerData[nr].weapon = "Ultimatemod.ClassRiflemanPSO" ;
  1949. sclass_name = PlayerData[nr].weapon ;
  1950. sclass_name = AvailableWeapons () ;
  1951. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1952. HC.newTeamClass (sclass) ;
  1953. HC.ClientMessage ("You Have Picked a PSO!") ;
  1954. break;
  1955. case "D":
  1956. case "Demolitions":
  1957. PlayerData[nr].weapon = "Ultimatemod.ClassDemolitions" ;
  1958. sclass_name = PlayerData[nr].weapon ;
  1959. sclass_name = AvailableWeapons () ;
  1960. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1961. HC.newTeamClass (sclass) ;
  1962. privateset("Weapon_M870_Shotgun PickupAmmoCount 5");
  1963. privateset("PickupAmmo_762mm_5_Rounds AmmoAmount 5");
  1964. privateset("Ammo_762mm_5_Rounds AmmoAmount 5");
  1965. privateset("Ammo_762mm_5_Rounds MaxAmmo 5");
  1966. HC.ClientMessage ("You Have Picked a D!") ;
  1967. break;
  1968. case "SF":
  1969. case "SPECIAL FORCES":
  1970. PlayerData[nr].weapon = "Ultimatemod.ClassSF" ;
  1971. sclass_name = PlayerData[nr].weapon ;
  1972. sclass_name = AvailableWeapons () ;
  1973. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1974. HC.newTeamClass (sclass) ;
  1975. HC.ClientMessage ("You Have Picked a SF!") ;
  1976. break;
  1977. case "AR":
  1978. PlayerData[nr].weapon = "Ultimatemod.ClassAutomaticRifleman" ;
  1979. sclass_name = PlayerData[nr].weapon ;
  1980. sclass_name = AvailableWeapons () ;
  1981. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1982. HC.newTeamClass (sclass) ;
  1983. HC.ClientMessage ("You Have Picked a AR!") ;
  1984. break ;
  1985. case "RPK":
  1986. PlayerData[nr].weapon = "Ultimatemod.ClassAutomaticRiflemanRPK" ;
  1987. sclass_name = PlayerData[nr].weapon ;
  1988. sclass_name = AvailableWeapons () ;
  1989. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1990. HC.newTeamClass (sclass) ;
  1991. HC.ClientMessage ("You Have Picked a RPK!") ;
  1992. break;
  1993. case "S":
  1994. case "S82":
  1995. PlayerData[nr].weapon = "AGP_Characters.ClassSniper" ;
  1996. sclass_name = PlayerData[nr].weapon ;
  1997. sclass_name = AvailableWeapons () ;
  1998. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  1999. HC.newTeamClass (sclass) ;
  2000. HC.ClientMessage ("You Have Picked a SNIPER!") ;
  2001. break;
  2002. case "S24":
  2003. PlayerData[nr].weapon = "Ultimatemod.ClassSniperM24" ;
  2004. sclass_name = PlayerData[nr].weapon ;
  2005. sclass_name = AvailableWeapons () ;
  2006. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2007. HC.newTeamClass (sclass) ;
  2008. HC.ClientMessage ("You Have Picked a S24!") ;
  2009. break;
  2010. case "SPR":
  2011. PlayerData[nr].weapon = "Ultimatemod.ClassSniperSPR" ;
  2012. sclass_name = PlayerData[nr].weapon ;
  2013. sclass_name = AvailableWeapons () ;
  2014. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2015. HC.newTeamClass (sclass) ;
  2016. HC.ClientMessage ("You Have Picked a SPR!") ;
  2017. break;
  2018. case "MOS":
  2019. PlayerData[nr].weapon = "Ultimatemod.ClassSniperMOS" ;
  2020. sclass_name = PlayerData[nr].weapon ;
  2021. sclass_name = AvailableWeapons () ;
  2022. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2023. HC.newTeamClass (sclass) ;
  2024. HC.ClientMessage ("You Have Picked a MOS!") ;
  2025. break;
  2026. case "SVD":
  2027. PlayerData[nr].weapon = "Ultimatemod.ClassSniperSVD" ;
  2028. sclass_name = PlayerData[nr].weapon ;
  2029. sclass_name = AvailableWeapons () ;
  2030. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2031. HC.newTeamClass (sclass) ;
  2032. HC.ClientMessage ("You Have Picked a SVD!") ;
  2033. break;
  2034. case "V":
  2035. case "VSS":
  2036. PlayerData[nr].weapon = "Ultimatemod.ClassSniperVSS" ;
  2037. sclass_name = PlayerData[nr].weapon ;
  2038. sclass_name = AvailableWeapons () ;
  2039. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2040. HC.newTeamClass (sclass) ;
  2041. HC.ClientMessage ("You Have Picked a VSS!") ;
  2042. break;
  2043. case "RPG":
  2044. PlayerData[nr].weapon = "Ultimatemod.ClassRPGRocket" ;
  2045. sclass_name = PlayerData[nr].weapon ;
  2046. sclass_name = AvailableWeapons () ;
  2047. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2048. HC.newTeamClass (sclass) ;
  2049. HC.ClientMessage ("You Have Picked a RPG!") ;
  2050. break;
  2051. case "AT4":
  2052. PlayerData[nr].weapon = "Ultimatemod.ClassAT4Rocket" ;
  2053. sclass_name = PlayerData[nr].weapon ;
  2054. sclass_name = AvailableWeapons () ;
  2055. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2056. HC.newTeamClass (sclass) ;
  2057. HC.ClientMessage ("You Have Picked a AT4!") ;
  2058. break;
  2059. case "BDM":
  2060. PlayerData[nr].weapon = "Ultimatemod.ClassBDMRocket" ;
  2061. sclass_name = PlayerData[nr].weapon ;
  2062. sclass_name = AvailableWeapons () ;
  2063. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2064. HC.newTeamClass (sclass) ;
  2065. HC.ClientMessage ("You Have Picked a BDM!") ;
  2066. break;
  2067. case "SHOTTY":
  2068. case "SHOTGUN":
  2069. case "B":
  2070. PlayerData[nr].weapon = "Ultimatemod.ClassBreacher" ;
  2071. sclass_name = PlayerData[nr].weapon ;
  2072. sclass_name = AvailableWeapons () ;
  2073. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2074. HC.newTeamClass (sclass) ;
  2075. privateset("Weapon_M870_Shotgun PickupAmmoCount 5");
  2076. privateset("PickupAmmo_762mm_5_Rounds AmmoAmount 5");
  2077. privateset("Ammo_762mm_5_Rounds AmmoAmount 5");
  2078. privateset("Ammo_762mm_5_Rounds MaxAmmo 5");
  2079. HC.ClientMessage ("You Have Picked a SHOTGUN!") ;
  2080. break;
  2081. case "M9":
  2082. case "PISTOL":
  2083. PlayerData[nr].weapon = "AGP_Characters.ClassPistol" ;
  2084. sclass_name = PlayerData[nr].weapon ;
  2085. sclass_name = AvailableWeapons () ;
  2086. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2087. HC.newTeamClass (sclass) ;
  2088. HC.ClientMessage ("You Have Picked a PISTOL!") ;
  2089. break;
  2090. default:
  2091. HC.ClientMessage("") ;
  2092. HC.ClientMessage("Invaild Weapon!") ;
  2093. HC.ClientMessage("") ;
  2094. break;
  2095. }
  2096.  
  2097. switch (sclass_name) // switch statment fixes shotgun 7 rounds one bullet bug
  2098. {
  2099. case "Ultimatemod.ClassBreacher":
  2100. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2101. HC.newTeamClass (sclass) ;
  2102. privateset("Weapon_M870_Shotgun PickupAmmoCount 5");
  2103. privateset("PickupAmmo_762mm_5_Rounds AmmoAmount 5");
  2104. privateset("Ammo_762mm_5_Rounds AmmoAmount 5");
  2105. privateset("Ammo_762mm_5_Rounds MaxAmmo 5");
  2106. break;
  2107. case"Ultimatemod.ClassDemolitions":
  2108. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2109. HC.newTeamClass (sclass) ;
  2110. privateset("Weapon_M870_Shotgun PickupAmmoCount 5");
  2111. privateset("PickupAmmo_762mm_5_Rounds AmmoAmount 5");
  2112. privateset("Ammo_762mm_5_Rounds AmmoAmount 5");
  2113. privateset("Ammo_762mm_5_Rounds MaxAmmo 5");
  2114. break;
  2115. }
  2116. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ; //is needed with the above switch statement!
  2117. HC.newTeamClass (sclass) ; //is needed with the above switch statement!
  2118.  
  2119. if (bEveryoneIsMedic)
  2120. {
  2121. MedicPatches (HC) ;
  2122. }
  2123. }
  2124. }
  2125. }
  2126.  
  2127. function IGPlayerForceClass (HumanController HC, int PlayerID, string Weapon)
  2128. {
  2129. local int i ;
  2130. local int nr;
  2131.  
  2132. nr = Getplayer (HC) ;
  2133.  
  2134. if (bNormal)
  2135. {
  2136. return;
  2137. }
  2138.  
  2139. if (nr == -1)
  2140. {
  2141. nr = z ;
  2142. PlayerData.Insert(z, 1) ;
  2143. PlayerData[z].PlayerID = HC.PlayerReplicationInfo.PlayerID ;
  2144. }
  2145.  
  2146. for (i = 0; i < Level.Game.GameReplicationInfo.PRIArray.Length; i++)
  2147. {
  2148. HC = HumanController(Level.Game.GameReplicationInfo.PRIArray[i].GetController());
  2149.  
  2150. if (HC.PlayerReplicationInfo.PlayerID == PlayerID)
  2151. {
  2152. if (HC.PlayerReplicationInfo.bVIPPS)
  2153. {
  2154. HC.ClientMessage ("") ;
  2155. HC.ClientMessage ("Sorry VIP's Cannot Forceclass Weapons!") ;
  2156. HC.ClientMessage ("") ;
  2157. return ;
  2158. } else if (bNormal)
  2159. {
  2160. HC.ClientMessage ("") ;
  2161. HC.ClientMessage ("Forceclass Not Allowed During Normal Gameplay!") ;
  2162. HC.ClientMessage ("") ;
  2163. return ;
  2164. }
  2165.  
  2166. switch (Weapon)
  2167. {
  2168. case "R":
  2169. case "Rifleman":
  2170. PlayerData[nr].weapon = "Ultimatemod.ClassRifleman" ;
  2171. HC.ClientMessage ("You Have Picked a R For The Next Round!") ;
  2172. break;
  2173. case "M4":
  2174. case "M":
  2175. case "M4A1":
  2176. PlayerData[nr].weapon = "Ultimatemod.ClassRiflemanM4A1" ;
  2177. HC.ClientMessage ("You Have Picked a M4 For The Next Round!") ;
  2178. break;
  2179. case "M16":
  2180. PlayerData[nr].weapon = "Ultimatemod.ClassRiflemanM16" ;
  2181. HC.ClientMessage ("You Have Picked a M16 For The Next Round!") ;
  2182. break;
  2183. case "AK":
  2184. case "AK47":
  2185. PlayerData[nr].weapon = "Ultimatemod.ClassRiflemanAK" ;
  2186. HC.ClientMessage ("You Have Picked a AK For The Next Round!") ;
  2187. break;
  2188. case "G":
  2189. case "Grenaider":
  2190. PlayerData[nr].weapon = "Ultimatemod.ClassGrenadier" ;
  2191. HC.ClientMessage ("You Have Picked a G For The Next Round!") ;
  2192. break;
  2193. case "GP":
  2194. PlayerData[nr].weapon = "Ultimatemod.ClassGrenadierGP" ;
  2195. HC.ClientMessage ("You Have Picked a GP For The Next Round!") ;
  2196. break;
  2197. case "AK74SU":
  2198. PlayerData[nr].weapon = "Ultimatemod.ClassRiflemanAK74su" ;
  2199. HC.ClientMessage ("You Have Picked a AK74SU For The Next Round!") ;
  2200. break;
  2201. case "PSO":
  2202. PlayerData[nr].weapon = "Ultimatemod.ClassRiflemanPSO" ;
  2203. HC.ClientMessage ("You Have Picked a PSO For The Next Round!") ;
  2204. break;
  2205. case "D":
  2206. case "Demolitions":
  2207. PlayerData[nr].weapon = "Ultimatemod.ClassDemolitions" ;
  2208. HC.ClientMessage ("You Have Picked a D For The Next Round!") ;
  2209. break;
  2210. case "SF":
  2211. case "SPECIAL FORCES":
  2212. PlayerData[nr].weapon = "Ultimatemod.ClassSF" ;
  2213. HC.ClientMessage ("You Have Picked a SF For The Next Round!") ;
  2214. break;
  2215. case "AR":
  2216. PlayerData[nr].weapon = "Ultimatemod.ClassAutomaticRifleman" ;
  2217. HC.ClientMessage ("You Have Picked a AR For The Next Round!") ;
  2218. break ;
  2219. case "RPK":
  2220. PlayerData[nr].weapon = "Ultimatemod.ClassAutomaticRiflemanRPK" ;
  2221. HC.ClientMessage ("You Have Picked a RPK For The Next Round!") ;
  2222. break;
  2223. case "S":
  2224. case "S82":
  2225. PlayerData[nr].weapon = "AGP_Characters.ClassSniper" ;
  2226. HC.ClientMessage ("You Have Picked a SNIPER For The Next Round!") ;
  2227. break;
  2228. case "S24":
  2229. PlayerData[nr].weapon = "Ultimatemod.ClassSniperM24" ;
  2230. HC.ClientMessage ("You Have Picked a S24 For The Next Round!") ;
  2231. break;
  2232. case "SPR":
  2233. PlayerData[nr].weapon = "Ultimatemod.ClassSniperSPR" ;
  2234. HC.ClientMessage ("You Have Picked a SPR For The Next Round!") ;
  2235. break;
  2236. case "MOS":
  2237. PlayerData[nr].weapon = "Ultimatemod.ClassSniperMOS" ;
  2238. HC.ClientMessage ("You Have Picked a MOS For The Next Round!") ;
  2239. break;
  2240. case "SVD":
  2241. PlayerData[nr].weapon = "Ultimatemod.ClassSniperSVD" ;
  2242. HC.ClientMessage ("You Have Picked a SVD! For The Next Round!") ;
  2243. break;
  2244. case "V":
  2245. case "VSS":
  2246. PlayerData[nr].weapon = "Ultimatemod.ClassSniperVSS" ;
  2247. HC.ClientMessage ("You Have Picked a VSS For The Next Round!") ;
  2248. break;
  2249. case "RPG":
  2250. PlayerData[nr].weapon = "Ultimatemod.ClassRPGRocket" ;
  2251. HC.ClientMessage ("You Have Picked a RPG For The Next Round!") ;
  2252. break;
  2253. case "AT4":
  2254. PlayerData[nr].weapon = "Ultimatemod.ClassAT4Rocket" ;
  2255. HC.ClientMessage ("You Have Picked a AT4 For The Next Round!") ;
  2256. break;
  2257. case "BDM":
  2258. PlayerData[nr].weapon = "Ultimatemod.ClassBDMRocket" ;
  2259. HC.ClientMessage ("You Have Picked a BDM For The Next Round!") ;
  2260. break;
  2261. case "SHOTTY":
  2262. case "SHOTGUN":
  2263. case "B":
  2264. PlayerData[nr].weapon = "Ultimatemod.ClassBreacher" ;
  2265. HC.ClientMessage ("You Have Picked a SHOTGUN For The Next Round!") ;
  2266. break;
  2267. case "M9":
  2268. case "PISTOL":
  2269. PlayerData[nr].weapon = "AGP_Characters.ClassPistol" ;
  2270. HC.ClientMessage ("You Have Picked a PISTOL For The Next Round!") ;
  2271. break;
  2272. default:
  2273. HC.ClientMessage("") ;
  2274. HC.ClientMessage("Invaild Weapon!") ;
  2275. HC.ClientMessage("") ;
  2276. break;
  2277. }
  2278. }
  2279. }
  2280. }
  2281.  
  2282. function LogoAdder (HumanController Sender)
  2283. {
  2284. local int i ;
  2285.  
  2286. foreach DynamicActors( class'HumanController', Sender)
  2287. {
  2288. for (i = 0; i < PlayerName.Length; i++)
  2289. {
  2290. if (Sender.PlayerReplicationInfo.PlayerName == PlayerName[i])
  2291. {
  2292. Sender.PlayerReplicationInfo.SetGroup(Logo[i]); // Gives Player Icon
  2293. }
  2294. }
  2295. }
  2296. }
  2297.  
  2298. function MedicPatches (HumanController HC)
  2299. {
  2300. if (HC.Pawn != none)
  2301. {
  2302. HC.privateset ("Pawn _InvMedPacks 10") ; // Gives Pawn 10 Med Packs
  2303. }
  2304. }
  2305.  
  2306. function WeaponsForcer (HumanController HC, int PlayerID)
  2307. {
  2308. local int i ;
  2309. local class<SoldierClass> sclass ;
  2310.  
  2311. PlayerID = HC.PlayerReplicationInfo.PlayerID ;
  2312.  
  2313. for (i = 0; i < Level.Game.GameReplicationInfo.PRIArray.Length; i++)
  2314. {
  2315. HC = HumanController(Level.Game.GameReplicationInfo.PRIArray[i].GetController());
  2316.  
  2317. if (HC.PlayerReplicationInfo.bVIPPS)
  2318. {
  2319. HC.ClientMessage ("Sorry VIP's Cannot Be Forceclassed Weapons!") ;
  2320. return ;
  2321. }
  2322.  
  2323. switch(Option_ForceClass)
  2324. {
  2325. case "R":
  2326. sclass_name = "Ultimatemod.ClassRifleman";
  2327. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2328. HC.newTeamClass (sclass) ;
  2329. break;
  2330. case "AK":
  2331. sclass_name = "Ultimatemod.ClassRiflemanAK";
  2332. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2333. HC.newTeamClass (sclass) ;
  2334. break;
  2335. case "M16":
  2336. sclass_name = "Ultimatemod.ClassRiflemanM16";
  2337. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2338. HC.newTeamClass (sclass) ;
  2339. break;
  2340. case "G":
  2341. sclass_name = "Ultimatemod.ClassGrenadier";
  2342. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2343. HC.newTeamClass (sclass) ;
  2344. break;
  2345. case "GP":
  2346. sclass_name = "Ultimatemod.ClassGrenadierGP";
  2347. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2348. HC.newTeamClass (sclass) ;
  2349. break;
  2350. case "SF":
  2351. sclass_name = "Ultimatemod.ClassSF";
  2352. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2353. HC.newTeamClass (sclass) ;
  2354. break;
  2355. case "AK74SU":
  2356. sclass_name = "Ultimatemod.ClassRiflemanAK74SU";
  2357. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2358. HC.newTeamClass (sclass) ;
  2359. break;
  2360. case "PSO":
  2361. sclass_name = "Ultimatemod.ClassRiflemanPSO";
  2362. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2363. HC.newTeamClass (sclass) ;
  2364. break;
  2365. case "M":
  2366. case "M4":
  2367. sclass_name = "Ultimatemod.ClassRiflemanM4A1";
  2368. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2369. HC.newTeamClass (sclass) ;
  2370. break;
  2371. case "AR":
  2372. sclass_name = "Ultimatemod.ClassAutomaticRifleman";
  2373. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2374. HC.newTeamClass (sclass) ;
  2375. break;
  2376. case "RPK":
  2377. sclass_name = "Ultimatemod.ClassAutomaticRiflemanRPK";
  2378. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2379. HC.newTeamClass (sclass) ;
  2380. break;
  2381. case "RPG":
  2382. sclass_name = "Ultimatemod.ClassRPGRocket";
  2383. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2384. HC.newTeamClass (sclass) ;
  2385. break;
  2386. case "AT4":
  2387. sclass_name = "Ultimatemod.ClassAT4Rocket";
  2388. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2389. HC.newTeamClass (sclass) ;
  2390. break;
  2391. case "BDM":
  2392. sclass_name = "Ultimatemod.ClassBDMRocket";
  2393. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2394. HC.newTeamClass (sclass) ;
  2395. break;
  2396. case "M9":
  2397. sclass_name = "AGP_Characters.ClassPistol";
  2398. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2399. HC.newTeamClass (sclass) ;
  2400. break;
  2401. case "SHOTTY":
  2402. case "B":
  2403. sclass_name = "Ultimatemod.ClassBreacher";
  2404. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2405. HC.newTeamClass (sclass) ;
  2406. privateset("Weapon_M870_Shotgun PickupAmmoCount 5");
  2407. privateset("PickupAmmo_762mm_5_Rounds AmmoAmount 5");
  2408. privateset("Ammo_762mm_5_Rounds AmmoAmount 5");
  2409. privateset("Ammo_762mm_5_Rounds MaxAmmo 5");
  2410. break;
  2411. case "S":
  2412. case "S82":
  2413. sclass_name = "AGP_Characters.ClassSniper";
  2414. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2415. HC.newTeamClass (sclass) ;
  2416. break;
  2417. case "SPR":
  2418. sclass_name = "Ultimatemod.ClassSniperSPR";
  2419. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2420. HC.newTeamClass (sclass) ;
  2421. break;
  2422. case "S24":
  2423. sclass_name = "Ultimatemod.ClassSniperM24";
  2424. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2425. HC.newTeamClass (sclass) ;
  2426. break;
  2427. case "MOS":
  2428. sclass_name = "Ultimatemod.ClassSniperMOS";
  2429. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2430. HC.newTeamClass (sclass) ;
  2431. break;
  2432. case "SVD":
  2433. sclass_name = "Ultimatemod.ClassSniperSVD";
  2434. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2435. HC.newTeamClass (sclass) ;
  2436. break;
  2437. case "V":
  2438. case "VSS":
  2439. sclass_name = "Ultimatemod.ClassSniperVSS";
  2440. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2441. HC.newTeamClass (sclass) ;
  2442. break;
  2443.  
  2444. }
  2445.  
  2446. switch (sclass_name) // switch statment fixes shotgun 7 rounds one bullet bug
  2447. {
  2448. case "Ultimatemod.ClassBreacher":
  2449. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2450. HC.newTeamClass (sclass) ;
  2451. privateset("Weapon_M870_Shotgun PickupAmmoCount 5");
  2452. privateset("PickupAmmo_762mm_5_Rounds AmmoAmount 5");
  2453. privateset("Ammo_762mm_5_Rounds AmmoAmount 5");
  2454. privateset("Ammo_762mm_5_Rounds MaxAmmo 5");
  2455. break;
  2456. case"Ultimatemod.ClassDemolitions":
  2457. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ;
  2458. HC.newTeamClass (sclass) ;
  2459. privateset("Weapon_M870_Shotgun PickupAmmoCount 5");
  2460. privateset("PickupAmmo_762mm_5_Rounds AmmoAmount 5");
  2461. privateset("Ammo_762mm_5_Rounds AmmoAmount 5");
  2462. privateset("Ammo_762mm_5_Rounds MaxAmmo 5");
  2463. break;
  2464. }
  2465. sclass = Class<SoldierClass>( DynamicLoadObject ( sclass_name,Class'Class' ) ) ; //is needed with the above switch statement!
  2466. HC.newTeamClass (sclass) ; //is needed with the above switch statement!
  2467.  
  2468. if (bEveryoneIsMedic)
  2469. {
  2470. MedicPatches (HC) ;
  2471. }
  2472. }
  2473. }
  2474.  
  2475. function disableobjective()
  2476. {
  2477. local AGP_Objective Objective;
  2478.  
  2479. foreach Level.AllActors(Class'AGP_Objective',Objective)
  2480. {
  2481. Objective.bDisabled = True;
  2482. Objective.bInactive = True;
  2483. }
  2484. }
  2485.  
  2486. function string AvailableWeapons ()
  2487. {
  2488. local string Result;
  2489.  
  2490. if (bAllowGrenades)
  2491. {
  2492. if (bAllowRifles)
  2493. {
  2494. switch (sclass_name)
  2495. {
  2496. case "Ultimatemod.ClassRifleman":
  2497. Result = "Ultimatemod.ClassRifleman" ;
  2498. break;
  2499. case "Ultimatemod.ClassRiflemanM16":
  2500. Result = "Ultimatemod.ClassRiflemanM16" ;
  2501. break;
  2502. case "Ultimatemod.ClassRiflemanAK":
  2503. Result = "Ultimatemod.ClassRiflemanAK" ;
  2504. break;
  2505. case "Ultimatemod.ClassRiflemanPSO":
  2506. Result = "Ultimatemod.ClassRiflemanPSO" ;
  2507. break;
  2508. case "Ultimatemod.ClassRiflemanAK74SU":
  2509. Result = "Ultimatemod.ClassRiflemanAK74SU" ;
  2510. break;
  2511. case "Ultimatemod.ClassSF":
  2512. Result = "Ultimatemod.ClassSF" ;
  2513. break;
  2514. case "Ultimatemod.ClassRiflemanM4A1":
  2515. Result = "Ultimatemod.ClassRiflemanM4A1" ;
  2516. break;
  2517. case "Ultimatemod.ClassDemolitions":
  2518. Result = "Ultimatemod.ClassDemolitions" ;
  2519. break;
  2520. }
  2521.  
  2522. if (bAllow203)
  2523. {
  2524. switch (sclass_name)
  2525. {
  2526. case "Ultimatemod.ClassGrenadier":
  2527. Result = "Ultimatemod.ClassGrenadier" ;
  2528. break;
  2529. case "Ultimatemod.ClassGrenadierGP":
  2530. Result = "Ultimatemod.ClassGrenadierGP" ;
  2531. break;
  2532. }
  2533. }
  2534. } else if (!bAllowRifles)
  2535. {
  2536. switch (sclass_name)
  2537. {
  2538. case "Ultimatemod.ClassRifleman":
  2539. Result = "Ultimatemod.ClassBreacher" ;
  2540. break;
  2541. case "Ultimatemod.ClassRiflemanM16":
  2542. Result = "Ultimatemod.ClassBreacher" ;
  2543. break;
  2544. case "Ultimatemod.ClassRiflemanAK":
  2545. Result = "Ultimatemod.ClassBreacher" ;
  2546. break;
  2547. case "Ultimatemod.ClassRiflemanPSO":
  2548. Result = "Ultimatemod.ClassBreacher" ;
  2549. break;
  2550. case "Ultimatemod.ClassRiflemanPSO":
  2551. Result = "Ultimatemod.ClassBreacher" ;
  2552. break;
  2553. case "Ultimatemod.ClassSF":
  2554. Result = "Ultimatemod.ClassBreacher" ;
  2555. break;
  2556. case "Ultimatemod.ClassRiflemanM4A1":
  2557. Result = "Ultimatemod.ClassBreacher" ;
  2558. break;
  2559. case "Ultimatemod.ClassGrenadier":
  2560. Result = "Ultimatemod.ClassBreacher" ;
  2561. break;
  2562. case "Ultimatemod.ClassGrenadierGP":
  2563. Result = "Ultimatemod.ClassBreacher" ;
  2564. break;
  2565. case "Ultimatemod.ClassDemolitions":
  2566. Result = "Ultimatemod.ClassBreacher" ;
  2567. break;
  2568. }
  2569. }
  2570.  
  2571. if (bAllowMgs)
  2572. {
  2573. switch (sclass_name)
  2574. {
  2575. case "Ultimatemod.ClassAutomaticRifleman":
  2576. Result = "Ultimatemod.ClassAutomaticRifleman" ;
  2577. break;
  2578. case "Ultimatemod.ClassAutomaticRiflemanRPK":
  2579. Result = "Ultimatemod.ClassAutomaticRiflemanRPK" ;
  2580. break;
  2581. }
  2582. } else if (!bAllowMgs)
  2583. {
  2584. if (bAllowRifles)
  2585. {
  2586. switch (sclass_name)
  2587. {
  2588. case "Ultimatemod.ClassAutomaticRifleman":
  2589. Result = "Ultimatemod.ClassRifleman" ;
  2590. break;
  2591. case "Ultimatemod.ClassAutomaticRiflemanRPK":
  2592. Result = "Ultimatemod.ClassRifleman" ;
  2593. break;
  2594. }
  2595. } else if (!bAllowRifles)
  2596. {
  2597. switch (sclass_name)
  2598. {
  2599. case "Ultimatemod.ClassAutomaticRifleman":
  2600. Result = "Ultimatemod.ClassBreacher" ;
  2601. break;
  2602. case "Ultimatemod.ClassAutomaticRiflemanRPK":
  2603. Result = "Ultimatemod.ClassBreacher" ;
  2604. break;
  2605. }
  2606. }
  2607. }
  2608.  
  2609. if (bAllowSnipers)
  2610. {
  2611. switch (sclass_name)
  2612. {
  2613. case "AGP_Characters.ClassSniper":
  2614. Result = "AGP_Characters.ClassSniper" ;
  2615. break;
  2616. case "Ultimatemod.ClassSniperM24":
  2617. Result = "Ultimatemod.ClassSniperM24" ;
  2618. break;
  2619. case "Ultimatemod.ClassSniperSPR":
  2620. Result = "Ultimatemod.ClassSniperSPR" ;
  2621. break;
  2622. case "Ultimatemod.ClassSniperMOS":
  2623. Result = "Ultimatemod.ClassSniperMOS" ;
  2624. break;
  2625. case "Ultimatemod.ClassSniperSVD":
  2626. Result = "Ultimatemod.ClassSniperSVD" ;
  2627. break;
  2628. case "Ultimatemod.ClassSniperVSS":
  2629. Result = "Ultimatemod.ClassSniperVSS" ;
  2630. break;
  2631. }
  2632. } else if (!bAllowSnipers)
  2633. {
  2634. if (bAllowRifles)
  2635. {
  2636. switch (sclass_name)
  2637. {
  2638. case "AGP_Characters.ClassSniper":
  2639. Result = "Ultimatemod.ClassRifleman" ;
  2640. break;
  2641. case "Ultimatemod.ClassSniperM24":
  2642. Result = "Ultimatemod.ClassRifleman" ;
  2643. break;
  2644. case "Ultimatemod.ClassSniperSPR":
  2645. Result = "Ultimatemod.ClassRifleman" ;
  2646. break;
  2647. case "Ultimatemod.ClassSniperMOS":
  2648. Result = "Ultimatemod.ClassRifleman" ;
  2649. break;
  2650. case "Ultimatemod.ClassSniperSVD":
  2651. Result = "Ultimatemod.ClassRifleman" ;
  2652. break;
  2653. case "Ultimatemod.ClassSniperVSS":
  2654. Result = "Ultimatemod.ClassRifleman" ;
  2655. break;
  2656. }
  2657. } else if (!bAllowRifles)
  2658. {
  2659. switch (sclass_name)
  2660. {
  2661. case "AGP_Characters.ClassSniper":
  2662. Result = "Ultimatemod.ClassBreacher" ;
  2663. break;
  2664. case "Ultimatemod.ClassSniperM24":
  2665. Result = "Ultimatemod.ClassBreacher" ;
  2666. break;
  2667. case "Ultimatemod.ClassSniperSPR":
  2668. Result = "Ultimatemod.ClassBreacher" ;
  2669. break;
  2670. case "Ultimatemod.ClassSniperMOS":
  2671. Result = "Ultimatemod.ClassBreacher" ;
  2672. break;
  2673. case "Ultimatemod.ClassSniperSVD":
  2674. Result = "Ultimatemod.ClassBreacher" ;
  2675. break;
  2676. case "Ultimatemod.ClassSniperVSS":
  2677. Result = "Ultimatemod.ClassBreacher" ;
  2678. break;
  2679. }
  2680. }
  2681. }
  2682.  
  2683. if (bAllowRockets)
  2684. {
  2685. switch (sclass_name)
  2686. {
  2687. case "Ultimatemod.ClassBDMRocket":
  2688. Result = "Ultimatemod.ClassBDMRocket" ;
  2689. break;
  2690. case "Ultimatemod.ClassRPGRocket":
  2691. Result = "Ultimatemod.ClassRPGRocket" ;
  2692. break;
  2693. case "Ultimatemod.ClassAT4Rocket":
  2694. Result = "Ultimatemod.ClassAT4Rocket" ;
  2695. }
  2696. } else if (!bAllowRockets)
  2697. {
  2698. if (bAllowRifles)
  2699. {
  2700. switch (sclass_name)
  2701. {
  2702. case "Ultimatemod.ClassBDMRocket":
  2703. Result = "Ultimatemod.ClassRifleman" ;
  2704. break;
  2705. case "Ultimatemod.ClassRPGRocket":
  2706. Result = "Ultimatemod.ClassRifleman" ;
  2707. break;
  2708. case "Ultimatemod.ClassAT4Rocket":
  2709. Result = "Ultimatemod.ClassRifleman" ;
  2710. }
  2711. } else if (!bAllowRifles)
  2712. {
  2713. switch (sclass_name)
  2714. {
  2715. case "Ultimatemod.ClassBDMRocket":
  2716. Result = "Ultimatemod.ClassBreacher" ;
  2717. break;
  2718. case "Ultimatemod.ClassRPGRocket":
  2719. Result = "Ultimatemod.ClassBreacher" ;
  2720. break;
  2721. case "Ultimatemod.ClassAT4Rocket":
  2722. Result = "Ultimatemod.ClassBreacher" ;
  2723. }
  2724. }
  2725. }
  2726. switch (sclass_name)
  2727. {
  2728. case "Ultimatemod.ClassBreacher":
  2729. Result = "Ultimatemod.ClassBreacher" ;
  2730. break;
  2731. case "AGP_Characters.ClassPistol":
  2732. Result = "AGP_Characters.ClassPistol" ;
  2733. }
  2734. } else if (!bAllowGrenades)
  2735. {
  2736. if (bAllowRifles)
  2737. {
  2738. switch (sclass_name)
  2739. {
  2740. case "Ultimatemod.ClassRifleman":
  2741. Result = "Ultimatemod.ClassRiflemanXnade" ;
  2742. break;
  2743. case "Ultimatemod.ClassRiflemanM16":
  2744. Result = "Ultimatemod.ClassRiflemanM16Xnade" ;
  2745. break;
  2746. case "Ultimatemod.ClassRiflemanAK":
  2747. Result = "Ultimatemod.ClassRiflemanAKXnade" ;
  2748. break;
  2749. case "Ultimatemod.ClassRiflemanPSO":
  2750. Result = "Ultimatemod.ClassRiflemanPSOXnade" ;
  2751. break;
  2752. case "Ultimatemod.ClassRiflemanAK74SU":
  2753. Result = "Ultimatemod.ClassRiflemanAK74SUXnade" ;
  2754. break;
  2755. case "Ultimatemod.ClassSF":
  2756. Result = "Ultimatemod.ClassSFXnade" ;
  2757. break;
  2758. case "Ultimatemod.ClassRiflemanM4A1":
  2759. Result = "Ultimatemod.ClassRiflemanM4A1Xnade" ;
  2760. break;
  2761. case "Ultimatemod.ClassDemolitions":
  2762. Result = "Ultimatemod.ClassDemolitionsXnade" ;
  2763. break;
  2764. }
  2765.  
  2766. if (bAllow203)
  2767. {
  2768. switch (sclass_name)
  2769. {
  2770. case "Ultimatemod.ClassGrenadier":
  2771. Result = "Ultimatemod.ClassGrenadierXnade" ;
  2772. break;
  2773. case "Ultimatemod.ClassGrenadierGP":
  2774. Result = "Ultimatemod.ClassGrenadierGPXnade" ;
  2775. break;
  2776. }
  2777. }
  2778. } else if (!bAllowRifles)
  2779. {
  2780. switch (sclass_name)
  2781. {
  2782. case "Ultimatemod.ClassRifleman":
  2783. Result = "Ultimatemod.ClassBreacherXnade" ;
  2784. break;
  2785. case "Ultimatemod.ClassRiflemanM16":
  2786. Result = "Ultimatemod.ClassBreacherXnade" ;
  2787. break;
  2788. case "Ultimatemod.ClassRiflemanAK":
  2789. Result = "Ultimatemod.ClassBreacherXnade" ;
  2790. break;
  2791. case "Ultimatemod.ClassRiflemanPSO":
  2792. Result = "Ultimatemod.ClassBreacherXnade" ;
  2793. break;
  2794. case "Ultimatemod.ClassRiflemanPSO":
  2795. Result = "Ultimatemod.ClassBreacherXnade" ;
  2796. break;
  2797. case "Ultimatemod.ClassSF":
  2798. Result = "Ultimatemod.ClassBreacherXnade" ;
  2799. break;
  2800. case "Ultimatemod.ClassRiflemanM4A1":
  2801. Result = "Ultimatemod.ClassBreacherXnade" ;
  2802. break;
  2803. case "Ultimatemod.ClassGrenadier":
  2804. Result = "Ultimatemod.ClassBreacherXnade" ;
  2805. break;
  2806. case "Ultimatemod.ClassGrenadierGP":
  2807. Result = "Ultimatemod.ClassBreacherXnade" ;
  2808. break;
  2809. case "Ultimatemod.ClassDemolitions":
  2810. Result = "Ultimatemod.ClassBreacherXnade" ;
  2811. break;
  2812. }
  2813. }
  2814.  
  2815. if (bAllowMgs)
  2816. {
  2817. switch (sclass_name)
  2818. {
  2819. case "Ultimatemod.ClassAutomaticRifleman":
  2820. Result = "Ultimatemod.ClassAutomaticRiflemanXnade" ;
  2821. break;
  2822. case "Ultimatemod.ClassAutomaticRiflemanRPK":
  2823. Result = "Ultimatemod.ClassAutomaticRiflemanRPKXnade" ;
  2824. break;
  2825. }
  2826. } else if (!bAllowMgs)
  2827. {
  2828. if (bAllowRifles)
  2829. {
  2830. switch (sclass_name)
  2831. {
  2832. case "Ultimatemod.ClassAutomaticRifleman":
  2833. Result = "Ultimatemod.ClassRiflemanXnade" ;
  2834. break;
  2835. case "Ultimatemod.ClassAutomaticRiflemanRPK":
  2836. Result = "Ultimatemod.ClassRiflemanXnade" ;
  2837. break;
  2838. }
  2839. } else if (!bAllowRifles)
  2840. {
  2841. switch (sclass_name)
  2842. {
  2843. case "Ultimatemod.ClassAutomaticRifleman":
  2844. Result = "Ultimatemod.ClassBreacherXnade" ;
  2845. break;
  2846. case "Ultimatemod.ClassAutomaticRiflemanRPK":
  2847. Result = "Ultimatemod.ClassBreacherXnade" ;
  2848. break;
  2849. }
  2850. }
  2851. }
  2852.  
  2853. if (bAllowSnipers)
  2854. {
  2855. switch (sclass_name)
  2856. {
  2857. case "AGP_Characters.ClassSniper":
  2858. Result = "AGP_Characters.ClassSniperXnade" ;
  2859. break;
  2860. case "Ultimatemod.ClassSniperM24":
  2861. Result = "Ultimatemod.ClassSniperM24Xnade" ;
  2862. break;
  2863. case "Ultimatemod.ClassSniperSPR":
  2864. Result = "Ultimatemod.ClassSniperSPRXnade" ;
  2865. break;
  2866. case "Ultimatemod.ClassSniperMOS":
  2867. Result = "Ultimatemod.ClassSniperMOSXnade" ;
  2868. break;
  2869. case "Ultimatemod.ClassSniperSVD":
  2870. Result = "Ultimatemod.ClassSniperSVDXnade" ;
  2871. break;
  2872. case "Ultimatemod.ClassSniperVSS":
  2873. Result = "Ultimatemod.ClassSniperVSSXnade" ;
  2874. break;
  2875. }
  2876. } else if (!bAllowSnipers)
  2877. {
  2878. if (bAllowRifles)
  2879. {
  2880. switch (sclass_name)
  2881. {
  2882. case "AGP_Characters.ClassSniper":
  2883. Result = "Ultimatemod.ClassRiflemanXnade" ;
  2884. break;
  2885. case "Ultimatemod.ClassSniperM24":
  2886. Result = "Ultimatemod.ClassRiflemanXnade" ;
  2887. break;
  2888. case "Ultimatemod.ClassSniperSPR":
  2889. Result = "Ultimatemod.ClassRiflemanXnade" ;
  2890. break;
  2891. case "Ultimatemod.ClassSniperMOS":
  2892. Result = "Ultimatemod.ClassRiflemanXnade" ;
  2893. break;
  2894. case "Ultimatemod.ClassSniperSVD":
  2895. Result = "Ultimatemod.ClassRiflemanXnade" ;
  2896. break;
  2897. case "Ultimatemod.ClassSniperVSS":
  2898. Result = "Ultimatemod.ClassRiflemanXnade" ;
  2899. break;
  2900. }
  2901. } else if (!bAllowRifles)
  2902. {
  2903. switch (sclass_name)
  2904. {
  2905. case "AGP_Characters.ClassSniper":
  2906. Result = "Ultimatemod.ClassBreacherXnade" ;
  2907. break;
  2908. case "Ultimatemod.ClassSniperM24":
  2909. Result = "Ultimatemod.ClassBreacherXnade" ;
  2910. break;
  2911. case "Ultimatemod.ClassSniperSPR":
  2912. Result = "Ultimatemod.ClassBreacherXnade" ;
  2913. break;
  2914. case "Ultimatemod.ClassSniperMOS":
  2915. Result = "Ultimatemod.ClassBreacherXnade" ;
  2916. break;
  2917. case "Ultimatemod.ClassSniperSVD":
  2918. Result = "Ultimatemod.ClassBreacherXnade" ;
  2919. break;
  2920. case "Ultimatemod.ClassSniperVSS":
  2921. Result = "Ultimatemod.ClassBreacherXnade" ;
  2922. break;
  2923. }
  2924. }
  2925. }
  2926.  
  2927. if (bAllowRockets)
  2928. {
  2929. switch (sclass_name)
  2930. {
  2931. case "Ultimatemod.ClassBDMRocket":
  2932. Result = "Ultimatemod.ClassBDMRocketXnade" ;
  2933. break;
  2934. case "Ultimatemod.ClassRPGRocket":
  2935. Result = "Ultimatemod.ClassRPGRocketXnade" ;
  2936. break;
  2937. case "Ultimatemod.ClassAT4Rocket":
  2938. Result = "Ultimatemod.ClassAT4RocketXnade" ;
  2939. }
  2940. } else if (!bAllowRockets)
  2941. {
  2942. if (bAllowRifles)
  2943. {
  2944. switch (sclass_name)
  2945. {
  2946. case "Ultimatemod.ClassBDMRocket":
  2947. Result = "Ultimatemod.ClassRiflemanXnade" ;
  2948. break;
  2949. case "Ultimatemod.ClassRPGRocket":
  2950. Result = "Ultimatemod.ClassRiflemanXnade" ;
  2951. break;
  2952. case "Ultimatemod.ClassAT4Rocket":
  2953. Result = "Ultimatemod.ClassRiflemanXnade" ;
  2954. }
  2955. } else if (!bAllowRifles)
  2956. {
  2957. switch (sclass_name)
  2958. {
  2959. case "Ultimatemod.ClassBDMRocket":
  2960. Result = "Ultimatemod.ClassBreacherXnade" ;
  2961. break;
  2962. case "Ultimatemod.ClassRPGRocket":
  2963. Result = "Ultimatemod.ClassBreacherXnade" ;
  2964. break;
  2965. case "Ultimatemod.ClassAT4Rocket":
  2966. Result = "Ultimatemod.ClassBreacherXnade" ;
  2967. }
  2968. }
  2969. }
  2970. switch (sclass_name)
  2971. {
  2972. case "Ultimatemod.ClassBreacher":
  2973. Result = "Ultimatemod.ClassBreacherXnade" ;
  2974. break;
  2975. case "AGP_Characters.ClassPistol":
  2976. Result = "AGP_Characters.ClassPistolXnade" ;
  2977. }
  2978. }
  2979. return Result ;
  2980. }
  2981.  
  2982. function AvailableClistClasses (HumanController HC)
  2983. {
  2984. if (bDefaultSettings)
  2985. {
  2986. HC.ClientMessage ("Classes are: R,G,M4,SF,D,GP,AK,AK74SU,PSO,AR,RPK,RPG,AT4,BDM,S,S24,SVD,SPR,MOS,VSS,M9,B") ;
  2987. }
  2988.  
  2989. if (bAllowRifles)
  2990. {
  2991. if (!bAllowMgs && !bAllowSnipers && !bAllowRockets && !bAllow203)
  2992. {
  2993. HC.ClientMessage("Classes are: R,M4,SF,D,AK,AK74SU,PSO,M9,B") ;
  2994. } else if (bAllowMgs && !bAllowSnipers && !bAllowRockets && !bAllow203)
  2995. {
  2996. HC.ClientMessage ("Classes are: R,M4,SF,D,AK,AK74SU,PSO,AR,RPK,M9,B") ;
  2997. } else if (!bAllowMgs && bAllowSnipers && !bAllowRockets && !bAllow203)
  2998. {
  2999. HC.ClientMessage ("Classes are: R,M4,SF,D,AK,AK74SU,PSO,S,S24,SVD,SPR,MOS,VSS,M9,B") ;
  3000. } else if (!bAllowMgs && !bAllowSnipers && bAllowRockets && !bAllow203)
  3001. {
  3002. HC.ClientMessage ("Classes are: R,M4,SF,D,AK,AK74SU,PSO,RPG,AT4,BDM,M9,B") ;
  3003. } else if (!bAllowMgs && !bAllowSnipers && !bAllowRockets && bAllow203)
  3004. {
  3005. HC.ClientMessage ("Classes are: R,G,M4,SF,D,GP,AK,AK74SU,PSO,M9,B") ;
  3006. } else if (bAllowMgs && bAllowSnipers && !bAllowRockets && !bAllow203)
  3007. {
  3008. HC.ClientMessage ("Classes are: R,M4,SF,D,AK,AK74SU,PSO,AR,RPK,S,S24,SVD,SPR,MOS,VSS,M9,B") ;
  3009. } else if (bAllowMgs && !bAllowSnipers && bAllowRockets && !bAllow203)
  3010. {
  3011. HC.ClientMessage ("Classes are: R,M4,SF,D,AK,AK74SU,PSO,AR,RPK,RPG,AT4,BDM,M9,B") ;
  3012. } else if (bAllowMgs && !bAllowSnipers && !bAllowRockets && bAllow203)
  3013. {
  3014. HC.ClientMessage ("Classes are: R,G,M4,SF,D,GP,AK,AK74SU,PSO,AR,RPK,B") ;
  3015. } else if (!bAllowMgs && bAllowSnipers && bAllowRockets && !bAllow203)
  3016. {
  3017. HC.ClientMessage ("Classes are: R,M4,SF,D,AK,AK74SU,PSO,S,S24,SVD,SPR,MOS,VSS,RPG,AT4,BDM,M9,B") ;
  3018. } else if ( !bAllowMgs && bAllowSnipers && !bAllowRockets && bAllow203)
  3019. {
  3020. HC.ClientMessage ("Classes are: R,G,M4,SF,D,GP,AK,AK74SU,PSO,S,S24,SVD,SPR,MOS,VSS,M9,B") ;
  3021. } else if (!bAllowMgs && !bAllowSnipers && bAllowRockets && bAllow203)
  3022. {
  3023. HC.ClientMessage ("Classes are: R,G,M4,SF,D,GP,AK,AK74SU,PSO,RPG,AT4,BDM,M9,B") ;
  3024. } else if (!bAllowMgs && bAllowSnipers && bAllowRockets && bAllow203)
  3025. {
  3026. HC.ClientMessage ("Classes are: R,G,M4,SF,D,GP,AK,AK74SU,PSO,RPG,AT4,BDM,S,S24,SVD,SPR,MOS,VSS,M9,B") ;
  3027. } else if (bAllowMgs && !bAllowSnipers && bAllowRockets && bAllow203)
  3028. {
  3029. HC.ClientMessage ("Classes are: R,G,M4,SF,D,GP,AK,AK74SU,PSO,AR,RPK,RPG,AT4,BDM,M9,B") ;
  3030. } else if (bAllowMgs && bAllowSnipers && !bAllowRockets && bAllow203)
  3031. {
  3032. HC.ClientMessage ("Classes are: R,G,M4,SF,D,GP,AK,AK74SU,PSO,AR,RPK,S,S24,SVD,SPR,MOS,VSS,M9,B") ;
  3033. } else if (bAllowMgs && bAllowSnipers && bAllowRockets && !bAllow203)
  3034. {
  3035. HC.ClientMessage ("Classes are: R,M4,SF,D,AK,AK74SU,PSO,AR,RPK,RPG,AT4,BDM,S,S24,SVD,SPR,MOS,VSS,M9,B") ;
  3036. }
  3037. } else if (!bAllowRifles)
  3038. {
  3039. if (!bAllowMgs && !bAllowSnipers && !bAllowRockets && !bAllow203)
  3040. {
  3041. HC.ClientMessage("Classes are: M9,B") ;
  3042. } else if (bAllowMgs && !bAllowSnipers && !bAllowRockets && !bAllow203)
  3043. {
  3044. HC.ClientMessage ("Classes are: AR,RPK,M9,B") ;
  3045. } else if (!bAllowMgs && bAllowSnipers && !bAllowRockets && !bAllow203)
  3046. {
  3047. HC.ClientMessage ("Classes are: S,S24,SVD,SPR,MOS,VSS,M9,B") ;
  3048. } else if (!bAllowMgs && !bAllowSnipers && bAllowRockets && !bAllow203)
  3049. {
  3050. HC.ClientMessage ("Classes are: RPG,AT4,BDM,M9,B") ;
  3051. } else if (!bAllowMgs && !bAllowSnipers && !bAllowRockets && bAllow203)
  3052. {
  3053. HC.ClientMessage ("Classes are: M9,B") ;
  3054. } else if (bAllowMgs && bAllowSnipers && !bAllowRockets && !bAllow203)
  3055. {
  3056. HC.ClientMessage ("Classes are: AR,RPK,S,S24,SVD,SPR,MOS,VSS,M9,B") ;
  3057. } else if (bAllowMgs && !bAllowSnipers && bAllowRockets && !bAllow203)
  3058. {
  3059. HC.ClientMessage ("Classes are: AR,RPK,RPG,AT4,BDM,M9,B") ;
  3060. } else if (bAllowMgs && !bAllowSnipers && !bAllowRockets && bAllow203)
  3061. {
  3062. HC.ClientMessage ("Classes are: AR,RPK,M9,B") ;
  3063. } else if (!bAllowMgs && bAllowSnipers && bAllowRockets && !bAllow203)
  3064. {
  3065. HC.ClientMessage ("Classes are: S,S24,SVD,SPR,MOS,VSS,RPG,AT4,BDM,M9,B") ;
  3066. } else if ( !bAllowMgs && bAllowSnipers && !bAllowRockets && bAllow203)
  3067. {
  3068. HC.ClientMessage ("Classes are: S,S24,SVD,SPR,MOS,VSS,M9,B") ;
  3069. } else if (!bAllowMgs && !bAllowSnipers && bAllowRockets && bAllow203)
  3070. {
  3071. HC.ClientMessage ("Classes are: RPG,AT4,BDM,M9,B") ;
  3072. } else if (!bAllowMgs && bAllowSnipers && bAllowRockets && bAllow203)
  3073. {
  3074. HC.ClientMessage ("Classes are: RPG,AT4,BDM,S,S24,SVD,SPR,MOS,VSS,M9,B") ;
  3075. } else if (bAllowMgs && !bAllowSnipers && bAllowRockets && bAllow203)
  3076. {
  3077. HC.ClientMessage ("Classes are: AR,RPK,RPG,AT4,BDM,M9,B") ;
  3078. } else if (bAllowMgs && bAllowSnipers && !bAllowRockets && bAllow203)
  3079. {
  3080. HC.ClientMessage ("Classes are: AR,RPK,S,S24,SVD,SPR,MOS,VSS,M9,B") ;
  3081. } else if (bAllowMgs && bAllowSnipers && bAllowRockets && !bAllow203)
  3082. {
  3083. HC.ClientMessage ("Classes are: AR,RPK,RPG,AT4,BDM,S,S24,SVD,SPR,MOS,VSS,M9,B") ;
  3084. }
  3085. }
  3086. }
  3087.  
  3088. defaultproperties
  3089. {
  3090. bForceclass = true ;
  3091. bEveryoneIsMedic = true ;
  3092. bNVG = true ;
  3093. bObjectives = true ;
  3094. bNormal = false ;
  3095.  
  3096. bAllowRifles = true ;
  3097. bAllowMgs = true ;
  3098. bAllowSnipers = true ;
  3099. bAllow203 = true ;
  3100. bAllowRockets = true ;
  3101. bAllowGrenades = true ;
  3102. bAllowIGPlayerForceClass = true ;
  3103.  
  3104. bDefaultSettings = true ;
  3105.  
  3106. bLogoAdder = true ;
  3107.  
  3108. PlayerName[0] = "Ba.^LEEFFM" ;
  3109. Logo[0] = 1 ;
  3110. }
RAW Paste Data