ALKINDA
Valued Member!
is there a way to show stats of the life on the death screen?
How so?of course
[COLOR=#000000]10:25:42 Error in expression <s"];
if (deathHandled) then {
exitWith {};
}
deathHandled = true;
_body = pl>
10:25:42 Error position: <{};
}
deathHandled = true;
_body = pl>
10:25:42 Error Missing ;
10:25:42 File mpmissions\__cur_mp.chernarus\dayz_code\player_death.sqf, line 4
10:25:42 Error in expression <s"];
if (deathHandled) then {
exitWith {};
}
deathHandled = true;
_body = pl>
10:25:42 Error position: <{};
}
deathHandled = true;
_body = pl>
10:25:42 Error Missing ;
10:25:42 File mpmissions\__cur_mp.chernarus\dayz_code\player_death.sqf, line 4[/COLOR]
[COLOR=#000000]
ok example time:
in your description.ext, put this at the end:
Code:class RscTitles { titles[] = {"example"}; class example { idd = -1; movingEnable = 0; duration = 10; fadein = 2; fadeout = 2; name="example"; controls[]={"Picture"}; class Picture { x=0.0; y=0.0; w=1.0; h=1.0; text="dayz.paa"; sizeEx = -1; type=0; idc=-1; style=48; colorBackground[]={0,0,0,0}; colorText[]={1,1,1,1}; font="Bitstream"; }; }; };
Notice 'text="dayz.paa";' in the code, this is where you tell the game where your deathscreen pic is (should be packed somewhere in mpmission.pbo)
Next:
in player_death.sqf, line 124: 1 cutRsc ["DeathScreen","BLACK OUT",3];
change that to --> 1 cutRsc ["example","BLACK OUT",3]; and recompile it in init.sqf
done
note 1: you can mess around with x y w h values to control how big and where your pic is on screen
dimension which I use for an image 1600 x 900, to get full screen.
did you have a watermark too (on the left sceen of the monitor for example with the server TAG)???
Adding custom music should be possible too this way or am I wrong?
xeonon's github code involves a DeathSong.ogg but I can neither find such a file in my mission-, nor server-, or dayzcode.pbo
Any suggestions on how to add this?
CfgMusic class in description.ext
Could you be more specific?
That's how I did it:
Mission.pbo
http://sdrv.ms/1aJnjQS
Server.pbo
http://sdrv.ms/18j2cmZ
But it crashed the server...
Ignore the 003 before the .pbo I change that every time I upload it to the server.
class CfgMusic
{
tracks[] = {DeathSong};
class endSong
{
name="endSong";
sound[]={DeathSong.ogg,1,1};
};
};
playsound "endSong";
playMusic "endSong";
class CfgSounds
{
sounds[] =
{
endSong
};
class endSong
{
name="endSong";
sound[]={endSong.ogg,0.9,1};
titles[] = {};
};
};
1 cutRsc ["DeathScreen","BLACK OUT",3];
playsound "endSong";