Creating a spawn intro cut-scene?

In the intro
Change this

Code:
waitUntil {!isNil ("dayzLoginRecord")};

To this

Code:
waitUntil { alive player };
waituntil {!isnull (finddisplay 46)};

Add this to the bottom
Code:
[] execVM "camera\loginCamera.sqf";


Thanks dude, that (kinda) worked. Only problem now is that the camera pans in on a point in the ocean


Any idea how to fix this part? :/
 
Okey, to sum it up. I got working on Overwatch 0.2.4 (1.7.7.1) like this:

Save this as loginCamera.sqf and place it in the root of your mission folder:
Code:
private ["_camera", "_camDistance"];
_camDistance = 60;
 
waitUntil {!isNil ("PVDZ_plr_LoginRecord")};
 
//intro move
showCinemaBorder true;
camUseNVG false;
 
_camera = "camera" camCreate [(position player select 0)-100*sin (round(random 359)), (position player select 1)-100*cos (round(random 359)),(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;
 
waitUntil {camCommitted _camera};
 
_camera cameraEffect ["terminate","back"];
camDestroy _camera;


In your init.sqf, find:
Code:
dayz_previousID = 0;


Add this below:
Code:
PVDZ_plr_LoginRecord = nil;


In your init.sqf, find:
Code:
_playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";


Add this below:
Code:
_nul = [] execVM "loginCamera.sqf";



HOW TO ADD SOUND:
If you want music to play as well do it like this.

Convert your sound file to .ogg and save it as introSong.ogg in the root of your mission folder.

In your description.ext, find this:
Code:
class RscPicture
{
access=0;
type=0;
idc=-1;
style=48;
colorBackground[]={0,0,0,0};
colorText[]={1,1,1,1};
font="TahomaB";
sizeEx=0;
lineSpacing=0;
text="";
};


Add this below:
Code:
class CfgSounds
{
    sounds[] =
    {
    introSong
    };
    class introSong
    {
    name="introSong";
    sound[]={introSong.ogg,0.9,1};
    titles[] = {};
    };
};


In the loginCamera.sqf, find this:
Code:
waitUntil {!isNil ("PVDZ_plr_LoginRecord")};


Add this below:
Code:
playsound "introSong";
 
is there any way to make player invulnerable as long as the camera scene is?
i realise that u are vulnerable between camstart and camstop but still @ the ground and uncontrolable.

Any ideas?

*sry 4 my bad english*

Edit:
a change that only new players or death players on respawn get the cam will also work for me ;)
 
Okey, to sum it up. I got working on Overwatch 0.2.4 (1.7.7.1) like this:

Save this as loginCamera.sqf and place it in the root of your mission folder:
Code:
private ["_camera", "_camDistance"];
_camDistance = 60;
 
waitUntil {!isNil ("PVDZ_plr_LoginRecord")};
 
//intro move
showCinemaBorder true;
camUseNVG false;
 
_camera = "camera" camCreate [(position player select 0)-100*sin (round(random 359)), (position player select 1)-100*cos (round(random 359)),(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;
 
waitUntil {camCommitted _camera};
 
_camera cameraEffect ["terminate","back"];
camDestroy _camera;


In your init.sqf, find:
Code:
dayz_previousID = 0;


Add this below:
Code:
PVDZ_plr_LoginRecord = nil;


In your init.sqf, find:
Code:
_playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";


Add this below:
Code:
_nul = [] execVM "loginCamera.sqf";



HOW TO ADD SOUND:
If you want music to play as well do it like this.

Convert your sound file to .ogg and save it as introSong.ogg in the root of your mission folder.

In your description.ext, find this:
Code:
class RscPicture
{
access=0;
type=0;
idc=-1;
style=48;
colorBackground[]={0,0,0,0};
colorText[]={1,1,1,1};
font="TahomaB";
sizeEx=0;
lineSpacing=0;
text="";
};


Add this below:
Code:
class CfgSounds
{
    sounds[] =
    {
    introSong
    };
    class introSong
    {
    name="introSong";
    sound[]={introSong.ogg,0.9,1};
    titles[] = {};
    };
};


In the loginCamera.sqf, find this:
Code:
waitUntil {!isNil ("PVDZ_plr_LoginRecord")};


Add this below:
Code:
playsound "introSong";

Hey Hertizch, I followed your instruction exactly, the login camera works perfect, however I cannot for the life of me get a .ogg file to play. Like I said, followed your instructions exactly, also tried a putting both into a folder named "scripts" (of course changing the code to look into the folder)

Do you think it might be something with my provider and how they have their servers configured? IS there a setting that needs to be enabled on their side? Currently running OW 2.4 hosted through DayZ.ST. Any thoughts would be appreciated :)
 
Unfortunately it does not. I have my description modded similar to an OW mod pack that was recently released, which uses an intro song. I have tried your settings as well (sound[]={introSound.ogg,0.9,1};) which didn't seem to help. I named my file introSound instead of introSong.

class CfgSounds
{
sounds[] =
{
introSound
};
class introSound
{
name="introSound";
sound[]={introSound.ogg,0.2,1};
titles[] = {};
};
};

The audio file was converted to .ogg format, pulled from a Night of the Living Dead sound board. File plays fine through WMP, as expected.
 
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
 
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

Appreciate the info Muffin. I changed the description back to the following;

class CfgSounds
{
sounds[] =
{
introSong
};
class introSong
{
name="introSong";
sound[]={introSong.ogg,0.9,1};
titles[] = {};
};
};

Login camera script;

waitUntil {!isNil ("PVDZ_plr_LoginRecord")};
playsound "introSong";

.....and still no sound. The sound file is labeled with the following; Type of file - Wave Sound (.ogg)
 
Try it like this:

class CfgSounds
{
sounds[]={introSong};
class introSong
{
name = "introSong";
sound[] = {\introSong.ogg, 1, 1};
titles[] = {""};
};
};
 
Try it like this:

class CfgSounds
{
sounds[]={introSong};
class introSong
{
name = "introSong";
sound[] = {\introSong.ogg, 1, 1};
titles[] = {""};
};
};

Thanks again for the response Hertizch. Gave it a try, still not getting any sound. Tried your original code with some changes, still no sound.
 
btw, my logincamera.sqf looks like:

Code:
private [ "_camera", "_welcomeMessage", "_camDistance" ];
_welcomeMessage = format["Welcome, %1, to the official borntobeamuffin Epoch Hive, Enjoy your stay!",format["%1", name player]];
_camDistance = 500;
 
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 48;
 
cutText [_welcomeMessage, "PLAIN DOWN"];
 
waitUntil {camCommitted _camera};
 
_camera cameraEffect ["terminate","back"];
camDestroy _camera;
 
Back
Top