Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script 20 (int Team) {
- int cost = 0; int speed = 1.0;
- if (MitigateDoublePress()) terminate;
- if (!IsResigned()) terminate;
- if (!IsSecondPress("CLSS01", cost)) terminate;
- TakeInventory("PurchaseToken",1);
- DisplayTick();
- SpendCredits(Credits[PlayerNumber()+1], 0);
- SETFONT("BigFont");
- HudMessage(s:"You are a \cfgunman!";
- HUDMSG_FADEOUT, 1800+PlayerNumber(), CR_GREEN, 0.5, 0.45, 2.0, 1.0);
- //Set Statistics
- SetActorProperty(0,APROP_SPEED,speed);
- GiveInventory("HasClass",1);
- GiveInventory("NewClipAmmo",160);
- GiveInventory("Handgun",1);
- GiveInventory ("TimedC4", 1);
- GiveInventory ("TimedC4Count", 1);
- SetFragGrenades (1);
- GiveInventory("SubMachineGun",1);
- SetWeapon("SubMachineGun");
- ACS_ExecuteAlways(91, 0);
- GiveInventory("SpawnInvulnerability",1);
- GiveInventory ("ClassID", CLASS_GUNMAN);
- ACS_ExecuteAlways (961, 0, Team);
- PlayerSpeeds[PlayerNumber()] = speed;
- Log(n:0, s:" becomes Gunman.");
- }
- //---------------------------ENGINEER
- script 21 (int Team) {
- int cost = 0; int speed = 0.8;
- if (MitigateDoublePress()) terminate;
- if (!IsResigned()) terminate;
- if (!IsSecondPress("CLSS02", cost)) terminate;
- TakeInventory("PurchaseToken",1);
- DisplayTick();
- SpendCredits(Credits[PlayerNumber()+1], 0);
- SETFONT("BigFont");
- HudMessage(s:"You are an \cfEngineer!";
- HUDMSG_FADEOUT, 1800+PlayerNumber(), CR_GREEN, 0.5, 0.45, 2.0, 1.0);
- //Set Statistics
- SetActorProperty(0,APROP_SPEED,speed);
- GiveInventory("HasClass",1);
- GiveInventory("NewClipAmmo",120);
- GiveInventory("Handgun",1);
- SetFragGrenades (1);
- GiveInventory ("EnhancedTimedC4",1);
- GiveInventory ("TimedC4",1);
- GiveInventory ("TimedC4Count",1);
- GiveInventory("RepairGun",1);
- SetWeapon("RepairGun");
- ACS_ExecuteAlways(91, 0);
- GiveInventory("SpawnInvulnerability",1);
- GiveInventory ("ClassID", CLASS_ENGINEER);
- ACS_ExecuteAlways (961, 0, Team);
- PlayerSpeeds[PlayerNumber()] = speed;
- Log(n:0, s:" becomes Engineer.");
- }
- //---------------------------MINIGUNNER
- script 22 (int Team) {
- int cost = 400; int speed = 0.7;
- if (MitigateDoublePress()) terminate;
- if (!IsResigned()) terminate;
- if (!IsSecondPress("CLSS03", cost)) terminate;
- if (!CheckCredits(cost)) terminate;
- TakeInventory("PurchaseToken",1);
- SpendCredits(Credits[PlayerNumber()+1], cost);
- DisplayTick();
- SETFONT("BigFont");
- HudMessage(s:"You are a \cfMinigunner!"; HUDMSG_FADEOUT, 1800+PlayerNumber(), CR_GREEN, 0.5, 0.45, 2.0, 1.0);
- SetFont ("SMALLFONT");
- HudMessage(s:"Use \cfAlt-Fire\cd for \cjAnti-Mech attack\cd!";
- HUDMSG_FADEOUT, 1840+PlayerNumber(), CR_GREEN, 0.5, 0.6, 3.0, 1.0);
- //Set Statistics
- SetActorProperty(0,APROP_SPEED,speed);
- GiveInventory("HasClass",1);
- GiveInventory("Refunds", cost/2);
- SetArmorGrade (1, ARMOD_NOCHANGE);
- GiveInventory("NewClipAmmo",90);
- GiveInventory("Handgun",1);
- GiveInventory("SubMachineGun",1);
- GiveInventory("TimedC4",1);
- GiveInventory("TimedC4Count",1);
- SetFragGrenades (2);
- GiveInventory("GatlingGun",1);
- GiveInventory("MachineGunAmmo",400);
- SetWeapon("GatlingGun");
- ACS_ExecuteAlways(91, 0);
- GiveInventory("SpawnInvulnerability",1);
- GiveInventory ("ClassID", CLASS_MINIGUNNER);
- ACS_ExecuteAlways (961, 0, Team);
- PlayerSpeeds[PlayerNumber()] = speed;
- Log(n:0, s:" becomes minigunner.");
- }
- //---------------------------TECHNICIAN
- script 23 (int Team) {
- int cost = 200; int speed = 0.8;
- if (MitigateDoublePress()) terminate;
- if (!IsResigned()) terminate;
- if (!IsSecondPress("CLSS04", cost)) terminate;
- if (!CheckCredits(cost)) terminate;
- TakeInventory("PurchaseToken",1);
- SpendCredits(Credits[PlayerNumber()+1], cost);
- DisplayTick();
- SETFONT("BigFont");
- HudMessage(s:"You are a \cfTechnician!";
- HUDMSG_FADEOUT, 1800+PlayerNumber(), CR_GREEN, 0.5, 0.45, 2.0, 1.0);
- //Set Statistics
- SetActorProperty(0, APROP_SPEED, 0.8);
- SetArmorGrade (1, ARMOD_NOCHANGE);
- GiveInventory("HasClass",1);
- GiveInventory("Refunds",cost/2);
- GiveInventory("NewClipAmmo",90);
- GiveInventory("Handgun",1);
- GiveInventory("EnhancedTimedC4",1);
- GiveInventory("TimedC4",2);
- GiveInventory("TimedC4Count",2);
- GiveInventory ("ProxyMine", 4);
- GiveInventory ("ProxyMineCount", 4);
- SetFragGrenades (2);
- GiveInventory("SubMachineGun",1);
- GiveInventory("RepairGunUpgrade",1);
- GiveInventory("RepairGun",1);
- SetWeapon("RepairGun");
- ACS_ExecuteAlways(91, 0);
- GiveInventory("SpawnInvulnerability",1);
- GiveInventory ("ClassID", CLASS_TECHNICIAN);
- ACS_ExecuteAlways (961, 0, Team);
- PlayerSpeeds[PlayerNumber()] = speed;
- Log(n:0, s:" becomes Technician.");
- }
- //---------------------------FLAMER
- script 24 (int Team) {
- int cost = 450; int speed = 0.7;
- if (MitigateDoublePress()) terminate;
- if (!CheckBarracks(Team)) terminate;
- if (!IsResigned()) terminate;
- if (!IsSecondPress("CLSS05", cost)) terminate;
- if (!CheckCredits(cost)) terminate;
- TakeInventory("PurchaseToken",1);
- SpendCredits(Credits[PlayerNumber()+1], 450);
- DisplayTick();
- SETFONT("BigFont");
- HudMessage(s:"You are a \cfFlamethrower!";
- HUDMSG_FADEOUT, 1800+PlayerNumber(), CR_GREEN, 0.5, 0.45, 2.0, 1.0);
- //Set Statistics
- SetActorProperty(0,APROP_SPEED,speed);
- SetArmorGrade (1, ARMOD_FIRE);
- GiveInventory("HasClass",1);
- GiveInventory("Refunds", cost/2);
- GiveInventory("NewClipAmmo",120);
- GiveInventory("Handgun",1);
- GiveInventory("TimedC4",1);
- GiveInventory("TimedC4Count",1);
- SetFragGrenades (2);
- GiveInventory("Flamer",1);
- GiveInventory("FlamerAmmo",400);
- GiveInventory("PhosphorusGrenadeAmmo",4);
- SetWeapon("Flamer");
- ACS_ExecuteAlways(91, 0);
- GiveInventory("SpawnInvulnerability",1);
- GiveInventory ("ClassID", CLASS_FLAMER);
- ACS_ExecuteAlways (961, 0, Team);
- PlayerSpeeds[PlayerNumber()] = speed;
- Log(n:0, s:" becomes Flamethrower.");
- }
- //---------------------------RIFLEMAN
- script 25 (int Team) {
- int cost = 200; int speed = 0.9;
- if (MitigateDoublePress()) terminate;
- if (!IsResigned()) terminate;
- if (!IsSecondPress("CLSS06", cost)) terminate;
- if (!CheckCredits(cost)) terminate;
- TakeInventory("PurchaseToken",1);
- SpendCredits(Credits[PlayerNumber()+1], cost);
- DisplayTick();
- SETFONT("BigFont");
- HudMessage(s:"You are a \cfRifleman!";
- HUDMSG_FADEOUT, 1800+PlayerNumber(), CR_GREEN, 0.5, 0.45, 2.0, 1.0);
- //Set Statistics
- SetActorProperty(0,APROP_SPEED,speed);
- SetArmorGrade (1, ARMOD_NOCHANGE);
- GiveInventory("HasClass",1);
- GiveInventory("Refunds",cost/2);
- GiveInventory("NewClipAmmo", 90);
- GiveInventory("Handgun", 1);
- GiveInventory("TimedC4", 1);
- GiveInventory("TimedC4Count", 1);
- GiveInventory("FragGrenade", 1);
- GiveInventory("FragGrenadeAmmo", 1);
- ACS_ExecuteAlways(91, 0);
- GiveInventory("Rifle", 1);
- GiveInventory("RifleAmmo", 30);
- GiveInventory("RifleGrenadeAmmo", 4);
- SetWeapon("Rifle");
- GiveInventory("SpawnInvulnerability",1);
- GiveInventory ("ClassID", CLASS_RIFLEMAN);
- ACS_ExecuteAlways (961, 0, Team);
- PlayerSpeeds[PlayerNumber()] = speed;
- Log(n:0, s:" becomes Rifleman.");
- }
- //---------------------------SUPPORT / MACHINE GUNNER
- script 26 (int Team) {
- int cost = 300; int speed = 0.9;
- if (MitigateDoublePress()) terminate;
- if (!IsResigned()) terminate;
- if (!IsSecondPress("CLSS07", cost)) terminate;
- if (!CheckCredits(cost)) terminate;
- TakeInventory("PurchaseToken",1);
- SpendCredits(Credits[PlayerNumber()+1], cost);
- DisplayTick();
- SETFONT("BigFont");
- HudMessage(s:"You are \cfMachine Gunner!";
- HUDMSG_FADEOUT, 1800+PlayerNumber(), CR_GREEN, 0.5, 0.45, 2.0, 1.0);
- //Set Statistics
- SetActorProperty(0,APROP_SPEED,speed);
- SetArmorGrade (1, ARMOD_NOCHANGE);
- GiveInventory("HasClass", 1);
- GiveInventory("Refunds", cost/2);
- GiveInventory("NewClipAmmo", 90);
- GiveInventory("Handgun", 1);
- GiveInventory("SubMachineGun", 1);
- GiveInventory("TimedC4", 1);
- GiveInventory("TimedC4Count", 1);
- GiveInventory("MachineGunAmmo", 160);
- GiveInventory("FragGrenade", 1);
- SetAmmoCapacity("FragGrenadeAmmo", 2);
- GiveInventory("FragGrenadeAmmo", 2);
- ACS_ExecuteAlways(91, 0);
- GiveInventory("MachineGun", 1);
- SetWeapon("MachineGun");
- GiveInventory("SpawnInvulnerability", 1);
- GiveInventory ("ClassID", CLASS_MACHINEGUNNER);
- ACS_ExecuteAlways (961, 0, Team);
- PlayerSpeeds[PlayerNumber()] = speed;
- Log(n:0, s:" becomes machine gunner.");
- }
- //---------------------------GRENADIER
- script 27 (int Team) {
- int cost = 550; int speed = 0.8;
- if (MitigateDoublePress()) terminate;
- if (!CheckBarracks(Team)) terminate;
- if (!IsResigned()) terminate;
- if (!IsSecondPress("CLSS08", cost)) terminate;
- if (!CheckCredits(cost)) terminate;
- TakeInventory("PurchaseToken",1);
- SpendCredits(Credits[PlayerNumber()+1], cost);
- DisplayTick();
- SETFONT("BigFont");
- HudMessage(s:"You are a \cfGrenadier!";
- HUDMSG_FADEOUT, 1800+PlayerNumber(), CR_GREEN, 0.5, 0.45, 2.0, 1.0);
- //Set Statistics
- SetActorProperty(0,APROP_SPEED,speed);
- SetArmorGrade (2, ARMOD_EXPLO);
- GiveInventory("HasClass",1);
- GiveInventory("Refunds", cost/2);
- GiveInventory("Handgun",1);
- GiveInventory("NewClipAmmo",60);
- GiveInventory("TimedC4",1);
- GiveInventory("TimedC4Count",1);
- GiveInventory("Rifle",1);
- GiveInventory("RifleAmmo",20);
- GiveInventory("RifleGrenadeAmmo",2);
- SetFragGrenades (4);
- GiveInventory("Grenade_Launcher",1);
- GiveInventory("GrenadeAmmo",40);
- SetWeapon("Grenade_Launcher");
- ACS_ExecuteAlways(91,0);
- GiveInventory("SpawnInvulnerability",1);
- GiveInventory ("ClassID", CLASS_GRENADIER);
- ACS_ExecuteAlways (961, 0, Team);
- PlayerSpeeds[PlayerNumber()] = speed;
- Log(n:0, s:" becomes Grenadier.");
- }
- //---------------------------ROCKET SOLDIER
- script 28 (int Team) {
- int cost = 500; int speed = 0.75;
- if (MitigateDoublePress()) terminate;
- if (!CheckBarracks(Team)) terminate;
- if (!IsResigned()) terminate;
- if (!IsSecondPress("CLSS09", cost)) terminate;
- if (!CheckCredits(cost)) terminate;
- TakeInventory("PurchaseToken",1);
- SpendCredits(Credits[PlayerNumber()+1], cost);
- DisplayTick();
- SETFONT("BigFont");
- HudMessage(s:"You are a \cfRocket Soldier!";
- HUDMSG_FADEOUT, 1800+PlayerNumber(), CR_GREEN, 0.5, 0.45, 2.0, 1.0);
- //Set Statistics
- SetActorProperty(0,APROP_SPEED,speed);
- SetArmorGrade (2, ARMOD_EXPLO);
- GiveInventory("HasClass",1);
- GiveInventory("Refunds", cost/2);
- GiveInventory("HighUpgrade",1);
- GiveInventory("NewClipAmmo",60);
- GiveInventory("Handgun",1);
- GiveInventory("EnhancedTimedC4",1);
- GiveInventory("TimedC4",1);
- GiveInventory("TimedC4Count",1);
- GiveInventory("Rifle",1);
- GiveInventory("RifleAmmo",20);
- GiveInventory("RifleGrenadeAmmo",2);
- GiveInventory("MissileAmmo",30);
- SetFragGrenades (2);
- GiveInventory("MissileLauncher",1);
- SetWeapon("MissileLauncher");
- ACS_ExecuteAlways(91, 0);
- GiveInventory("SpawnInvulnerability",1);
- GiveInventory ("ClassID", CLASS_ROCKETEER);
- PlayerSpeeds[PlayerNumber()] = speed;
- Log(n:0, s:" becomes Rocket Soldier.");
- ACS_ExecuteAlways (961, 0, Team);
- }
- //---------------------------STEALTH TROOPER
- script 29 (int Team) {
- int cost = 600; int speed = 0.95;
- if (MitigateDoublePress()) terminate;
- if (!IsResigned()) terminate;
- if (!IsSecondPress("CLSS10", cost)) terminate;
- if (!CheckCredits(cost)) terminate;
- TakeInventory("PurchaseToken",1);
- SpendCredits(Credits[PlayerNumber()+1], cost);
- DisplayTick();
- SETFONT("BigFont");
- HudMessage(s:"You are a \cfStealth Trooper!";
- HUDMSG_FADEOUT, 1800+PlayerNumber(), CR_GREEN, 0.5, 0.45, 2.0, 1.0);
- HudMessage(s:"Use Alt-Fire to toggle \ccStealth.";
- HUDMSG_FADEOUT, 1840+PlayerNumber(), CR_GREEN, 0.5, 0.5, 2.0, 1.0);
- //Set Statistics
- SetArmorGrade (-1, ARMOD_NOCHANGE);
- GiveInventory("HasClass",1);
- GiveInventory("Refunds", cost/2);
- SetActorProperty(0,APROP_SPEED,speed);
- SetActorProperty(0,APROP_DeathSound,"stealth/death");
- GiveInventory("NewClipAmmo",60);
- GiveInventory("Handgun",1);
- GiveInventory("TimedC4",1);
- GiveInventory("TimedC4Count",1);
- GiveInventory("LaserRifleAmmo",200);
- GiveInventory("FragGrenade",1);
- GiveInventory("FragGrenadeAmmo",1);
- GiveInventory("StealthLaserRifle",1);
- GiveInventory("Knife",1);
- ACS_ExecuteAlways(91, 0);
- GiveInventory("SpawnInvulnerability",1);
- GiveInventory ("ClassID", CLASS_STEALTH);
- ACS_ExecuteAlways (961, 0, Team);
- // [Dusk] workaround for stealth knife sound..
- delay (1);
- SetWeapon("StealthLaserRifle");
- PlayerSpeeds[PlayerNumber()] = speed;
- Log(n:0, s:" becomes stealth trooper.");
- Delay(35*6);
- ActivatorSound("misc/stealth",255);
- }
- //---------------------------GAUSS GUNNER
- script 33 (int Team) {
- int cost = 600; int speed = 0.8;
- if (MitigateDoublePress()) terminate;
- if (!CheckBarracks(Team)) terminate;
- if (!IsResigned()) terminate;
- if (!IsSecondPress("CLSS11", cost)) terminate;
- if (!CheckCredits(cost)) terminate;
- TakeInventory("PurchaseToken",1);
- SpendCredits(Credits[PlayerNumber()+1], cost);
- DisplayTick();
- SETFONT("BigFont");
- HudMessage(s:"You are a \cfGauss Gunner!";
- HUDMSG_FADEOUT, 1800+PlayerNumber(), CR_GREEN, 0.5, 0.45, 2.0, 1.0);
- SetFont ("SMALLFONT");
- HudMessage(s:"Use \cfAlt-Fire\cd for \cjAnti-Mech attack\cd!";
- HUDMSG_FADEOUT, 1840+PlayerNumber(), CR_GREEN, 0.5, 0.6, 3.0, 1.0);
- //Set Statistics
- SetActorProperty(0,APROP_SPEED,speed);
- SetArmorGrade (2, ARMOD_LASER);
- GiveInventory("HasClass", 1);
- GiveInventory("Refunds", cost/2);
- GiveInventory("NewClipAmmo",60);
- GiveInventory("Handgun",1);
- GiveInventory("TimedC4",1);
- GiveInventory("TimedC4Count",1);
- GiveInventory("Rifle",1);
- GiveInventory("RifleAmmo",40);
- GiveInventory("RifleGrenadeAmmo",0);
- GiveInventory("GaussRifleAmmo",50);
- GiveInventory("FragGrenade",1);
- SetAmmoCapacity("FragGrenadeAmmo",2);
- GiveInventory("FragGrenadeAmmo",2);
- GiveInventory("GaussRifle",1);
- SetWeapon("GaussRifle");
- ACS_ExecuteAlways(91, 0);
- GiveInventory("SpawnInvulnerability",1);
- GiveInventory ("ClassID", CLASS_GAUSSGUNNER);
- ACS_ExecuteAlways (961, 0, Team);
- PlayerSpeeds[PlayerNumber()] = speed;
- Log(n:0, s:" becomes gauss gunner.");
- }
Add Comment
Please, Sign In to add comment