Terrain Lib

If you liked this item, please rate it up on Steam Workshop page.

Author: Seb

Last revision: 30 May, 2024 at 21:50 UTC (2)

File size: 93.26 KB

On Steam Workshop

Description:
Terrain Library

Use this mod as a terrain editor in Zeus

This provides some useful functions which makes working with terrain much nicer by allowing you to use triggers, markers, and function-based areas to modify terrain as an area, with a ton of parameters.

It also fixes a problem of network optimisation in multiplayer when it comes to changing terrain heights. By default, when you modify group of terrain points, unless the exact same group has been updated before then all points will be sent over the network. This means that you might be sending the same group of terrain points over the network tens of times to JIPs – terrible for server performance. This mod uses an automatic chunking system to fix that, but only when using TerrainLib functions.

Additionally, vehicle velocities are set to 0 when modifying object heights. This fixes that as best as possible when using area commands.

FEATURES:

– Easy, area-based terrain modification with lots of customisation parameters
– Automatic network optimisation for multiplayer (only when using TerrainLib commands)
– Fix vehicle velocity being set to 0 when changing object heights (area-based commands only)
– Increase compatibility between mods that depend on this mod
– CBA event system for hooking into setTerrainHeight events

How to use

Converting your existing code to make use of network optimisation and CBA events is a single line change:

// Your existing code: setTerrainHeight [_positionAndAltitudeArray, _adjustObjects]; // Your new code: [_positionAndAltitudeArray, _adjustObjects] call TerrainLib_fnc_setTerrainHeight;

Compatability

Generally speaking, will be compatible with other mods with minor issues
Deformer:
Don’t use TerrainLib code until after the mission is in progress.
This ensures Deformer has already done its thing and the two won’t overlap.
TerrainLib’s restore terrain height commands will only restore to the original deformer modifications
Various crater mods
TerrainLib’s restore terrain height commands will not be able to restore craters unless they were created using TerrainLib.

Code & Licensing
Please submit bug reports or feature requests to this projects GitHub[github.com]
Licensed Under GPLv2
Please do not bundle TerrainLib or its funtions with your addon, make this mod a dependency.
The mod functionality relies on having a single mod (this one) handling all terrain modificaiton

Looking for an Arma community? Check CNTO out:

https://www.carpenoctem.co/

https://www.youtube.com/watch?v=QE8tMdhDYjI

Download
Required items:

Click the title to search on this site.


CBA_A3Steam Workshop
Revisions:

Old revisions of this mod are available below. Click the link to download.