Death Screen

Fr1nk

Valued Member!
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
 
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

I have searched for this in the past also and came up with no results. Hopefully someone can enlighten us.
 
something like :

Code:
        class nicePic : RscPicture
        {
            style = 48 + 0x800; // ST_PICTURE + ST_KEEP_ASPECT_RATIO
            x = safezoneX + safezoneW/2 - 0.25;
            y = safezoneY + safezoneH/2 - 0.2;
            w = 0.5;
            h = 0.4;
            text = "img\nicePic.paa";
        };
 
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
 
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 :D
 
Just tried and got an error..

Attached the description.ext as description.txt, since ext isn't an accepted file format for upload.

customdeath.png
 

Attachments

im 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?
 
im 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?
That's how you are suppose to do it :cool:
 
Cool i must be learning a bit of how to code lol. only down side is it didnt work :(

Kept telling me i had died when joining the server and when i did die nothing happened. screwed it up some how so taken it off again
 
Back
Top