mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-20 10:26:28 +03:00
0.961
+ Corrected conversion rate for silver to gold when selling bulk supply
crates.
+ Added sleep within spawn {} for fetching vehicle ID, should reduce db
spam.
+ Switched normal wire to fortrazor_wire and added as builtitems
+ Potential fix for wild spawning helicopters in forests.
+ Player zombies should now be able to break the legs of other players.
+ Purchased vehicles now spawn on the closestHeliHCivil within 200m.
This commit is contained in:
26
dayz_code/medical/publicEH/medBreakLegs.sqf
Normal file
26
dayz_code/medical/publicEH/medBreakLegs.sqf
Normal file
@@ -0,0 +1,26 @@
|
||||
// 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 (_unit == player) then {
|
||||
r_fracture_legs = true;
|
||||
r_fracture_arms = true;
|
||||
_unit setHit["legs",1];
|
||||
_unit setHit["hands",1];
|
||||
|
||||
//Ensure Control is visible
|
||||
_display = uiNamespace getVariable 'DAYZ_GUI_display';
|
||||
_control = _display displayCtrl 1203;
|
||||
_control ctrlShow true;
|
||||
|
||||
_id = true spawn dayz_disableRespawn;
|
||||
};
|
||||
_unit setVariable ["hit_legs",1,false];
|
||||
_unit setVariable ["hit_hands",1,false];
|
||||
|
||||
if (isServer) then {
|
||||
_unit setVariable["medForceUpdate",true];
|
||||
};
|
||||
Reference in New Issue
Block a user