Halo Jumps
By: Unkinhead
Credits: Hangender ; VentZero
Saw that many people wanted this, so here it is...
Known Bugs Before Installing Without Known Fix (At Least As Far As I Know):
Override compiles.sqf following this tut: http://opendayz.net/threads/how-to-override-compiles-from-dayz_code-pbo.8251/
Download misson.pbo and dayz_server.pbo and extract them using PBOView (Or Other)
Create Folder in root of mission.pbo named "fixes"
add this line to compiles.sqf in mission.pbo where all the other compiles are (Similar Lines):
Code:
bis_fnc_halo = compile preprocessFileLineNumbers "fixes\fn_HALO.sqf";
extract fn_selfActions.sqf from dayz_code.pbo\compile\ to your root directory of your mission.pbo (Make sure that it points to it in compiles.sqf) --- add this line to fn_selfActions.sqf in mission.pbo right after this
Code:
//Packing my tent if(cursorTarget isKindOf "TentStorage" and _canDo and _ownerID == dayz_characterID) then {[/I]
[I] if ((s_player_packtent < 0) and (player distance cursorTarget < 3)) then {[/I]
[I] s_player_packtent = player addAction [localize "str_actions_self_07", "\z\addons\dayz_code\actions\tent_pack.sqf",cursorTarget, 0, false, true, "",""];[/I]
[I] };[/I]
[I] } else {[/I]
[I] player removeAction s_player_packtent;[/I]
[I] s_player_packtent = -1;[/I]
[I] };
Right After Paste This:
Code:
if ( (cursorTarget isKindOf "Air") and (getDammage cursorTarget < 0.95) ) then {
_vehicle = cursorTarget;
_HALO_ActionAdded = _vehicle getVariable["HALO_ActionAdded",false];
if( !_HALO_ActionAdded ) then {
_vehicle setVariable ["HALO_ActionAdded", true];
// HALO Jump
s_halo_action = _vehicle addAction [("<t color=""#FF9800"">" + ("HALO Jump") + "</t>"),"fixes\jump.sqf",[],2,false,true,"","(_this in _target) && (getPosATL player select 2) > 10"];
};
};
create a file called jump.sqf in "fixes" folder and fill with:
Code:
player action [ "eject", vehicle player];
sleep 1;
player removeWeapon "ParachuteWest";
sleep 0.1;
player spawn bis_fnc_halo;
player setvelocity [0,120*0.8,0];
player setdir 0;
download fn_HALO.sqf and place it in your missionfile fixes folder
open dayz_server.pbo and replace these files :
dayz_server.pbo\compiles\server_updateObject.sqf
dayz_server.pbo\system\server_cleanup.fsm
replace them with attached (change extention of the server_cleanup.fsm.txt to .fsm !)
Repack and upload!
change your battleye script.txt and comment-out this:
Code:
1 "BIS_fnc_halo" !"if (isnil 'BIS_fnc_halo"
ALSO you may have to add this exception to scripts.txt (after 5 createVehicle)
!"_para = \"ParachuteWest\" createVehicle position _unit"
There ya have it!