CnCNet / WorldAlteringEditor

Map editor for C&C: Red Alert 2, C&C: Tiberian Sun and Dawn of the Tiberium Age.
Other
76 stars 25 forks source link

Allow specific tilesets to connect to specific LAT types in editor #146

Closed Starkku closed 6 months ago

Starkku commented 6 months ago

Allows LAT grounds to treat certain arbitrary tilesets as something that they can connect to (e.g not use transition tiles in between). Tileset indices can be listed for custom LAT grounds via GroundNConnectTo key and for the base 4 LAT types via keys (Rough/Sand/Pave/GreenConnectToTileSets) read from each theater in Theaters.ini. Latter is because these might be something that people want to change without touching the actual theater configuration INI game uses.

This is mostly something that can be used to fix sand & pavement LAT interactions in YR but I imagine it can potentially be used to great effect with the GroundN stuff elsewhere.

To apply the fixes for sand<->shores & pavement<->road & misc. pave tiles in YR config to match game's own behaviour with these tiles, set following for all theaters except LUNAR (and maybe URBAN although in this case it shouldn't have adverse effects either)

PaveConnectToTileSets=20,38,40
GreenConnectToTileSets=12