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

Noclip Custom Speed Issue


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tmob
New Member
Join Date: Jul 2022
Old 09-30-2022 , 08:31   Noclip Custom Speed Issue
Reply With Quote #1

I'm trying to put the user into noclip, that's easy I can do that, but I want the user to have a variable speed, that's the hard part. Whenever I try to use the code below, the player like gets stuck in place like an anti-cheat is pulling them back into position, why would this be happening? If I just enable noclip with set_user_noclip and don't try to change the maxspeed, it works fine.

Code here: https://pastebin.com/HXDc8mdt
tmob is offline
lexzor
Veteran Member
Join Date: Nov 2020
Old 09-30-2022 , 12:16   Re: Noclip Custom Speed Issue
Reply With Quote #2

i think pev_maxspeed is callen when player is touching the ground. try to use pev_velocity (https://forums.alliedmods.net/showthread.php?t=258449)

Last edited by lexzor; 09-30-2022 at 12:17.
lexzor is offline
tmob
New Member
Join Date: Jul 2022
Old 10-01-2022 , 00:02   Re: Noclip Custom Speed Issue
Reply With Quote #3

Quote:
Originally Posted by lexzor View Post
i think pev_maxspeed is callen when player is touching the ground. try to use pev_velocity (https://forums.alliedmods.net/showthread.php?t=258449)
Thanks that worked, but it requires player cvars and server max speed cvars to be higher than the variable speed :c. I'll have to do a hacky fix and calculate the position after the frame, would be easy if I was taught anything about vectors, -_- but I'm not old enough to take any physics or calculus classes.
tmob 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 10:01.


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