Jump to content
AmaZiinG

[Tutorial] Custom Death Messages

Recommended Posts

Autor: Scarso327

Warning!: The message will come but j dont know how to deactivate the standard arma 3 death messages

1. Open your stringtable.xml and add:

<Package name="NHS">
 <Key ID="STR_NHS_Died">
 <Original>%1 has died from there injuries.</Original>
 </Key>
 <Key ID="STR_NHS_Killed">
 <Original>%1 has been heavily wounded by %2!</Original>
 </Key>
 <Key ID="STR_NHS_Suicide">
 <Original>%1 has been heavily wounded!</Original>
 </Key>
 <Key ID="STR_NHS_PlayerRevived">
 <Original>%1 has been revived!</Original>
 </Key>
 </Package>

2. In fn_onPlayerKilled.sqf search and replace:

//Make the killer wanted
if(!isNull _killer && {_killer != _unit} && {side _killer != west} && {alive _killer}) then {
 if(vehicle _killer isKindOf "LandVehicle") then {
 [getPlayerUID _killer,_killer GVAR ["realname",name _killer],"187V"] remoteExecCall ["life_fnc_wantedAdd",RSERV];
 //Get rid of this if you don't want automatic vehicle license removal.
 if(!local _killer) then {
 [2] remoteExecCall ["life_fnc_removeLicenses",_killer];
 };
 } else {
 [getPlayerUID _killer,_killer GVAR ["realname",name _killer],"187"] remoteExecCall ["life_fnc_wantedAdd",RSERV];




 if(!local _killer) then {
 [3] remoteExecCall ["life_fnc_removeLicenses",_killer];
 };
 };
};

to

//Make the killer wanted
if(!isNull _killer && {_killer != _unit} && {side _killer != west} && {alive _killer}) then {
 if(vehicle _killer isKindOf "LandVehicle") then {
 if(life_HC_isActive) then {
 [getPlayerUID _killer,_killer GVAR ["realname",name _killer],"187V"] remoteExecCall ["HC_fnc_wantedAdd",HC_Life];
 } else {
 [getPlayerUID _killer,_killer GVAR ["realname",name _killer],"187V"] remoteExecCall ["life_fnc_wantedAdd",RSERV];
 };
 //Get rid of this if you don't want automatic vehicle license removal.
 if(!local _killer) then {
 [2] remoteExecCall ["life_fnc_removeLicenses",_killer];
 };
 } else {
 if(life_HC_isActive) then {
 [getPlayerUID _killer,_killer GVAR ["realname",name _killer],"187"] remoteExecCall ["HC_fnc_wantedAdd",HC_Life];
 } else {
 [getPlayerUID _killer,_killer GVAR ["realname",name _killer],"187"] remoteExecCall ["life_fnc_wantedAdd",RSERV];
 };




 if(!local _killer) then {
 [3] remoteExecCall ["life_fnc_removeLicenses",_killer];
 };
 };
 [0,"STR_NHS_Killed",true,[profileName,_killer GVAR ["realname",name _killer]]] remoteExecCall ["life_fnc_broadcast",RCLIENT];
} else {
 if(side _killer == west && playerSide != west) then {
 [0,"STR_NHS_Killed",true,[profileName,_killer GVAR ["realname",name _killer]]] remoteExecCall ["life_fnc_broadcast",RCLIENT];
 } else {
 [0,"STR_NHS_Suicide",true,[profileName]] remoteExecCall ["life_fnc_broadcast",RCLIENT];
 };
};

3. Now go in your fn_respawned.sqf and search

[] call SOCK_fnc_updateRequest;

and add above:

[0,"STR_NHS_Died",true,[profileName]] remoteExecCall ["life_fnc_broadcast",RCLIENT];

Image:

9Fx5tAZ.jpg.f7c4f34109ea85865454d8e62c357892.jpg

  • Like 2
Link to post
Share on other sites
7 hours ago, XtG Community said:

Not sure myself, but something useful for disabling default arma 3 killfeed.

 

			DeathMessages=1;	// (1.09 and later) Displays "XXX was killed by YYY" messages in multiplayer

I know this isn't relevant but... XTG why do you need to advertise an affiliate link? It's a bit obnoxious don't you think? 

Link to post
Share on other sites
12 hours ago, Maihym said:

Neat little script, thanks. By the way, you edit the server profile to disable the default death messages. You set the "DeathMessages" to 0 in your profile difficulty.

Wait server profile? O.o Do you mean the mission.sqm ? I tried looking to up and couldn't find anything on it.

Link to post
Share on other sites
2 hours ago, XtG Community said:

Wait server profile? O.o Do you mean the mission.sqm ? I tried looking to up and couldn't find anything on it.

Why would server profile be in the mission.sqm ? Your profiles goes to a folder where you have told it to go. So if you use TADST like most people it's in that folder. 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.