StrataSource / FGD

The FGD + Hammer resource files for games built on Strata Source.
20 stars 15 forks source link

Upstream's baseentity for engine dumps #30

Closed braem closed 3 years ago

braem commented 3 years ago

Closes https://github.com/ChaosInitiative/Chaos-FGD/issues/19 (after https://github.com/ChaosInitiative/Chaos-FGD/pull/29)

I originally thought this was the addition of base entity for normal builds (p2ce/momentum), but it is just for engine dumps (running the script with engine). Good to have if we do need that in the future, but for now does not change the P2CE/Momentum FGD builds at all.

This also adds some misc fixes from upstream that I missed and an oversight from https://github.com/ChaosInitiative/Chaos-FGD/pull/26 (didnt update all fadescale fields)

TeamSpen210 commented 3 years ago

The engine dump is used here and there, most notably right now for the auto-packing feature. A few comp_ entities consult it to know what a keyvalue is so it can automatically pick the right behaviour. Base entity is used as a fallback for all entities, both so I can then strip the redundant keys from other ents, and so the basic keys can still be understood on unknown ents.