Raised This Month: $ Target: $400
 0% 

cannot adjust cvars


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
travo
Senior Member
Join Date: Aug 2006
Old 11-16-2007 , 17:53   cannot adjust cvars
Reply With Quote #1

Hey guys
whenever I adjust either sv_accelerate or sv_friction it works for 1 second then something on the server set them back to 5 and 4. Ive tried disabling every plugin, switching to a different maps, setting the cvars via a plugin and I dont have either of those cvars in the server.cfg or amxx.cfg. Here are the messages that come in the console. Does anyone know what would be causing this?


] amx_cvar sv_friction 100
"sv_friction" changed to "100"
[AMXX] Cvar "sv_friction" changed to "100"
"sv_friction" changed to "4"

] amx_cvar sv_accelerate 100
"sv_accelerate" changed to "100"
[AMXX] Cvar "sv_accelerate" changed to "100"
"sv_accelerate" changed to "5"

-travo
travo is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-16-2007 , 19:17   Re: cannot adjust cvars
Reply With Quote #2

Because you are setting it to a value the engine doesn't like, so it resets it or puts it at the max/min
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 11-16-2007 , 22:18   Re: cannot adjust cvars
Reply With Quote #3

Adding onto what Yami said, you have to deal with the defaults
__________________
M249-M4A1 is offline
travo
Senior Member
Join Date: Aug 2006
Old 11-17-2007 , 00:42   Re: cannot adjust cvars
Reply With Quote #4

hmm is there a way to adjust the min/max of these cvars because it doesnt even let me set it to 4 or 6

] amx_cvar sv_accelerate 6
"sv_accelerate" changed to "6"
[AMXX] Cvar "sv_accelerate" changed to "6"
"sv_accelerate" changed to "5"
] amx_cvar sv_accelerate 4
"sv_accelerate" changed to "4"
[AMXX] Cvar "sv_accelerate" changed to "4"
"sv_accelerate" changed to "5"

or is there a work around at all?
travo is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-17-2007 , 01:56   Re: cannot adjust cvars
Reply With Quote #5

Nope. It is built into the game engine. So, the only way to change it would be to alter the engine, but that would be against the EULA
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 11-19-2007 , 09:48   Re: cannot adjust cvars
Reply With Quote #6

Not sure if you still need this, but this plugin will allow you to alter friction and acceleration.

I don't know if it will strain the server due to it forcing your value each time it changes back to the servers value (which is called about every 1 second).

http://forums.alliedmods.net/showthread.php?p=447099

The forward you need to do this is FM_CVarSetFloat.
hlstriker 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 01:21.


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