Undocumented Server Variables.

General talk about the map making process.
Post Reply
Yrogirg
Private First Class
Private First Class
Posts: 154
Joined: Sat Oct 27, 2007 7:24 pm

Undocumented Server Variables.

Post by Yrogirg »

I was looking at src/common/global.cxx and there are server variables not documented in wiki (I couldn't find corresponding man page). Are they deprecated or what?

Code: Select all

_ambientLight none
_disableSpeedChecks 0
_disableHeightChecks 0
_drawGroundLights 1
_enableDistanceCheck 0
_endShotDetection 5
_fogNoSky 0
_spawnMaxCompTime 0.01
_spawnSafeRadMod 20
_spawnSafeSRMod 3
_spawnSafeSWMod 1.5
_speedChecksLogOnly 0
And some other questions:

what is the correct variant --- _countdownResumeDelay or _countdownResumeTime ?

_disableBots default is 0 or none?

_syncTime default is -1 or 1?
User avatar
Bambino
Private First Class
Private First Class
Posts: 1210
Joined: Mon Apr 21, 2008 10:27 pm
Location: Alberta, Canada

Re: Undocumented Server Variables.

Post by Bambino »

what is the correct variant --- _countdownResumeDelay or _countdownResumeTime ?
The correct one is the _countdownResumeDelay. It's commonly used in the leagues. IIRC it defaults to a 5 second countdown.
"Anyone who has never made a mistake has never tried anything new." -- Albert Einstein
GU League | Ducati League | OpenLeague
anomaly
Private First Class
Private First Class
Posts: 220
Joined: Tue Jul 26, 2005 10:32 pm
Location: Gainesville Florida

Re: Undocumented Server Variables.

Post by anomaly »

Yrogirg wrote:

Code: Select all

_fogNoSky 0

_fogNoSky will do what it says. Fog is not draw on the sky. I've used it in several maps, makes for interesting environmental effects.
-set _fogNoSky 1 in your map config will turn off fog drawing on the sky. The default is fog everywhere.
User avatar
blast
General
General
Posts: 4931
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Undocumented Server Variables.

Post by blast »

_ambientLight none
This one doesn't seem to be used anywhere in the latest 2.0.x code.

_disableSpeedChecks 0
This allows disabling/enabling the speed kicks

_disableHeightChecks 0
This allows disabling/enabling the "too high" check (or maybe the out of the world boundaries check in general)

_drawGroundLights 1
If set to 0, lights on the ground (such as the light from bullets) will not be drawn

_enableDistanceCheck 0
Distance checking tries to verify if a player moved too far between updates (as in, cheating). I'm not sure how well tested this feature is, which may explain why it's off by default.

_endShotDetection 5
This setting controls how many "end shot" messages can be sent without corresponding deaths (or other reasons, such as a shield drop).

_spawnMaxCompTime 0.01
This controls the maximum amount of time to attempt finding a safe spawn location. If this time is exceeded, the tank will just get dropped in from maximum height. The time should be in seconds, so the default is to only wait for 10ms.

_spawnSafeRadMod 20
_spawnSafeSRMod 3
_spawnSafeSWMod 1.5
These control some of the spawn code to try to prevent spawning people near instant death (like not spawning someone on top of a player with SR)

_speedChecksLogOnly 0
If set to 1, someone moving too fast will not get kicked - it will just log it to the stdout.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image
Yrogirg
Private First Class
Private First Class
Posts: 154
Joined: Sat Oct 27, 2007 7:24 pm

Re: Undocumented Server Variables.

Post by Yrogirg »

Thank you guys, your words are in wiki now.
Post Reply