Ivano,
I'll be online today (Friday), then late Saturday (after 10.30pm) and can set you up on the private for testing. Goodson/Cat can also upload files for you.
BTC_Revive works on multiplayer only (edited to correct).
Download the latest version 0.95, compatible with Arma3 1.04.
Add the =BTC=_revive folder to your mission files.
In INIT.SQF add:
call compile preprocessFile "=BTC=_revive\=BTC=_revive_init.sqf";
In DESCRIPTION.EXT add the following lines:
Respawn = BASE;
RespawnDelay = 120; // time in seconds
#include "=BTC=_revive\=BTC=_respawn.h"
Change the relevant parameter lines in =BTC=_revive_init.sqf to match what you want. Here's what I used for Urban-Locker (respawn on, 3 lives, 1st person unconscious camera, 300s bleed out, no mobile respawn).
////////////////// EDITABLE \\\\\\\\\\\\\\\\\\\\\\\\\\
BTC_r_new_system = 1; // WIP - set 1 to activate it
BTC_r_wait_for_revive = 1; // If BTC_r_new_system set to 1 you can choose if you want or not a revive time available after death (Similar to wounding system in ACE)
BTC_r_action = 0; // [NOT IMPLEMENTED] - 0 if you don't want the healing animation (ACE style), 1 if you want the animations (You can't stop the animation)
BTC_r_med_fa = 1; // 0 for only first aid kit, 1 if you don't have a medikit you need a first aid kit, 2 only medikit
BTC_r_cpr_time = 60; // Time (s) taken to perform CPR
BTC_r_trans_ratio = 100; // Time (s) taken to perform a transfusion
BTC_revive_time_min = 5; // Minimum time (s) before injured player can be revived
BTC_revive_time_max = 300; // Time (s) before injured player dies
BTC_who_can_revive = ["Man"];
BTC_loop_check = 0;
BTC_disable_respawn = 0; // 0 = respawn available; 1 = no respawn
BTC_respawn_gear = 1; // 0 = do not respawn with gear; 1 = respawn with gear
BTC_active_lifes = 1; // Limit number of revives/respawns (0 = no; 1 = yes)
BTC_lifes = 3; // Maximum number of respawns available
BTC_spectating = 2; // 0 = disable; 1 = units group; 2 = side units; 3 = all units
BTC_spectating_view = [0,0]; // To force a view set the first number of the array to 1. The second one is the view mode: 0 = first person; 1 = behind the back; 2 = High; 3 = free
BTC_s_mode_view = ["First person","Behind the back","High","Free"];
BTC_black_screen = 0; // Black screen + button while unconscious or action wheel and clear view
BTC_action_respawn = 0; // if black screen is set to 0 you can choose if you want to use the action wheel or the button. Keep in mind that if you don't use the button, the injured player can use all the action, frag too....
BTC_camera_unc = 0;
BTC_camera_unc_type = ["Behind the back","High","Free"];
BTC_respawn_time = 0; // Time (s) until respawn after clicking the button
BTC_active_mobile = 0; // Active mobile respawn (You have to put in map the vehicle and give it a name. Then you have to add one object per side to move to the mobile (BTC_base_flag_west,BTC_base_flag_east) - (1 = yes, 0 = no))
BTC_mobile_respawn = 0; // Active the mobile respawn fnc (1 = yes, 0 = no)
BTC_mobile_respawn_time = 0; // Secs delay for mobile vehicle to respawn
BTC_need_first_aid = 0; // You need a first aid kit to revive (1 = yes, 0 = no)
BTC_pvp = 0; // (disable the revive option for the enemy)
BTC_injured_marker = 1;
BTC_3d_can_see = ["Man"];
BTC_3d_distance = 30;
BTC_3d_icon_size = 0.5;
BTC_3d_icon_color = [1,0,0,1];
BTC_dlg_on_respawn = 0; // 1 = Mobile only - 2 Leader group and mobile - 3 = Units group and mobile - 4 = All side units and mobile
BTC_objects_actions_west = [];
BTC_objects_actions_east = [];
BTC_objects_actions_guer = [];
BTC_objects_actions_civ = [];
if (isServer) then
{
BTC_vehs_mobile_west = []; // Editable - define mobile west
BTC_vehs_mobile_east = []; // Editable - define mobile east
BTC_vehs_mobile_guer = []; // Editable - define mobile independent
BTC_vehs_mobile_civ = []; // Editable - define mobile civilian
};
Add a marker in the editor where you want a respawn point, name it "Respawn_West".
Edited by Goodson: Please use [*code] parameters where relevant (minus the asterisk)