Help - Search - Members - Calendar
Full Version: Server op faq/variables/cheat codes
Unknown Worlds Forums > Natural Selection > Natural Selection Discussion > General Server Discussion
Pages: 1, 2
Flayra
Common problems:

Secure mode does not seem to be available.
Due to a last minute glitch with VAC, secure mode was disabled until a patch can be made for it.

//--------------------------------------------------------------------------------

This is the official home for NS server variables. This is also included in ded-vars.txt in your NS folder.

Good variables to use:
----------------------
mp_timelimit - Number of minutes to play on each map. After this expires, the map will change to the next level in mapcycle.txt. IMPORTANT: the map will never switch in the middle of the game, it will always allow you to finish your current game first. Default is 60 minutes (2-3 games).

mp_uplink - Set to 0 or 1. When set to 1 (default), then Constellation icons, Dev icons, and other scoreboard icons are displayed next to players' names on the scoreboard.

mp_tournamentmode - Set this to 1 for a tournament mode. Tournament mode doesn't allow late-joining, doesn't allow commander ejecting, enables friendly-fire, and more. Use this for organized matches only. Set to 0 for public servers and your average LAN game.

mp_serverops - This is a semi-colon delimited string of the WON ids for players that run the server. Example: if there are two server ops on your server, with WON ids "123" and "789", then you would set mp_serverops to "123;789". This displays a special server op icon next to these players names when they play on this server. This display is toggled on and off by typing "auth" at the console.

mp_countdowntime - Number of minutes that the countdown to game start will last (indicated by the beeping once players are on both teams). The default is .05, which is 3 seconds.

mp_latejointime - The number of minutes after the game has started that players are allowed to join the team without waiting to respawn. If a player joins a team after this time, they must wait in line to spawn. Default is 1 (60 seconds).

mp_votecasttime - When the first vote to eject a commander is cast, this is the amount of minutes that the other teammates have to vote. If mp_votepercentneeded votes aren't received by this time, the vote fails.

mp_votedowntime - This is the number of minutes that an ejected commander is banned from the command station on this server. This is persistent across new levels and games. For example, if set to 180, then an ejected commander couldn't play commander on this server for 3 hours. If the server crashes or is restarted, all commander bans are lost.

mp_minvotesneeded - This is the minimum number of votes needed to eject the commander. This can be tweaked to prevent abuse by a roving group of llamas.

mp_votepercentneeded - This is the percentage of the team (0-1) that must vote to eject a commander for it to succeed. Additionally, mp_minvotesneeded must be met. For example, if this is set to .5, then half the marine team must vote against the commander within

mp_votecasttime for the commander to be ejected.

ns_eastereggchance - Set this value to x, where 1 in x+1 games will play humorous audio easter eggs in certain situations. Setting to 0 will enable them for all games. Currently this only affects alien audio easter eggs.

mp_limitteams - This is the maximum difference in team sizes that the server allows. It can't be set to a value less then 1. For instance, if it's set to 2 (the default), then players can join a team as long as it wouldn't make that team more then 2 players larger then the other team.

mp_autoconcede - When one team has this many players or more then the other, they automatically win. This is used to prevent team-stacking and painful end-games. It is only active in casual (non-tournament) mode.

mp_team1handicap and mp_team2handicap - When in tournament mode only, reduces the damage done by players on this team. For instance, if team1handicap is set to .8, then team 1 (marines) will only do 80% damage with weapons, turrets, etc. This feature is here so players can play fun organized games even when one side is way better then the other. It is not used in casual play.

Good variables for debugging
----------------------------
mp_networkdebug - Set this to 1 to see every message NS sends. Logging must be enabled. Use this to track overflows or performance. Default is 0.

mp_drawdamage - Set to 1 to see a rising number whenever any player or structure takes damage. Useful for clan practice or reproducing bugs.

mp_drawinvisibleentities - Entities are drawn for commander even when not visible by a team member

mp_assert - Setting to 1 will cause server to halt when an ASSERT is hit instead of bypassing them

mp_networkmeterrate - This can be adjusted (at your own risk) to only send x amount of bytes to each player per second. Could be useful for fixing overflows, but could have dangerous performance ramifications


=================

List of commands for hlds.

http://half-life.gamehelp.com/console/server.html

//--------------------------------------------------------------------------------

Most servers won't need these, but if you are making a demo movie or need to test something, who knows, these could be useful.

Notes:
- sv_cheats must be 1
- If cheats aren't 1, it will say "unrecognized command", even though it IS a recognized command
- When cheats are enabled, the game will start when there's a player on at least one team. The game will never end.

spawnhive - As an alien, creates a random new hive for your team
killhive - As an alien, destroys a random hive
addcat x - X where is 1-4. Adds a random upgrade category, just like you had built an upgrade chamber (1 is defense, 2 used to be offense, 3 is movement, 4 is sensory)
removecat x - Take a guess.
givepoints (bound to F11 by default) - Gives you some points
killall - Kills all players in the game with your current weapon (won't kill teammates unless FF is on via tournament mode)
invul - Toggles invulnerability for yourself.
startgame - Starts game immediately (untested for awhile)
endgame - Ends the current game (as a victory for team one). You can also type "endgame 1" for the same effect. If you type "endgame 2", it will be a victory for team 2.
tooltip lala - Adds a tooltip named "lala". It will translate this tooltip if found in titles.txt, if possible.
testevent - Plays a "you just got points for killing the enemy event", for testing where the commander can see events (he can't sometimes, when hovering over the void, or inside geometry)
getnumplayers - Reports the current number of human players
startcommandermode - Teleports you near the first command station it finds and starts commander mode. This will sometimes teleport you inside geometry.
stopcommandermode - Drops you out of command mode, useful when your mouse or the logout button stops working
web - Gives you the effects of having just touched one web. Use multiple times to simulate touching multiple webs.
setculldistance x - Used by mappers to find the minimum culling distance needed for commander mode on their maps.
setgamma x - Sets the current env_gamma level, where x is a number from 1.0 to 2.0. This affects all players.
bigdig - All buildings are built instantly, doesn't require manual building
hightech - All research happens nearly instantly
orderself - When commanding and giving orders, this will give the orders to yourself, so you can logout and see how they look on the HUD. There's no way to stop doing this after you've used this cheat.
editps <name> - Used to edit a particle system
listps - Lists all particle systems in NS and in the map
buildminimap - Generates a new minimap. Very CPU intensive. Saved in the ns/sprites/minimaps directory.
crash - Causes NS to crash.
assert - Causes NS to assert
run <name> - Runs a server-side script. Ignore this until scripting is more in place.
clientrun <name> - Runs a client-side script. Ignore this until scripting is more in place.
giveupgrade x - Gives an upgrade. 20-22 are the marine armor upgrades, 23-25 are the marine damage upgrades, 28 is jetpacks, 29 is power armor, 31 is faster reinforcements, 33 is motion-tracking, 26 is siege, 27 is stimpack, 30 is distress beacon
removeupgrade x - Like giveupgrade but removes one.
killcs - Kills all command stations.
attackcs - Does a little damage to one command station
alert - Generates a random alert.
parasite - Parasites self (no damage)
paralyze - Paralyzes self (like level 5 ability)
boxes - Draws boxes around all buildables (not sure if this still works). Effect goes away after a short time.
overflow - Tries to overflow player.
deathmessage <weaponname> - Sends test death message to all. Example: "deathmessage machinegun", "deathmessage bitegun"
setskin x - Sets the players skin (0 for white marine, 1 for black marine)
redeem - Makes it easier to test redemption
NeoMatrixj2
//Cheat Code:
giveupgrade 38 autospawns all marines with HA, giveupgrade 39 autospawns marines with JP. Use both at same time to autospawn with JP+HA :-)
//Edit:
Isn't there a command to cause the server to use the specified starting res in a certain map. Like on ns_siege005 marines are only supposed to start with 20 res but it uses default and gives em 100.
SilentMurderer
Question. What's all the give_weaponblabla and give_itemblabla commands?
Tempus
What is "faster reinforcements"?

That_Annoying_Kid
is mp_drawdamage going to be working in 1.1?
Eternal_Bliss
QUOTE (Tempus @ Apr 30 2003, 10:58 PM)
What is "faster reinforcements"?

Faster spawn rates.
JynxDaddy
what are the weapon names D:}
Eternal_Bliss
QUOTE (JynxDaddy @ May 3 2003, 07:22 PM)
what are the weapon names D:}

Look at your logs.
fat_al
lmg is "machinegun"
shotgun is "shotgun"
mines are (i think) "tripmine"
asrifle.gif skulk.gif
saubloed
Direct (maybe old in future):
http://metamod.org/files/old/metamod-1.15....aturalselection

Or current - goto metamod-x.x/metamod/ents/:
http://metamod.org/files/

Example:
give weapon_welder

Beware - some entities like alienbuildings will crash the server.

Edit: link changed.
DG-MATRIX-TPF
Is there a cheat code to have anouther command chair if by accadent it get's destoryed by a phaser?
That_Annoying_Kid
I belive startcommandermode will make a CC right next to you and put you in it if there isn't one in the game, but I'm not sure
Eternal_Bliss
you cannot spawn a cc(will crash server).
startcommandermode will move you to the nearest CC, but will not spawn one.
That_Annoying_Kid
*nods*

scuze me while I go maim my friend who told me that smile.gif
voogru
QUOTE (Eternal Bliss @ May 15 2003, 12:01 PM)
you cannot spawn a cc(will crash server).
startcommandermode will move you to the nearest CC, but will not spawn one.

You can spawn anything cept for RT's and OC's(They work, but will crash once it kills a player since I dont know where the owner is stored and how the owner is stored). You need to set some of the entvars on them tho. Otherwise, Crashola. I done this easily with a entity copier/mover.
saubloed
QUOTE (voogru @ May 19 2003, 06:02 AM)
QUOTE (Eternal Bliss @ May 15 2003, 12:01 PM)
you cannot spawn a cc(will crash server).
(...).

You can spawn anything cept for RT's and OC's(They work, but will crash once it kills a player since I dont know where the owner is stored and how the owner is stored). You need to set some of the entvars on them tho. Otherwise, Crashola. I done this easily with a entity copier/mover.

It is possible to spawn all marine buildings if you dont activate bigdig.
You can spawn alienbuildings but if they are finish themselfes the server will crash.

If you spawn not used (?) entities like team_medlab, team_webstrand or team_nukeplant the server will instandly crash.
Or you can try to spawn non-ns entities and the server will also crash.

If you want to see somthing nice try: bind x "give scan;give weapon_bilebomb" and press x! biggrin.gif
Amped1
What's the noclip mode command? Noclip doesn't work.
Zeus
Isn't there a code that slows down the building of structures to it's normal speed when sv_cheats is turned on?
Align
QUOTE (DeAtH_tO_gOrDoN @ May 31 2003, 11:12 PM)
What's the noclip mode command? Noclip doesn't work.

Noclip is universally disabled in HL MP even with cheats on, for some reason, but I think it can be coded back in if Flayra wanted to.
'till then, use RCBot and 'noclip_mode <name>'

EDIT: btw, I can't do "give team_hive" without crashing...
Amped1
QUOTE (Align @ Jun 5 2003, 10:31 AM)
EDIT: btw, I can't do "give team_hive" without crashing...

Try getting a jetpack, flying in a big open area and have a key bound to it.
verbose
QUOTE (Align @ Jun 5 2003, 10:31 AM)
I can't do "give team_hive" without crashing...

Use "spawnhive"
Amped1
QUOTE (verbose @ Jun 5 2003, 09:09 PM)
Use "spawnhive"

That's not the same thing. Spawnhive makes a hive in a predetermined spot. give team_hive creates a hive ghost where you are standing.
FoxFlame
What is the variable that needs to be turned off to allow teams to become unbalanced at start? Meaning, instead of disallowing people to join a team because it already has more players, as many players can join a team as they like.

I guess I'm looking for something like mp_autoteambalance from CS, but it's not there in NS. I'm trying to play against 8 whichbots by myself (and can't manually add them to the alien team since I haven't figured out why Adminmod isn't working, that'll probably be my next question) so I was wondering if there was a variable I could change to allow this? And if possible, a variable for the maximum total number of players a team can have despite team balancing. I've already set autoconcede so it won't effect the unbalanced teams.

Thanks,
--Fox
cracker_jackmac
mp_tournamentmode 1
FoxFlame
gg nubby me. That also turns FF on too doesn't it? And a number of other things? Is there a way to do that without adding those?
verbose
QUOTE (DeAtH_tO_gOrDoN @ Jun 6 2003, 08:31 AM)
QUOTE (verbose @ Jun 5 2003, 09:09 PM)
Use "spawnhive"

That's not the same thing. Spawnhive makes a hive in a predetermined spot. give team_hive creates a hive ghost where you are standing.

Heh. Not surprised that it causes crashes then. tounge.gif
verbose
QUOTE (FoxFlame @ Jun 14 2003, 03:26 PM)
gg nubby me. That also turns FF on too doesn't it? And a number of other things? Is there a way to do that without adding those?

Yes, FF and more. You can create unbalanced teams by filling both sides with bots, then booting the bots off one team. Since Whichbot doesn't do marines, try filling your side with RCBots (if RCBot and Whichbot will play nice together).
Squidget
QUOTE (verbose @ Jun 14 2003, 03:39 PM)
QUOTE (FoxFlame @ Jun 14 2003, 03:26 PM)
gg nubby me.  That also turns FF on too doesn't it? And a number of other things?  Is there a way to do that without adding those?

Yes, FF and more. You can create unbalanced teams by filling both sides with bots, then booting the bots off one team. Since Whichbot doesn't do marines, try filling your side with RCBots (if RCBot and Whichbot will play nice together).

They do, if you are very careful and read all the bot readmes. In short, install WB as normal, using Metamod. Then install RCBot, but keep your current liblist.gam. Lastly, add the "+localinfo mm_gamedll dlls/rcbot.dll" to your shorcut. Viola!
Rotten_Flesh
How do i change the amount of time the commander can re-enter the cc after exiting?
Remo
any chance this thread could be updated for 2.0?
optik
Probably been asked before, but whats the command to enable auto team balancing ?

I know in counter-strike its 'mp_autoteambalance'.

I also know that this cvar works using 'mp_limitteams'.

Can someone comment please?
verbose
QUOTE (optik @ Aug 3 2003, 10:45 PM)
Probably been asked before, but whats the command to enable auto team balancing ?

There is no command or setting that switches players mid-game.
optik
Okies... Thankyou for the prompt reply.
Remo
*cough* update!
Grimm_Spector
there's lots of admin mod plugins for it, use em. www.adminmod.org
DaK_mAnIak
Why does sv_alltalk come on automatically when you turn sv_cheats on and stay on when you set sv_cheats back to 0?
0SdZ0Gectou4
good thx .. can you possible to gives the global engin variable for amx ?

for exemple team1 team2 trigger engame ...

i know how must variable no ?
DaK_mAnIak
QUOTE (saubloed @ May 19 2003, 01:05 PM)
If you want to see somthing nice try: bind x "give scan;give weapon_bilebomb" and press x! biggrin.gif

Tried this nothing happened...
Obst
I got 2 questions:

What's the command for activating/deactivating the special symbols (CD,Vet,PT,Dev,Const...)?
And what's the command to activate metabolize, it doesn't work in the standard installation so I guess it's a variable (or bug confused.gif )
Remo
mp_uplink set to '1'.
sTuPiD_iTiaLiAn2k
Here are some 'give' commands that work in the current 2.0.

Marine Items/Wpns
Health Pack = give item_health
Ammo Pack = give item_genericammo
Grenade Launcher = give weapon_grenadegun
HMG = give weapon_heavymachinegun
JP = give item_jetpack
HA = give item_heavyarmor
Welder = give weapon_welder
Mines = give weapon_mine
Mine (places a mine) = give item_mine
Shotgun = give weapon_shotgun


Marine Buildings
Comm chair = give team_commander
obs = give team_observatory
tf = give team_turretfactory
armslab = give team_armslab
armory = give team_armory

Don't know how to build turrets. Don't ask.


Alien Abilities
skulk bite = ??
parasite = give weapon_parasite
leap = give weapon_leap
xenocide = give weapon_xenocide
umbra = give weapon_umbra
spores = give weapon_spore
primal scream = ??
slash = give weapon_swipe
gore = give weapon_claws
devour = give weapon_devour
stomp = give weapon_stomp
charge = give weapon_charge
acid rocket = give weapon_acidrocketgun
bilebomb = give weapon_bilebombgun
spikes = give weapon_spikegun
spitgun = give weapon_spit
blink = give weapon_blink
metabolize = give weapon_metabolize
web = give weapon_webgun ??


Alien Buildings
hive = give team_hive

The ones with the " ?? " beside them mean either I havent tested it and im just guessing, or I have no idea what the command is.

If anyone can add to this I would appreciate it... alot of people around the server I play in keep asking even though cheats aren't enabled... this should atleast cover a small percentage of the give commands for now.

Im just hoping this will quit some of the nagging.

Please if anyone knows any more, just post them.. and maybe if I'm not lazy enough I'll edit this too

NOT TESTED IN 3.0
davidsansome
What's the variable for disabling the votemap command?
Lightning_Blue
// Set to -1 to disallow voting (looks in mapcycle.txt for entries)
mp_mapvoteratio -1


Useful if you want to use HLSW on a steam server:

max_queries_sec "-1"
max_queries_sec_global "-1"
max_queries_window "-1"
Hawq
QUOTE ("sTuPiD iTiaLiAn2k")
spikes = confused.gif


Spikes = give weapon_spikegun
CheesyPeteza
Here is the cheat commands I have working with NS v3.0 beta 2.

* = commands not mentioned in the first post of this thread

startgame - Starts game immediately
endgame - Ends the current game (as a victory for team one). You can also type "endgame 1" for the same effect. If you type "endgame 2", it will be a victory for team 2.
* switch - Switch teams while remaining in same location
givepoints - Gives you some points
* givexp - Give experience in NS Combat
getnumplayers - Reports the current number of human players
* highdamage - all damage is x100 vs. buildings, x10 vs. players
* hurt - Cause damage to self (about 500HP)
killall - Kills all players in the game with your current weapon (won't kill teammates unless FF is on via tournament mode)
invul - Toggles invulnerability for yourself.

killcs - Kills all command stations.
startcommandermode - Teleports you near the first command station it finds and starts commander mode. This will sometimes teleport you inside geometry.
stopcommandermode - Drops you out of command mode, useful when your mouse or the logout button stops working
bigdig - All buildings are built instantly, doesn't require manual building
* lowcost - Buildings are free
hightech - All research happens nearly instantly
* slowresearch - research takes full time instead of normal 2 seconds when cheats are on
alert - Generates a random alert.
testevent - Plays a "you just got points for killing the enemy event", for testing where the commander can see events (he can't sometimes, when hovering over the void, or inside geometry) (command there, does nothing as far as I can see though - cheesy)
* detectall - for testing motion-tracking and marine blips
giveupgrade x - Gives an upgrade. 20-22 are the marine armor upgrades, 23-25 are the marine damage upgrades, 28 is jetpacks, 29 is power armor, 31 is faster reinforcements, 33 is motion-tracking, 26 is siege, 27 is stimpack, 30 is distress beacon
removeupgrade x - Like giveupgrade but removes one.

spawnhive - As an alien, creates a random new hive for your team
killhive - As an alien, destroys a random hive
addcat x - X where is 1-4. Adds a random upgrade category, just like you had built an upgrade chamber (1 is defense, 2 used to be offense, 3 is movement, 4 is sensory)
removecat x - Take a guess.
redeem - Makes it easier to test redemption

setculldistance x - Used by mappers to find the minimum culling distance needed for commander mode on their maps.
setgamma x - Sets the current env_gamma level, where x is a number from 1.0 to 2.0. This affects all players.
buildminimap - Generates a new minimap. Very CPU intensive. Saved in the ns/sprites/minimaps directory.
editps <name> - Used to edit a particle system
listps - Lists all particle systems in NS and in the map
* numents - Number of entities "AvHGamerules::PostWorldPrecacheReset():"
* entityinfo - Displays the number of each entity there is
* numinfos - ???
Scottimus_Prime
Extreme Server nub here. Command to set the max players allowed in server? Didn't see it in the server configs, and it's incredibly annoyingly not in the game menu when you're starting a server.
Flow
just type ./hlds_run -game nsp [yourstuff....] +maxplayers XX
TriPhase
QUOTE (sTuPiD iTiaLiAn2k @ Jan 3 2004, 08:14 PM)
Alien Abilities
skulk bite = ??
xenocide = give weapon_xenocide

skulks is
weapon_bitegun

xenocide is actually
weapon_devinewind (think i spelled that right)
the_x5
hey i was wondering how to run a game when i am only player (for debugging purposes)

I have tried to download Whichbot except that their service provider seems to be givving NULL files for download (ie. the files exist but they are "0 bytes") which is something i have never seen before, very odd.

I have also tried to include FoxBot with my NS metamod. But i don't know what it woun't seem to load FoxBot either. FoxBot runs just fine on my TFC server.

If there is a cvar i can set that will allow em to run a game when i'm the only one playing, please tell me.

Help! wow.gif
Squidget
I download from whichbot all the time, with no problems. The "provider" is Sourceforge, one of the biggest repositories there is. Try again.

If you want to play alone, enter a game, bring up the console, and type:

sv_cheats 1

The game will then start in a few secs.

If you instead load Whichbots as aliens and RCBOT for marines, you can play a full game without the cheat cvar.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.