ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Adjacent

From ModEnc
Jump to navigation Jump to search
Tiberian Dawn The Covert Operations Red Alert Counterstrike Aftermath Tiberian Sun Firestorm HyperPatch Red Alert 2 Yuri's Revenge Ares Generals Zero Hour Tiberium Wars Kane's Wrath
Flag: Adjacent
File(s): rules(md).ini
Values: Unsigned integers: All non-negative whole numbers from 0 to either 32767, 2147483647 or 4294967295.
Default: 3
Applicable to: BuildingTypes


After constructing a building in-game you are only allowed to place it near your existing structures, up to a distance in cells as defined by Adjacent= away, provided the nearby building also has BaseNormal=yes set.

Adjacent=0 means the new building must be placed in contact with an existing building without gap.

Adjacent=1 means there can be at most a 1 cell gap between an existing building and the new building.

Notes

This effect only applies to Human players. For AI building placement, AIBaseSpacing is used instead of Adjacent.

Negative values will permanently disable placement.

Specifying too large a value, such as Adjacent=10000, will consume a significant amount of resources when the player is in placement mode, thereby reducing the game's frame rate.

References

Starting from Phobos Build#45, each building can set which buildings with BaseNormal=yes can or cannot participate in its own Adjacent calculation. Refer to Phobos documentation.

  • Starting from Phobos Build#49, this also allows specific buildings to hinder that building from being placed within a certain range around itself.

See Also