From bfe7bbebd8adba1b6f89a8116cdeb992c1f70289 Mon Sep 17 00:00:00 2001
From: Jonathan G Rennison Object properties
+
+
+ Property Value range Comment
+ use_land_ground 0 or 1
+ Sets whether to use the underlying ground as the object ground sprite, ignoring the ground sprite provided in the sprite layout.
+ When enabled, the ground sprite will be bare ground, grass, snow, desert, etc. as if it were a clear ground tile.
+ In edge foundation mode, the ground may be coast/shore when flooded.
+
+ edge_foundation_mode [mode0, mode1, mode2, mode3]
+ Enables edge foundation mode for the object.
+ This property is intended for objects which are positioned at the edge of a tile, and only require a level edge, not a completely level tile.
+ Foundations will only be added as required to get a suitable level edge.
+ The format is one mode value per view. If the object has fewer than 4 views then some of the values provided in the property will not be used, and may be 0.
+ All four values must be constants.
+ Each mode value should be one of:
+
+
+ combined with 0 or more flags using the | operator:
+
+ Value Meaning
+ DIAGDIR_NE North-east edge
+ DIAGDIR_SE South-east edge
+ DIAGDIR_SW South-west edge
+ DIAGDIR_NW North-west edge
+
+
+ Value Meaning
+ OBJECT_EF_FLAG_ADJUST_Z Change z-position for the building sprite to the height of the edge
+ OBJECT_EF_FLAG_FOUNDATION_LOWER If the height of the edge is lower than the maximum height of the tile, build a foundation
+ flood_resistant 0 or 1
+ Sets whether the object is flood resistant.
+ Flood resistance is always enabled for objects which can be built on water.
+ This property can be used to enable flood resistance without enabling the object to be built on water.
+ Replace new sprites
diff --git a/docs/newgrf-additions.html b/docs/newgrf-additions.html
index 8b98501bba..1c3ca13509 100644
--- a/docs/newgrf-additions.html
+++ b/docs/newgrf-additions.html
@@ -310,6 +310,7 @@
Type Number of sprites Comment
This is indicated by the feature name: action0_global_extra_station_names, version 1
+Note that Action 0 feature 0E is not supported (does nothing) in standard OpenTTD.
This implementation of feature 0E is not the same as that in TTDPatch.
@@ -364,6 +365,43 @@N.B. Realistic braking must be enabled for additional signal aspects to be used.
This is indicated by the feature name: action0_signals_extra_aspects, version 1
This property sets whether to use the underlying ground as the object ground sprite, ignoring the ground sprite provided in the sprite layout.
+ When enabled, the ground sprite will be bare ground, grass, snow, desert, etc. as if it were a clear ground tile.
+ In edge foundation mode, the ground may be coast/shore when flooded.
+ The property length is 1 byte. 0 is disabled (default). 1 is enabled.
This is indicated by the feature name: action0_object_use_land_ground, version 1
+This property enables edge foundation mode for the object.
+ This property is intended for objects which are positioned at the edge of a tile, and only require a level edge, not a completely level tile.
+ Foundations will only be added as required to get a suitable level edge.
+ The property length is 4 bytes, 1 byte per view. If the object has fewer than 4 views then some of the values provided in the property will not be used, and may be 0.
+ The format of each byte is:
+
Bit | Value | Meaning (for this view) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
0 - 1 |
+ Which tile edge to use: +
| |||||||||||
2 | 4 | Change z-position for the building sprite to the height of the edge | ||||||||||
3 | 8 | If the height of the edge is lower than the maximum height of the tile, build a foundation |
This is indicated by the feature name: action0_object_edge_foundation_mode, version 1
+This property sets whether the object is flood resistant.
+ Flood resistance is always enabled for objects which can be built on water.
+ This property can be used to enable flood resistance without enabling the object to be built on water.
+ The property length is 1 byte. 0 is disabled (default). 1 is enabled.
This is indicated by the feature name: action0_object_flood_resistant, version 1
+