Support a maximum building range (Fixes #2156).
This also implements support for a per-provider cooldown between placing structures, allowing mods with multiple structure queues to rate-limit placement around a single provider. An initial delay parameter is included to support units that deploy into a base provider and require an initial setup time (e.g. the Surveyor unit from C&C TW). The range and time restrictions are not applied to walls as a balance choice.
This commit is contained in:
@@ -232,6 +232,7 @@
|
||||
RepairPercent: 40
|
||||
RepairStep: 14
|
||||
Building:
|
||||
RequiresBaseProvider: true
|
||||
Dimensions: 1,1
|
||||
Footprint: x
|
||||
BuildSounds: constru2.aud, hvydoor1.aud
|
||||
|
||||
@@ -45,6 +45,8 @@ FACT:
|
||||
ReadyAudio: ConstructionComplete
|
||||
BaseBuilding:
|
||||
ProductionBar:
|
||||
BaseProvider:
|
||||
Cooldown: 200
|
||||
|
||||
NUKE:
|
||||
Inherits: ^Building
|
||||
|
||||
Reference in New Issue
Block a user