#library "UACMarineScripts.acs"
#include "zcommon.acs"
#import "CustomFunctions.acs"
#import "PickupScripts.acs"


Script "UACMarineclass_PickupSystem" (void)
{ 
   
   int plr = PlayerNumber();
   
   GiveInventory("PickupBlend", 1);
   PlaySound(0, "DSWPNUP", 4);
   
     switch(weaponnumbersave[plr])
  {
   case 1: GiveInventory("UACMarinePlasmaPistol", 1); print(s:"\cfYou got the UAC Plasma Pistol!"); SetInventory("HasChainsaw", 1); break;
   case 2: GiveInventory("UACMarineShotgun", 1); print(s:"\You got the 12 Gauge Shotgun!"); giveInventory("HasShotgun", 1); break;
   case 3: GiveInventory("UACMarineCombSuperShotgun", 1); print(s:"\You got the Slayer Shotgun!"); giveInventory("HasSuperShotgun", 1); break;
   case 4: GiveInventory("UACMarineVulcan", 1); print(s:"\You got the 30 Vulcanette!"); giveInventory("HasChaingun", 1); break;
   case 5: GiveInventory("UACMarineMissileLauncher", 1); print(s:"\cfYou got the RLS-89 Rocket Launcher System!"); giveInventory("HasRocketLauncher", 1); break;
   case 6: GiveInventory("UACMarinePlasmaLauncher", 1); GiveInventory("UACMarineRailgun", 1); print(s:"\cfYou got the UAC Plasma Launcher X8 and the Railgun!"); giveInventory("HasPlasmaRifle", 1); break;
   case 7: GiveInventory("UACMarineDFG20k", 1); print(s:"\cfYou got the DFG 20k! The Ultimate messiah!"); giveInventory("HasBFG9000", 1); break;
   }
   
}

Script "UACMarineClass_PistolStart" (void)
{
	TakeInventory("UACMarinePlasmaPistol", 1);
	TakeInventory("UACMarineShotgun", 1);
	TakeInventory("UACMarineCombSuperShotgun", 1);
	TakeInventory("UACMarinePlasmaPistol", 1);
	TakeInventory("UACMarineVulcan", 1);
	TakeInventory("UACMarineMissileLauncher",1);
	TakeInventory("UACMarinePlasmaLauncher",1);
	TakeInventory("UACMarineRailgun",1);
	TakeInventory("UACMarineDFG20k",1);
}
