mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Add comment about salvage vehicle work around
This commit is contained in:
@@ -36,7 +36,8 @@ _hitpoints = _vehicle call vehicle_getHitpoints;
|
|||||||
} forEach _hitpoints;
|
} forEach _hitpoints;
|
||||||
|
|
||||||
if (count _hitpoints > 0) then {
|
if (count _hitpoints > 0) then {
|
||||||
|
// Localized in A2OA\Expansion\dta\languagecore
|
||||||
_cancel = dayz_myCursorTarget addAction [localize "str_action_cancel_action", "\z\addons\dayz_code\actions\repair_cancel.sqf","repair", 0, true, false];
|
_cancel = dayz_myCursorTarget addAction [localize "str_action_cancel_action", "\z\addons\dayz_code\actions\repair_cancel.sqf","repair", 0, true, false];
|
||||||
s_player_repairActions set [count s_player_repairActions,_cancel];
|
s_player_repairActions set [count s_player_repairActions,_cancel];
|
||||||
s_player_repair_crtl = 1;
|
s_player_repair_crtl = 1;
|
||||||
};
|
};
|
||||||
@@ -47,7 +47,7 @@ if (_hasToolbox) then {
|
|||||||
//Remove melee magazines (BIS_fnc_invAdd fix)
|
//Remove melee magazines (BIS_fnc_invAdd fix)
|
||||||
{player removeMagazines _x} count MeleeMagazines;
|
{player removeMagazines _x} count MeleeMagazines;
|
||||||
_damage = [_vehicle,_hitpoint] call object_getHit;
|
_damage = [_vehicle,_hitpoint] call object_getHit;
|
||||||
if (_damage < 1 && {_damage > 0}) then {
|
if (_damage < 1 && {_damage > 0}) then { //Tempfix for issue where certain hitpoints on some vehicles do not get damaged and allow infinite removal
|
||||||
_BreakableParts = ["HitGlass1","HitGlass2","HitGlass3","HitGlass4","HitGlass5","HitGlass6","HitLGlass","HitRGlass","HitEngine","HitFuel","HitHRotor"];
|
_BreakableParts = ["HitGlass1","HitGlass2","HitGlass3","HitGlass4","HitGlass5","HitGlass6","HitLGlass","HitRGlass","HitEngine","HitFuel","HitHRotor"];
|
||||||
if (_hitpoint in _BreakableParts) then {
|
if (_hitpoint in _BreakableParts) then {
|
||||||
if ((random 1) < (_damage * 0.9)) then { //max 90% chance to break
|
if ((random 1) < (_damage * 0.9)) then { //max 90% chance to break
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ if (_is6WheelType) then {
|
|||||||
|
|
||||||
//get every damaged part no matter how tiny damage is!
|
//get every damaged part no matter how tiny damage is!
|
||||||
_damagePercent = str(round(_damage * 100))+"% Damage";
|
_damagePercent = str(round(_damage * 100))+"% Damage";
|
||||||
if (_damage < 1 && {_damage > 0}) then {
|
if (_damage < 1 && {_damage > 0}) then { //Tempfix for issue where certain hitpoints on some vehicles do not get damaged and allow infinite removal
|
||||||
if ((_damage >= 0) and (_damage <= 0.25)) then {_color = "color='#00ff00'";}; //green
|
if ((_damage >= 0) and (_damage <= 0.25)) then {_color = "color='#00ff00'";}; //green
|
||||||
if ((_damage >= 0.26) and (_damage <= 0.50)) then {_color = "color='#ffff00'";}; //yellow
|
if ((_damage >= 0.26) and (_damage <= 0.50)) then {_color = "color='#ffff00'";}; //yellow
|
||||||
if ((_damage >= 0.51) and (_damage <= 0.75)) then {_color = "color='#ff8800'";}; //orange
|
if ((_damage >= 0.51) and (_damage <= 0.75)) then {_color = "color='#ff8800'";}; //orange
|
||||||
@@ -69,7 +69,8 @@ if (_is6WheelType) then {
|
|||||||
} forEach _hitpoints;
|
} forEach _hitpoints;
|
||||||
|
|
||||||
if (count _hitpoints > 0 ) then {
|
if (count _hitpoints > 0 ) then {
|
||||||
|
// Localized in A2OA\Expansion\dta\languagecore
|
||||||
_cancel = dayz_myCursorTarget addAction [localize "str_action_cancel_action", "\z\addons\dayz_code\actions\repair_cancel.sqf","repair", 0, true, false];
|
_cancel = dayz_myCursorTarget addAction [localize "str_action_cancel_action", "\z\addons\dayz_code\actions\repair_cancel.sqf","repair", 0, true, false];
|
||||||
s_player_repairActions set [count s_player_repairActions,_cancel];
|
s_player_repairActions set [count s_player_repairActions,_cancel];
|
||||||
s_player_repair_crtl = 1;
|
s_player_repair_crtl = 1;
|
||||||
};
|
};
|
||||||
@@ -553,7 +553,7 @@ if (!isNull _cursorTarget && !_inVehicle && !_isPZombie && (player distance _cur
|
|||||||
if (s_player_repair_crtl < 0) then {
|
if (s_player_repair_crtl < 0) then {
|
||||||
dayz_myCursorTarget = _cursorTarget;
|
dayz_myCursorTarget = _cursorTarget;
|
||||||
_menu = dayz_myCursorTarget addAction [localize "str_actions_repairveh", "\z\addons\dayz_code\actions\repair_vehicle.sqf",_cursorTarget, 0, true, false];
|
_menu = dayz_myCursorTarget addAction [localize "str_actions_repairveh", "\z\addons\dayz_code\actions\repair_vehicle.sqf",_cursorTarget, 0, true, false];
|
||||||
if (!_isBicycle) then {
|
if (!_isBicycle) then { //Bike wheels should not give full size tires. Also model does not update to show removed wheels.
|
||||||
if (!DZE_salvageLocked) then {
|
if (!DZE_salvageLocked) then {
|
||||||
if (!locked _cursorTarget) then {
|
if (!locked _cursorTarget) then {
|
||||||
_menu1 = dayz_myCursorTarget addAction [localize "str_actions_salvageveh", "\z\addons\dayz_code\actions\salvage_vehicle.sqf",_cursorTarget, 0, true, false];
|
_menu1 = dayz_myCursorTarget addAction [localize "str_actions_salvageveh", "\z\addons\dayz_code\actions\salvage_vehicle.sqf",_cursorTarget, 0, true, false];
|
||||||
|
|||||||
Reference in New Issue
Block a user