Jump to content
Sign in to follow this  
dirtysnipe

Halo jump spawn how to?

Recommended Posts

I currently have the halo jump spawn installed but seem to be having an issue with it resetting the player and respawning them in halo jump every time they log out and back in.

Does anyone know how to fix this and can you help with the code?

Thanks.

Share this post


Link to post
Share on other sites

Do you want all spawns on the server to come in halo jumping or just fresh? If so do you have a my SQL via your server?

Share this post


Link to post
Share on other sites

Try adding it in so it only can activate from above 100m. Example from Openforums:

if (_inVehicle and (getPos player select 2 > 100)) then {

if (s_player_halojump < 0) then {

s_player_halojump = player addAction ["Halo Jump", "fixes\jump.sqf",[], 0, false, true, "",""];

};

} else {

player removeAction s_player_halojump;

s_player_halojump = -1;

};

even though im sure you would have look at it check out the post

http://opendayz.net/index.php?threads/halo-jumps-for-dayz.7439/

Share this post


Link to post
Share on other sites

Thats the post Ive been running from. Other people are having issues aswell from it resetting characters. I have seen one server running it with no problems but the admin will not disclose the fix. I will double check that code you put.

Yes i have access to mysql on the server and I only want it to halo spawn for new spawns.

Share this post


Link to post
Share on other sites

This is what i currently have in the init.sqf file

//HALO SPAWN SCRIPT

bis_fnc_halo = compile preprocessFileLineNumbers "fixes\fn_HALO.sqf";

if (!isDedicated) then {

[] spawn {

waitUntil { !isNil ("dayz_Totalzedscheck") and !(player getVariable ["humanity",0] > 5000 and typeOf player == "Survivor2_DZ") and !(player getVariable ["humanity",0] < -2000 and (typeOf player == "Survivor2_DZ" or typeOf player == "SurvivorW2_DZ") ) and !(player getVariable ["humanity",0] > 0 and (typeOf player == "Bandit1_DZ" or typeOf player == "BanditW1_DZ") ) };

if (dayzPlayerLogin2 select 2) then

{

_pos = position player;

"respawn_west" setMarkerPos [_pos select 0, _pos select 1];

[player, 1000] spawn bis_fnc_halo;

};

};

};

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×