Creating a spawn intro cut-scene?

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?
 
So from what I have cobbled together through this post the login+music I have works the way I want it, almost. I am looking to only have it all occur with a fresh spawn. I have a vague idea of what I need to do but it has been awhile since I have messed around with files? Anyone care to point me?
 
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?

If you use the second posts instructions it will do it everytime you login.
 
_id = player addEventHandler ["Respawn", {_id = [] spawn player_death; _nul = [] execVM "loginCamera.sqf";}];

Add it like this and not underneath..
 
Sorry mintypie maybe I didn't explain myself properly, I only want login camera for players that are loging back in only, as I am using halo spawn for fresh spawns and after death, I have it all sorted now, just trying to call in camera after black loading screen now, not after spawn. I will post up how later as I am at work now
 
if u want logincamera for players that are just logging back in only (not for new spawn or after death) put this code in your init.sqf
Code:
// LOGIN CAMERA ON RE-LOG
camera = compile preprocessFileLineNumbers "logincamera.sqf";
 
if !(dayzPlayerLogin2 select 2) then
{
    player spawn camera;
};
i'm still trying to call it in before the player spawns, but I am no coder and it will be pure luck if it works ;)
 
for god mode aswell while u log in I made file called logincamera_execute.sqf and put the links to my files like this
Code:
[] execVM "camera\playerspawn.sqf";
[] execVM "camera\logincamera.sqf";
then added this to my init.sqf
Code:
// LOGIN CAMERA ON RE-LOG
camera = compile preprocessFileLineNumbers "camera\logincamera_execute.sqf";
 
if !(dayzPlayerLogin2 select 2) then
{
    player spawn camera;
};
that's it, i'm using epoch, I did not add this line
Code:
dayzLoginRecord = nil;
as it is not needed and stuffs up your repair and upgrade buildings.
 
Change these two:
waitUntil {!isNil ("PVDZ_plr_LoginRecord")};
PVDZ_plr_LoginRecord = nil;

To:
waitUntil {!isNil ("PVDZE_plr_LoginRecord")};
PVDZE_plr_LoginRecord = nil;

The last one in your init may not be needed...
 
first thank you for your reply but unfortunately it did not work :(
this is my loginCamera.sqf

private [ "_camera", "_welcomeMessage", "_camDistance" ];
_welcomeMessage = format["Welcome on your Server %1, !",format["%1", name player]];
_camDistance = 60;

waitUntil {!isNil ("dayzLoginRecord")};

//intro move
showCinemaBorder true;
camUseNVG false;

_camera = "camera" camCreate [(position player select 0)-2, position player select 1,(position player select 2)+_camDistance];
_camera cameraEffect ["internal","back"];

_camera camSetFOV 2.000;
_camera camCommit 0;
waitUntil {camCommitted _camera};

_camera camSetTarget vehicle player;
_camera camSetRelPos [0,0,2];
_camera camCommit 8;

cutText [_welcomeMessage, "PLAIN DOWN"];

waitUntil {camCommitted _camera};

_camera cameraEffect ["terminate","back"];
camDestroy _camera;

This my init.sqf

//REALLY IMPORTANT VALUES
dayZ_instance = 11; //The instance
dayzHiveRequest = [];
initialized = false;
dayz_previousID = 0;
PVDZE_plr_LoginRecord = nil;

if (!isDedicated) then {
//Conduct map operations
[] execVM "compile\Server_WelcomeCredits.sqf";
0 fadeSound 0;
waitUntil {!isNil "dayz_loadScreenMsg"};
dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
_foo = [] execVM "=BTC=_Logistic\=BTC=_Logistic_Init.sqf";

//Run the player monitor
_id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
_playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
_nul = [] execVM "camera\loginCamera.sqf";
_void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf";


See it as an error?
 
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

------------------------------------------
I have Epoch 1.0.2.5
An in my dayz_code.pbo i find only player_spawn_1.sqf and player_spawn_2.sqf.
Where is your file saved?
 
Hey I'm using epoch 1.0.2.5 and I finally got this login camera to work straight after black loading screen, does not spawn to player first, I am calling it from the player_monitor.fsm, and removed the waituntil line in logingcamera.sqf, will post how later as I'm at work now, but works the way I want now, very happy
 
Back
Top