AdvancedUrbanRappelling icon indicating copy to clipboard operation
AdvancedUrbanRappelling copied to clipboard

Feature Request - fully serverside

Open syn7ax opened this issue 7 years ago • 2 comments

pls make it a fully serverside addon. and EXILE compatible with rope item needed.

syn7ax avatar Apr 16 '17 16:04 syn7ax

i found this comment by Duda on the EXILEmod.com forum

Here's an easier way to make the rope required. Add this code to your init.sqf file. Don't need to unpack/modify the addon.

[] spawn { waitUntil {!isNil "AR_Rappel_From_Heli_Action_Check"}; AR_Rappel_From_Heli_Action_Check = { params ["_player","_vehicle"]; if!([_vehicle] call AR_Is_Supported_Vehicle) exitWith {false}; if(((getPos _vehicle) select 2) < 5 ) exitWith {false}; if(((getPos _vehicle) select 2) > 150 ) exitWith {false}; if(driver _vehicle == _player && isEngineOn _vehicle) exitWith {false}; if(speed _vehicle > 100) exitWith {false}; if!("Exile_Item_Rope" in magazines _player) exitWith {false}; true; }; };

syn7ax avatar Apr 17 '17 21:04 syn7ax

Crack open the pbo, in functions\fn_advancedUrbanRappellingInit.sqf find

AUR_Rappel_Action = { params ["_player"]; if([_player] call AUR_Rappel_Action_Check) then {

Just below that, add

if!("Exile_Item_Rope" in magazines _player) exitWith { ["ErrorTitleAndText", ["Urban Rappeling", "You need rope to do this"]] call ExileClient_gui_toaster_addTemplateToast; };

MGTDB avatar Aug 05 '17 09:08 MGTDB