Raised This Month: $12 Target: $400
 3% 

[ H3LP ] Player limit angles


Post New Thread Reply   
 
Thread Tools Display Modes
Natsheh
Veteran Member
Join Date: Sep 2012
Old 01-02-2019 , 04:33   Re: [ H3LP ] Player limit angles
Reply With Quote #11

Simply just retrieve the old velocity
PHP Code:
        entity_get_vector(idEV_VEC_velocityfVelocity);
        
fVelocity[1] = 0.0;
        
fVelocity[2] = 0.0;

        
entity_set_vector(id,EV_VEC_velocityfVelocity
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
DarthMan
Veteran Member
Join Date: Aug 2011
Old 01-02-2019 , 07:28   Re: [ H3LP ] Player limit angles
Reply With Quote #12

Quote:
Originally Posted by Natsheh View Post
Simply just retrieve the old velocity
PHP Code:
        entity_get_vector(idEV_VEC_velocityfVelocity);
        
fVelocity[1] = 0.0;
        
fVelocity[2] = 0.0;

        
entity_set_vector(id,EV_VEC_velocityfVelocity
And this will limit the angles without having to set them manually?
DarthMan is offline
E1_531G
Senior Member
Join Date: Dec 2017
Old 01-02-2019 , 11:51   Re: [ H3LP ] Player limit angles
Reply With Quote #13

I am not sure, but try to get player's view angles, add 90 (for the right turn) or substract 90 (for the left turn) and set them back. If this won't work, try with angles (not view). And use fixangles.
__________________
My English is A0
E1_531G is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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