Team Spartan Cookies & Milk Forums
Calcview roll - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Starfall (https://teamscm.co.uk/forum-7.html)
+--- Thread: Calcview roll (/thread-3594.html)



Calcview roll - 57e11a - 18-01-2021

(Sorry about making several threads recently, I should chill out ?)

From what I can tell, the calcview hook does not support roll, as I sometimes want to use all three degrees of freedom, it would be nice if I could also control roll with the calcview hook or some other method, just anything to allow me to use and control camera roll.


RE: Calcview roll - Person8880 - 19-01-2021

It does support roll (it's the same hook used by everything that modifies the camera). For example, the following code will make your camera spin when you link:

local View = {
angles = Angle()
}

hook( "calcview", "bleh", function( Ply, Origin, Angles, FOV )
View.angles:Set( Angles )
View.angles.r = ( time.sysTime() * 360 ) % 360
return View
end )