Norrin's Revive Script (Features)

By norrin

This is a summary of some of the features and options recently added in version 0.61:


• max_no_respawns - can specify how many times a player can be revived before he dies outright

• can_revive - can specify what sort of units can revive other players, for instance all ground troops or medics only

• mission_end_function - end the mission when all player units are unconscious or dead.

• Respawn dialogs - from 0 - 4 respawn points can be placed on the map at which unconscious units can respawn giving the units the option of revive or respawn. These respawn points can be set-up so that they only become accessible if all enemy units surrounding the respawn points are killed or destroyed. They spawn point markers are also colour coded so that they appear red when they are not accessible and green when they are.

Respawn Dialog sub options:

  1. all_dead_dialog - allows the automatic appearance of the respawn dialog if all units are unconscious.
  2. JIP_spawn_dialog - the mission maker can now set the amount of time before JIP players can access the respawn dialog when they first join the mission.
  3. Nearest_teammate_dialog - measures the distance between the unconscious unit and the nearest friendly unit if the set a distance is exceeded the respawn dialog automatically appears
  4. Option of specifying up to 2 enemy sides. If units from these enemy sides are within 50 metres of the spawn point the option to spawn at that point is not available


• unconscious_markers - create markers on the map showing where the unconscious units are.

• unconscious camera - while the player is unconscious the player's view switches to a camera that either (a) focuses on the unconscious player's body or (b) allows you to switch between following friendly units from different perspectives.  There is also a free cam option.  The camera view also provides information on the unit coming to the player's aid, distance away, lives remaining etc.

• call_out function - causes the unconscious player to call out at random intervals (between 15 and 35 seconds) to help you find his body and revive him. There is also an option to view an on screen revive timer count-down

• the amount of post-revive damage a player has can be set

• revive timer option. - revive time limit - if the revive time limit elapses, depending on the revive settings, the player respawns at base, the nearest available respawn point, his choice of available respawn points or is declared dead.

• heal_yourself_option - Adds an action to the player to heal himself.

• kegetys_spectator_script option for dead players to use kegetys script

• Players can drag bodies of other unconscious players and playable AI

• AI units can be set so that if they are carrying smoke that they will throw it before moving to and reviving downed players or playable

• A second AI unit can be sent to cover the reviving AI unit

• A call for help option while unconscious has been implemented

• Players are revived with the weapons they died with.

• Can be set up easily for use with any side eg BLUFOR (default), OPFOR and RACS

The system incorporates anti-water and anti-slope code.

• No addons needed but is compatible with other addons