StrataSource / Engine

Issue tracker for Strata Source
47 stars 2 forks source link

Hammer: Allow targeting entities in instances #899

Open vrad-exe opened 1 year ago

vrad-exe commented 1 year ago

Which component should be improved?

Hammer

Describe your feature suggestion in more detail

Hammer should be aware of individual entities within instances, allowing them to be properly targeted by outputs and keyvalues, and not show as invalid. The entities within instances in the map should be added to the list of targetable entities based on the configured fixup settings for each func_instance:

(All of this is basically the same as what VBSP does, but I'm just putting it here for easy reference)

Names of instance entities targeted this way would appear light blue, a behavior which already somewhat exists in Hammer but seems unfinished - it doesn't account for instance fixups, the entity names still won't auto-complete, and are still considered invalid by Check for Problems. These issues should all be fixed.

vrad-exe commented 6 months ago

Thinking about this a bit more, I'm not sure if the first 3 points here really make sense to do by default, though it would still be nice to have as an advanced option you can turn on. Entities starting with @ should still show up though because those are usually intended to be targeted from outside the instance.