Engine icon indicating copy to clipboard operation
Engine copied to clipboard

Feature: prop_static_override

Open TheEnderek0 opened this issue 3 years ago • 4 comments

Which component should be improved?

Entity

Describe your feature suggestion in more detail

Functions like any override prop entity.

Props uncompiled with $staticprop should be available to use in prop_static_override for static props.

Is there any reason it isn't in vanilla Portal 2 / any source branch.

TheEnderek0 avatar Jan 12 '22 15:01 TheEnderek0

There is a reason there's no override for static props. For efficiency, static prop rendering skips applying the animation's transform, meaning the prop will be put into the original geometry orientation. Depending on how the prop was authored, this might not even be one of the idle poses available normally and could be some broken pose, or something like a T-pose. $staticprop removes all the bones, meaning that there's no change. This shouldn't be changed since it'd decrease prop performance, so this override would only really work with certain props.

TeamSpen210 avatar Jan 13 '22 00:01 TeamSpen210

I suggested on Discord allowing any single-bone model to be used. It'd probably make sense to just change normal static props to behave this way, rather than adding a new entity. The "static" checkbox in the model browser would also be updated to match.

vrad-exe avatar Jan 13 '22 00:01 vrad-exe

As craftable brought up on Discord, it may be more beneficial and easier to make this a postcompiler entity, as that already decompiles the models.

Equalizer5118 avatar Mar 16 '24 00:03 Equalizer5118

That could be tricky - my code for QC parsing and whatnot isn't too robust, it works because I know it only needs to handle static prop stuff.

TeamSpen210 avatar Mar 16 '24 04:03 TeamSpen210