mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Add back 1051 handling of RepairParts not listed in config
This commit is contained in:
@@ -18,7 +18,6 @@
|
|||||||
[FIXED] Undefined variable dayz_clientPreload error on main menu during intro.sqs. #1810 @ndavalos @ebayShopper
|
[FIXED] Undefined variable dayz_clientPreload error on main menu during intro.sqs. #1810 @ndavalos @ebayShopper
|
||||||
[FIXED] Giving pain killers to another player no longer removes pain from the player giving the pain killers.
|
[FIXED] Giving pain killers to another player no longer removes pain from the player giving the pain killers.
|
||||||
[FIXED] Occasional undefined error for text color attribute when repairing and salvaging vehicles. @ebayShopper
|
[FIXED] Occasional undefined error for text color attribute when repairing and salvaging vehicles. @ebayShopper
|
||||||
[FIXED] Unable to repair or salvage tank tracks with scrap metal. #1828 @ndavalos
|
|
||||||
[FIXED] M24 ammo prices are now 1/4 of DMR ammo prices, so no profit can be made by combining M24 rounds. @looter809 @ebayShopper
|
[FIXED] M24 ammo prices are now 1/4 of DMR ammo prices, so no profit can be made by combining M24 rounds. @looter809 @ebayShopper
|
||||||
[FIXED] Full cinderblock walls now work properly with vector building #1813. @DeVloek @icomrade
|
[FIXED] Full cinderblock walls now work properly with vector building #1813. @DeVloek @icomrade
|
||||||
[FIXED] Death message showing incorrectly when players suicide under certain conditions. @oiad @ebayShopper
|
[FIXED] Death message showing incorrectly when players suicide under certain conditions. @oiad @ebayShopper
|
||||||
@@ -50,7 +49,7 @@
|
|||||||
[FIXED] RU crates having zero cargo capacity and wrong classname DZ_ExplosivesBoxRU in loot table. #1852 @oiad
|
[FIXED] RU crates having zero cargo capacity and wrong classname DZ_ExplosivesBoxRU in loot table. #1852 @oiad
|
||||||
[FIXED] Combining M24 or 2Rnd shotgun ammo can no longer be abused to dupe mags via the method described in #1848. @DeVloek
|
[FIXED] Combining M24 or 2Rnd shotgun ammo can no longer be abused to dupe mags via the method described in #1848. @DeVloek
|
||||||
[FIXED] Rapid starvation or dehydration when using chainsaw, chopping wood or pushing plane.
|
[FIXED] Rapid starvation or dehydration when using chainsaw, chopping wood or pushing plane.
|
||||||
[FIXED] Both Merlin_HC3's can now be repaired properly by manually fixing the glass. #1856 @schwanzkopfhegel @oiad
|
[FIXED] Unable to repair or salvage vehicle parts not listed in the RepairParts config, like Merlin glass and tank tracks. #1828 #1856 @ndavalos @schwanzkopfhegel @oiad
|
||||||
|
|
||||||
[NOTE] The fixes below are included in the 1.0.6 Build C server package released December 29th, 2016 (http://dayzepoch.com/a2dayzepoch.php)
|
[NOTE] The fixes below are included in the 1.0.6 Build C server package released December 29th, 2016 (http://dayzepoch.com/a2dayzepoch.php)
|
||||||
[FIXED] Hive child 309 errors that resulted in broken saving of newly built storage object inventory. @icomrade
|
[FIXED] Hive child 309 errors that resulted in broken saving of newly built storage object inventory. @icomrade
|
||||||
|
|||||||
@@ -126,4 +126,10 @@ class RepairParts : AllVehicles
|
|||||||
class HitHull {
|
class HitHull {
|
||||||
part = "PartGeneric";
|
part = "PartGeneric";
|
||||||
};
|
};
|
||||||
|
class HitLTrack {
|
||||||
|
part = "PartGeneric";
|
||||||
|
};
|
||||||
|
class HitRTrack {
|
||||||
|
part = "PartGeneric";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
private ["_part","_cancel","_color","_string","_handle","_damage","_cmpt","_vehicle","_hitpoints","_damagePercent","_configVeh"];
|
private ["_part","_cancel","_color","_string","_handle","_damage","_cmpt","_vehicle","_hitpoints","_damagePercent","_configVeh","_hitpoint"];
|
||||||
|
|
||||||
_vehicle = _this select 3;
|
_vehicle = _this select 3;
|
||||||
{dayz_myCursorTarget removeAction _x} count s_player_repairActions;s_player_repairActions = [];
|
{dayz_myCursorTarget removeAction _x} count s_player_repairActions;s_player_repairActions = [];
|
||||||
@@ -7,6 +7,7 @@ dayz_myCursorTarget = _vehicle;
|
|||||||
_hitpoints = _vehicle call vehicle_getHitpoints;
|
_hitpoints = _vehicle call vehicle_getHitpoints;
|
||||||
|
|
||||||
{
|
{
|
||||||
|
_hitpoint = _x;
|
||||||
_damage = [_vehicle,_x] call object_getHit;
|
_damage = [_vehicle,_x] call object_getHit;
|
||||||
|
|
||||||
_cmpt = toArray (_x);
|
_cmpt = toArray (_x);
|
||||||
@@ -17,7 +18,16 @@ _hitpoints = _vehicle call vehicle_getHitpoints;
|
|||||||
|
|
||||||
_configVeh = configFile >> "cfgVehicles" >> "RepairParts" >> _x;
|
_configVeh = configFile >> "cfgVehicles" >> "RepairParts" >> _x;
|
||||||
_part = getText(_configVeh >> "part");
|
_part = getText(_configVeh >> "part");
|
||||||
if (_part == "") then { _part = "PartGeneric"; };
|
if (_part == "") then {
|
||||||
|
_part = "PartGeneric";
|
||||||
|
// Handle parts not listed in RepairParts config.
|
||||||
|
// Additional vehicle addons may be loaded with non-standard hitpoint names.
|
||||||
|
{
|
||||||
|
if ([(_x select 0),_hitpoint] call fnc_inString) then {
|
||||||
|
_part = format["Part%1",(_x select 1)];
|
||||||
|
};
|
||||||
|
} forEach [["Engine","Engine"],["HRotor","VRotor"],["Fuel","Fueltank"],["Wheel","Wheel"],["Glass","Glass"]];
|
||||||
|
};
|
||||||
|
|
||||||
// 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";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
private ["_part","_color","_vehicle","_PlayerNear","_hitpoints","_isATV","_is6WheelType","_HasNoGlassKind",
|
private ["_part","_color","_vehicle","_PlayerNear","_hitpoints","_isATV","_is6WheelType","_HasNoGlassKind","_hitpoint",
|
||||||
"_6WheelTypeArray","_NoGlassArray","_NoExtraWheelsArray","_RemovedPartsArray","_damage","_cmpt","_configVeh","_damagePercent","_string","_handle","_cancel","_type"];
|
"_6WheelTypeArray","_NoGlassArray","_NoExtraWheelsArray","_RemovedPartsArray","_damage","_cmpt","_configVeh","_damagePercent","_string","_handle","_cancel","_type"];
|
||||||
|
|
||||||
_vehicle = _this select 3;
|
_vehicle = _this select 3;
|
||||||
@@ -40,6 +40,7 @@ if (_is6WheelType) then {
|
|||||||
};
|
};
|
||||||
|
|
||||||
{
|
{
|
||||||
|
_hitpoint = _x;
|
||||||
_damage = [_vehicle,_x] call object_getHit;
|
_damage = [_vehicle,_x] call object_getHit;
|
||||||
|
|
||||||
if !(_x in _RemovedPartsArray) then {
|
if !(_x in _RemovedPartsArray) then {
|
||||||
@@ -52,7 +53,16 @@ if (_is6WheelType) then {
|
|||||||
|
|
||||||
_configVeh = configFile >> "cfgVehicles" >> "RepairParts" >> _x;
|
_configVeh = configFile >> "cfgVehicles" >> "RepairParts" >> _x;
|
||||||
_part = getText(_configVeh >> "part");
|
_part = getText(_configVeh >> "part");
|
||||||
if (_part == "") then { _part = "PartGeneric"; };
|
if (_part == "") then {
|
||||||
|
_part = "PartGeneric";
|
||||||
|
// Handle parts not listed in RepairParts config.
|
||||||
|
// Additional vehicle addons may be loaded with non-standard hitpoint names.
|
||||||
|
{
|
||||||
|
if ([(_x select 0),_hitpoint] call fnc_inString) then {
|
||||||
|
_part = format["Part%1",(_x select 1)];
|
||||||
|
};
|
||||||
|
} forEach [["Engine","Engine"],["HRotor","VRotor"],["Fuel","Fueltank"],["Wheel","Wheel"],["Glass","Glass"]];
|
||||||
|
};
|
||||||
|
|
||||||
//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";
|
||||||
|
|||||||
Reference in New Issue
Block a user