AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Set view (https://forums.alliedmods.net/showthread.php?t=225634)

ironskillz1 09-07-2013 06:23

Set view
 
Is it possible to set the view when you are ducking (pressing CTRL)

all the time?



I dont want to force CTRL i just want to set the view

kiki33hun 09-07-2013 07:05

Re: Set view
 
Try:

PHP Code:

public client_PreThink(id)
{
       if(
is_user_alive(id))
       {
                if(
pev(id,pev_button) & IN_DUCK)
        {
            
//Set your view while ducking
                 
}
                 else 
                 {
                      
//reset view to normal
                 
}
      }



ironskillz1 09-07-2013 07:22

Re: Set view
 
I didnt want 3rd person view.......


I want to set the view when you duck all the time




So if you stand up you got the view when you ducking


All times are GMT -4. The time now is 19:09.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.