Remove unused parameter in PVDZ_hlt_Bleed

Vanilla commit:

83bf13c786
This commit is contained in:
ebayShopper
2017-12-17 12:44:03 -05:00
parent 7668152118
commit cfc6ad08af
6 changed files with 12 additions and 13 deletions

View File

@@ -172,7 +172,7 @@ if (_unit == player) then {
_sourceDist = round(_unit distance _source);
_sourceWeap = switch (true) do {
case (_ammo in ["PipeBomb","Mine","MineE"]): { format["with %1",_ammo] };
case (_isVehicle) : { format ["with %1",getText(configFile >> "CfgVehicles" >> _sourceVehicleType >> "displayName")] };
case (_isVehicle) : { format ["with %1",_sourceVehicleType] };
case (_ammo in MeleeAmmo) : { format ["with %2%1",_wpst select 0, if (_sourceDist>6) then {"suspicious weapon "} else {""}] };
case (_wpst select 0 == "Throw") : { format ["with %1 thrown", _wpst select 3] };
case (["Horn",currentWeapon _source] call fnc_inString) : { format ["with %1 suspicious", currentWeapon _source]};
@@ -301,10 +301,10 @@ if (_damage > 0.4) then {
//Create Wound
_unit setVariable["hit_"+_wound,true,true];
PVDZ_hlt_Bleed = [_unit,_wound,_damage];
PVDZ_hlt_Bleed = [_unit,_wound];
publicVariable "PVDZ_hlt_Bleed"; // draw blood stream on character, on all gameclients
[_unit,_wound,_hit] spawn fnc_usec_damageBleed; // draw blood stream on character, locally
[_unit,_wound] spawn fnc_usec_damageBleed; // draw blood stream on character, locally
//Set Injured if not already
_isInjured = _unit getVariable["USEC_injured",false];
@@ -343,9 +343,9 @@ if (_damage > 0.4) then {
//Create Wound
_unit setVariable["hit_"+_wound,true,true];
PVDZ_hlt_Bleed = [_unit,_wound,_damage];
PVDZ_hlt_Bleed = [_unit,_wound];
publicVariable "PVDZ_hlt_Bleed"; // draw blood stream on character, on all gameclients
[_unit,_wound,_hit] spawn fnc_usec_damageBleed; // draw blood stream on character, locally
[_unit,_wound] spawn fnc_usec_damageBleed; // draw blood stream on character, locally
//Set Injured if not already
_isInjured = _unit getVariable["USEC_injured",false];
if (!_isInjured) then {

View File

@@ -62,7 +62,7 @@ if (count _medical > 0) then {
{
//diag_log format ["loop _x:1 wound:%2",_x, (USEC_typeOfWounds select _forEachIndex)];
player setVariable ["hit_"+_x,true,true];
PVDZ_hlt_Bleed = [player, _x, 1];
PVDZ_hlt_Bleed = [player, _x];
publicVariable "PVDZ_hlt_Bleed";
} forEach (_medical select 8);

View File

@@ -39,7 +39,7 @@ if (_unit == player) then {
};
//Log to server RPT (could give false pos) - should help admins see who is trying to abuse this.
PVDZ_sec_atp = format["WARNING: Play3r %1 exited %2 close to built fence as %3",_unit, (typeof _vehicle), _position];
PVDZ_sec_atp = format["WARNING: Play3r UID#%1 exited %2 close to built fence as %3",(getPlayerUID _unit), (typeOf _vehicle), _position];
publicVariableServer "PVDZ_sec_atp";
localize "str_actions_exitBlocked" call dayz_rollingMessages;