Angles different when using env_sprite instead of cycler Created 2 weeks ago2020-07-23 20:06:38 UTC by Terrum Terrum

Created 2 weeks ago2020-07-23 20:06:38 UTC by Terrum Terrum

Posted 2 weeks ago2020-07-23 20:06:38 UTC Post #344565
Hi all, getting back into mapping after many, many years (mostly because I have time now due to a certain current pandemic!) Turns out I've been registered here since 2007 - wowser! :D

Anywho, I'm trying to set the Pitch Yaw Roll (Y Z X) on some env_sprites that I'm using with MDL files. I would be using cycler but I'd rather not have the models usable or solid (env_sprite makes the models non-solid and non-usable).

However it appears the angles used for Pitch Yaw Roll (Y Z X) on env_sprite are different to the angles used on cycler, as if I want to do a simple 90 degree turn in X, it works fine in cycler, but using the same in env_sprite puts it at some other wacky angle.

I've been trying to experiment with this for hours to figure which variant of angles make a simple 90 degree turn, but to no avail. Has anyone managed to crack this down? Any help is greatly appreciated! :)
Terrum TerrumCustom title ninja
Posted 2 weeks ago2020-07-23 21:30:08 UTC Post #344566
Make every angle 0.1. env_sprite has weird rotation logic when it spawns.
So if you want to set pitch to 90°, you should set yaw and roll to 0.1° each, e.g. 90 0.1 0.1 in the properties.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 2 weeks ago2020-07-23 21:38:07 UTC Post #344567
That's fantastic, thank you so much! Works a treat :)
Terrum TerrumCustom title ninja
Posted 2 weeks ago2020-07-23 21:40:34 UTC Post #344568
Cycler_sprite works like a cycler but is nonsolid.
Rimrook RimrookGoldsource Guru
You must be logged in to post a response.