AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [ H3LP ] Block rotating ? (https://forums.alliedmods.net/showthread.php?t=296419)

CrazY. 04-20-2017 12:12

[ H3LP ] Block rotating ?
 
Hey, how to block the player model rotating when the mouse move ?

OciXCrom 04-20-2017 13:28

Re: [ H3LP ] Block rotating ?
 
Search - https://forums.alliedmods.net/showthread.php?t=258006

CrazY. 04-20-2017 14:59

Re: [ H3LP ] Block rotating ?
 
Sorry, my mistake. I will test.

PRoSToTeM@ 04-20-2017 16:55

Re: [ H3LP ] Block rotating ?
 
FL_FROZEN, it blocks normal move + mouse move + duck + jump, etc.

CrazY. 04-22-2017 12:57

Re: [ H3LP ] Block rotating ?
 
Well, I've tryied this, but dont work.

Code:
        if (button & IN_MOVELEFT)         {             new Float:fAngles[3];             entity_get_vector(id, EV_VEC_angles, fAngles);             fm_angle_byside(id, -10, fAngles);             entity_set_vector(id, EV_VEC_angles, fAngles);             entity_set_int(id, EV_INT_fixangle, 1);         }         else if (button & IN_MOVERIGHT)         {             new Float:fAngles[3];             entity_get_vector(id, EV_VEC_angles, fAngles);             fm_angle_byside(id, 10, fAngles);             entity_set_vector(id, EV_VEC_angles, fAngles);             entity_set_int(id, EV_INT_fixangle, 1);         }         stock fm_angle_byside(index, multiplier, Float:angle[3])         {             new Float:vec[3];             entity_get_vector(index, EV_VEC_v_angle, vec);             engfunc(EngFunc_MakeVectors, vec);             global_get(glb_v_right, vec);             angle[1] = vec[1] * multiplier;         }

Natsheh 04-22-2017 15:59

Re: [ H3LP ] Block rotating ?
 
PHP Code:

new Float:fAngles[33][3// this is global variable, get the ( EV_VEC_v_angles) angles   when starts climbing.


///// prethink
            
entity_set_vector(idEV_VEC_v_anglesfAngles[id]);
            
entity_set_int(idEV_INT_fixangle1); 


CrazY. 04-22-2017 17:50

Re: [ H3LP ] Block rotating ?
 
See the images please

https://www.mediafire.com/download/w16j9nynm3qsh31


All times are GMT -4. The time now is 17:57.

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