viewpunch

Grab your favourite IDE and tinker with the innards of game engines

viewpunch

Postby TechieUK on Thu Jan 09, 2014 8:29 pm

got this code
Code: Select all
   if ( pOwner->m_nButtons & IN_FORWARD )     
   {
      QAngle viewPunch;

         viewPunch.x = 3.0f;
         viewPunch.y = 0.0f;
         viewPunch.z = 0.0f;

         //Add it to the view punch
         ViewPunch( viewPunch );
   }

and variations of it to move the view based on movement direction.

Player's view resets. Every frame or so it slaps between rotated to the max distance and rotated to the normal view.
I want the view to rotate smoothly (not snap) to the position and then smoothly come back when you release the key.
Also know as WILLAM; TechieUK is my old name. If you see WILLAM on Steam or ModDB, it's me.
User avatar
TechieUK
Regular
Regular
 
Joined: Sat Apr 13, 2013 4:29 pm

Re: viewpunch

Postby TechieUK on Sun Jan 12, 2014 6:00 pm

never mind fixed it.
Also know as WILLAM; TechieUK is my old name. If you see WILLAM on Steam or ModDB, it's me.
User avatar
TechieUK
Regular
Regular
 
Joined: Sat Apr 13, 2013 4:29 pm

Return to Programming

Who is online

Users browsing this forum: No registered users

cron