Advertisement
skroton

Old tsp flavor pickup code

May 30th, 2016
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 5.52 KB | None | 0 0
  1. script "TSPPickupSounds" (int which)
  2. {
  3.   if(CheckInventory("PlayingPickupSound") > 0){ terminate; }
  4.   else{
  5.     GiveInventory("PlayingPickupSound", 1);
  6.     if(CheckActorClass(0,"SpacePirate") && GetPlayerInfo(PlayerNumber(),PLAYERINFO_GENDER) == 2){
  7.       switch (which){
  8.         case 1:
  9.           LocalAmbientSound("melflavpickuprobo/Pistol",127);    
  10.           Delay(41);
  11.           TakeInventory("PlayingPickupSound",0x7FFFFFFF);
  12.           terminate;
  13.         case 2:
  14.           LocalAmbientSound("melflavpickuprobo/ZekeShotgun",127);
  15.           Delay(49);
  16.           TakeInventory("PlayingPickupSound",0x7FFFFFFF);
  17.           terminate;
  18.         case 3:
  19.           LocalAmbientSound("melflavpickuprobo/Crossbow",127);
  20.           Delay(35);
  21.           TakeInventory("PlayingPickupSound",0x7FFFFFFF);
  22.           terminate;
  23.         case 4:
  24.           LocalAmbientSound("melflavpickuprobo/Ammobox50",127);
  25.           Delay(123);
  26.           TakeInventory("PlayingPickupSound",0x7FFFFFFF);
  27.           terminate;
  28.         case 5:
  29.           LocalAmbientSound("melflavpickuprobo/RocketNailgunLauncher",127);
  30.           Delay(67);
  31.           TakeInventory("PlayingPickupSound",0x7FFFFFFF);
  32.           terminate;
  33.         case 6:
  34.           terminate;
  35.         case 7:
  36.           LocalAmbientSound("melflavpickuprobo/RocketLauncher1",127);
  37.           Delay(67);
  38.           TakeInventory("PlayingPickupSound",0x7FFFFFFF);
  39.           terminate; }}
  40.     else if(CheckActorClass(0,"SpacePirate")){
  41.       switch (which){
  42.         case 1:
  43.           LocalAmbientSound("melflavpickup/Pistol",127);    
  44.           Delay(46);
  45.           TakeInventory("PlayingPickupSound",0x7FFFFFFF);
  46.           terminate;
  47.         case 2:
  48.           LocalAmbientSound("melflavpickup/ZekeShotgun",127);
  49.           Delay(60);
  50.           TakeInventory("PlayingPickupSound",0x7FFFFFFF);
  51.           terminate;
  52.         case 3:
  53.           LocalAmbientSound("melflavpickup/Crossbow",127);
  54.           Delay(53);
  55.           TakeInventory("PlayingPickupSound",0x7FFFFFFF);
  56.           terminate;
  57.         case 4:
  58.           LocalAmbientSound("melflavpickup/Ammobox50",127);
  59.           Delay(144);
  60.           TakeInventory("PlayingPickupSound",0x7FFFFFFF);
  61.           terminate;
  62.         case 5:
  63.           LocalAmbientSound("melflavpickup/RocketNailgunLauncher",127);
  64.           Delay(69);
  65.           TakeInventory("PlayingPickupSound",0x7FFFFFFF);
  66.           terminate;
  67.         case 6:
  68.           terminate;
  69.         case 7:
  70.           LocalAmbientSound("melflavpickup/RocketLauncher1",127);
  71.           Delay(69);
  72.           TakeInventory("PlayingPickupSound",0x7FFFFFFF);
  73.           terminate; }}
  74.     else if(CheckActorClass(0,"Vexler") && GetPlayerInfo(PlayerNumber(),PLAYERINFO_GENDER) == 2){
  75.       switch (which){
  76.         case 1:
  77.           LocalAmbientSound("secretmessage",127); //"vexflavpickuprobo/Pistol",127);  Did it this way so it'd be easy to undo
  78.           Delay(144);
  79.           TakeInventory("PlayingPickupSound",0x7FFFFFFF);
  80.           terminate;
  81.         case 2:
  82.           LocalAmbientSound("secretmessage",127); //"vexflavpickuprobo/ZekeShotgun",127);
  83.           Delay(144);
  84.           TakeInventory("PlayingPickupSound",0x7FFFFFFF);
  85.           terminate;
  86.         case 3:
  87.           LocalAmbientSound("secretmessage",127); //"vexflavpickuprobo/Crossbow",127);
  88.           Delay(144);
  89.           TakeInventory("PlayingPickupSound",0x7FFFFFFF);
  90.           terminate;
  91.         case 4:
  92.           LocalAmbientSound("secretmessage",127); //"vexflavpickuprobo/Ammobox50",127);
  93.           Delay(144);
  94.           TakeInventory("PlayingPickupSound",0x7FFFFFFF);
  95.           terminate;
  96.         case 5:
  97.           LocalAmbientSound("secretmessage",127); //"vexflavpickuprobo/RocketNailgunLauncher",127);
  98.           Delay(144);
  99.           TakeInventory("PlayingPickupSound",0x7FFFFFFF);
  100.           terminate;
  101.         case 6:
  102.           terminate;
  103.         case 7:
  104.           LocalAmbientSound("secretmessage",127); //"vexflavpickuprobo/RocketNailgunLauncher",127);
  105.           Delay(144);
  106.           TakeInventory("PlayingPickupSound",0x7FFFFFFF);
  107.           terminate; }}
  108.     else if(CheckActorClass(0,"Vexler")){
  109.       switch (which){
  110.         case 1:
  111.           LocalAmbientSound("secretmessage",127); //"vexflavpickup/Pistol",127);  Did it this way so it'd be easy to undo
  112.           Delay(144);
  113.           TakeInventory("PlayingPickupSound",0x7FFFFFFF);
  114.           terminate;
  115.         case 2:
  116.           LocalAmbientSound("secretmessage",127); //"vexflavpickup/ZekeShotgun",127);
  117.           Delay(144);
  118.           TakeInventory("PlayingPickupSound",0x7FFFFFFF);
  119.           terminate;
  120.         case 3:
  121.           LocalAmbientSound("secretmessage",127); //"vexflavpickup/Crossbow",127);
  122.           Delay(144);
  123.           TakeInventory("PlayingPickupSound",0x7FFFFFFF);
  124.           terminate;
  125.         case 4:
  126.           LocalAmbientSound("secretmessage",127); //"vexflavpickup/Ammobox50",127);
  127.           Delay(144);
  128.           TakeInventory("PlayingPickupSound",0x7FFFFFFF);
  129.           terminate;
  130.         case 5:
  131.           LocalAmbientSound("secretmessage",127); //"vexflavpickup/RocketNailgunLauncher",127);
  132.           Delay(144);
  133.           TakeInventory("PlayingPickupSound",0x7FFFFFFF);
  134.           terminate;
  135.         case 6:
  136.           terminate;
  137.         case 7:
  138.           LocalAmbientSound("secretmessage",127); //"vexflavpickup/RocketNailgunLauncher",127);
  139.           Delay(144);
  140.           TakeInventory("PlayingPickupSound",0x7FFFFFFF);
  141.           terminate; }}
  142.     else{
  143.       TakeInventory("PlayingPickupSound",0x7FFFFFFF);
  144.       terminate; }}
  145. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement