Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Hey, love the script, works great, I just have one issue, I am running Halo spawn for new spawns and after death, I would like to run the login camera on normal login only. could anyone please explain how to do this?
// LOGIN CAMERA ON RE-LOG
camera = compile preprocessFileLineNumbers "logincamera.sqf";
if !(dayzPlayerLogin2 select 2) then
{
player spawn camera;
};
[] execVM "camera\playerspawn.sqf";
[] execVM "camera\logincamera.sqf";
// LOGIN CAMERA ON RE-LOG
camera = compile preprocessFileLineNumbers "camera\logincamera_execute.sqf";
if !(dayzPlayerLogin2 select 2) then
{
player spawn camera;
};
dayzLoginRecord = nil;
no work in 1.0.2.4. epoch. in 1.0.2.3 good work. help mi.
Change these two:
waitUntil {!isNil ("PVDZE_plr_LoginRecord")};
PVDZE_plr_LoginRecord = nil;
first thank you for your reply but unfortunately it did not work
this is my loginCamera.sqf
Code:waitUntil {!isNil ("dayzLoginRecord")};
waitUntil {!isNil ("PVDZE_plr_LoginRecord")};
Replace the line above with that:
Code:waitUntil {!isNil ("PVDZE_plr_LoginRecord")};
to Heavy and all- here is my "playerspawn.sqf" with "Godmode-Code" for beeing invulnarable as long as the Cam sequence running:
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; sleep 4; playsound "introSong"; sleep 18; cutText ["Special thx to Storm Division North and the great opendayz.net community", "PLAIN DOWN"]; sleep 8; cutText ["Especially to .:SDN:.Hoschi, .:SDN:.Solo, Ramrar, Worxmash, blur, kris, ZZane, IT07, Grafzahl, Excelsior, ALKINDA, axeman and the R3F Crew", "PLAIN DOWN"]; sleep 8; cutText ["All Credits for the Intro Sound goes to DeeJayStarWave", "PLAIN DOWN"]; sleep 8; cutText ["Good luck and avoid the Kampfkrümel !!!", "PLAIN DOWN"]; sleep 8; 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;
in "description.ext" i changed the CFG Sounds for having a introsound AND the Trainscript Sounds to:
Code:class CfgSounds { sounds[] = { introSong }; class introSong { name="introSong"; sound[]={introSong.ogg,0.9,1}; titles[] = {}; }; class NoSound { name = "NoSound"; sound[] = {"", 0, 1}; titles[] = {}; }; #include "Scripts\Train\sounds.hpp" };
the init.sqf looks:
Code:if (!isDedicated) then { //Conduct map operations 0 fadeSound 0; waitUntil {!isNil "dayz_loadScreenMsg"}; dayz_loadScreenMsg = (localize "STR_AUTHENTICATING"); //Bus Route [] execVM "busroute\player_axeBus.sqf"; //Run the player monitor _id = player addEventHandler ["Respawn", {_id = [] spawn player_death; _nul = [] execVM "playerspawn.sqf";}]; _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; _nul = [] execVM "playerspawn.sqf"; _nul = [] execVM "camera\loginCamera.sqf"; _void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf";
hope this will help a bit