Skip to content

Commit

Permalink
Fix captivity system on dedicated
Browse files Browse the repository at this point in the history
Fix #3532
  • Loading branch information
PabstMirror committed Mar 4, 2016
1 parent fc54b11 commit 4826a89
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions addons/captives/XEH_postInit.sqf
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#include "script_component.hpp"

["SettingsInitialized", {
// Hold on a little bit longer to ensure anims will work
[{
GVAR(captivityEnabled) = true;
}, [], 0.05] call EFUNC(common,waitAndExecute);
}] call EFUNC(common,addEventHandler);

//Handles when someone starts escorting and then disconnects, leaving the captive attached
//This is normaly handled by the PFEH in doEscortCaptive, but that won't be running if they DC
Expand Down Expand Up @@ -33,10 +39,3 @@ if (!hasInterface) exitWith {};
["isNotEscorting", {!(GETVAR(_this select 0,GVAR(isEscorting),false))}] call EFUNC(common,addCanInteractWithCondition);
["isNotHandcuffed", {!(GETVAR(_this select 0,GVAR(isHandcuffed),false))}] call EFUNC(common,addCanInteractWithCondition);
["isNotSurrendering", {!(GETVAR(_this select 0,GVAR(isSurrendering),false))}] call EFUNC(common,addCanInteractWithCondition);

["SettingsInitialized", {
// Hold on a little bit longer to ensure anims will work
[{
GVAR(captivityEnabled) = true;
}, [], 0.05] call EFUNC(common,waitAndExecute);
}] call EFUNC(common,addEventHandler);

0 comments on commit 4826a89

Please sign in to comment.