|
How to Override Server Settings
PREREQUISITES - Basic level construction and
entity knowledge INTRODUCTION **NOTE** This tutorial was written using version 1.0L of the TFC Game Data file This small tutorial explains how to override the default settings running on a game server. A common use for this would be to change the gravity setting (or any other setting) of your map without needing the server admin to change the default gravity settings on the server. This is done by changing a value in the info_tfdetect entity, which issues a console command. The info_tfdetect entity is maybe THE most important TFC entity, in that it's the entity that makes the map a TFC map. Each of the info_tfdetect mini tutorials will be covering only one aspect of the info_tfdetect entity. You can combine all the different options into one single info_tfdetect to get the desired result. Remember to use only ONE info_tfdetect in your TFC map. SUPPLYING YOUR OWN SETTINGS - The first step is to place an info_tfdetect in your map. The placement of this entity is not important, but please remember to NOT place it in the void! :) - After you've placed your info_tfdetect in the map, select the entity and hit ALT+ENTER. This will bring up the properties for the entity. The Attribute we are going to focus on is 'LocalCmd String', or 'message' if you've got SmartEdit turned off.
The 'LocalCmd String' allows you to enter your own console commands into the map...effectively overriding whatever settings are running on the game server. Note that all the settings will return back to normal after your map is no longer being played. As stated above, entering a value for this attribute would be very useful if you were making a map and wanted it to be a 'low gravity' map. All you have to do is enter the console command as the value for 'LocalCmd String'. In that example, your value would be: sv_gravity 100 (or whatever gravity amount you wanted). You also have the option of entering more than one console command by separating each command with: \n So lets say you want to control Gravity, Friction, and Air Velocity. You would enter the following as the value for 'LocalCmd String': sv_gravity 100\nsv_friction 1\nsv_airaccelerate 5\n Be sure to end your string with: \n ! The following is a list of some of the settings you SHOULD be able to control this way: - mp_falldamage - toggles realistic falling damage Bear in mind that I have NOT tried any of these settings, so I do not know which ones work, and which ones don't work. There may also be additional console commands you can use which are not listed. I recommend visiting a site that specializes in console commands for more information
|