Home All-Time Best All-Time Worst Sites Help

Half-Life 2

Codes

'Alyx Gun'

Enter these codes in the console to get the 'Alyx Gun', which appears to be some kind of prototype pistol. Goes as the a third pistol, has 30 bullet clip, no extra ammo, and it looks like an iron bar that was surgically put into Gordon's side.

EffectCode
sk_plr_dmg_alyxgun ## is new damage for Alyx Gun (default 150
sk_max_alyxgun ## is new max ammo for Alyx Gun (default 0)
give weapon_alyxgunGives you the 'Alyx Gun'

Contributed By: teh_yeti.

Ammo Codes

Press ' (or ~) to bring up the console. Type "give" followed by these codes (you might need to type sv_cheats 1 first) to get more ammo.

EffectCode
item_ammo_357.357 Ammo
item_box_srounds9mm Ammo
item_ammo_crossbowCrossbow Ammo
item_box_lroundsPulse Gun Ammo
item_ml_grenadeRPG Rocket
item_box_buckshotShotgun Ammo
item_box_mroundsSMG Ammo
item_ar2_grenadeSMG Grenades (secondary shot)

Contributed By: Manepss.

Console Code

Open the console menu using ~ and imput this code:

bind key command

This binds a console command to a key. Note that if the command has arguments, quotes must be used. For example: bind x "impulse 101"

Be careful on which key you choose. If you use a key already in use for the game (W, A, S, D are for movement, 1-6 is used for weapons, G is for gravity gun, etc), the bind command will override the original command, and you will not be able to use it anymore.

EffectCode
bind X "Impulse 101"Creates a hot key for instant stock of weapnos and ammunition using the "x" key

Contributed By: VisionofImmortality.

Console Codes

Use the [~] key during gameplay to bring up the console and enter the following codes there:

EffectCode
sk_plr_dmg_357 ## is new damage value for .357 Magnum
sk_plr_dmg_crossbow ## is new damage value for crossbow
sk_plr_dmg_crowbar ## is new damage value for crowbar
sk_plr_dmg_grenade ## is new damage value for grenades
sk_plr_dmg_pistol ## is new damage value for pistol
sk_plr_dmg_ar2 ## is new damage value for Pulse Rifle
sk_plr_dmg_rpg_round ## is new damage value for RPG rockets
sk_plr_dmg_buckshot ## is new damage value for shotgun
sk_plr_dmg_smg1_grenade ## is new damage value for SMG grenades
sk_plr_dmg_smg1 ## is new damage value for submachine gun
sk_max_357 ## is new max ammo for .357 Magnum
sk_max_crossbow ## is new max ammo for crossbow
sk_max_grenade ## is new max ammo for hand grenades
sk_max_pistol ## is new max ammo for pistol
sk_max_ar2 ## is new max ammo for Pulse Rifle
sk_max_ar2_altfire ## is new max ammo for Pulse Rifle energy orbs
sk_max_rpg_round ## is new max ammo for RPG
sk_max_buckshot ## is new max ammo for shotgun
sk_max_smg1_grenade ## is new max ammo for SMG grenades
sk_max_smg1 ## is new max ammo for submachine gun
sk_max_smg1 ## is new max ammo for submachine gun
weapon_357.357 Magnum
weapon_shotgun12-Gauge Shotgun
weapon_pistol9mm Pistol
net_graph 1a more thorough fps display
noclipAbility to walk through walls (Server Side Only)
sv_cheats 1Activates Cheats
viewmodel_fov #Adjusts size of the weapon you're carrying (54 = default)
impulse 101All Weapons
mat_yuv 1black-and-white mode
cl_showpos 1brings up position display in top right of screen (0 removes it)
getposcan be used to get current coords for use with setpos
skill #change skill level (# = 1, 2, or 3)
air_density #Change the density of air. (Add number in place of #)
physcannon_maxforce #Changes how hard you propel objects
physcannon_maxmass #Changes how large pulled objects can be
physcannon_pullforce #Changes how quickly objects are pulled
physcannon_tracelength #Changes the length that objects can be pulled from
physcannon_cone #Changes the radius of the cone used to pick up objects
host_timescale #Changes the speed of the game (for slow-mo/fast-mo) (# < 1 = slower, # > 1 = faster).
shakeCreates an earthquake.
npc_createCreates an NPC
npc_create_aimedCreates an NPC (Aiming away from player)
weapon_crossbowCrossbow
weapon_crowbarCrowbar
Hurtme #Damages player by whatever variable you input as #
crosshair 0Disables Crosshair
mapsDisplays Map listing
mat_yuv 0Enables Color Mode
+mlookEnables mouse look
cl_ragdoll_collide 1Enables ragdolls that don't clip through each other, but stack realistically on one another.
exec #Execute a script file (Input filename in place of #)
firstpersonFirst Person View
weapon_fragFragmentation Grenade
give #Give weapon (Input weapon name in place of #)
sv_infinite_aux_power 1gives infinite power for sprinting, etc.
sv_infinite_aux_power 1gives infinite power for sprinting, etc.
r_screenoverlay effects/combine_binocoverlay.vmtGives you combine vision during gameplay.
give weapon_annabellegives you Father Gregori's modified shotgun
give weapon_physcannonGives you Gravity Gun
give item_suitGives you the HEV Suit
item_healthkitGives you the large health kit (25HP)
item_healthvialGives you the small health vial (10HP)
r_screenoverlay effects/tp_eyefx/tp_eyefx.vmtGives you weird vision during gameplay.
GodGod Mode (Server side only)
impulse 76Grunt-O-Matic
buddhaHealth never goes below 1
sk_plr_num_shotgun_pellets #Increases pellets fired from each shotgun shell. 100 works well. 1000+ and it lags.
give item_batteryIncreases suit charge by 15 points.
notargetInvisible to NPC's
mat_numtextureunits #Limit the number of texture units. (Add number in place of #) (0=Default)
Map #Load Map (Input title in place of #)
ch_createjeepMake a jeep
ch_createairboatMakes an airboat
physcannon_megacannon 1Makes your Gravity Gun a Super Gravity Gun
setposMove player to specified origin
npc_create_equipment weapon_crowbarNPC spawns equipped with a crowbar.
npc_create_equipment weapon_ar2NPC spawns equipped with a pulse rifle.
npc_create_equipment weapon_RPGNPC spawns equipped with a RPG rocket launcher.
npc_create_equipment weapon_shotgunNPC spawns equipped with a shotgun.
npc_create_equipment weapon_smg1NPC spawns equipped with a SMG.
sk_npc_dmg_shotgun #NPC's do # damage with shotgun
sk_npc_dmg_ar2 #NPC's do # damage with the pulse rifle
sk_npc_dmg_smg1 #NPC's do # damage with the smg
weapon_ar2Overwatch Standard Issue Pulse Rifle
weapon_bugbaitPherapods
sk_plr_dmg_buckshot #Raises damage done by each pellet.
sk_max_buckshot #Raises your max number of shells to that number.
give weapon_shotgunRecieve a Shotgun
mat_fullbright 1removes all shadows (a 0 restores them)
mat_fullbright 1removes all shadows (a 0 restores them)
impulse 203removes the item or NPC pointed at
impulse 203removes the item or NPC pointed at
help $replace $ with a command to get a brief description of it
weapon_rpgRocket-Propelled Grenade Launcher
mat_depthbias_normal 1See through walls
sv_gravity #Set Gravity (Add number in place of #)
dsp_explosion_effect_duration #Set length of confusion/ear-ringing effect(Add number in place of #)
sv_stopspeed #Set Minimum Stopping Speed on ground (Add number in place of #)
sv_waterdist #Set Vertical View when eyes are near water plane.
sv_friction #Set World Friction (Add number in place of #)
sv_bounce #Sets bounce multiplier for physically simulated object collisions
Developer #Sets developer mode to on/off/verbose (0-off, 1-on, 2-verbose)
sv_maxvelocity #Sets Maximum Velocity of any moving object (Add number in place of #)
hud_quickhelp/text? 1Shows Crosshairs
cl_showfps 1Shows FPS Rate
statusshows some game info, incl. current map
setangSnap players eyes to a specified pitch yaw
impulse 82Spawn a Jeep
impulse 83Spawn an Air Boat
give item_ammo_357Spawns ammo for the .357 magnum
give item_box_sroundsSpawns ammo for the 9mm pistol
give item_ammo_crossbowSpawns ammo for the crossbow
give item_ammo_ar2_altfireSpawns energy grenade for the Overwatch Pulse Rifle
give item_rpg_round OR give item_ml_grenadeSpawns grenades for the RPG
give item_ar2_grenadeSpawns grenades for the submachinegun, oddly enough..........
give item_ammo_ar2Spawns primary fire ammo for the Overwatch Pulse Rifle
give item_box_mroundsSpawns primary fire ammo for the submachinegun
give item_box_buckshotSpawns shells for the 12-gauge shotgun
weapon_smg1Submachine Gun
thirdpersonThird Person View
prop_debugToggle bounding-boxes debug mode on/off red - ignore damage, white - respond to damage, green - health)
cl_enablehud 1Toggle HUD display On
cl_drawhud 1Toggle HUD display On
sv_soundemitter_filecheckToggle reporting missing .wav files for sounds
ai_disabletoggles enemy AI on/off
cl_drawhud 0Toggles HUD off.
cl_enablehud 0Toggles HUD off.
pickerToggles Picker mode on
violence_ablood 0Turns off alien blood.
violence_agibs 0Turns off alien gibs.
violence_hblood 0Turns off human blood.
violence_hgibs 0Turns off human gibs.
sv_unlockedchapters # (Note: 15 is end credits)Unlock chapters 1 thru #
sv_unlockedchapters #unlocks chapters 1 thru # (15 is end credits)
KillYou die.
weapon_physcannonZero Point Energy Field Manipulator Gun

Contributed By: Swiftshark, sdunigan, rctRCT, GunslingerX, xXDeathFromAboveXx, jonsushi, Kaboobi, CremeSoda, redpsyclone, vicdude99, Shadow., Rearden Metal, Viperous, XxCaLeBxX, Shoy, halflife2lover, MIND_FREAK, Heretick, Richie B43, teh_yeti, gamerguy132, wyvern236, megamanv7, PikaZeroX, LAZARUS187, E_102_Gamma, and Blue Shark.

Console Commands

Use the [~] key during gameplay to bring up the console and enter the following commands there:

EffectCode
play demo_namePlays demo.(change demo_name to the demo you want to be played)
record demo_nameRecords a demo of all the user's actions within the game until the "stop" command is issued.
stopStops recording the current demo.

Contributed By: gamefreaksl.

How to Spawn NPCs

Access the console, type in "npc_create npc_<name>" and replace the name with one of these:

EffectCode
citizen
mossman
monk
antlionguard
alyx
antlion
barnacle
barney
breen
poisonzombie
rollermine
turret_floor
turret_ceiling
zombie_torso
zombie
vortigaunt
strider
stalker
cscanner
metropolice
manhack
eli
dog
pigeon
seagull
crow
combine_s
combinegunship
combinedropship
fastzombie
gman
launcher
kleiner
ichthyosaur
headcrab_poison
headcrab_black
headcrab_fast
headcrab
helicopter
combine_p

Contributed By: Cloud Runner 777 and Shadow..

Map codes

Enter these with the 'map' code in the console. Press ~ to activate the console.

EffectCode
d1_under_04Spawn the lab chapter near the end.
d1_trainstation_03Spawns in the train station after the second load point.
d1_trainstation_05Spawns in the train station after the third load point.
d1_canal_09Spawns in you in the canals after the eighth load point.
d1_canals_12Spawns in you in the canals after the eleventh load point.
d1_canals_06Spawns in you in the canals after the fifth load point.
d1_canals_05Spawns in you in the canals after the fourth load point.
d1_canal_10Spawns in you in the canals after the ninth load point.
d1_canals_03Spawns in you in the canals after the second load point.
d1_canal_08Spawns in you in the canals after the seventh load point.
d1_canals_07Spawns in you in the canals after the sixth load point.
d1_canals_11Spawns in you in the canals after the tenth load point.
d1_canals_04Spawns in you in the canals after the third load point.
d1_canals_13Spawns in you in the canals close to the end.
d1_eli_01Spawns you after the canal, outside of Eli's Lab.
d3_citadel_02Spawns you after the first load point in the Citadel.
d3_citadel_03Spawns you after the second load point in the Citadel.
d3_citadel_04Spawns you after the third load point in the Citadel.
d1_breen_01Spawns you at the beginning of Chapter 13.
d3_citadel_05Spawns you at the end of the Citadel.
d1_canals_02Spawns you deeper in the canals.
d3_c17_09Spawns you in City 17 after the eighth load point.
d3_c17_12Spawns you in City 17 after the eleventh load point.
d3_c17_06Spawns you in City 17 after the fifth load point.
d3_c17_02Spawns you in City 17 after the first load point.
d3_c17_05Spawns you in City 17 after the fourth load point.
d3_c17_10Spawns you in City 17 after the ninth load point.
d3_c17_03Spawns you in City 17 after the second load point.
d3_c17_08Spawns you in City 17 after the seventh load point.
d3_c17_07Spawns you in City 17 after the sixth load point.
d3_c18_11Spawns you in City 17 after the tenth load point.
d3_c17_04Spawns you in City 17 after the third load point.
d1_eli_02Spawns you in Eli's Lab.
d1_under_01Spawns you in lab
d2_prison_01Spawns you in Nova Prospekt
d2_prison_06Spawns you in Nova Prospekt after the fifth load point.
d2_prison_02Spawns you in Nova Prospekt after the first load point.
d2_prison_03Spawns you in Nova Prospekt after the second load point.
d2_prison_07Spawns you in Nova Prospekt after the sixth load point.
d2_prison_04Spawns you in Nova Prospekt after the third load point.
d2_prison_05Spawns you in Nova Prospekt near the end of the level.
d1_town_01Spawns you in Ravenholm
d1_town_02Spawns you in Ravenholm after the first load point area.
d1_town_03Spawns you in Ravenholm after the second load point area.
d1_town_04Spawns you in Ravenholm after the third load point area.
d1_canals_01Spawns you in the canals.
d3_c17_01Spawns you in the city 17 rebellion
d2_coast_09Spawns you in the coast area after the eighth load point.
d2_coast_06Spawns you in the coast area after the fifth load point.
d2_coast_02Spawns you in the coast area after the first load point.
d2_coast_05Spawns you in the coast area after the fourth load point.
d2_coast_10Spawns you in the coast area after the ninth load point.
d2_coast_03Spawns you in the coast area after the second load point.
d2_coast_07Spawns you in the coast area after the sixth load point.
d2_coast_11Spawns you in the coast area after the tenth load point.
d2_coast_04Spawns you in the coast area after the third load point.
d2_coast_08Spawns you in the coast area near the end of it.
d1_under_02Spawns you in the lab chapter after the second load point.
d1_under_03Spawns you in the lab chapter after the third load point.
d1_trainstation_01Spawns you in train station
d1_trainstation_02Spawns you in train station after the first load point.
d3_citadel_01Spawns you near the beginning of the Citadel.
d3_c17_13Spawns you near the end of City 17.
d2_prison_08Spawns you near the end of Nova Prospekt.
d1_town_05Spawns you near the end of Ravenholm.
d1_canals_endSpawns you near the end of the canals.
d2_coast_12Spawns you near the end of the coast area.
d1_trainstation_06Spawns you near the end of the train station.
d2_coast_01Spawns you on the coast (Vehicle)
creditsStarts you at the credits
introStarts you at the games Intro.

Contributed By: Abraham SATO and Shadow..

Slow Deaths

Open the console while playing the game, enter cl_phys_timescale 0.05 or any of the others listed below. (1 sets the game back to normal speed)

EffectCode
0.5mid-slow
0.05slow
0.0stop time
0.1super-slow

Contributed By: MatrixMafia222.

Weapon cheats

To spawn armor, ammo, weapons, or any items of the nature, first open the console. Then type the following command:

give"weapon entity"

In place where weapon entity is, you input one of the codes below.

The Organic Manipulator cannot be spawned because the map chooses whether or not it is organic. Refer to another cheat for that weapon.

EffectCode
weapon_357357 Magnum Revolver
weapon_bugbaitBug Bait (from Antlion Guards)
weapon_crossbowCrossbow
weapon_annabelleFather Annabelle Grigori's shotgun, uses 357 magnum ammo
item_dynamic_resupplyFragmentation Grenade
weapon_crowbarGordon's classic
weapon_smg1MP7 with grenade launcher
weapon_ar2Overwatch Standard Issue Pusle-Rifle
weapon_pistolPistol
weapon_rpgRocket Launcher
weapon_shotgunShotgun
weapon_physcannonThe Manipulator

Contributed By: Jack the Smack and Shadow..

Achievements

Steam Achievements

AchievementDescription
Get the airboat.Anchor's Aweigh!
Disintegrate 15 soldiers by throwing them into a Combine ball field.Atomizer
Kill five barnacles with one barrel.Barnacle Bowling
Find the HEV Suit Charger faceplate in Eli's scrapyard.Blast from the Past
Use the antlions to kill 50 enemies.Bug Hunt
Kill all of the snipers in City 17.Counter-Sniper
Hit the trashcan cop with the can.Defiant
Shut down the supression device by disabling its generators.Fight the Power
Kill an enemy with a toilet.Flushed
Gain command of a squad of rebels in the uprising.Follow Freeman
Survive the rooftop strider battle in the ruins of City 17.Giant Killer
Kill five enemies with a Manhack.Hack Attack!
Escort Gregori safely through the church cemetery.Hallowed Ground
Get the airboat's mounted gun.Heavy Weapons
Cross the antlion beach in chapter Sandtraps without touching the sand.Keep Off the Sand!
Find all lambda caches in Half-Life 2.Lambda Locator
Escape the apartment block raid.Malcontent
Destroy six gunships in Half-Life 2.One Man Army
Kill 3 enemies using the crane.OSHA Violation
Survive the generator plaza standoff in chapter Anticitizen One.Plaza Defender
Get through the toxic tunnel under City 17 in Half-Life 2.Radiation Levels Detected
Destroy the hunter-chopper in Half-Life 2.Revenge!
Destroy the Citadel's reactor core.Singularity Collapse
Put the can in the trash.Submissive
Pin a soldier to the billboard in chapter Highway 17.Targetted Advertising
Get the crowbar.Trusty Hardware
Use dog's ball to make a basket in eli's scrapyard.Two Points
Discover the hidden singing vortigaunt cave in chapter Water Hazard.Vorticough
Survive the second turret standoff in Nova Prospekt.Warden Freeman
Break the mini-teleporter in Kleiner's lab.What cat?
Defend Little Odessa from the gunship attack.Where Cubbage Fears to Tread
Get the Gravity Gun in Black Mesa East.Zero-Point Energy
Play through Ravenholm using only the Gravity Gun.Zombie Chopper

Contributed By: Guard Master.