Death Screen

Code:
[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]
[/COLOR]

getting that error in my rpt..
 
Will this still work with OverWatch 0.2.4 on version 1.7.7.1??

Someone have experience with it.....
for me it doesnt work.
I get the error....creditz not found :(
 
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.
 
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?
 
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.



i'm in public computer that can't download anything so i can't check your file :(


and this how i do

in description.ext i add this class before "class RscText"
(because i just lazy to scroll down to the end of file :D)
Code:
class CfgMusic
{
    tracks[] = {DeathSong};
   
    class endSong
    {
        name="endSong";
        sound[]={DeathSong.ogg,1,1};
    };
};

and i change this code in player_death.sqf
Code:
playsound "endSong";

to
Code:
playMusic "endSong";
 
Oh, ok. I had:

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


Code:
1 cutRsc ["DeathScreen","BLACK OUT",3];
playsound "endSong";


Will test it tomorrow.
 
Seem to have a problem with battleye, after installing the custom death script every time I die it kicks me??? Can someone help? #0
 
Last edited:
look at the restriction, then figure out which one is causing it. remove the restriction or use be's whitelist system.
 
Back
Top