This repository has been archived by the owner on May 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
x_revive.sqf
72 lines (51 loc) · 2.3 KB
/
x_revive.sqf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#define THIS_FILE "x_revive.sqf"
#include "xr_macros.sqf";
// playable units, var name as string that can be revived
if (!isDedicated) then {
GVARXR(player_entities) = [];
};
// units that can revive, use var name as string like in player entities or empty array so that anybody can revive
// if a unit can't revive another one it can at least enhance the lifetime with CPR menu entry
GVARXR(can_revive) = [];
// set max lives to -1 to have unlimited lives
if (isNil QGVARXR(max_lives)) then {
GVARXR(max_lives) = 30;
};
// show markers on map where unit died
GVARXR(with_marker) = true;
// life time once unconscious
if (isNil QGVARXR(lifetime)) then {
GVARXR(lifetime) = 300;
};
// map click respawn available after x seconds, -1 for immedeate respawn
GVARXR(respawn_available_after) = -1;
// list players only if they are x meters avway
GVARXR(near_player_dist) = 250;
// respawn available when no other players in near_player_dist
GVARXR(near_player_dist_respawn) = true;
// respawn with weapons, set to false because Dom handles it internally
GVARXR(withweaponrespawn) = false;
// respawn markers (respawn positions)
GVARXR(respawn_markers) = ["base_spawn_1", "mobilerespawn1", "mobilerespawn2"];
// set the number of bonus lifes a player gets when he revives another player, 0 to disable it
GVARXR(help_bonus) = 1;
// if set to false no "x was revived by y" message will show up
GVARXR(revivemsg) = true;
// set to true to use follow cam instead of normal red uncon screen
// red uncon screen disabled and not available in Dom!
GVARXR(followcam) = true;
// set to true to remove the primary and secondary weapon of a dead unit (if weapon respawn is enabled)
GVARXR(dead_removeweapon) = false;
// if set to true internal respawn dialog won't get used
GVARXR(no_respawn_dialog) = true;
// if a player can not revive another unit he can at least use CPR. cpr_time_add gets added to the other units livetime
GVARXR(cpr_time_add) = 300;
// selfheals, how often a player can heal himself (0 = disabled)
GVARXR(selfheals) = 0;
// if selfheals is enabled then if damage player >= 0.3 and <= 0.7 the action shows up
GVARXR(selfheals_minmaxdam) = [0.2, 0.8];
// uncon units cry (like babies :D)
GVARXR(withSounds) = true;
__ccppfln(x_revive\xr_functions.sqf);
__ccppfln(x_revive\xr_main.sqf);
execVM "x_revive\xr_init.sqf";