Jump to content

WallTower: Difference between revisions

From ModEnc²
m 2 revisions imported
Updated
 
Line 11: Line 11:
|yr=yes
|yr=yes
}}
}}
For Allied AI base building and targeting purposes this defines the structure to be used as a defensive structure which forms part of a wall and hence can be built within one. Must be a valid structure name from the [[BuildingTypes]] list and be defined as all structures are.
 
Specifies a special defensive [[BuildingTypes|building]] for GDI/Allies. Originally used for the GDI Component Tower in {{ts}}, an unarmed building that can be upgraded with a weapon. Unused in vanilla {{ra2}}/{{yr}}.
 
This flag has at least two functions:
# Connecting with walls. Like [[GDIGateOne|gates]], the wall tower can be placed directly on a [[wall]]. Any adjacent wall sections will also visibly connect to the tower.
# Whenever the [[AI]] builds a wall tower, it will look up its next [[base nodes|base node]] that has {{f|IsBaseDefense|yes|link}} and try and place that node on top of the tower. This node should be one of the upgrades that can be placed on the tower. If the AI finds such a node but fails to place it on the tower (because the node is not actually an upgrade for the tower), it will skip placing down the node altogether.

Latest revision as of 13:57, 16 June 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: WallTower
File(s): rules(md).ini
Values: Strings: Normal text. (Limited to: BuildingTypes)
Default: none
Applicable to: BuildingTypes


Specifies a special defensive building for GDI/Allies. Originally used for the GDI Component Tower in Tiberian Sun, an unarmed building that can be upgraded with a weapon. Unused in vanilla Red Alert 2/Yuri's Revenge.

This flag has at least two functions:

  1. Connecting with walls. Like gates, the wall tower can be placed directly on a wall. Any adjacent wall sections will also visibly connect to the tower.
  2. Whenever the AI builds a wall tower, it will look up its next base node that has IsBaseDefense=yes and try and place that node on top of the tower. This node should be one of the upgrades that can be placed on the tower. If the AI finds such a node but fails to place it on the tower (because the node is not actually an upgrade for the tower), it will skip placing down the node altogether.