mirror of
https://github.com/hpy/Enigma_Exile_Revive.git
synced 2024-08-30 16:52:15 +00:00
fix mission
This commit is contained in:
parent
7515e187c4
commit
52427376c9
@ -13,11 +13,11 @@ if (!hasInterface && isServer) exitWith {
|
|||||||
|
|
||||||
GR8HumanityInstalled = false; //If you are running GR8's Humanity script set this to true!
|
GR8HumanityInstalled = false; //If you are running GR8's Humanity script set this to true!
|
||||||
|
|
||||||
MaxRevivesAllowed = 1; //Set the max number of revives permitted per life. I recomend you keep it at 1. Just saying...
|
MaxRevivesAllowed = 3; //Set the max number of revives permitted per life. I recomend you keep it at 1. Just saying...
|
||||||
|
|
||||||
DamageWhenRevived = 0.95; //Set to a percentage. 0.95 = 95% damage.... or 5% health
|
DamageWhenRevived = 0.35; //Set to a percentage. 0.95 = 95% damage.... or 5% health
|
||||||
|
|
||||||
FatiguewhenRevived = 1; //Set to a percentage. 1 = 100% fatigued and can only walk.
|
FatiguewhenRevived = 0; //Set to a percentage. 1 = 100% fatigued and can only walk.
|
||||||
|
|
||||||
|
|
||||||
//NOTE: this has been designed to only allow 1 revive. I havent put in any checks to prevent players using this to gain respect by killing each other and reviving again!!!
|
//NOTE: this has been designed to only allow 1 revive. I havent put in any checks to prevent players using this to gain respect by killing each other and reviving again!!!
|
||||||
@ -67,8 +67,6 @@ player setVariable["antidupe", 1, true];
|
|||||||
private["_newPlayerObject","_oldPlayerObject","_packet","_weapon","_reviver"];
|
private["_newPlayerObject","_oldPlayerObject","_packet","_weapon","_reviver"];
|
||||||
_packet = _this select 1;
|
_packet = _this select 1;
|
||||||
_newPlayerObject = _packet select 0;
|
_newPlayerObject = _packet select 0;
|
||||||
if (alive _newPlayerObject) then
|
|
||||||
{
|
|
||||||
cutText ["","BLACK IN",20];
|
cutText ["","BLACK IN",20];
|
||||||
[100] call BIS_fnc_bloodEffect;
|
[100] call BIS_fnc_bloodEffect;
|
||||||
"Reviving player..." call ExileClient_util_log;
|
"Reviving player..." call ExileClient_util_log;
|
||||||
@ -85,11 +83,6 @@ player setVariable["antidupe", 1, true];
|
|||||||
ExileClientPlayerIsBambi = false;
|
ExileClientPlayerIsBambi = false;
|
||||||
false call ExileClient_gui_hud_toggleBambiIcon;
|
false call ExileClient_gui_hud_toggleBambiIcon;
|
||||||
player setVariable["antidupe", 1, true]; //remove the antidupe from the revived player!
|
player setVariable["antidupe", 1, true]; //remove the antidupe from the revived player!
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
call ExileClient_object_player_death_forceRespawn;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
"EnigmaReviveFail" addPublicVariableEventHandler {
|
"EnigmaReviveFail" addPublicVariableEventHandler {
|
||||||
@ -98,7 +91,7 @@ player setVariable["antidupe", 1, true];
|
|||||||
_revivername = _packet select 1;
|
_revivername = _packet select 1;
|
||||||
systemChat Format ["%1 bungled your revive and killed you!",_revivername];
|
systemChat Format ["%1 bungled your revive and killed you!",_revivername];
|
||||||
player setVariable["antidupe", 1, true]; //remove the antidupe from the revived player!
|
player setVariable["antidupe", 1, true]; //remove the antidupe from the revived player!
|
||||||
call ExileClient_object_player_death_forceRespawn; //force kill player
|
[] call ExileClient_gui_escape_respawn; //force kill player
|
||||||
};
|
};
|
||||||
|
|
||||||
"EnigmaReviveMSG" addPublicVariableEventHandler {
|
"EnigmaReviveMSG" addPublicVariableEventHandler {
|
||||||
@ -110,5 +103,3 @@ player setVariable["antidupe", 1, true];
|
|||||||
sleep 10;
|
sleep 10;
|
||||||
systemChat "Loading: Enigma Exile Revive"; //Please leave this line as a way of saying thanks to me! :D HAPPYD
|
systemChat "Loading: Enigma Exile Revive"; //Please leave this line as a way of saying thanks to me! :D HAPPYD
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user