Skip to content

Advanced Ballistics - Take object size and trees into account for terrain roughness#10697

Merged
LinkIsGrim merged 2 commits intomasterfrom
smoother-roughness
Feb 5, 2025
Merged

Advanced Ballistics - Take object size and trees into account for terrain roughness#10697
LinkIsGrim merged 2 commits intomasterfrom
smoother-roughness

Conversation

@BaerMitUmlaut
Copy link
Member

When merged this pull request will:
Refactor terrain roughness to:

  • Ignore small buildings (height < 30 cm or volume < 10 m³)
  • Take trees into account

Did not touch the extension, should work as before.

Results were compared with this table, not perfect but definitely better than before:
grafik
Source

@BaerMitUmlaut BaerMitUmlaut added the kind/enhancement Release Notes: **IMPROVED:** label Jan 29, 2025
private _volume = (_bb#1#0 - _bb#0#0) * (_bb#1#1 - _bb#0#1) * _height;

(_height > 0.3) && {_volume > 10}
} count (_windSource nearObjects ["Building", 50]);
Copy link
Contributor

Choose a reason for hiding this comment

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

help[L-S13]: Undefined Var - _windSource
   ┌─ addons/advanced_ballistics/functions/fnc_initializeTerrainExtension.sqf:69:18
   │
69 │         } count (_windSource nearObjects ["Building", 50]);
   │                  ^^^^^^^^^^^

Copy link
Member

@LinkIsGrim LinkIsGrim left a comment

Choose a reason for hiding this comment

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

LGTM but have to figure out the undefined var

@LinkIsGrim LinkIsGrim added this to the 3.19.1 milestone Feb 3, 2025
@LinkIsGrim
Copy link
Member

Hopefully this doesn't blow up

@LinkIsGrim LinkIsGrim merged commit 03d3b80 into master Feb 5, 2025
3 checks passed
@LinkIsGrim LinkIsGrim deleted the smoother-roughness branch February 5, 2025 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/enhancement Release Notes: **IMPROVED:**

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants