+ 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:
vbawol
2013-03-09 19:37:45 -06:00
parent a4ec727777
commit 15f0f615da
10 changed files with 50 additions and 28 deletions

View File

@@ -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];
};