Fixed rotation on beam sprites?
Fixed rotation on beam sprites?
I'm trying to draw beams so that the texture always faces up rather than the default billboard rotation but I'm not sure where to start, or if it's possible. I'm hoping somebody here might know
Re: Fixed rotation on beam sprites?
You need a specific VMT/SPR-file with "$spriteorientation" shader.
https://developer.valvesoftware.com/wiki/Sprite#.22.24spriteorientation.22_parameters_for_.vmt
As you can see, "default billboard location" is
You need
https://developer.valvesoftware.com/wiki/Sprite#.22.24spriteorientation.22_parameters_for_.vmt
As you can see, "default billboard location" is
Code: Select all
"$spriteorientation" "vp_parallel" // Always faces the player (all angles are changing)
You need
Code: Select all
"$spriteorientation" "parallel_upright" // Faces the player, but keeps upright (one angle is unchanged)

My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam
Hail, Companion. [...] Hands to yourself, sneak thief.

Re: Fixed rotation on beam sprites?
I'll give it a shot, thanks!
Return to “Plugin Development Support”
Who is online
Users browsing this forum: No registered users and 93 guests