Advertisement
Guest User

Untitled

a guest
Oct 13th, 2010
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. onPlayerRespawnAsSeagull.sqs:
  2.  
  3. _this execvm "IRM\SPECT\spectator.sqf"
  4.  
  5. specta.sqf:
  6.  
  7. sleep 1;
  8. private["_keydown_Help", "_keydown_NightVision", "_keydown_camconstruct", "_keydown_switchCamera", "_mousez", "_playableUnits", "_z"];
  9. IRM_bird_nvg = false;
  10. IRM_bird_camera_on = true;
  11. IRM_bird_camera_help = false;
  12. IRM_bird_players = [];
  13. _playableUnits = playableUnits;
  14. IRM_bird_target = player;
  15. {if (alive _x) then {IRM_bird_players = IRM_bird_players + [_x]}} foreach _playableUnits;
  16. IRM_bird_players_count = count IRM_bird_players - 1;
  17. IRM_bird_players_select = 0;
  18. waitUntil {not alive player};
  19. sleep 5;
  20. 0 fadeMusic 0.5;
  21. playMusic "EP1_Track09";
  22. cutText ["YOU ARE DEAD\n--- --- ---\nSpectator mode will start shortly","PLAIN"];
  23. waitUntil {typeof cameraOn == "SeaGull"};
  24. cutText ["Controls can be seen by pressing help button\n(Default is H)","PLAIN DOWN"];
  25. setAperture -1;
  26. sleep 1;
  27.  
  28.  
  29. //--------------
  30.  
  31.  
  32. private["_keydown_NightVision", "_keydown_camconstruct", "_keydown_switchCamera", "_mousez", "_playableUnits", "_z"];
  33.  
  34. private ["_player","_killer","_seagull"];
  35. _player = _this select 0;
  36. _killer = _this select 1;
  37. _seagull = _this select 2;
  38. if (alive _killer) then {
  39. IRM_bird_target = _killer;
  40. } else {
  41. IRM_bird_target = _seagull;
  42. };
  43.  
  44. IRM_bird_nvg = false;
  45. IRM_bird_camera_on = true;
  46. IRM_bird_players = [];
  47. _playableUnits = playableUnits;
  48. {if (alive _x) then {IRM_bird_players = IRM_bird_players + [_x]}} foreach _playableUnits;
  49. IRM_bird_players_count = count IRM_bird_players - 1;
  50. IRM_bird_players_select = 0;
  51. setAperture -1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement