This script is great and has been useful, but way to many players abuse it.
Bascially you get 60 seconds of godmode on spawn to avoid spawn camping/killing at the shore (beach). This was meant to protect fresh spawns. But now players are using it during fights, they log to lobby and come back only to have god mode. Now even tho they cannot shoot while in godmode, it allows them to run away for 60 seconds totally untouchable. CHEAP!
Is there a way to make it only available to FRESH spawns, a completely NEW life and ONLY then?
Thanks a bunch guys, I am sure it's possible but I can't see it
godstart.sqf
Bascially you get 60 seconds of godmode on spawn to avoid spawn camping/killing at the shore (beach). This was meant to protect fresh spawns. But now players are using it during fights, they log to lobby and come back only to have god mode. Now even tho they cannot shoot while in godmode, it allows them to run away for 60 seconds totally untouchable. CHEAP!
Is there a way to make it only available to FRESH spawns, a completely NEW life and ONLY then?
Thanks a bunch guys, I am sure it's possible but I can't see it
godstart.sqf
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;
_EH_Fired = vehicle player addEventHandler ["Fired", { NearestObject [_this select 0,_this select 4] setPos[0,0,0]}];
titleText ["YOU HAVE GODMODE AND CAN'T SHOOT FOR 60 SECONDS", "PLAIN DOWN", 3];
sleep 60;
titleText ["GODMODE IS NOW OFF, YOU MAY SHOOT AGAIN. GOOD LUCK AND HAVE FUN!", "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;
player removeEventHandler ["Fired", _EH_Fired];