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

SMAC ConVar Checker Question/Request


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Maxtasy
Member
Join Date: Oct 2010
Old 11-08-2013 , 11:51   SMAC ConVar Checker Question/Request
Reply With Quote #1

Hi,
I want to limit the fpx_max values on my server. I want to allow only the value 0 and all values >45. As of now, it seems impossible to achieve this, or am I missing something?

At the moment I use:

Code:
smac_addcvar fps_max greater kick 45
Maxtasy is offline
AeroAcrobat
AlliedModders Donor
Join Date: Apr 2011
Location: lives in a circus
Old 11-08-2013 , 12:01   Re: SMAC ConVar Checker Question/Request
Reply With Quote #2

There should already be a command for this in the game but I can't remember.
__________________
AeroAcrobat is offline
Maxtasy
Member
Join Date: Oct 2010
Old 11-08-2013 , 12:55   Re: SMAC ConVar Checker Question/Request
Reply With Quote #3

Quote:
Originally Posted by AeroAcrobat View Post
There should already be a command for this in the game but I can't remember.
I really don't think so. Just to clarify, I want to limit the clients connected to the server to only use the values I allow.
Maxtasy is offline
allienaded
AlliedModders Donor
Join Date: Feb 2013
Old 11-09-2013 , 09:17   Re: SMAC ConVar Checker Question/Request
Reply With Quote #4

sv_competitive_minspec 1 should limit fps_max to 0 or >59

Last edited by allienaded; 11-09-2013 at 09:18.
allienaded is offline
Ade
I love purple
Join Date: May 2010
Old 11-09-2013 , 09:32   Re: SMAC ConVar Checker Question/Request
Reply With Quote #5

@allienaded not for dm, from what i remember that cvar was for css only and for a limited amount of time
@max i thought u fixed this already
__________________

Last edited by Ade; 11-09-2013 at 09:33.
Ade is offline
Maxtasy
Member
Join Date: Oct 2010
Old 11-09-2013 , 09:38   Re: SMAC ConVar Checker Question/Request
Reply With Quote #6

Quote:
Originally Posted by allienaded View Post
sv_competitive_minspec 1 should limit fps_max to 0 or >59
15:50:06 sv_competitive_minspec 1
15:50:06 Unknown command "sv_competitive_minspec"

Quote:
Originally Posted by Ade View Post
@max i thought u fixed this already
At the moment you can only set one rule for every CVAR. So I set the rule that fps_max must be greater than 45. But I also want to allow 0.

Last edited by Maxtasy; 11-09-2013 at 09:50. Reason: added something
Maxtasy is offline
checkster
BANNED
Join Date: Apr 2007
Location: Norway
Old 11-09-2013 , 16:04   Re: SMAC ConVar Checker Question/Request
Reply With Quote #7

sv_competitive_minspec 1 sets it to minimum 60 fps.

Why would you want to force max fps ? That's pretty lame tbh.


https://forums.alliedmods.net/showthread.php?p=1286780

Last edited by checkster; 11-09-2013 at 16:08.
checkster is offline
Maxtasy
Member
Join Date: Oct 2010
Old 11-09-2013 , 18:31   Re: SMAC ConVar Checker Question/Request
Reply With Quote #8

This command does not exist in HL2DM. There is an exploit with low fps_max values, so I want to disable those low values.
Maxtasy is offline
checkster
BANNED
Join Date: Apr 2007
Location: Norway
Old 11-10-2013 , 07:38   Re: SMAC ConVar Checker Question/Request
Reply With Quote #9

Quote:
Originally Posted by Maxtasy View Post
This command does not exist in HL2DM. There is an exploit with low fps_max values, so I want to disable those low values.
Same in css and other games..As in people use those exploits, often in relation to bhop scripts etc.

PHP Code:
public OnClientPostAdminCheck(client

if (!
IsFakeClient(client)) 

QueryClientConVar(client"fps_max"ClientFpsMaxValueclient); 



public 
ClientFpsMaxValue(QueryCookie:cookieclientConVarQueryResult:result, const String:cvarName[], const String:cvarValue[]) 

new 
iFPSMax StringToInt(cvarValue); 

if (
iFPSMax && iFPSMax 60

KickClient(client"[SM] fps_max must be set to at least \"60\""); 


Try that, its not my code I take no credit. Should do the trick.

Last edited by checkster; 11-10-2013 at 07:40.
checkster is offline
Maxtasy
Member
Join Date: Oct 2010
Old 11-10-2013 , 12:37   Re: SMAC ConVar Checker Question/Request
Reply With Quote #10

@checkster: It works, thanks alot!
Maxtasy 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 18:07.


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