Skip to content

Repair - Handle depends = "0"#5283

Merged
PabstMirror merged 2 commits intomasterfrom
repairDepends0
Jun 23, 2017
Merged

Repair - Handle depends = "0"#5283
PabstMirror merged 2 commits intomasterfrom
repairDepends0

Conversation

@PabstMirror
Copy link
Contributor

Close #5180
Depends can be "0" and still haven no effect

https://community.bistudio.com/wiki/Arma_3_Jets_Hitpoint_Configuration

depends - simple expressions for creating dependencies between hitpoints. Clearing 'depends' in case of inheritance cannot be an empty string (rpt warnings), but rather a "0" value. It can be used for more detailed damage model.

@PabstMirror PabstMirror added the kind/bug-fix Release Notes: **FIXED:** label Jun 16, 2017
@PabstMirror PabstMirror added this to the 3.11.0 milestone Jun 16, 2017
if (_hitpoint isEqualTo "") exitWith { TRACE_3("Hitpoint Empty",_hitpoint,_forEachIndex,_selection); };
//Depends hitpoints shouldn't be modified directly (will be normalized)
if (isText (configFile >> "CfgVehicles" >> _type >> "HitPoints" >> _hitpoint >> "depends")) exitWith {
// >Clearing 'depends' in case of inheritance cannot be an empty string (rpt warnings), but rather a "0" value.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stray >?

@PabstMirror PabstMirror merged commit f33ff4e into master Jun 23, 2017
@PabstMirror PabstMirror deleted the repairDepends0 branch June 23, 2017 03:58
@PabstMirror PabstMirror modified the milestones: 3.10.2, 3.11.0 Jul 8, 2017
jonpas pushed a commit that referenced this pull request Jul 10, 2017
* Repair - Handle depends = "0"

* quote
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug-fix Release Notes: **FIXED:**

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants