1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Registration is fixed, let KingPin know if you have any issues..

Useful console commands

Discussion in 'FPS Servers' started by KingPinX, Dec 21, 2008.

  1. KingPin

    KingPin Administrator Staff Member

    Commands can be chained using ";".
    Example: bind x "sv_cheats 1; z_spawn boomer; z_spawn hunter; z_spawn smoker; z_spawn mob; sv_cheats 0; vocalize playerhurrah;"
    will toggle cheats on/off and drops you a pretty surprise when X key is pressed.

    You can store your commands in a "myCommands.cfg" file you create in a text editor like Notepad and put it in C:program FilesSteamsteamappscommonleft 4 deadleft4deadcfg. It will get executed when your server runs. You can also execute a particular config file, e.g., "die.cfg", by using "exec die.cfg" in the console.

    sv_cheats 0

    thirdpersonshoulder - toggles character view mode (bugged shotgun sounds)
    bind "" - binds an action / multiple actions to a key
    example: bind x "vocalize smartlook" (very handy in game)
    kill - kill yourself with generic damage
    explode - kill yourself with explosive damage (same effect as kill)
    kick - kicks the selected character from the game
    example: kick Zoey (getting rid of the bots)
    sb_add - fills empty bot slots with fresh bots (spawns kicked bots)
    crosshair - toggles crosshair visibility - 1337 mode (binary 0/1)
    net_graph - shows connection, fps and other info overlay in game ( no overlay 0 - full info 4)
    voice_recordtofile - starts/stops recording microphone inputs to voice_micdata.wav in game dir (binary 0/1)
    changelevel - loads selected map (start with "l4d" to get console hint on map name)
    sv_search_max_ping - as a Lobby Leader, you can specify the max ping values for server search (default 250)
    spectate - moves you to the spectator mode (also handy in VS to change autoswitched players back)

    sv_cheats 1

    noclip - fly mode
    thirdperson - Tomb Raider camera view
    god - IDDQD mode (binary - 0/1)
    z_spawn - spawns a desired character or mob at your cursor
    example: z_spawn witch / z_spawn mob
    z_common_limit - changes the limit of zombies drawn at one time
    give - equips your character with item or effect desired
    example1: give molotov / give ammo / give health (anti-knockdown)
    example2: give oxygen_tank / give propane_tank / give gas_can
    givecurrentammo - refills your current main weapon ammunition
    sv_infinite_ammo - current weapon gets infinite ammunition (binary 0/1)
    nb_delete_all - clears all infected, bosses and bots in the area
    director_force_panic_event - calls a horde
    director_panic_forever - neverending panic event trigger (binary 0/1)
    nb_blind - infected become blind (binary 0/1)
    cl_drawhud - removes HUD elements from screen (binary 0/1)
    boom - spawns an active pipebomb at your feet
    fire - spawns an active molotov at your feet
    warp_all_survivors_here - instantly ports everyone to cursor position (handy when the bots are a bit away)
    z_tank_has_special_blood - changes tank's blood to a darker sample (binary 0/1)
    z_gun_kick - adds a kick effect to all the guns
    sv_crash - if an admin ever screws with you on a sv_cheats 1 server, use this to crash him

    Examples

    Rambo mode v1.5: (sv_cheats 1)
    sv_cheats 1; nb_delete_all; director_force_panic_event; director_panic_forever 1; callvote ChangeDifficulty Hard; z_common_infected 50; z_gun_kick 1; hidehud 4; vocalize playerincoming;
    Enjoy the pain and glory.

    Enhanced red crosshair: (sv_cheats 0)
    cl_crosshair_alpha "100" (default 255)
    cl_crosshair_red "255" (default 138)
    cl_crosshair_green "0" (default 182)
    cl_crosshair_blue "0" (default 220)
    cl_crosshair_thickness "1" (default 2)
    cl_crosshair_dynamic "1" (accuracy/recoil autosizing - default 1)
    This setting WILL stick on game reset.

    Bot control: (sv_cheats 1)
    bind kp_end "sv_cheats 1; nb_move_to_cursor; sv_cheats 0;"
    Orders bots to move to cursor position on Numpad 1 press. They will follow again in a while.

    Single player Campaign Infected play: (sv_cheats 1)
    sv_cheats 1;
    director_force_versus_start;
    director_no_human_zombies 0;
    sb_all_bot_team 1;
    Then press the default "M" key to switch to Infected. Bots will progress normally through the level and you can own them to your liking. Keep in mind that single player campaign maps don't have zombie ladders. Noclip is your friend here. With "z_spawn" special and normal infected key binds this really turns to sort of a Zombie Dungeon Master. [​IMG]

    Single player VS Infected play: (sv_cheats 1)
    sv_cheats 1;
    sb_all_bot_team 1;
    changelevel ; (console offers you level name hints, VS maps start with l4d_vs_)
    Press "M" to join Infected.

    Character/Item glow: (sv_cheats 0)
    Item glow:
    cl_glow_item_b 1.0;
    cl_glow_item_g 0.7;
    cl_glow_item_r 0.7;
    cl_glow_item_far_b 1.0;
    cl_glow_item_far_g 0.4;
    cl_glow_item_far_r 0.5;


    Glows for infected:
    cl_glow_ghost_infected_b;
    cl_glow_ghost_infected_g;
    cl_glow_ghost_infected_r;
    cl_glow_infected_b;
    cl_glow_infected_g;
    cl_glow_infected_r;
    cl_glow_infected_vomit_b;
    cl_glow_infected_vomit_g;
    cl_glow_infected_vomit_r;
    cl_glow_survivor_health_high_b;
    cl_glow_survivor_health_high_g;
    cl_glow_survivor_health_high_r;
    cl_glow_survivor_health_med_b;
    cl_glow_survivor_health_med_g;
    cl_glow_survivor_health_med_r;
    cl_glow_survivor_health_low_b;
    cl_glow_survivor_health_low_g;
    cl_glow_survivor_health_low_r;


    Glows for survivors:
    cl_glow_survivor_vomit_b;
    cl_glow_survivor_vomit_g;
    cl_glow_survivor_vomit_r;
    cl_glow_survivor_b;
    cl_glow_survivor_g;
    cl_glow_survivor_r;
    cl_glow_survivor_hurt_b;
    cl_glow_survivor_hurt_g;
    cl_glow_survivor_hurt_r;
    cl_glow_thirdstrike_item_b;
    cl_glow_thirdstrike_item_g;
    cl_glow_thirdstrike_item_r;


    These vars WILL be changed to default values on game reset unless you specify them in autoexec.cfg (l4d/cfs folder). Setting these values to 0.0 will remove the glow completely for a more "realistic" experience.

    Creating props: (sv_cheats 1)
    Prop_dynamic_create;
    Prop_physics_create;


    Joining your OWN server: (sv_cheats 1->0)
    sv_cheats 1; ms_force_dedicated_server "server_ip:server_port";


    Useful vocalize samples

    To be best used with bind "vocalize ".

    SmartLook - comments on surroundings (present in radial menu)
    AskForHealth2 - asks target for healing by name
    PlayerStayTogether
    PlayerHurryUp
    PlayerWatchOutBehind
    PlayerIncoming

    Numpad key codes

    1 = kp_end
    2 = kp_downarrow
    3 = kp_pgdn
    4 = kp_leftarrow
    5 = kp_5
    6 = kp_rightarrow
    7 = kp_home
    8 = kp_uparrow
    9 = kp_pgup
    0 = kp_ins
    Period = kp_del
    Enter = kp_enter
    Plus = kp_plus
    Minus = kp_minus
    Slash = kp_slash
    * = kp_multiply

    Campaign maps

    changelevel

    l4d_airport01_greenhouse
    l4d_airport02_offices
    l4d_airport03_garage
    l4d_airport04_terminal
    l4d_airport05_runway

    l4d_farm01_hilltop
    l4d_farm02_traintunnel
    l4d_farm03_bridge
    l4d_farm04_barn
    l4d_farm05_cornfield

    l4d_hospital01_apartment
    l4d_hospital02_subway
    l4d_hospital03_sewers
    l4d_hospital04_interior
    l4d_hospital05_rooftop

    l4d_smalltown01_caves
    l4d_smalltown02_drainage
    l4d_smalltown03_ranchhouse
    l4d_smalltown04_mainstreet
    l4d_smalltown05_houseboat

    Versus maps

    changelevel

    l4d_vs_farm01_hilltop
    l4d_vs_farm02_traintunnel
    l4d_vs_farm03_bridge
    l4d_vs_farm04_barn
    l4d_vs_farm05_cornfield

    l4d_vs_hospital01_apartment
    l4d_vs_hospital02_subway
    l4d_vs_hospital03_sewers
    l4d_vs_hospital04_interior
    l4d_vs_hospital05_rooftop

Share This Page

Users found this page by searching for:

  1. tf2 unlimited ammo command

    ,
  2. tf2 infinite ammo command

    ,
  3. tf2 unlimited ammo console command

    ,
  4. tf2 infinite ammo console command,
  5. tf2 console commands infinite ammo,
  6. tf2 console commands unlimited ammo,
  7. infinite ammo command tf2,
  8. tf2 infinite ammo,
  9. tf2 ammo command,
  10. infinite ammo tf2 command