Introduction
[hr]
This mod introduces platforms, raised structures that allow colonists and turrets to fire (and be fired at) over walls.
-- --
How It Works
[hr]
Built platforms update a map component that tracks the elevation of each cell, with the assumption that 1 story is equivalent to the fill percentage of an impassable wall (e.g. 1). If either the target or origin cell have an elevation above zero, a patch replaces the game's native LoS calculation with one that checks whether a line between the the origin level and end level is uninterrupted by vertical obstructions.
[post-caching update]
Periodically (configurable in settings), the height-tracking map component will populate itself with FillColumns: records of which heights are filled by terrain, edifices, and roofs, as follows:[list]
[*] Terrain - between height -20 and terrain height base (altered by platforms) is filled.
[*] Edifices - between terrain height base and edifice fillPercent (0-1) is filled.
[*] Roofs - between terrain height base + 1 and terrain height base + [roof/thickroof height, configurable] is filled.
[/list]
Disclaimer - Bugs
[hr]
Take care when using this mod: it's a finicky system and there seem to have been some serious issues in some versions. The following have been reported:[list]
[*] Projectiles unable to hit intended targets
[*] Line of sight calculations being buggy (make sure to check mod settings!)
[*] Platform levels resetting on load / after gravship launch (should be fixed!)
[/list]
If you spot any bugs or performance issues, let me know!
You can get the most up-to-date version from [url=https://steamcommunity.com/linkfilter/?u=https%3A%2F%2Fgithub.com%2Fdandelion25%2FRaised-Platforms]github[/url][github.com].
Content
[hr]
Buildings
[list]
[*] [b]Huge platform[/b] - a 5x5 platform of maximum height 5.
[*] [b]Large platform[/b] - a 4x4 platform of maximum height 5.
[*] [b]Medium platform[/b] - a 3x3 platform of maximum height 5.
[*] [b]Small platform[/b] - a 2x2 platform of maximum height 5.
[*] [b]Tiny platform[/b] - a 1x1 platform of maximum height 5.
[/list]