ijontichy

theiraowclass.txt

Apr 18th, 2012
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.50 KB | None | 0 0
  1. script 20 (int Team) {
  2. int cost = 0; int speed = 1.0;
  3. if (MitigateDoublePress()) terminate;
  4. if (!IsResigned()) terminate;
  5. if (!IsSecondPress("CLSS01", cost)) terminate;
  6.  
  7. TakeInventory("PurchaseToken",1);
  8. DisplayTick();
  9. SpendCredits(Credits[PlayerNumber()+1], 0);
  10. SETFONT("BigFont");
  11. HudMessage(s:"You are a \cfgunman!";
  12. HUDMSG_FADEOUT, 1800+PlayerNumber(), CR_GREEN, 0.5, 0.45, 2.0, 1.0);
  13.  
  14. //Set Statistics
  15. SetActorProperty(0,APROP_SPEED,speed);
  16. GiveInventory("HasClass",1);
  17. GiveInventory("NewClipAmmo",160);
  18. GiveInventory("Handgun",1);
  19. GiveInventory ("TimedC4", 1);
  20. GiveInventory ("TimedC4Count", 1);
  21. SetFragGrenades (1);
  22. GiveInventory("SubMachineGun",1);
  23. SetWeapon("SubMachineGun");
  24. ACS_ExecuteAlways(91, 0);
  25.  
  26. GiveInventory("SpawnInvulnerability",1);
  27. GiveInventory ("ClassID", CLASS_GUNMAN);
  28.  
  29. ACS_ExecuteAlways (961, 0, Team);
  30. PlayerSpeeds[PlayerNumber()] = speed;
  31. Log(n:0, s:" becomes Gunman.");
  32. }
  33.  
  34. //---------------------------ENGINEER
  35. script 21 (int Team) {
  36. int cost = 0; int speed = 0.8;
  37. if (MitigateDoublePress()) terminate;
  38. if (!IsResigned()) terminate;
  39. if (!IsSecondPress("CLSS02", cost)) terminate;
  40.  
  41. TakeInventory("PurchaseToken",1);
  42. DisplayTick();
  43. SpendCredits(Credits[PlayerNumber()+1], 0);
  44. SETFONT("BigFont");
  45. HudMessage(s:"You are an \cfEngineer!";
  46. HUDMSG_FADEOUT, 1800+PlayerNumber(), CR_GREEN, 0.5, 0.45, 2.0, 1.0);
  47.  
  48. //Set Statistics
  49. SetActorProperty(0,APROP_SPEED,speed);
  50. GiveInventory("HasClass",1);
  51. GiveInventory("NewClipAmmo",120);
  52. GiveInventory("Handgun",1);
  53. SetFragGrenades (1);
  54. GiveInventory ("EnhancedTimedC4",1);
  55. GiveInventory ("TimedC4",1);
  56. GiveInventory ("TimedC4Count",1);
  57. GiveInventory("RepairGun",1);
  58. SetWeapon("RepairGun");
  59. ACS_ExecuteAlways(91, 0);
  60.  
  61. GiveInventory("SpawnInvulnerability",1);
  62. GiveInventory ("ClassID", CLASS_ENGINEER);
  63.  
  64. ACS_ExecuteAlways (961, 0, Team);
  65. PlayerSpeeds[PlayerNumber()] = speed;
  66. Log(n:0, s:" becomes Engineer.");
  67. }
  68.  
  69. //---------------------------MINIGUNNER
  70. script 22 (int Team) {
  71. int cost = 400; int speed = 0.7;
  72. if (MitigateDoublePress()) terminate;
  73. if (!IsResigned()) terminate;
  74. if (!IsSecondPress("CLSS03", cost)) terminate;
  75. if (!CheckCredits(cost)) terminate;
  76.  
  77. TakeInventory("PurchaseToken",1);
  78. SpendCredits(Credits[PlayerNumber()+1], cost);
  79. DisplayTick();
  80. SETFONT("BigFont");
  81. HudMessage(s:"You are a \cfMinigunner!"; HUDMSG_FADEOUT, 1800+PlayerNumber(), CR_GREEN, 0.5, 0.45, 2.0, 1.0);
  82. SetFont ("SMALLFONT");
  83. HudMessage(s:"Use \cfAlt-Fire\cd for \cjAnti-Mech attack\cd!";
  84. HUDMSG_FADEOUT, 1840+PlayerNumber(), CR_GREEN, 0.5, 0.6, 3.0, 1.0);
  85.  
  86. //Set Statistics
  87. SetActorProperty(0,APROP_SPEED,speed);
  88. GiveInventory("HasClass",1);
  89. GiveInventory("Refunds", cost/2);
  90. SetArmorGrade (1, ARMOD_NOCHANGE);
  91. GiveInventory("NewClipAmmo",90);
  92. GiveInventory("Handgun",1);
  93. GiveInventory("SubMachineGun",1);
  94. GiveInventory("TimedC4",1);
  95. GiveInventory("TimedC4Count",1);
  96. SetFragGrenades (2);
  97. GiveInventory("GatlingGun",1);
  98. GiveInventory("MachineGunAmmo",400);
  99. SetWeapon("GatlingGun");
  100. ACS_ExecuteAlways(91, 0);
  101.  
  102. GiveInventory("SpawnInvulnerability",1);
  103. GiveInventory ("ClassID", CLASS_MINIGUNNER);
  104.  
  105. ACS_ExecuteAlways (961, 0, Team);
  106. PlayerSpeeds[PlayerNumber()] = speed;
  107. Log(n:0, s:" becomes minigunner.");
  108. }
  109.  
  110. //---------------------------TECHNICIAN
  111. script 23 (int Team) {
  112. int cost = 200; int speed = 0.8;
  113. if (MitigateDoublePress()) terminate;
  114. if (!IsResigned()) terminate;
  115. if (!IsSecondPress("CLSS04", cost)) terminate;
  116. if (!CheckCredits(cost)) terminate;
  117.  
  118. TakeInventory("PurchaseToken",1);
  119. SpendCredits(Credits[PlayerNumber()+1], cost);
  120. DisplayTick();
  121. SETFONT("BigFont");
  122. HudMessage(s:"You are a \cfTechnician!";
  123. HUDMSG_FADEOUT, 1800+PlayerNumber(), CR_GREEN, 0.5, 0.45, 2.0, 1.0);
  124.  
  125. //Set Statistics
  126. SetActorProperty(0, APROP_SPEED, 0.8);
  127. SetArmorGrade (1, ARMOD_NOCHANGE);
  128. GiveInventory("HasClass",1);
  129. GiveInventory("Refunds",cost/2);
  130. GiveInventory("NewClipAmmo",90);
  131. GiveInventory("Handgun",1);
  132. GiveInventory("EnhancedTimedC4",1);
  133. GiveInventory("TimedC4",2);
  134. GiveInventory("TimedC4Count",2);
  135. GiveInventory ("ProxyMine", 4);
  136. GiveInventory ("ProxyMineCount", 4);
  137. SetFragGrenades (2);
  138. GiveInventory("SubMachineGun",1);
  139. GiveInventory("RepairGunUpgrade",1);
  140. GiveInventory("RepairGun",1);
  141. SetWeapon("RepairGun");
  142. ACS_ExecuteAlways(91, 0);
  143.  
  144. GiveInventory("SpawnInvulnerability",1);
  145. GiveInventory ("ClassID", CLASS_TECHNICIAN);
  146. ACS_ExecuteAlways (961, 0, Team);
  147. PlayerSpeeds[PlayerNumber()] = speed;
  148. Log(n:0, s:" becomes Technician.");
  149. }
  150.  
  151. //---------------------------FLAMER
  152. script 24 (int Team) {
  153. int cost = 450; int speed = 0.7;
  154. if (MitigateDoublePress()) terminate;
  155. if (!CheckBarracks(Team)) terminate;
  156. if (!IsResigned()) terminate;
  157. if (!IsSecondPress("CLSS05", cost)) terminate;
  158. if (!CheckCredits(cost)) terminate;
  159.  
  160. TakeInventory("PurchaseToken",1);
  161. SpendCredits(Credits[PlayerNumber()+1], 450);
  162. DisplayTick();
  163. SETFONT("BigFont");
  164. HudMessage(s:"You are a \cfFlamethrower!";
  165. HUDMSG_FADEOUT, 1800+PlayerNumber(), CR_GREEN, 0.5, 0.45, 2.0, 1.0);
  166.  
  167. //Set Statistics
  168. SetActorProperty(0,APROP_SPEED,speed);
  169. SetArmorGrade (1, ARMOD_FIRE);
  170. GiveInventory("HasClass",1);
  171. GiveInventory("Refunds", cost/2);
  172. GiveInventory("NewClipAmmo",120);
  173. GiveInventory("Handgun",1);
  174. GiveInventory("TimedC4",1);
  175. GiveInventory("TimedC4Count",1);
  176. SetFragGrenades (2);
  177. GiveInventory("Flamer",1);
  178. GiveInventory("FlamerAmmo",400);
  179. GiveInventory("PhosphorusGrenadeAmmo",4);
  180. SetWeapon("Flamer");
  181. ACS_ExecuteAlways(91, 0);
  182.  
  183. GiveInventory("SpawnInvulnerability",1);
  184. GiveInventory ("ClassID", CLASS_FLAMER);
  185.  
  186. ACS_ExecuteAlways (961, 0, Team);
  187. PlayerSpeeds[PlayerNumber()] = speed;
  188. Log(n:0, s:" becomes Flamethrower.");
  189. }
  190.  
  191. //---------------------------RIFLEMAN
  192. script 25 (int Team) {
  193. int cost = 200; int speed = 0.9;
  194. if (MitigateDoublePress()) terminate;
  195. if (!IsResigned()) terminate;
  196. if (!IsSecondPress("CLSS06", cost)) terminate;
  197. if (!CheckCredits(cost)) terminate;
  198.  
  199. TakeInventory("PurchaseToken",1);
  200. SpendCredits(Credits[PlayerNumber()+1], cost);
  201. DisplayTick();
  202. SETFONT("BigFont");
  203. HudMessage(s:"You are a \cfRifleman!";
  204. HUDMSG_FADEOUT, 1800+PlayerNumber(), CR_GREEN, 0.5, 0.45, 2.0, 1.0);
  205.  
  206. //Set Statistics
  207. SetActorProperty(0,APROP_SPEED,speed);
  208. SetArmorGrade (1, ARMOD_NOCHANGE);
  209. GiveInventory("HasClass",1);
  210. GiveInventory("Refunds",cost/2);
  211. GiveInventory("NewClipAmmo", 90);
  212. GiveInventory("Handgun", 1);
  213. GiveInventory("TimedC4", 1);
  214. GiveInventory("TimedC4Count", 1);
  215. GiveInventory("FragGrenade", 1);
  216. GiveInventory("FragGrenadeAmmo", 1);
  217. ACS_ExecuteAlways(91, 0);
  218. GiveInventory("Rifle", 1);
  219. GiveInventory("RifleAmmo", 30);
  220. GiveInventory("RifleGrenadeAmmo", 4);
  221. SetWeapon("Rifle");
  222.  
  223. GiveInventory("SpawnInvulnerability",1);
  224. GiveInventory ("ClassID", CLASS_RIFLEMAN);
  225.  
  226. ACS_ExecuteAlways (961, 0, Team);
  227. PlayerSpeeds[PlayerNumber()] = speed;
  228. Log(n:0, s:" becomes Rifleman.");
  229. }
  230.  
  231. //---------------------------SUPPORT / MACHINE GUNNER
  232. script 26 (int Team) {
  233. int cost = 300; int speed = 0.9;
  234. if (MitigateDoublePress()) terminate;
  235. if (!IsResigned()) terminate;
  236. if (!IsSecondPress("CLSS07", cost)) terminate;
  237. if (!CheckCredits(cost)) terminate;
  238.  
  239. TakeInventory("PurchaseToken",1);
  240. SpendCredits(Credits[PlayerNumber()+1], cost);
  241. DisplayTick();
  242. SETFONT("BigFont");
  243. HudMessage(s:"You are \cfMachine Gunner!";
  244. HUDMSG_FADEOUT, 1800+PlayerNumber(), CR_GREEN, 0.5, 0.45, 2.0, 1.0);
  245.  
  246. //Set Statistics
  247. SetActorProperty(0,APROP_SPEED,speed);
  248. SetArmorGrade (1, ARMOD_NOCHANGE);
  249. GiveInventory("HasClass", 1);
  250. GiveInventory("Refunds", cost/2);
  251. GiveInventory("NewClipAmmo", 90);
  252. GiveInventory("Handgun", 1);
  253. GiveInventory("SubMachineGun", 1);
  254. GiveInventory("TimedC4", 1);
  255. GiveInventory("TimedC4Count", 1);
  256. GiveInventory("MachineGunAmmo", 160);
  257. GiveInventory("FragGrenade", 1);
  258. SetAmmoCapacity("FragGrenadeAmmo", 2);
  259. GiveInventory("FragGrenadeAmmo", 2);
  260. ACS_ExecuteAlways(91, 0);
  261. GiveInventory("MachineGun", 1);
  262. SetWeapon("MachineGun");
  263.  
  264. GiveInventory("SpawnInvulnerability", 1);
  265. GiveInventory ("ClassID", CLASS_MACHINEGUNNER);
  266.  
  267. ACS_ExecuteAlways (961, 0, Team);
  268. PlayerSpeeds[PlayerNumber()] = speed;
  269. Log(n:0, s:" becomes machine gunner.");
  270. }
  271.  
  272. //---------------------------GRENADIER
  273. script 27 (int Team) {
  274. int cost = 550; int speed = 0.8;
  275. if (MitigateDoublePress()) terminate;
  276. if (!CheckBarracks(Team)) terminate;
  277. if (!IsResigned()) terminate;
  278. if (!IsSecondPress("CLSS08", cost)) terminate;
  279. if (!CheckCredits(cost)) terminate;
  280.  
  281. TakeInventory("PurchaseToken",1);
  282. SpendCredits(Credits[PlayerNumber()+1], cost);
  283. DisplayTick();
  284. SETFONT("BigFont");
  285. HudMessage(s:"You are a \cfGrenadier!";
  286. HUDMSG_FADEOUT, 1800+PlayerNumber(), CR_GREEN, 0.5, 0.45, 2.0, 1.0);
  287.  
  288. //Set Statistics
  289. SetActorProperty(0,APROP_SPEED,speed);
  290. SetArmorGrade (2, ARMOD_EXPLO);
  291. GiveInventory("HasClass",1);
  292. GiveInventory("Refunds", cost/2);
  293. GiveInventory("Handgun",1);
  294. GiveInventory("NewClipAmmo",60);
  295. GiveInventory("TimedC4",1);
  296. GiveInventory("TimedC4Count",1);
  297. GiveInventory("Rifle",1);
  298. GiveInventory("RifleAmmo",20);
  299. GiveInventory("RifleGrenadeAmmo",2);
  300. SetFragGrenades (4);
  301.  
  302. GiveInventory("Grenade_Launcher",1);
  303. GiveInventory("GrenadeAmmo",40);
  304. SetWeapon("Grenade_Launcher");
  305.  
  306. ACS_ExecuteAlways(91,0);
  307.  
  308. GiveInventory("SpawnInvulnerability",1);
  309. GiveInventory ("ClassID", CLASS_GRENADIER);
  310.  
  311. ACS_ExecuteAlways (961, 0, Team);
  312. PlayerSpeeds[PlayerNumber()] = speed;
  313. Log(n:0, s:" becomes Grenadier.");
  314. }
  315.  
  316. //---------------------------ROCKET SOLDIER
  317. script 28 (int Team) {
  318. int cost = 500; int speed = 0.75;
  319. if (MitigateDoublePress()) terminate;
  320. if (!CheckBarracks(Team)) terminate;
  321. if (!IsResigned()) terminate;
  322. if (!IsSecondPress("CLSS09", cost)) terminate;
  323. if (!CheckCredits(cost)) terminate;
  324.  
  325. TakeInventory("PurchaseToken",1);
  326. SpendCredits(Credits[PlayerNumber()+1], cost);
  327. DisplayTick();
  328. SETFONT("BigFont");
  329. HudMessage(s:"You are a \cfRocket Soldier!";
  330. HUDMSG_FADEOUT, 1800+PlayerNumber(), CR_GREEN, 0.5, 0.45, 2.0, 1.0);
  331.  
  332. //Set Statistics
  333. SetActorProperty(0,APROP_SPEED,speed);
  334. SetArmorGrade (2, ARMOD_EXPLO);
  335. GiveInventory("HasClass",1);
  336. GiveInventory("Refunds", cost/2);
  337. GiveInventory("HighUpgrade",1);
  338. GiveInventory("NewClipAmmo",60);
  339. GiveInventory("Handgun",1);
  340. GiveInventory("EnhancedTimedC4",1);
  341. GiveInventory("TimedC4",1);
  342. GiveInventory("TimedC4Count",1);
  343. GiveInventory("Rifle",1);
  344. GiveInventory("RifleAmmo",20);
  345. GiveInventory("RifleGrenadeAmmo",2);
  346. GiveInventory("MissileAmmo",30);
  347. SetFragGrenades (2);
  348. GiveInventory("MissileLauncher",1);
  349. SetWeapon("MissileLauncher");
  350.  
  351. ACS_ExecuteAlways(91, 0);
  352.  
  353. GiveInventory("SpawnInvulnerability",1);
  354. GiveInventory ("ClassID", CLASS_ROCKETEER);
  355. PlayerSpeeds[PlayerNumber()] = speed;
  356. Log(n:0, s:" becomes Rocket Soldier.");
  357.  
  358. ACS_ExecuteAlways (961, 0, Team);
  359. }
  360.  
  361. //---------------------------STEALTH TROOPER
  362. script 29 (int Team) {
  363. int cost = 600; int speed = 0.95;
  364. if (MitigateDoublePress()) terminate;
  365. if (!IsResigned()) terminate;
  366. if (!IsSecondPress("CLSS10", cost)) terminate;
  367. if (!CheckCredits(cost)) terminate;
  368.  
  369. TakeInventory("PurchaseToken",1);
  370. SpendCredits(Credits[PlayerNumber()+1], cost);
  371. DisplayTick();
  372. SETFONT("BigFont");
  373. HudMessage(s:"You are a \cfStealth Trooper!";
  374. HUDMSG_FADEOUT, 1800+PlayerNumber(), CR_GREEN, 0.5, 0.45, 2.0, 1.0);
  375. HudMessage(s:"Use Alt-Fire to toggle \ccStealth.";
  376. HUDMSG_FADEOUT, 1840+PlayerNumber(), CR_GREEN, 0.5, 0.5, 2.0, 1.0);
  377.  
  378. //Set Statistics
  379. SetArmorGrade (-1, ARMOD_NOCHANGE);
  380. GiveInventory("HasClass",1);
  381. GiveInventory("Refunds", cost/2);
  382. SetActorProperty(0,APROP_SPEED,speed);
  383. SetActorProperty(0,APROP_DeathSound,"stealth/death");
  384. GiveInventory("NewClipAmmo",60);
  385. GiveInventory("Handgun",1);
  386. GiveInventory("TimedC4",1);
  387. GiveInventory("TimedC4Count",1);
  388. GiveInventory("LaserRifleAmmo",200);
  389. GiveInventory("FragGrenade",1);
  390. GiveInventory("FragGrenadeAmmo",1);
  391. GiveInventory("StealthLaserRifle",1);
  392. GiveInventory("Knife",1);
  393. ACS_ExecuteAlways(91, 0);
  394.  
  395. GiveInventory("SpawnInvulnerability",1);
  396. GiveInventory ("ClassID", CLASS_STEALTH);
  397.  
  398. ACS_ExecuteAlways (961, 0, Team);
  399.  
  400. // [Dusk] workaround for stealth knife sound..
  401. delay (1);
  402. SetWeapon("StealthLaserRifle");
  403.  
  404. PlayerSpeeds[PlayerNumber()] = speed;
  405. Log(n:0, s:" becomes stealth trooper.");
  406.  
  407. Delay(35*6);
  408. ActivatorSound("misc/stealth",255);
  409. }
  410.  
  411. //---------------------------GAUSS GUNNER
  412. script 33 (int Team) {
  413. int cost = 600; int speed = 0.8;
  414. if (MitigateDoublePress()) terminate;
  415. if (!CheckBarracks(Team)) terminate;
  416. if (!IsResigned()) terminate;
  417. if (!IsSecondPress("CLSS11", cost)) terminate;
  418. if (!CheckCredits(cost)) terminate;
  419.  
  420. TakeInventory("PurchaseToken",1);
  421. SpendCredits(Credits[PlayerNumber()+1], cost);
  422. DisplayTick();
  423. SETFONT("BigFont");
  424. HudMessage(s:"You are a \cfGauss Gunner!";
  425. HUDMSG_FADEOUT, 1800+PlayerNumber(), CR_GREEN, 0.5, 0.45, 2.0, 1.0);
  426. SetFont ("SMALLFONT");
  427. HudMessage(s:"Use \cfAlt-Fire\cd for \cjAnti-Mech attack\cd!";
  428. HUDMSG_FADEOUT, 1840+PlayerNumber(), CR_GREEN, 0.5, 0.6, 3.0, 1.0);
  429.  
  430. //Set Statistics
  431. SetActorProperty(0,APROP_SPEED,speed);
  432. SetArmorGrade (2, ARMOD_LASER);
  433. GiveInventory("HasClass", 1);
  434. GiveInventory("Refunds", cost/2);
  435. GiveInventory("NewClipAmmo",60);
  436. GiveInventory("Handgun",1);
  437. GiveInventory("TimedC4",1);
  438. GiveInventory("TimedC4Count",1);
  439. GiveInventory("Rifle",1);
  440. GiveInventory("RifleAmmo",40);
  441. GiveInventory("RifleGrenadeAmmo",0);
  442. GiveInventory("GaussRifleAmmo",50);
  443. GiveInventory("FragGrenade",1);
  444. SetAmmoCapacity("FragGrenadeAmmo",2);
  445. GiveInventory("FragGrenadeAmmo",2);
  446. GiveInventory("GaussRifle",1);
  447. SetWeapon("GaussRifle");
  448.  
  449. ACS_ExecuteAlways(91, 0);
  450.  
  451. GiveInventory("SpawnInvulnerability",1);
  452. GiveInventory ("ClassID", CLASS_GAUSSGUNNER);
  453.  
  454. ACS_ExecuteAlways (961, 0, Team);
  455.  
  456. PlayerSpeeds[PlayerNumber()] = speed;
  457. Log(n:0, s:" becomes gauss gunner.");
  458. }
Add Comment
Please, Sign In to add comment