mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-17 05:32:57 +03:00
+ 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.
40 lines
907 B
Plaintext
40 lines
907 B
Plaintext
// medBreakLegs.sqf
|
|
private["_array","_unit","_medic","_display","_control","_hitLegs","_hitArms"];
|
|
disableserialization;
|
|
_array = _this; //_this select 0;
|
|
_unit = _array select 0;
|
|
_medic = _array select 1;
|
|
|
|
if (local _unit && _unit == player) then {
|
|
|
|
_unit setVariable["startcombattimer", 1, false];
|
|
|
|
// 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
|
|
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
|
|
};
|
|
|
|
player setVariable["medForceUpdate",true];
|
|
}; |