mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Update private tags, remove one old file
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
private["_unit","_hp","_selection","_strH","_dam"];
|
private ["_unit","_hp","_selection","_dam"];
|
||||||
|
|
||||||
_unit = _this select 0;
|
_unit = _this select 0;
|
||||||
_hp = _this select 1;
|
_hp = _this select 1;
|
||||||
|
|
||||||
_selection = getText (configFile >> "CfgVehicles" >> (typeOf _unit) >> "HitPoints" >> _hp >> "name");
|
_selection = getText (configFile >> "CfgVehicles" >> (typeOf _unit) >> "HitPoints" >> _hp >> "name");
|
||||||
_dam = _unit getHit _selection;
|
_dam = _unit getHit _selection;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
private["_break","_ctrlFracture"];
|
private ["_unit","_break","_ctrlFracture","_selection","_damage","_strH","_dam","_total","_display"];
|
||||||
|
|
||||||
_unit = _this select 0;
|
_unit = _this select 0;
|
||||||
_selection = _this select 1;
|
_selection = _this select 1;
|
||||||
_damage = _this select 2;
|
_damage = _this select 2;
|
||||||
@@ -17,14 +18,14 @@ if (local _unit) then {
|
|||||||
_ctrlFracture = _display displayCtrl 1203;
|
_ctrlFracture = _display displayCtrl 1203;
|
||||||
|
|
||||||
if ((_selection == "legs") and !r_fracture_legs) then {
|
if ((_selection == "legs") and !r_fracture_legs) then {
|
||||||
_id = [] spawn { //do not touch this spawn!
|
[] spawn { //do not touch this spawn!
|
||||||
player setHit["legs",1];
|
player setHit["legs",1];
|
||||||
};
|
};
|
||||||
r_fracture_legs = true;
|
r_fracture_legs = true;
|
||||||
_break = true;
|
_break = true;
|
||||||
};
|
};
|
||||||
if ((_selection == "arms") and !r_fracture_arms) then {
|
if ((_selection == "arms") and !r_fracture_arms) then {
|
||||||
_id = [] spawn { // do not touch this spawn!
|
[] spawn { // do not touch this spawn!
|
||||||
player setHit["hands",1];
|
player setHit["hands",1];
|
||||||
};
|
};
|
||||||
r_fracture_arms = true;
|
r_fracture_arms = true;
|
||||||
@@ -35,4 +36,4 @@ if (local _unit) then {
|
|||||||
[player,"fracture",0,false] call dayz_zombieSpeak;
|
[player,"fracture",0,false] call dayz_zombieSpeak;
|
||||||
_ctrlFracture ctrlShow true;
|
_ctrlFracture ctrlShow true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
// this function name is "object_setHit", but it's used to set character limb damages back during a skin change (player_humanityMorph.sqf)
|
// this function name is "object_setHit", but it's used to set character limb damages back during a skin change (player_humanityMorph.sqf)
|
||||||
|
|
||||||
private ["_damage"];
|
private ["_unit","_damage","_selection","_strH","_dam"];
|
||||||
|
|
||||||
_unit = _this select 0;
|
_unit = _this select 0;
|
||||||
_selection = _this select 1;
|
_selection = _this select 1;
|
||||||
_damage = _this select 2;
|
_damage = _this select 2;
|
||||||
|
|||||||
@@ -1,16 +0,0 @@
|
|||||||
// private["_unit","_selection","_strH","_dam","_total"];
|
|
||||||
// _unit = _this select 0;
|
|
||||||
// _selection = _this select 1;
|
|
||||||
// _damage = _this select 2;
|
|
||||||
// if ((_selection != "")) then {
|
|
||||||
// _strH = "hit_" + (_selection);
|
|
||||||
// _dam = _unit getVariable [_strH,0];
|
|
||||||
// _total = (_dam + _damage);
|
|
||||||
// if (_total > 1) then {
|
|
||||||
// _total = 1;
|
|
||||||
// };
|
|
||||||
// _unit setVariable [_strH,_total];
|
|
||||||
// } else {
|
|
||||||
// _damage = 0;
|
|
||||||
// };
|
|
||||||
// _damage
|
|
||||||
@@ -734,7 +734,7 @@ fn_selectRandomLocation = compile preprocessFileLineNumbers "\z\addons\dayz_code
|
|||||||
fn_addCargo = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_addCargo.sqf";
|
fn_addCargo = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_addCargo.sqf";
|
||||||
fn_chance = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_selectRandomChance.sqf";
|
fn_chance = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_selectRandomChance.sqf";
|
||||||
fn_getModelName = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_getModelName.sqf";
|
fn_getModelName = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_getModelName.sqf";
|
||||||
fnc_Obj_FenceHandleDam = {};
|
fnc_Obj_FenceHandleDam = {}; //Needed for vanilla fences to prevent rpt errors
|
||||||
object_roadFlare = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\object_roadFlare.sqf";
|
object_roadFlare = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\object_roadFlare.sqf";
|
||||||
fn_shuffleArray = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_shuffleArray.sqf";
|
fn_shuffleArray = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_shuffleArray.sqf";
|
||||||
zombie_initialize = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\zombie_initialize.sqf";
|
zombie_initialize = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\zombie_initialize.sqf";
|
||||||
|
|||||||
Reference in New Issue
Block a user