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.
Did a search here and Google but didn't find anything...is there a way to change the default "You Are Dead" image that pops up after you die?
Thanks
player_death.sqf
line 124: 1 cutRsc ["DeathScreen","BLACK OUT",3];
Change that to whatever you want
player_death.sqf
line 124: 1 cutRsc ["DeathScreen","BLACK OUT",3];
Change that to whatever you want
So, if I had a custom image called 'death.jpg', what do I replace in line 124?
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";
};
};
};
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
Thanks a lot! Have made the changes, just haven't actually tested it out yet![]()
[] execVM "scripts\player_death.sqf";
That's how you are suppose to do itim hosting on dayz.st so dont have access to all the files.
If i put player_death.sqf in my mission.pbo in a sub folder called scripts and this code
Code:[] execVM "scripts\player_death.sqf";
at the bottom of the init.sqf file in mission pbo would this work?