StrataSource / FGD

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

Better clarify, fix the generation of, and ensure every entity has visgroups & remove use of "autovis" #25

Closed braem closed 3 years ago

braem commented 3 years ago

Based on parent https://github.com/ChaosInitiative/Chaos-FGD/pull/24 Tackles apart of https://github.com/ChaosInitiative/Chaos-FGD/issues/19

This PR clarifies the visgroups better in that not every entity has it's own visgroup, similar to teamspen's changes (see first commit). Going further, it ensures each entity has a visgroup, avoiding the "entities without visgroups" spew during generation.

Also I found a bug in generating visgroups. There is a space+tab instead of pure tabs in a few lines: image Because the parser only strips tabs, this breaks visgroup generation. This is present on upstream as well, so I will PR that change there too.

Lastly, visgroups.cfg and autovis on entities do the same thing, so I consolidated all visgrouping to visgroups.cfg.