1. Using the PBO tool of your choice (cPBO, PBOView, PBOManager etc.) extract the "dayz_code.pbo" from the "@dayz" folder.
2. Copy the "compiles.sqf" from "dayz_code\init" into your mission.pbo.
3. In the init.sqf in the mission.pbo edit:
to
You can use the compiles.sqf to override majority of the files in "dayz_code\compile" folder. As an example we are going to use it to override the function "fn_selfAction.sqf" so:
4. Copy the "fn_selfAction.sqf" in "dayz_code\compile" to your mission.pbo
5. Open the compiles.sqf you copied to the mission and find:
(Should be on line 17)
and edit it so it looks like this
2. Copy the "compiles.sqf" from "dayz_code\init" into your mission.pbo.
3. In the init.sqf in the mission.pbo edit:
Code:
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";
Code:
call compile preprocessFileLineNumbers "compiles.sqf";
4. Copy the "fn_selfAction.sqf" in "dayz_code\compile" to your mission.pbo
5. Open the compiles.sqf you copied to the mission and find:
Code:
fnc_usec_selfActions = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_selfActions.sqf"; //Checks which actions for self
and edit it so it looks like this
Code:
fnc_usec_selfActions = compile preprocessFileLineNumbers "fn_selfActions.sqf"; //Checks which actions for self[CODE/]
Now we can edit the fn_selfActions.sqf and the changes will work in our server!
This can be done for all the files in the compiles.sqf so have a look in "dayz_code/compile" and see what you can edit and report your findings back here for the good of dayz!