StrataSource / FGD

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

Fix effect brushes #120

Closed braem closed 2 years ago

braem commented 2 years ago

Closes https://github.com/momentum-mod/game/issues/1789

This fixes bugs with brush-based effect entities having their effects appear at the origin of the map. These entities use the collision bounds of the brush, assuming it is in world space. However, including the origin KV on a brush causes the model bounds to be defined in local space. Using local space info as if it was worldspace ended up in the code spawning effects at the origin of the map.

Fixed by creating a base that covers what these entities were doing in older FGDs where they actually worked (which omits origin KV).


TLDR: origin KV on these ents breaks them so make sure it is removed. Older FGDs & thus maps dont have the KV so they work fine.