so, this mod will give 30 second godmode on spawn,
this will prevent spawn killing, much like what is found on most pvp servers like my own.
so,
first: unpack your mission.pbo,
second, under "if (!isDedicated) then {" in init.sqf
paste this: [] execVM "fixes\godstart.sqf";
now create a folder called fixes in your root mission pbo,
and make a new file called godstart.sqf in notepad and paste this code inside that file:
repack your pbo and enjoy less spawnkillings
all credits to myself / zane (me).
this will prevent spawn killing, much like what is found on most pvp servers like my own.
so,
first: unpack your mission.pbo,
second, under "if (!isDedicated) then {" in init.sqf
paste this: [] execVM "fixes\godstart.sqf";
now create a folder called fixes in your root mission pbo,
and make a new file called godstart.sqf in notepad and paste this code inside that file:
Code:
waitUntil {(!isNull Player) and (alive Player) and (player == player) and (!isNil 'dayz_animalCheck')};
player_zombieCheck = {};
fnc_usec_damageHandler = {};
fnc_usec_unconscious = {};
player allowDamage false;
titleText ["Welcome to the Server!", "PLAIN DOWN", 3];
sleep 30;
titleText ["Goodluck!", "PLAIN DOWN", 3];
sleep 0.1;
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";
fnc_usec_unconscious = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_unconscious.sqf";
player allowDamage true;
repack your pbo and enjoy less spawnkillings
all credits to myself / zane (me).