Vinifera-Developers / Vinifera

Vinifera is a C&C: Tiberian Sun engine extension implementing new logics and fixing bugs.
GNU General Public License v3.0
44 stars 10 forks source link

[New Feature] Custom Building Foundations #104

Open Crimsonum opened 3 years ago

Crimsonum commented 3 years ago

Description:

Building foundations (Foundation=) are limited to a hardcoded list of possible shapes and sizes. It would greatly benefit modders to have more foundation options.

For reference, Ares allows fully customizable building foundations.

Possible Implementation:

Allow modders to define custom foundations for buildings in art.ini. See Ares' system for reference. However, unlike Ares, I would make the system based on named foundation types, i.e. Foundation=<foundation_name>, so different building types can share the same custom foundation. These foundations could be defined elsewhere in art.ini, like infantry animation sequences are.

CCHyper commented 3 years ago

I agree that a named system would be best for defining new size types. For example;

ART.INI

[Foundations]
0=4x9

[Foundation_4x9]
Width=4
Height=9
OccupyCell1=0,0
OverlapCell1=-1,-1
etc...

[GACNST]
Foundation=4x9