Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script "TSPPickupSounds" (int which)
- {
- if(CheckInventory("PlayingPickupSound") > 0){ terminate; }
- else{
- GiveInventory("PlayingPickupSound", 1);
- if(CheckActorClass(0,"SpacePirate") && GetPlayerInfo(PlayerNumber(),PLAYERINFO_GENDER) == 2){
- switch (which){
- case 1:
- LocalAmbientSound("melflavpickuprobo/Pistol",127);
- Delay(41);
- TakeInventory("PlayingPickupSound",0x7FFFFFFF);
- terminate;
- case 2:
- LocalAmbientSound("melflavpickuprobo/ZekeShotgun",127);
- Delay(49);
- TakeInventory("PlayingPickupSound",0x7FFFFFFF);
- terminate;
- case 3:
- LocalAmbientSound("melflavpickuprobo/Crossbow",127);
- Delay(35);
- TakeInventory("PlayingPickupSound",0x7FFFFFFF);
- terminate;
- case 4:
- LocalAmbientSound("melflavpickuprobo/Ammobox50",127);
- Delay(123);
- TakeInventory("PlayingPickupSound",0x7FFFFFFF);
- terminate;
- case 5:
- LocalAmbientSound("melflavpickuprobo/RocketNailgunLauncher",127);
- Delay(67);
- TakeInventory("PlayingPickupSound",0x7FFFFFFF);
- terminate;
- case 6:
- terminate;
- case 7:
- LocalAmbientSound("melflavpickuprobo/RocketLauncher1",127);
- Delay(67);
- TakeInventory("PlayingPickupSound",0x7FFFFFFF);
- terminate; }}
- else if(CheckActorClass(0,"SpacePirate")){
- switch (which){
- case 1:
- LocalAmbientSound("melflavpickup/Pistol",127);
- Delay(46);
- TakeInventory("PlayingPickupSound",0x7FFFFFFF);
- terminate;
- case 2:
- LocalAmbientSound("melflavpickup/ZekeShotgun",127);
- Delay(60);
- TakeInventory("PlayingPickupSound",0x7FFFFFFF);
- terminate;
- case 3:
- LocalAmbientSound("melflavpickup/Crossbow",127);
- Delay(53);
- TakeInventory("PlayingPickupSound",0x7FFFFFFF);
- terminate;
- case 4:
- LocalAmbientSound("melflavpickup/Ammobox50",127);
- Delay(144);
- TakeInventory("PlayingPickupSound",0x7FFFFFFF);
- terminate;
- case 5:
- LocalAmbientSound("melflavpickup/RocketNailgunLauncher",127);
- Delay(69);
- TakeInventory("PlayingPickupSound",0x7FFFFFFF);
- terminate;
- case 6:
- terminate;
- case 7:
- LocalAmbientSound("melflavpickup/RocketLauncher1",127);
- Delay(69);
- TakeInventory("PlayingPickupSound",0x7FFFFFFF);
- terminate; }}
- else if(CheckActorClass(0,"Vexler") && GetPlayerInfo(PlayerNumber(),PLAYERINFO_GENDER) == 2){
- switch (which){
- case 1:
- LocalAmbientSound("secretmessage",127); //"vexflavpickuprobo/Pistol",127); Did it this way so it'd be easy to undo
- Delay(144);
- TakeInventory("PlayingPickupSound",0x7FFFFFFF);
- terminate;
- case 2:
- LocalAmbientSound("secretmessage",127); //"vexflavpickuprobo/ZekeShotgun",127);
- Delay(144);
- TakeInventory("PlayingPickupSound",0x7FFFFFFF);
- terminate;
- case 3:
- LocalAmbientSound("secretmessage",127); //"vexflavpickuprobo/Crossbow",127);
- Delay(144);
- TakeInventory("PlayingPickupSound",0x7FFFFFFF);
- terminate;
- case 4:
- LocalAmbientSound("secretmessage",127); //"vexflavpickuprobo/Ammobox50",127);
- Delay(144);
- TakeInventory("PlayingPickupSound",0x7FFFFFFF);
- terminate;
- case 5:
- LocalAmbientSound("secretmessage",127); //"vexflavpickuprobo/RocketNailgunLauncher",127);
- Delay(144);
- TakeInventory("PlayingPickupSound",0x7FFFFFFF);
- terminate;
- case 6:
- terminate;
- case 7:
- LocalAmbientSound("secretmessage",127); //"vexflavpickuprobo/RocketNailgunLauncher",127);
- Delay(144);
- TakeInventory("PlayingPickupSound",0x7FFFFFFF);
- terminate; }}
- else if(CheckActorClass(0,"Vexler")){
- switch (which){
- case 1:
- LocalAmbientSound("secretmessage",127); //"vexflavpickup/Pistol",127); Did it this way so it'd be easy to undo
- Delay(144);
- TakeInventory("PlayingPickupSound",0x7FFFFFFF);
- terminate;
- case 2:
- LocalAmbientSound("secretmessage",127); //"vexflavpickup/ZekeShotgun",127);
- Delay(144);
- TakeInventory("PlayingPickupSound",0x7FFFFFFF);
- terminate;
- case 3:
- LocalAmbientSound("secretmessage",127); //"vexflavpickup/Crossbow",127);
- Delay(144);
- TakeInventory("PlayingPickupSound",0x7FFFFFFF);
- terminate;
- case 4:
- LocalAmbientSound("secretmessage",127); //"vexflavpickup/Ammobox50",127);
- Delay(144);
- TakeInventory("PlayingPickupSound",0x7FFFFFFF);
- terminate;
- case 5:
- LocalAmbientSound("secretmessage",127); //"vexflavpickup/RocketNailgunLauncher",127);
- Delay(144);
- TakeInventory("PlayingPickupSound",0x7FFFFFFF);
- terminate;
- case 6:
- terminate;
- case 7:
- LocalAmbientSound("secretmessage",127); //"vexflavpickup/RocketNailgunLauncher",127);
- Delay(144);
- TakeInventory("PlayingPickupSound",0x7FFFFFFF);
- terminate; }}
- else{
- TakeInventory("PlayingPickupSound",0x7FFFFFFF);
- terminate; }}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement