happydayz

Enigma Exile Revive - v0.80 [UPDATED 08/09/16] 1.02 Compatible

739 posts in this topic

 

 

Enigma Exile Revive v0.80

 

Custom made Revive Script for Exile!

 

https://github.com/happydayz-enigma/Enigma-Exile-Revive-System

 

Support Further Development

 

If you follow the instructions it will work!

Note: I do not use, and thus have not made any battleye filters for this. 

 

Changelog: 


13/01/16 -- prevent duping of gear by revived player.

14/01/16 -- prevent accessing gear on player being revived (stops duping).

15/01/16 -- hotfix to enable access to corpse inventory after a failed revive.

17/01/16 -- updated animations for revive, place defib on ground as part of revive process.

02/02/16 -- added support for GR8 Humanity Script, hopefully fixed any God mode issues against AI.

29/02/16 -- Updated Naming convention across all mods for uniformity. Now use @Enigma base folder

08/03/16 - Updated for Exile 0.9.6. Tested working vanilla and modded exile. Unsure if compatible with GR8 Humanity.

18/03/16 - Removed Update Respect/Poptabs - download from https://github.com/happydayz-enigma/Enigma_Exile_UpdateRP.

3/7/16 - Updated for Exile 0.9.8. 
8/7/16 - Hotfix for code errors causing msgs to not work

23/08/16 - Fixed error in code reported by slay that caused players to still time out after revive!

 

Battleye Filters Thanks to 

F1Schu

 

Spoiler

Add the following to your 'Scripts.txt' file on line #3 starting with '7 compile'

!="\n\n\n\nif (hasInterface) then {\n[] execVM \"Custom\EnigmaRevive\compiles.sqf\";\nplayer setVariable ['EnigmaRevivePermitted', false, t"
add the following to line #4 starting with '7 compileFinal'

!="'';\n_function = _x select 0;\n_file = _x select 1;\n_code = compileFinal (preprocessFileLineNumbers _file);\nmissionNamespace setVa"
Add the following to your 'SetVariable.txt' file on line #2

!="antidupe" !="enigmarevivepermitted" !="bleedoutcountdownend"
Add the following to your 'SetVariableVal.txt' file on line #2

!="[0-9]*" !="[0-9].[0-9]*e\+[0-9]*" !="[0.0-9.9]*" !="[0-9]*e\+[0.0-9.9]*"

 

 

GR8 Safezones compatibility fix: - replace the mission file ExileClient_object_player_event_onInventoryOpened.sqf

Spoiler

/**
 * ExileClient_object_player_event_onInventoryOpened
 *
 * Exile Mod
 * www.exilemod.com
 * © 2015 Exile Mod Team
 *
 * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. 
 * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
 */
 
private["_cancelEvent","_container","_vehicleOwner","_ownerGroup","_unit"];
_cancelEvent = false;
_unit = _this select 0;
_container = _this select 1;
_vehicleOwner = _container getVariable ['GR8owner', objNull];
_ownerGroup = units group _vehicleOwner;
if (isNil '_vehicleOwner') then {_ownerGroup = player;};

if (ExileClientIsHandcuffed) then 
{
	_cancelEvent = true;
}
else 
{
	if (ExileClientActionDelayShown) then 
	{
		_cancelEvent = true;
	}
	else 
	{
		if (ExileClientIsInConstructionMode) then
		{
			_cancelEvent = true;	
		}
		else 
		{	
			if ((locked _container) isEqualTo 2) then
			{
				_cancelEvent = true;
			}
			else
			{
				if ((_container getVariable ["ExileIsLocked", 1] isEqualTo -1) || (_container getVariable["antidupe", 1]) isEqualTo -1) then //Enigma Revive dupe test -- happdayz
				{
					_cancelEvent = true;
				}
				else 
				{
					// GR8's Anti Steal
					if (!(_unit in _ownerGroup) && !(isNil  "_vehicleOwner") && (GG_gearSteal) && (ExilePlayerInSafezone) && ((cursortarget isKindOf "Air")||(cursortarget isKindOf "Car"))) then {
						_cancelEvent = true;
						["Whoops", ["Cannot access gear! You do not own this vehicle."]] call ExileClient_gui_notification_event_addNotification;
					} else {
						ExileClientInventoryOpened = true;
						ExileClientCurrentInventoryContainer = _container;
					};
					// GR8's Anti Steal
				};
			};
		};
	};
};
_cancelEvent

If you use DMS use this fix thanks to @second_coming

In DMS config.sqf ensure that the following is set:

DMS_ai_offload_Only_DMS_AI   = true;

The AI that was being spawned are being taken over by DMS

 

Updated to work with 1.0.1 by  @macchky

Edited by happydayz
40 people like this

Share this post


Link to post
Share on other sites
Advertisement

the github readme and when u follow link - sorry github had reverted files. all fixed now.

Edited by happydayz
1 person likes this

Share this post


Link to post
Share on other sites

Hi,dude,nice scrpits.I already make this working with GR8 Humanltiy system:P

If some revive,recove his humanlity,also other player can add human points.

 

Good Job

Share this post


Link to post
Share on other sites

works nice,

but after a bungled revive attempt i cant access inventory to reclaim my gear from my body after respawn

anyone else found this?

Share this post


Link to post
Share on other sites
3 hours ago, Eggbox said:

works nice,

but after a bungled revive attempt i cant access inventory to reclaim my gear from my body after respawn

anyone else found this?

I think that is the idea. If you die, and someone revives you you will not be able to access your inventory

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.