StrataSource / Engine

Issue tracker for Strata Source
47 stars 2 forks source link

Change axis spawnflags to keyvalues in func_door_rotating and func_rotating #1219

Open Nuclear-Adakam opened 4 years ago

Nuclear-Adakam commented 4 years ago

Make the rotation axis a keyvalue rather than a spawnflag, this would allow for the axis to be changed with a func_instance_parms making instances that use these entities less of a nightmare.

vrad-exe commented 4 years ago

Not saying this shouldn't be implemented, but with TeamSpen's addons you can use a comp_kv_setter to set spawnflags based on an instance parm.

Nuclear-Adakam commented 4 years ago

Not saying this shouldn't be implemented, but with TeamSpen's addons you can use a comp_kv_setter to set spawnflags based on an instance parm.

Ah, wasn't aware and will use that, thank you!

StefanH-AT commented 4 years ago

I think I'd rather just add SetAxisX, SetAxisY and SetAxisZ inputs instead of removing already existing spawnflags

vrad-exe commented 1 year ago

Should probably just add a "rotation axis" keyvalue which takes an angle and is used as the axis to rotate around. It would default to straight up (rotating around Z) and if either of the old flags were set they would override this.