You need to use the map selected by the cheats to use the cheats. I have tips below↓
Press P or ~ during the game to open the console, enter sv_cheats 1 to open the console (this step is complete Important, you must enter the cheat code to be effective)
(There will be a prompt message Server cvar 'sv_cheats' changed to 1 after success)
Then enter the following cheat code to get the corresponding effect:
Note: Using cheats will result in the inability to obtain achievements
Cheat functions
god lt; 0 or 1gt; invincible mode
give health
p>noclip turns on/off wall penetration mode
sv_infinite_ammo lt; 0 or 1gt; turns on/off unlimited ammunition
give ammo full ammunition
map Map name selection level
changelevel Map name selection level (Special attention!!! You need to use this method to open the map to use cheats)
sv_cheats 0 Turn off all cheat effects
kill suicide
quit quit the game
melee_range 70 (default is 70) The higher the damage range value of melee weapons, the farther they can be cut
sb_dont_bash 1 Computer teammates do not push with hands
sb_dont_shoot 1 Computer teammates do not shoot
sb_takecontrol # Switch control between 4 characters in the game
(# stands for Ellis, Nick, Rochelle, Coach can also switch randomly without the suffix)
sb_move 0 All computer teammates stop moving
sb_escort 1 All computer teammates protect you and follow you closely
p>
sb_open_fire 1 All computer teammates fire continuously
sb_crouch 1 All computer teammates squat
sb_flashlight 1 All computer teammates use flashlights (-1 means not using)
sb_give item name Give all computers items (see item names below)
sb_give_random_weapon Randomly assign a weapon to each computer
cl_showfps 1 Display frame number
(=Display frame number and map name
2=Display frame number and smoothing rate
3=Server information
4=Display Frame rate and log file)
thirdpersonshoulder?Third person mode (enter it again to revert to first person)
nb_delete_all kicks all computer teammates and nearby zombies and all special zombies
(But all zombies will still be refreshed)
nb_blind 1 All computer zombies cannot see you (but they will still attack you if they hit the zombies)
cl_drawhud 0 Close all interfaces including the crosshair (realistic mode)
setinfo name Change the player's name to a new name (add "" to change the Chinese name)
sv_lan 1 Only LAN connection (0=can be connected to external network)
Item related
Cheats function
give defibrilator defibrillator (medical)
give adrenaline ?Adrenaline
give first_aid_kit first aid kit
give pai
n_pills painkiller
give melee hunting claw
give vomitjar bile bomb
give frying_pan pot
give electric_guitar guitar
give machete machete
give tonfa baton
give molotov incendiary bomb/bottle
give pipe_bomb homemade iron (or steel) pipe bomb
give propanetank propane tank
give gascan natural gas tank
give oxygentank oxygen tank
Weapon related
Cheats
give pistol double pistol
give pistol_magnum Magnum
give autoshotgun automatic shotgun (1st generation)
give shotgun_chrome single shot shotgun
give pumpshotgun single-shot shotgun (1st generation)
give shotgun_spas SPAS multi-function shotgun
give smg SMG micro submachine gun
give smg_silenced Silent SMG
give rifle_ak47?AK-47 assault rifle
give rifle?M16 automatic rifle
give rifle_desert battle rifle
give hunting_rifle continuous sniper (1st generation)
give sniper_military sniper rifle
give weapon_grenade_launcher?Grenade launcher
Weapon upgrade
Cheats
upgrade_add incendiary_ammo turns on/off incendiary bomb upgrade
upgrade_add explosive_ammo turns on/off bomb upgrade
upgrade_add laser_sight turns on/off sight upgrade
Hidden weapon (must reload the map to have damage)
Cheat code
give weapon_sniper_awp Magnum sniper
give weapon_sniper_scout Steyr sniper
give weapon_smg_mp5?MP5 submachine gun
give weapon_rifle_sg552?assault rifle
Teleport
Cheat code
warp_all_survivors_here Everyone teleports to By your side
warp_all_survivors_to_checkpoint Everyone is teleported to the checkpoint
warp_all_survivors_to_finale Everyone is teleported to the last level
warp_to_start_area Everyone is teleported to the next level checkpoint
p>
Monster-related
Cheats
z_spawn spitter Summons the Spitter
z_spawn jockey Summons the Rider
z_spawn charger Summon Rider
z_spawn zombie Summon Zombie
z_spawn
mob summons zombie mobs
z_spawn boomer summons explosive monsters
z_spawn hunter summons monster hunters
z_spawn witch summons witches
z_spawn smoker summons smokers
z_spawn tank Summons a tank
nb_blind 1 - Makes zombies unable to see you, but they will still find you if you encounter them
nb_delete_all - Clear all targets Infected bosses and survivors
z_add - Add a zombie to the game
z_spawn bossname - Add a boss monster, the boss names are respectively
tank, boomer, smoker, witch, hunter
z_acquire_far_range "9000" The distance at which zombies can see you is 9000 = super far
z_acquire_far_time "0.5" "0.5" seconds have passed since seeing you.
It will rush towards you. If it is changed to 0, it will rush directly
z_acquire_near_range "500" The distance between you and the monster is 500
z_acquire_near_time "0" The above distance is like your reaction time
z_mob_spawn_max_size "60"
z_mob_spawn_min_size "20"
z_must_wander "1" 0: Default
p>1: Zombies will never lie down
2: Zombies will always lie down
z_health "200" The health of ordinary zombies
z_speed "50" The speed of ordinary zombies
z_walk_speed "200" The slow walking speed of ordinary zombies
z_tank_health 4000 Tank The health value of the large tank
z_tank_speed 210 Tank's movement speed
z_witch_speed 300 Witch's movement speed
z_witch_health 1000 Witch's health
z_witch_damage 100 Witch's damage
z_exploding_health 50 Boomer's health value
z_exploding_speed 175 Boomer's movement speed
z_gas_health 250 Smoker's health
z_gas_speed 210 Smoker smoke monster's movement speed
z_hunter_health 250 Hunter hunter monster's health value
z_hunter_speed 300 Hunter hunter monster's movement speed
z_spitter_health 100 Spitter Spitter's health value
z_spitter_speed 210 Spitter's movement speed
z_charger_health 600 Charger's health value
z_charge_max_speed 500 Charger's movement speed
z_charge_max_damage 10 Charger small tank's damage
Damage
z_jockey_health 325 Jockey's health
z_jockey_speed 250 Jockey's movement speed
z_jockey_ride_damage 3 Jockey's damage per second
Miscellaneous
Hotkey functions
cl_drawhud 0 - Eliminate the head-up status bar HUD
r_drawviewmodel 0 - Make your weapon invisible
p>
director_force_panic_event This is the zombie panic event. (The following events)
survivor_burn_factor_expert "0.15" The higher the comfort level of being burned, the more painful it is
Among them, expert is expert (easy-easy)
survivor_crouch_speed " 999" Crouching speed
survivor_friendly_fire_factor_expert "0.1" Whether it hurts to hit teammates is like an expert, you can modify it yourself
director_panic_forever "1" Just keep having strange events
(For example, if you hit the car alarm, keep coming)
z_common_limit "100" The number of monsters that appear at the same time will assist the previous one
z_mega_mob_size "120" Ignore him XD
rescue_min_dead_time "3" After 3 seconds after death, the person can appear in any room to rescue someone
survivor_revive_health "75" The amount of health required when someone is pulling him up while lying on the ground
>
survivor_revive_duration "1.75" The time it takes to pull someone up is 1.75 seconds
tongue_victim_max_speed "80" The speed at which smoker sticks out his tongue to pull you up
z_non_head_damage_factor_expert "11" If it is not head damage
(11 is a multiple, a small gun will kill you at the first level
If it is changed to -1, you will have to hold your head to die)
nb_gravity " 125" The monster's gravity, the higher it goes, the faster it falls.
director_force_witch "2" The amount of witches every time an event occurs
(when the alarm bell rings, or the screen appears waiting for rescue)
director_force_tank "1" The same as above is the time for Tank
first_aid_kit_use_duration "1" to use the first aid kit. Here it is 1 second for rescue and treatment.
director_build_up_min_interval "0" The interval between monster spawns
director_special_battlefield_respawn_interval "10" vs the resurrection time
director_special_initial_spawn_delay_min "10" The rest time between events, 0 means monsters are coming
director_special_initial_spawn_delay_max "10" Same as above
director_special_initial_spawn_delay_max_extra "10" Same as above
Map/Level Jumping Cheats
Main Menu , select Options =gt; Keyboard/Mouse =gt; Allow Developers Console
Press ~ to open the console, enter bind p toggleconsole and then enter map name and press Enter.
Can jump to the corresponding map/level
Game mode switch
map map name vsus confrontation mode
map map name realism realistic mode
map map name survival survival mode
map map name scavenge scavenger mode
Death Center Dead Center
map c1m2_streets streets
map c1m3_mall Shopping Mall
map c1m4_atrium Middle Hall
Dark Carnival
map c2m1_highway Highway
map c2m2_fairgrounds Exhibition Hall
map c2m3_coaster coaster
map c2m4_barns barn
map c2m5_concert concert
Swamp Fever
map c3m1_plankcountry
map c3m2_swamp Swamp
map c3m3_shantytown Shantytown
map c3m4_plantation Plantation
Hard Rain
map c4m1_milltown_a Town
map c4m2_sugarmill_a Sugar Mill
map c4m3_sugarmill_b Escape from the Factory
map c4m4_milltown_b Return to the Town
map c4m5_milltown_escape Escape from the Town
The Parish
map c5m1_waterfront_sndscape pier escape
map c5m1_waterfront pier
map c5m2_park park
map c5m3_cemetery cemetery
map c5m4_quarter Special Zone
map c5m5_bridge Bridge
Extra tips, set your own quick knot button method (by: Huai Meng)
Extended Information:
"Long 4 Dead" is a first-person shooting game developed by Turtle Rock and published by Valve. It was released on November 18, 2008.
The main introduction is that a large-scale epidemic plague broke out in Savannah, Georgia, USA. This plague was caused by a mutant rabies virus. Once it broke out, it spread rapidly. Humans were infected with this disease. After planting the virus, it mutated into zombies and spread by attacking others. Soon the plague infected most areas.
At this time, the government quickly organized an epidemic prevention organization, CEDA, to go to the infected areas for rescue in an attempt to treat these infected people. However, CEDA’s ideas were too naive, and the epidemic prevention measures and methods were the same as those of ordinary influenza. They simply believe that the virus is airborne.
Due to the low efficiency of CEDA, people’s initial expectations for CEDA turned into anger. Eventually, the plague spread on a large scale, and even CEDA agents wearing so-called chemical protective suits were infected. Eventually CEDA withdrew from the city and turned it to the army to deal with it. The army even planned to destroy the city with nuclear bombs to prevent the spread of the plague.
But there are still many survivors in the city. They use guns to protect themselves from being infected, and the player is one of a four-person group in this army of survivors.
Reference: Baidu Encyclopedia - Road to Survival