Cleanup is going to take awhile, so the site is back up but editing has been disabled.

Server Commands

From HalfLife 2 Knowledge Base

Jump to: navigation, search

CHANGELEVEL (map name) ALL

To switch levels with out the MAP command.

DECALFREQUENCY # ALL

Sets the frequency at which players can spray their logos. # is in seconds, 0 means no delay.

KICK (username)

Kick a player from the game


MP_FLASHLIGHT 0 (0, 1) ALL

Toggles the flashlight for multiplayer games.


MP_FRIENDLYFIRE 0 (0, 1) ALL

Toggles the ability to harm a team mate.


MP_FREEZTIME 6 (#) CS, CS:S

Denotes length of time players can not move at the start of of a round.


MP_C4TIMER 45 (10-?) CS, CS:S

Denotes the time fuse on the C4.


SV_ALLTALK 0 (0, 1) ALL

Toggels the ability of persons of oppisite teams/ghost team to communicate via voice chat.


SV_CHEATS 0 (0, 1) ALL

This command enables the use of cheat commands, development commands, etc.


SV_LAN 0 (0, 1) ALL

Determinds if the server is a Lan only server (1), or an internet server (0).



ai_auto_contact_solver

ai_debug_assault

ai_debug_directnavprobe

ai_debug_doors

ai_debug_efficiency

ai_debug_enemies

ai_debug_expressions Show random expression decisions for NPCs.

ai_debug_follow

ai_debug_loners

ai_debug_looktargets

ai_debug_los NPC Line-Of-Sight debug mode. If 1, solid entities that block NPC LOC will be highlighted with white bounding boxes. If 2, it'll show non-solid entities that would do it if they were solid.

ai_debug_nav

ai_debug_ragdoll_magnets

ai_debug_shoot_positions

ai_debug_speech

ai_debug_squads

ai_debug_think_ticks

ai_debugscriptconditions

ai_drawbattlelines

ai_efficiency_override

ai_follow_use_points

ai_follow_use_points_when_moving

ai_lead_time

ai_LOS_mode

ai_moveprobe_debug

ai_moveprobe_jump_debug

ai_moveprobe_usetracelist

ai_no_local_paths

ai_no_node_cache

ai_no_select_box

ai_no_steer

ai_no_talk_delay

ai_norebuildgraph

ai_path_adjust_speed_on_immediate_turns

ai_path_insert_pause_at_est_end

ai_path_insert_pause_at_obstruction

ai_reaction_delay_alert

ai_reaction_delay_idle

ai_rebalance_thinks

ai_report_task_timings_on_limit

ai_sequence_debug

ai_shot_bias

ai_shot_bias_max

ai_shot_bias_min

ai_shot_stats

ai_shot_stats_term

ai_show_hull_attacks

ai_show_think_tolerance

ai_simulate_task_overtime

ai_spread_cone_focus_time

ai_spread_defocused_cone_multiplier

ai_spread_pattern_focus_time

ai_think_limit_label

ai_use_clipped_paths

ai_use_efficiency

ai_use_frame_think_limits

ai_use_think_optimizations

ammo_338mag_max

ammo_357sig_max

ammo_45acp_max

ammo_50AE_max

ammo_556mm_box_max

ammo_556mm_max

ammo_57mm_max

ammo_762mm_max

ammo_9mm_max

ammo_buckshot_max

ammo_flashbang_max

ammo_hegrenade_max

ammo_smokegrenade_max

bot_allow_grenades

bot_allow_machine_guns

bot_allow_pistols

bot_allow_rifles

bot_allow_rogues

bot_allow_shield

bot_allow_shotguns

bot_allow_snipers

bot_allow_sub_machine_guns

bot_auto_vacate

bot_chatter

bot_crouch

bot_debug

bot_defer_to_human

bot_difficulty

bot_freeze

bot_join_after_player

bot_join_team

bot_mimic

bot_mimic_yaw_offset

bot_prefix

bot_profile_db

bot_quota

bot_quota_match

bot_show_nav

bot_stop

bot_traceview

bot_traceview_extended

bot_walk

bot_zombie

breakable_disable_gib_limit

breakable_multiplayer

collision_shake_amp

collision_shake_freq

collision_shake_time

cs_ShowStateTransitions cs_ShowStateTransitions <ent index or -1 for all>. Show player state transitions.

cs_stacking_num_levels How many players can stack on top of another player.

debug_physimpact

decalfrequency

dispcoll_drawplane

displaysoundlist

ent_debugkeys

ent_messages_draw Visualizes all entity input/output activity.

fire_absorbrate

fire_dmgbase

fire_dmginterval

fire_dmgscale

fire_extabsorb

fire_extscale

fire_growthrate

fire_heatscale

fire_incomingheatscale

fire_maxabsorb

flex_expression

flex_looktime

flex_maxawaytime

flex_maxplayertime

flex_minawaytime

flex_minplayertime

flex_talk

free_pass_peek_debug

func_break_max_pieces

func_breakdmg_bullet

func_breakdmg_club

func_breakdmg_explosive

g_debug_doors

g_debug_ragdoll_removal

g_debug_trackpather

g_debug_transitions Set to 1 and restart the map to be warned if the map has no trigger_transition volumes. Set to 2 to see a dump of all entities & associated results during a transition.

g_Language

g_ragdoll_maxcount

hltv_delay HLTV broadcast delay in seconds

hltv_viewent HLTV camera entity index

hostage_debug Show hostage AI debug information

lservercfgfile

mapcyclefile

mp_allowNPCs

mp_allowspectators toggles whether the server allows spectator mode or not

mp_autocrosshair

mp_autokick Kick idle/team-killing players

mp_autoteambalance

mp_buytime How many minutes after round start players can buy items for.

mp_c4timer how long from when the C4 is armed until it blows

mp_chattime amount of time players can chat after the game is over

mp_defaultteam

mp_facefronttime After this amount of time of standing in place but aiming to one side, go ahead and move feet to face upper body.

mp_fadetoblack fade a player's screen to black when he dies

mp_falldamage

mp_feetyawrate How many degrees per second that we can turn our feet or upper body.

mp_flashlight

mp_footsteps

mp_forcecamera Restricts spectator modes for dead players

mp_forcerespawn

mp_fraglimit

mp_freezetime how many seconds to keep players frozen when the round starts

mp_friendlyfire

mp_hostagepenalty Terrorist are kicked for killing too much hostages

mp_ik Use IK on in-place turns.

mp_limitteams Max # of players 1 team can have over another

mp_maxrounds max number of rounds to play before server changes maps

mp_playerid Controls what information player see in the status bar: 0 all names; 1 team names; 2 no names

mp_restartgame If non-zero, game will restart in the specified number of seconds

mp_roundtime How many minutes each round takes.

mp_solidplayers Set player solid in multiplayer mode, no pushback

mp_spawnprotectiontime Kick players who team-kill within this many seconds of a round restart.

mp_startmoney amount of money each player gets when they reset

mp_teamlist

mp_teamoverride

mp_teamplay

mp_timelimit game time per map in minutes

mp_tkpunish Will a TK'er be punished in the next round? {0=no, 1=yes}

mp_weaponstay

mp_winlimit max number of rounds one team can win before server changes maps

nav_edit Set to one to interactively edit the Navigation Mesh. Set to zero to leave edit mode.

nav_quicksave Set to one to skip the time consuming phases of the analysis. Useful for data collection and testing.

nav_show_approach_points Show Approach Points in the Navigation Mesh.

nav_show_danger Show current 'danger' levels.

npc_create_equipment

npc_go_do_run Set whether should run on NPC go

npc_height_adjust Enable test mode for ik height adjustment

npc_sentences

npc_vphysics

old_radiusdamage

phys_impactforcescale

phys_penetration_error_time Controls the duration of vphysics penetration error boxes.

phys_pushscale

phys_speeds

phys_stressbodyweights

phys_timescale Scale time for physics

phys_upimpactforcescale

physicsshadowupdate_render

player_old_armor

r_AirboatViewDampenDamp

r_AirboatViewDampenFreq

r_AirboatViewZHeight

r_JeepViewDampenDamp

r_JeepViewDampenFreq

r_JeepViewZHeight

r_vehicleBrakeRate

r_vehicleDrawDebug

r_VehicleViewDampen

replaydelay

scene_allowoverrides When playing back a choreographed scene, allow per-model expression overrides.

scene_flatturn

scene_forcecombined When playing back, force use of combined .wav files even in english.

scene_maxcaptionradius Only show closed captions if recipient is within this many units of speaking actor (0==disabled).

scene_print When playing back a scene, print timing and event info to console.

scene_showfaceto When playing back, show the directions of faceto events.

scene_showlook When playing back, show the directions of look events.

scene_showmoveto When moving, show the end location.

servercfgfile Shows the current .cfg file that is used to start a server.

showhitlocation

showtriggers Shows trigger brushes

sk_ally_regen_time Time taken for an ally to regenerate a point of health.

sk_npc_arm

sk_npc_chest

sk_npc_head

sk_npc_leg

sk_npc_stomach

sk_player_arm

sk_player_chest

sk_player_head

sk_player_leg

sk_player_stomach

smoothstairs Smooth player eye z coordinate when climbing stairs.

soundpatch_captionlength How long looping soundpatch captions should display for.

step_spline

suitvolume

sv_accelerate

sv_airaccelerate

sv_alltalk Players can hear all other players, no team restrictions

sv_autosave Set to 1 to save game on level transition. Does not affect autosave triggers.

sv_backspeed How much to slow down backwards motion

sv_bounce Bounce multiplier for when physically simulated objects collide with other objects.

sv_debug_player_use Visualizes +use logic. Green cross=trace success, Red cross=trace too far, Green box=radius success

sv_debugresponses Show verbose matching output (1 for simple, 2 for rule scoring)

sv_dumpresponses Dump all response_rules.txt and rules (requires restart)

sv_footsteps Play footstep sound for players

sv_friction World friction.

sv_gravity World gravity.

sv_massreport

sv_max_usercmd_future_ticks Prevents clients from running usercmds too far in the future. Prevents speed hacks.

sv_maxspeed

sv_maxunlag Maximum lag compensation in seconds

sv_maxvelocity Maximum speed any ballistically moving object is allowed to attain per axis.

sv_netvisdist Test networking visibility distance

sv_noclipaccelerate

sv_noclipduringpause If cheats are enabled, then you can noclip with the game paused (for doing screenshots, etc.).

sv_noclipspeed

sv_npc_talker_maxdist NPCs over this distance from the player won't attempt to speak.

sv_pushaway_clientside Clientside physics push away (0=off, 1=only localplayer, 1=all players)

sv_pushaway_clientside_size Minimum size of pushback objects

sv_pushaway_force How hard physics objects are pushed away from the players on the server.

sv_pushaway_max_force Maximum amount of force applied to physics objects by players.

sv_pushaway_min_player_speed If a player is moving slower than this, don't push away physics objects (enables ducking behind things).

sv_rollangle Max view roll angle

sv_rollspeed

sv_runcmds

sv_showhitboxes Send server-side hitboxes for specified entity to client (NOTE: this uses lots of bandwidth, use on listen server only).

sv_showimpacts Shows client (red) and server (blue) bullet impact point

sv_showladders Show bbox and dismount points for all ladders (must be set before level load.)


sv_skyname Current name of the skybox texture

sv_soundemitter_trace Show all EmitSound calls including their symbolic name and the actual wave file they resolved to


sv_specaccelerate

sv_specnoclip

sv_specspeed

sv_stepsize

sv_stopspeed Minimum stopping speed when on ground.

sv_strict_notarget If set, notarget will cause entities to never think they are in the pvs

sv_suppress_viewpunch

sv_teststepsimulation

sv_thinktimecheck Check for thinktimes all on same timestamp.

sv_unlag Enables player lag compensation

sv_watchentlist

sv_wateraccelerate

sv_waterdist Vertical view fixup when eyes are near water plane.

sv_waterfriction

template_debug

test_nav_opt

think_limit Maximum think time in milliseconds, warning is printed if this is exceeded.

trace_report

voice_serverdebug

weapon_showproficiency

Personal tools