mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-18 22:22:57 +03:00
0.995
+ Increased raise horde range to 100m. + Fixed player zombie ability to attack and cause bleeding and infect. + Server side change to prevent some common duping issues. + Fixed parachute dropping vehicles without helipad as marker.
This commit is contained in:
@@ -5,25 +5,36 @@ _array = _this; //_this select 0;
|
||||
_unit = _array select 0;
|
||||
_medic = _array select 1;
|
||||
|
||||
if (_unit == player) then {
|
||||
if (local _unit && _unit == player) then {
|
||||
|
||||
// Make bleed
|
||||
r_player_injured = true;
|
||||
_unit setVariable ["USEC_injured",true,true];
|
||||
_unit setVariable["startcombattimer", 1, false];
|
||||
|
||||
//Ensure Control is visible for bleeding
|
||||
_display = uiNamespace getVariable 'DAYZ_GUI_display';
|
||||
_control = _display displayCtrl 1300;
|
||||
_control ctrlShow true;
|
||||
// Make bleed
|
||||
if (random 2 < 1) then {
|
||||
r_player_injured = true;
|
||||
player setVariable ["USEC_injured",true,true];
|
||||
|
||||
//Ensure Control is visible for bleeding
|
||||
_display = uiNamespace getVariable 'DAYZ_GUI_display';
|
||||
_control = _display displayCtrl 1300;
|
||||
_control ctrlShow true;
|
||||
};
|
||||
|
||||
// Make player infected
|
||||
// r_player_infected = true;
|
||||
// _unit setVariable["USEC_infected",true];
|
||||
if (random 5 < 1) then {
|
||||
r_player_infected = true;
|
||||
player setVariable["USEC_infected",true,true];
|
||||
};
|
||||
|
||||
};
|
||||
// Break legs
|
||||
if (random 25 < 1) then {
|
||||
// break legs
|
||||
};
|
||||
|
||||
// Knock out
|
||||
if (random 100 < 1) then {
|
||||
// perform knockout
|
||||
};
|
||||
|
||||
|
||||
if (isServer) then {
|
||||
_unit setVariable["medForceUpdate",true];
|
||||
player setVariable["medForceUpdate",true];
|
||||
};
|
||||
Reference in New Issue
Block a user