Hey guys,
I am using Kris' script for 30 Seconds godmode on spawn. It's pretty good only 2 things strike me bad with it. SCRIPT: http://opendayz.net/threads/30-second-godmode-on-spawn.12407/
Here is my 1st problem (FIXED-HERE). Players simply need to log to lobby, load back in and rush the enemy player with his godmode on for 30 seconds. Not alright! I want to know if there's a line of code I can add that will not only let them keep godmode to protect against spawn killers for 30 seconds, but also NOT LET THE PLAYER SHOOT HIS WEAPON during this 30 seconds period?
Here is my 2nd problem (PRIORITY). When you are on the loading screen right before being ACTUALLY ingame, there is a temp bot that stands up (it's a bot of you), then when you're done loading and INgame the 30 seconds of godmode starts. Problem is the period when you load (on loading screen) your temp bot is 100% killable making spawn camping/killing very much possible still. Is there anything we can change in this script to make that "loading bot" not killable?
Any help would be very much appreciated and it can complete this wonderful script
Here is the current script (sqf)
I am using Kris' script for 30 Seconds godmode on spawn. It's pretty good only 2 things strike me bad with it. SCRIPT: http://opendayz.net/threads/30-second-godmode-on-spawn.12407/
Here is my 1st problem (FIXED-HERE). Players simply need to log to lobby, load back in and rush the enemy player with his godmode on for 30 seconds. Not alright! I want to know if there's a line of code I can add that will not only let them keep godmode to protect against spawn killers for 30 seconds, but also NOT LET THE PLAYER SHOOT HIS WEAPON during this 30 seconds period?
Here is my 2nd problem (PRIORITY). When you are on the loading screen right before being ACTUALLY ingame, there is a temp bot that stands up (it's a bot of you), then when you're done loading and INgame the 30 seconds of godmode starts. Problem is the period when you load (on loading screen) your temp bot is 100% killable making spawn camping/killing very much possible still. Is there anything we can change in this script to make that "loading bot" not killable?
Any help would be very much appreciated and it can complete this wonderful script
Here is the current script (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;
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;