AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Question about setting maxspeed. (https://forums.alliedmods.net/showthread.php?t=187267)

<VeCo> 06-11-2012 01:16

Question about setting maxspeed.
 
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?

ConnorMcLeod 06-11-2012 01:30

Re: Question about setting maxspeed.
 
Explain what is the expoilt, what are commands etc...

There is no difference setting maxspeed with amxx than let the game do it.

<VeCo> 06-11-2012 01:32

Re: Question about setting maxspeed.
 
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.

ConnorMcLeod 06-11-2012 01:40

Re: Question about setting maxspeed.
 
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.

<VeCo> 06-11-2012 01:42

Re: Question about setting maxspeed.
 
Ah, I see, thank you. :)

<VeCo> 03-25-2019 15:33

Re: Question about setting maxspeed.
 
/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

CrazY. 03-25-2019 17:10

Re: Question about setting maxspeed.
 
Code:
Ham_CS_Player_ResetMaxSpeed
https://github.com/s1lentq/ReGameDLL...ayer.cpp#L7045

rtxa 03-25-2019 20:25

Re: Question about setting maxspeed.
 
Quote:

Originally Posted by <VeCo> (Post 2644895)
/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.

klippy 03-26-2019 08:37

Re: Question about setting maxspeed.
 
Quote:

Originally Posted by rtxa (Post 2644920)
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.


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

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