Limiting player respawn scripts© JULY 2009 - norrin
Description:A suite of scripts that allows you to specify the total number of lives/respawns each team gets (for maximum of two sides). When there are no lives left players respawn in spectate mode. Players respawn with the load out they started the mission with.
Downloadhttp://www.norrin.org/downloads/ArmA2/Limit_respawns/Limit_respawns_02.utes.rarTo implement1. Copy the limit_respawns and NORRN_spectate folders into your mission directory
2. Copy the info from the description.ext into your own description.ext file - note you can change the respawndelay, header etc but respawn must = "base" and the AI must be disabled for the scripts to work.
3. Copy the info from the init.sqf into your own init.sqf file - Note there are some parameters that you may wish to change here ie.
// Set parameters for the first playable side
_side_1 = WEST;
_total_respawns_1 = 2;
_respawn_point_1 = "west base";
// Set parameters for the second playable side
_side_2 = EAST;
_total_respawns_2 = 3;
_respawn_point_2 = "east base";
To suit your mission set-up.
4. If your 2 sides are WEST and EAST then create respawn_west and respawn_east markers on the map - alter to suit your settings. NB make sure that these two markers are a long way from each other and the combat zone.
5. Create markers on the map at which you would like your players to respawn in the test mission these are named "west base" for west units and "east base" for east units
6. Create a game logic (object) in the editor and name it:
server
NB this last step is extremely important
When no lives remain, players will get a spectate camera when they die
Key Bindings for simple camera script
W/S keys - next/previous camera
A/D keys - next/previous unit
N - toggles night vision
In "Free camera" mode
Right mouse click on the screen and the camera will rotate, move up and down etc (many thanks to the boys at OFPEC for providing this function).
Mouse wheel -zoom in/out
This camera mode takes a little getting used to but you'll master it fairly quickly
Note these scripts have only been tested quickly so please let me know if any bugs exist.