Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- onPlayerRespawnAsSeagull.sqs:
- _this execvm "IRM\SPECT\spectator.sqf"
- specta.sqf:
- sleep 1;
- private["_keydown_Help", "_keydown_NightVision", "_keydown_camconstruct", "_keydown_switchCamera", "_mousez", "_playableUnits", "_z"];
- IRM_bird_nvg = false;
- IRM_bird_camera_on = true;
- IRM_bird_camera_help = false;
- IRM_bird_players = [];
- _playableUnits = playableUnits;
- IRM_bird_target = player;
- {if (alive _x) then {IRM_bird_players = IRM_bird_players + [_x]}} foreach _playableUnits;
- IRM_bird_players_count = count IRM_bird_players - 1;
- IRM_bird_players_select = 0;
- waitUntil {not alive player};
- sleep 5;
- 0 fadeMusic 0.5;
- playMusic "EP1_Track09";
- cutText ["YOU ARE DEAD\n--- --- ---\nSpectator mode will start shortly","PLAIN"];
- waitUntil {typeof cameraOn == "SeaGull"};
- cutText ["Controls can be seen by pressing help button\n(Default is H)","PLAIN DOWN"];
- setAperture -1;
- sleep 1;
- //--------------
- private["_keydown_NightVision", "_keydown_camconstruct", "_keydown_switchCamera", "_mousez", "_playableUnits", "_z"];
- private ["_player","_killer","_seagull"];
- _player = _this select 0;
- _killer = _this select 1;
- _seagull = _this select 2;
- if (alive _killer) then {
- IRM_bird_target = _killer;
- } else {
- IRM_bird_target = _seagull;
- };
- IRM_bird_nvg = false;
- IRM_bird_camera_on = true;
- IRM_bird_players = [];
- _playableUnits = playableUnits;
- {if (alive _x) then {IRM_bird_players = IRM_bird_players + [_x]}} foreach _playableUnits;
- IRM_bird_players_count = count IRM_bird_players - 1;
- IRM_bird_players_select = 0;
- setAperture -1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement