Commands/Lua

Reference for console commands, Lua hooks and Lua commands in CS2D.

CS2D Command CS2D Console Commands

Category: server (197)

banip
banname
bans
bansteam
banusgn
bot_add
bot_add_ct
bot_add_t
bot_autofill
bot_count
bot_freeze
bot_jointeam
bot_keepfreeslots
bot_kill
bot_prefix
bot_remove
bot_remove_all
bot_remove_ct
bot_remove_t
bot_skill
bot_weapons
changelevel
changemap
cmsg
customkill
damageobject
deathslap
effect
endround
equip
explosion
flashplayer
flashposition
freeprojectile
hudtxt
hudtxt2
hudtxtalphafade
hudtxtcolorfade
hudtxtmove
items
kick
killobject
killplayer
listbans
listplayers
logaddress_add
logaddress_remove
logaddress_removeall
lua
luareset
makect
makespec
maket
map
maps
mp_antispeeder
mp_autogamemode
mp_autoteambalance
mp_building_health
mp_building_limit
mp_building_price
mp_buymenu
mp_buytime
mp_c4timer
mp_connectionlimit
mp_curtailedexplosions
mp_damagefactor
mp_deathdrop
mp_dispenser_health
mp_dispenser_money
mp_dmspawnmoney
mp_dropgrenades
mp_flashlight
mp_floodprot
mp_floodprotignoretime
mp_freezetime
mp_grenaderebuy
mp_hostagepenalty
mp_hovertext
mp_hud
mp_hudscale
mp_idleaction
mp_idlekick
mp_idletime
mp_infammo
mp_kevlar
mp_kickpercent
mp_killbuildingmoney
mp_killbuildings
mp_killinfo
mp_killteambuildings
mp_lagcompensation
mp_lagcompensationdivisor
mp_localrconoutput
mp_luamap
mp_luaserver
mp_mapgoalscore
mp_mapvoteratio
mp_maxclientsip
mp_maxrconfails
mp_natholepunching
mp_pinglimit
mp_postspawn
mp_radar
mp_randomspawn
mp_recoil
mp_reservations
mp_respawndelay
mp_roundlimit
mp_roundtime
mp_shotweakening
mp_smokeblock
mp_startmoney
mp_supply_items
mp_teamkillpenalty
mp_teleportreload
mp_tempbantime
mp_timelimit
mp_tkpunish
mp_trace
mp_turretdamage
mp_unbuildable
mp_unbuyable
mp_vulnerablehostages
mp_winlimit
mp_wpndmg
mp_wpndmg_z1
mp_wpndmg_z2
mp_zombiedmg
mp_zombiekillequip
mp_zombiekillscore
mp_zombierecover
mp_zombiespeedmod
msg
rcon
rcon_password
rcon_pw
removeitem
reroute
restart
restartround
setammo
setarmor
setdeaths
sethealth
setmaxhealth
setmoney
setname
setpos
setscore
setteamscores
settile
setweapon
shake
slap
spawnitem
spawnnpc
spawnobject
spawnplayer
spawnprojectile
speedmod
strip
sv_checkusgnlogin
sv_daylighttime
sv_forcelight
sv_fow
sv_friendlyfire
sv_gamemode
sv_gm
sv_hostport
sv_lan
sv_map
sv_maptransfer
sv_maxplayers
sv_msg
sv_msg2
sv_name
sv_offscreendamage
sv_password
sv_rcon
sv_rconusers
sv_restart
sv_restartround
sv_sound
sv_sound2
sv_soundpos
sv_specmode
sv_spraytransfer
sv_stopsound
sv_usgnonly
transfer_speed
trigger
triggerposition
unban
unbanall
usgn_addserver
usgn_info

CS2D Command mp_connectionlimit

Categories

Parameters

  • limit (8-4096): How many connections are accepted max.? (default 64)

Info

High Security Relevance
This setting is important for the security of your server!
Use it carefully! Wrong settings may make your server vulnerable or limit its functionality or accessibility!

Controls how many concurrent UDP connections are allowed by the server.

UDP Connections are required for 3 things:

  • For players playing on the server (1 connection per player)
  • For players who load the serverlist and want to see the server (1 connection per player)
  • To be able to talk with the U.S.G.N. masterserver for serverlist entry and account verification (1 connection)


If the limit is reached, the server will not accept any new connections. This means, that nobody will be able to see the server in the serverlist anymore. Moreover Nobody will be ably to join it anymore. This setting does not affect already established connections (e.g. players already playing on the server).

The MINIMUM value for this setting should always be max player count + 1. e.g. 17 if you have 16 players on your server. If you use this value however, nobody will be able to see your server in the serverlist anymore as all connections are in use and no new connection will be accepted. Therefore it's highly recommended to use a higher value.

The default value is 64. Going lower is not recommended unless you have problems with DDoS (distributed denial of service) attacks. Very high values are also not recommended as they can make your server more vulnerable to DDoS attacks.

Technical background:
UDP is a stateless protocol but CS2D works with a lightweight stateful protocol on top of UDP for reliable data transfer. To make that possible it establishes a virtual connection for each address it receives messages from or sends messages to. This virtual connection saves some state values like packet IDs, queues for reliable packets etc. Maintaining these virtual connections costs memory and CPU time. If attackers send many UDP messages from different sources (DDoS attacks), they can enforce the creation of many virtual connections which can slow down or even crash the server.

Attention: Using a LOW connection limit might make your server inaccessible to new players, hide it from the serverlist or make U.S.G.N. verifications impossible!
Attention: Using a HIGH connection limit might make your server more vulnerable to DDoS attacks!


Lua Hook Lua Hooks

Lua Command Lua Commands