Create and add new compiles.sqf file (you can reuse an old one if you already have it) and add this to init.sqf file:
Find:
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";
Add this line right after, like so:
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions
call compile preprocessFileLineNumbers "custom\compiles.sqf"; //Compile custom compiles
compiles.sqf can be either found in project folder here on github or you can just create new file and add these lines:
if (!isDedicated) then {
player_build = compile preprocessFileLineNumbers "custom\snap_pro\player_build.sqf";
snap_build = compile preprocessFileLineNumbers "custom\snap_pro\snap_build.sqf";
dayz_spaceInterrupt = compile preprocessFileLineNumbers "custom\snap_pro\dayz_spaceInterrupt.sqf";
};
Copy snap_pro folder inside your custom folder and you are done. Simple as that!
Open your description.ext (root of your MPMissions folder), add this to the very bottom:
#include "custom\snap_pro\snappoints.hpp"
If you are using Infistar AH, you will need to whitelist these actions:
Open your AHconfig.sqf and down at the bottom find ALLOWED Actions part. You will need to add 2 static actions and an array of actions, so PLEASE follow this carefully:
On very top of the list whitelist snap actions add:
/* ALLOWED Actions */ _dayzActions =
"([
s_player_toggleSnap, s_player_toggleSnapSelect,
// Rest of Infistar code here!
Scroll down to the bottom of this array and add this right after + s_vehicle_lockunlock
:
+ s_player_toggleSnapSelectPoint)";
To disable tutorial text on bottom-right corner, add this to your init.sqf:
snapTutorial = false;
To only show tutorial text once (per log-in), add this right before closing bracket in line #236 in snap_build.sqf:
] spawn bis_fnc_dynamicText;
};
};
snapTutorial = false;
};