TeamSpen210 / HammerAddons

Useful tweaks and content for Source Engine Games
123 stars 36 forks source link

Adding outputs through the keyvalues on comp_kv_setter does not work #163

Open vrad-exe opened 2 years ago

vrad-exe commented 2 years ago

To workaround !special targetnames still recieving instance fixups in P1, I attempted to add the outputs through a comp_kv_setter, using the keyvalues so the fixups aren't applied (since outputs are stored as part of the keyvalues internally). image However, this resulted in only a single OnStartTouch output being added with an empty value, then the three intended outputs were added with an output name of kv_value_global (the name of the Value - String keyvalue on comp_kv_setter itself): image (The second OnStartTouch output was present originally on the entity)

TeamSpen210 commented 2 years ago

Hmm, this isn't really something I intended you to be able to do :). Though in the BSP they are the same, in srctools they're treated like in VMFs, being distinct kinds of values. I probably will want to add a specific ent for this purpose perhaps, but also make this not produce that nonsensical result.