Death Screen and sound
v1.0
v1.0
What it does: Change your death screen, remove death music and add sound so all players can hear your favorite song, even if they turn all music off
What do You need:
compiles.sqf
player_death.sqf
description.ext
custom texture .paa (2048x1024) -not included, you can make this with GIMP or Photoshop + TexView2 (save as .paa from 2048x1024 .png)
custom sound .ogg (http://www.mediafire.com/download/85nokj45jsucckk/deathscreen.ogg)
How to install:
1. Grab compiles.sqf from your dayz_code.pbo and change
Code:
player_death = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_death.sqf";
Code:
player_death = compile preprocessFileLineNumbers "whatyouwantfolder\player_death.sqf";
2. Grab player_death.sqf from your dayz_code.pbo and put in "whatyouwantfolder" in missions;
3. Open your description.ext and right after
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 for sound
Code:
class CfgSounds
{
sounds[] ={deathscreen};
class deathscreen
{
name="deathscreen";
sound[]={deathscreen.ogg, db-6, 1};
titles[] = {};
};
};
Now right after your load screen
Code:
onPauseScript = "";
loadScreen = "load.jpg";
add this
Code:
class RscTitles
{
titles[] = {"DeathScr"};
class DeathScr {
idd = -1;
movingEnable = 0;
duration = 10;
fadein = 2;
fadeout = 2;
name="DeathScr";
controls[]={"Picture"};
class Picture {
x = safezoneX; y = safezoneY; w = safezoneW; h = safezoneH;
text="DeathScr.paa";
sizeEx = -1;
type=0;
idc=-1;
style=48;
colorBackground[]={0,0,0,0};
colorText[]={1,1,1,1};
font="Bitstream";
};
};
};
4. In your player_death.sqf find
Code:
_body setVariable["combattimeout", 0, true];
sleep 2;
1 cutRsc ["DeathScreen","BLACK OUT",3];
playMusic "dayz_track_death_1";
and add some changes
Code:
_body setVariable["combattimeout", 0, true];
sleep 2;
100 cutRsc ["DeathScr","BLACK OUT",3];
playSound "deathscreen";
Now find and remove all lines with "fadeSound" - so we can hear our custom sound.
5. Put your texture (.paa) and sound (.ogg) in mission
Ogg you can grab there http://www.mediafire.com/download/85nokj45jsucckk/deathscreen.ogg
And image you can make with GIMP or Photoshop and thru TexView2 save as "DeathScr.paa"!
Dimensions are 2048x1024 for better quality!
Last edited: