F2A2 Kegetys Spectator Script (ACE2 Addon)
From F2 EN
Contents |
Description
The spectator script component allows dead players to spectate other (still living) players, replacing the default seagull mode. Features include:
- Free, chase, flyby, top-down and 1st person cameras
- Automatic display of all units in the mission
- Camera control with mouse and keyboard shortcuts
- Unit tags (Colored dots above units) and 3D bullet path indicators (with client addon)
- Night vision and missile camera
- Drop camera feature (Mouse + WSAD keys to move camera)
- Clickable minimap and full screen map with markers indicating unit positions and weapons fire
- Butterfly mode
This variant of the spectator script component is designed to work with ACE2 and makes use of an addon version of the original spectator script included with ACE2 itself.
Required files
All the code associated with this component is found in:
- init.sqf
- onPlayerRespawnAsSeagull.sqs
How to use
Restricting visible sides (Coop missions)
By default, the spectator script will track all units in the mission. If you would like to restrict which sides are tracked (i.e. visible), open the file init.sqf and look for the code segment entitled:
// F2A2 - Kegetys Spectator Script (ACE2 Addon)
Edit the following line, removing the // at the start:
// ace_sys_spector_ShownSides = [west, east, resistance, civilian];
Remove the names of the sides which you do not want visible. For example, if you only want it to be possible for the dead players to see west and civilian units, change the line to:
ace_sys_spector_ShownSides = [west, civilian];
Restricting visible sides (Attack & Defend missions)
If you would like to restrict which sides are tracked (i.e. visible), based on the side of the player, open the file init.sqf and look for the code segment entitled:
// F2A2 - Kegetys Spectator Script (ACE2 Addon)
Edit the following lines, removing the // at the start of each one:
// if (side player == west) then {ace_sys_spector_ShownSides = [west];};
// if (side player == east) then {ace_sys_spector_ShownSides = [east];};
// if (side player == resistance) then {ace_sys_spector_ShownSides = [resistance];};
// if (side player == civilian) then {ace_sys_spector_ShownSides = [civilian];};
Tips
- Unless you are making missions for competitive leagues, restricting the spectator script to a player's side can make being dead rather boring.
How to disable
Delete the file:
- onPlayerRespawnAsSeagull.sqs.F2A2
Credits
- Kegetys
- ViperMaul
- Norrin
- ACE2 Team
- kevb0
