Jump to content
  • 0

Showing blood in debug menu


sirblockwood

Question

1 answer to this question

Recommended Posts

  • 0

Maybe trying a custom debug from this thread: 

 

Or using Infistar.

 

Or adding it to playerstats.sqf

*note that this is untested

 

If you dont already have a custom compiles.sqf  visit

 

In your custom compiles.sqf find:

 

dayz_spaceInterrupt = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\dayz_spaceInterrupt.sqf";

 

 

Change to:

 

dayz_spaceInterrupt = compile preprocessFileLineNumbers "custom\dayz_spaceInterrupt.sqf";

 

 

 

Copy dayz_spaceInterrupt.sqf from dayz_code.pbo>actions and paste into your 'custom' folder

 

Open your newly created dayz_spaceInterrupt.sqf and find this line:

 

 

 

_nill = execvm "\z\addons\dayz_code\actions\playerstats.sqf"; 

 

 Change to both instances to :

 

_nill = execvm "custom\playerstats.sqf";

 

 

Copy playerstats.sqf from "dayz_code.pbo > actions > playerstats.sqf" and paste into your custom folder.

 

Open your newly copied playerstats.sqf and paste this:


private "_name";
//Let Zeds know
[player,4,true,(getPosATL player)] spawn player_alertZombies;
 
//display gui (temp hint)
_name = if (alive player) then {name player;} else {"Dead Player";};
hintSilent parseText format ["
<t size='1.20' font='Bitstream' color='#5882FA'>%1</t><br/><br/>
<t size='1.20' font='Bitstream' color='#5882FA'>Survived %7 Days</t><br/><br/>
<t size='1.15' font='Bitstream' align='left'>Blood Left: </t><t size='1.15' font='Bitstream' align='right'>%8</t><br/>
<t size='1.15' font='Bitstream' align='left'>Zombies Killed: </t><t size='1.15' font='Bitstream' align='right'>%2</t><br/>
<t size='1.15' font='Bitstream' align='left'>Headshots: </t><t size='1.15' font='Bitstream' align='right'>%3</t><br/>
<t size='1.15' font='Bitstream' align='left'>Murders: </t><t size='1.15' font='Bitstream' align='right'>%4</t><br/>
<t size='1.15' font='Bitstream' align='left'>Bandits Killed: </t><t size='1.15' font='Bitstream' align='right'>%5</t><br/><br/>
<t size='1.15' font='Bitstream' align='left'>Humanity: </t><t size='1.15' font='Bitstream' align='right'>%6</t><br/><br/>",
(_name),
(player getVariable['zombieKills', 0]),
(player getVariable['headShots', 0]),
(player getVariable['humanKills', 0]),
(player getVariable['banditKills', 0]),
(player getVariable['humanity', 0]),
(dayz_Survived)
r_player_blood,
];
 
/*
player createDiarySubject ["MyDiary","My Diary"];
player createDiaryRecord ["MyDiary",["Stats", "Zombies Killed: <execute expression=player getVariable['zombieKills', 0]'</execute&gt]];
player createDiaryRecord ["MyDiary",["Stats", "Headshots: <execute expression=player getVariable['headShots', 0]'</execute&gt]];
player createDiaryRecord ["MyDiary",["Stats", "Murders: <execute expression=player getVariable['humanKills', 0]'</execute&gt]];
player createDiaryRecord ["MyDiary",["Stats", "Bandits Killed: <execute expression=player getVariable['banditKills', 0]'</execute&gt]];
player createDiaryRecord ["MyDiary",["Stats", "Humanity: <execute expression=player getVariable['humanity', 0]'</execute&gt]];
*/

 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...