GOD Mode for fast rope

AsianKid

Well-Known Member
Change the fastrope init to this
Code:
#include "=BTC=_functions.sqf"
BTC_fast_rope_h = 40;
BTC_AI_fast_rope_on_deploy = 1;
BTC_roping_chopper = [	"CH47_base_EP1","Mi17_base","Mi24_Base","UH1H_base","UH1_Base","UH60_Base","MV22","BAF_Merlin_HC3_D","Ka60_Base_PMC","Mi24_Base"];
{
	_rope = _x addaction [("<t color=""#ED2744"">") + ("Deploy rope") + "</t>","=BTC=_fast_roping\=BTC=_addAction.sqf",[[],BTC_deploy_rope],7,true,false,"","player == driver _target && format [""%1"",_target getVariable ""BTC_rope""] != ""1"" && ((getPos _target) select 2) < BTC_fast_rope_h && speed _target < 2"];
	_rope = _x addaction [("<t color=""#ED2744"">") + ("Cut rope") + "</t>","=BTC=_fast_roping\=BTC=_addAction.sqf",[[],BTC_cut_rope],7,true,false,"","player == driver _target && format [""%1"",_target getVariable ""BTC_rope""] == ""1"""];
	_out  = _x addaction [("<t color=""#ED2744"">") + ("Fast rope") + "</t>","=BTC=_fast_roping\=BTC=_addAction2.sqf",[[player],BTC_fast_rope],7,true,false,"","player in (assignedCargo _target) && format [""%1"",_target getVariable ""BTC_rope""] == ""1"""];
} foreach (nearestObjects [[3000,3000,0], BTC_roping_chopper, 50000]);
And add this file called =BTC=_addAction2.sqf

Code:
_array = _this select 3;
_param = _array select 0;
_code  = _array select 1;
_spawn = _param spawn _code;
titleText ["God on.","PLAIN DOWN"]; titleFadeOut 3;
playsound "fastrope";//take out if you dont have the sound file
		player_zombieCheck = {};
		fnc_usec_damageHandler = {};
		_thePlayer removeAllEventHandlers "handleDamage";
		_thePlayer addEventHandler ["handleDamage", {false}];
		_thePlayer allowDamage false;
		sleep 8;
		player_zombieCheck = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_zombieCheck.sqf";
		fnc_usec_damageHandler = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_damageHandler.sqf";
		_thePlayer addEventHandler ["handleDamage", {true}];
		_thePlayer removeAllEventHandlers "handleDamage";
		_thePlayer allowDamage true;
titleText ["God off.","PLAIN DOWN"]; titleFadeOut 3;
For the sound add this to the description.ext
Code:
class CfgSounds
{	
    sounds[] = {fastrope};
	class fastrope
    {
    name="fastrope";
    sound[]={"fastrope.ogg",0.9,1};
    titles[] = {};
	};
};

For the sound file
https://www.mediafire.com/?o5dqyu6yjdm7cda
 
Back
Top