Raised This Month: $32 Target: $400
 8% 

Question about setting maxspeed.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 06-11-2012 , 01:16   Question about setting maxspeed.
Reply With Quote #1

Hello, as you probably know, when you set maxspeed trough AMXX plugin (for example with set_user_maxspeed native), there is a way to exploit that speed with client commands and move faster than it's set.

I'm wondering why does this happen and is there another method which will prevent users from exploiting the speed?
__________________
<VeCo> is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-11-2012 , 01:30   Re: Question about setting maxspeed.
Reply With Quote #2

Explain what is the expoilt, what are commands etc...

There is no difference setting maxspeed with amxx than let the game do it.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 06-11-2012 at 01:31.
ConnorMcLeod is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 06-11-2012 , 01:32   Re: Question about setting maxspeed.
Reply With Quote #3

Client commands for speed like cl_forward/back/sidespeed.
Or it may also depends on sv_maxspeed?

The problem is that if you set the speed with set_user_maxspeed, you can increase it with cl_forwardspeed 9999 and move very fast.
__________________

Last edited by <VeCo>; 06-11-2012 at 01:33.
<VeCo> is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-11-2012 , 01:40   Re: Question about setting maxspeed.
Reply With Quote #4

maxspeed result is the lowest value of : pev_maxspeed, sv_maxspeed, and cl_XXXspeed.
no exploit

Reason you think there is an exploit is because most of player has cl_XXXspeed 320, so basically you can set sv_maxspeed 999 and pev_maxspeed 999, player maxspeed stays at 320 in that case.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 06-11-2012 , 01:42   Re: Question about setting maxspeed.
Reply With Quote #5

Ah, I see, thank you.
__________________
<VeCo> is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 03-25-2019 , 15:33   Re: Question about setting maxspeed.
Reply With Quote #6

/7 year old necro/
So, is there a way to force players to move at the desired speed without slowhacking? Kinda sucks to set higher speed if people don't know about the client commands... they'd think the mod doesn't work properly. Let's say I have an upgrade system that gradually increases speed, after a while people would stop noticing any difference...
Is 400 the limit I should stick to, as a default value? or am I still missing something? should I even care about them noobs? lol
__________________

Last edited by <VeCo>; 03-25-2019 at 15:35.
<VeCo> is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 03-25-2019 , 17:10   Re: Question about setting maxspeed.
Reply With Quote #7

Code:
Ham_CS_Player_ResetMaxSpeed
https://github.com/s1lentq/ReGameDLL...ayer.cpp#L7045
__________________









Last edited by CrazY.; 03-25-2019 at 17:12.
CrazY. is offline
rtxa
Senior Member
Join Date: Mar 2018
Location: Argentina
Old 03-25-2019 , 20:25   Re: Question about setting maxspeed.
Reply With Quote #8

Quote:
Originally Posted by <VeCo> View Post
/7 year old necro/
So, is there a way to force players to move at the desired speed without slowhacking? Kinda sucks to set higher speed if people don't know about the client commands... they'd think the mod doesn't work properly. Let's say I have an upgrade system that gradually increases speed, after a while people would stop noticing any difference...
Is 400 the limit I should stick to, as a default value? or am I still missing something? should I even care about them noobs? lol
What you can do is to put some warning message when you join, that clearly states "By playing on this server for some time, you agree that your client's settings will be modified in favor to game mechanics works correctly".

Just like many sites do with cookies politics.

Last edited by rtxa; 03-25-2019 at 20:30.
rtxa is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 03-26-2019 , 08:37   Re: Question about setting maxspeed.
Reply With Quote #9

Quote:
Originally Posted by rtxa View Post
What you can do is to put some warning message when you join, that clearly states "By playing on this server for some time, you agree that your client's settings will be modified in favor to game mechanics works correctly".

Just like many sites do with cookies politics.
But you still can't modify their cvars whether you ask them or not. The best you can do is keep querying their movement cvars and display the message based on that.
__________________
klippy is offline
Reply



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:22.


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