Are you stuck? Are you a huge sissy and can’t take the stress of the dark early parts of the game? Use console commands to literally make yourself a god, and I’ll be telling you how to enable the console, and list some commands here for you to play around with.
Thanks to BubblesAndSuch, we had updated more commands on Mar 30. the new update contains the most common commands, weapon commands, tool commands, player commands, entity commands, graphic commands and developer commands.
Enabling the Console
Make sure you have Half-Life Alyx closed
Navigate to your library and right click Half Life Alyx, in the dropdown menu that appears, click “properties”
Next, click ” set launch options”
Next, paste -console -vconsole into the textbox and click OK
Opening the console In-Game
For most of these commands to work, you have to be loaded ingame, so load a savegame and pause your game.Press “~” on your keyboard to load up the console. If you cant find the key, its located above the “tab” key. Now, a window will open up on your PC monitor, not in your VR headset so you’ll have to take off your headset to use the console, which is why I recommend pausing your game when using the console.
Using the Console (entering commands)
This is what your console will look like.
Type in your commands in the textbox that I’ve circled in red, helpfully labeled “command”.
Press enter after you are finished typing in or copy-pasting your commands for them to take effect.
Most Common Commands
god — Toggles invincibility
vrfly_enabled 1 — Enables a mode to fly around with the keyboard, Completely disables head tracking. WASD to move and arrow keys to look.
sv_infinite_ammo 1 — Pull unlimited mags and shells out of your backpack
sv_infinite_clips 1 — Bottomless mag. Guns will even fire with an empty mag.
impulse 101 — Gives you all the weapons plus 20 resin
impulse 102 — Automatically unlocks all gun upgrades
give item_hlvr_weapon_energygun — Spawns pistol.
give item_hlvr_weapon_rapidfire — Spawns SMG.
give item_hlvr_weapon_shotgun — Spawns shotgun.
Weapon Commands
sv_infinite_clips 1 — Grab unlimited mags and shells out of your backpack. Grabbed mags use no ammo from your inventory.
impulse 101 — Gives you all weapons, 30 pistol ammo, 30 smg ammo, 6 shotgun shells, 20 resin, gravity gloves, multi-tool, and skips the tutorial prompts.
impulse 102 — Automatically unlocks all gun upgrades.
give item_hlvr_weapon_energygun — Spawns pistol at your feet.
vr_energygun_ammo_per_clip — Amount of ammo in each pistol mag. Can go over too. (default: 10)
vr_energygun_rof <Seconds> — Time between shots for the pistol. (default 0.175)
hlvr_energygun_grant_upgrade <Upgrade ID> — Grants Pistol upgrades.
0 : Laser Sight
1 : Reflex Sight
2 : Bullet Hopper
3 : Burst Fire
give item_hlvr_weapon_shotgun — Spawns shotgun at your feet.
hlvr_shotgun_give — Gives you the shotgun.
vr_shotgun_rof <Seconds> — Changes the time between shots in seconds for the shotgun. (default 0.5)
vr_energygun_handcannon_pellet_count <Number> — Number of shotgun pellets per shot.
hlvr_shotgun_grant_upgrade <Upgrade ID> — Grants shotgun upgrades.
0 : AutoLoader
1 : Grenade Launcher
2 : Laser Sight
3 : Quick Fire
give item_hlvr_weapon_rapidfire — Spawns SMG at your feet.
vr_rapidfire_ammo_per_capsule <Amount> — Amount of ammo in each smg mag. Going over the default will empty your backpack quicker. (default: 30).
vr_rapidfire_rof <Seconds> — Time between shots for the smgl. (default 0.10f)
hlvr_rapidfire_grant_upgrade <Upgrade ID> — Grants SMG upgrades.
0 : Energy Ball (UNUSABLE)
1 : Tag Dart (UNUSABLE)
2 : Stun Grenade Clips (UNUSABLE)
3 : Exploding Bullets (UNUSABLE)
4 : Reflex Sight
5 : Laser Sight
Tool Commands
hlvr_give_flashlight — Gives you the flashlight and turns it on. (Will be an ERROR model if you don’t have the gloves).
vr_hand_pull_acceleration_max <Value> — The pull strength of the gloves. (default 500)
vr_hand_pull_angle_far <Value> — When you flick your wrist, objects can be moved to the side with this setting. 0 means the object will always go straight towards you. 90 means you can send it to the side. (This is for far away objects. Set between 0 and 90).
vr_hand_pull_angle_near <Value> — Same as above but for closer objects
vr_hand_pull_angle_far_distance <Value> — The distance for an object to be considered far away.
vr_hand_pull_angle_near_distance <Value> — The distance for an object to be considered close.
vr_hand_pull_acceleration_debug 1 — Show the trajectory of pulled objects.
god — Toggles invincibility
buddha — You still take damage but can’t die (Jeff can still kill you)
vrfly_enabled 1 — Enables a mode to fly around with the keyboard, Completely disables head tracking. WASD to move and arrow keys to look.
vrfly_speed <number> — Changes the flying speed. (default 60)
The commands to set the player speed have been set as “Developer Only” meaning they can not be changed through the console. They can be changed through the [Launch Options] in the same way the console is enabled. To change the player speed, add the following code to the [Launch Options]:
+hlvr_continuous_normal_speed 200 +hlvr_continuous_combat_speed 200
Make sure there’s a space between this new code and the old code that enabled the console. The default speed for both is 100.
Entity Commands
en_text_clear — Removes the info overlay of the currently looked at entity.
sv_gravity <Amount> — Changes the gravity for the player, props, and entities. 0 = no gravity, ~500 = normal gravity.
give <Item Name> — Spawns an item of the given name at your feet.
List needs expansion
- item_hlvr_weapon_energygun — Spawns pistol.
- item_hlvr_weapon_rapidfire — Spawns SMG.
- item_hlvr_weapon_shotgun — Spawns shotgun.
- item_hlvr_multitool — Spawns multitool.
- item_hlvr — Spawns flashlight.
- item_hlvr_clip_energygun — Pistol mag
- item_hlvr_clip_rapidfire — Smg mag.
- item_hlvr_clip_shotgun_multiple — 4x Shotgun ammo.
- item_hlvr_grenade_frag — Combine grenade.
- item_hlvr_grenade_xen — Xen grenade.
- item_hlvr_crafting_currency_small — Single resin.
- item_hlvr_crafting_currency_large — 5x Resin.
- item_hlvr_health_station_vial — Bug vial for health station.
- item_hlvr_prop_battery — Combine power cell.
npc_create <EntityName> — Spawns an entity of the given type where you are looking.
List needs expansion
- npc_zombie_blind — Zombie.
- npc_barnacle — Fully working, but will spawn inside floors and ceilings.
- npc_antlion
- npc_headcrab — Normal headcrab.
- npc_headcrab_armored — Armored headcrab.
- npc_headcrab_black — Toxic headcrab.
- npc_headcrab_fast — Lightning dog.
- npc_headcrab_runner — Fast headcrab. Spawns, but has no AI or sounds.
- npc_combine_s — White Combine with gas canister.
- npc_manhack — Manhack.
- npc_cscanner — Scanner camera. Has no model but still works.
Entity / Prop List
ent_create prop_physics {<model> <model/path>} — Spawns an entity of the given name.
List needs expansion
Not sure how to format this command. Any help would be appreciated!
Enemy Commands
barnacle_vr_damage_pull <number> Changes the damage taken from baracles. (default 5).
Graphics Commands
cl_showfps 1 — Shows an FPS Counter on the desktop.
r_drawskybox 0 — Disables the Skybox. Makes the sky black in most areas.
vr_enable_volume_fog 0 — Disables volumetric fog.
vr_enable_lights 0 — Disables live lights. (Such as the flashlight).
Developer Commands [SPOILER WARNING]
Below are map names!
[SPOILER WARNING]
These commands are for loading maps and various dev tasks
highest_chapter_unlocked <Number> — Unlocks all chapters up to a number. (Max 10).
map MapName — Used to load a map. Can also load maps from the SteamVR Workshop Tools
- startup — Alyx logo and main menu.
- a1_intro_world — Game Start.
- a1_intro_world_2
- a2_drainage
- a2_headcrabs_tunnel
- a2_hideout
- a2_pistol
- a2_quarantine_entrance
- a2_train_yard
- a3_c17_processing_plant
- a3_distillery
- a3_hotel_interior_rooftop
- a3_hotel_lobby_basement
- a3_hotel_street
- a3_hotel_underground_pit
- a3_station_street
- a4_c17_parking_garage
- a4_c17_tanker_yard
- a4_c17_water_tower
- a4_c17_zoo
- a5_vault — When you first enter the vault.
- a5_ending — Right before Gman .
- a2_drainage\a2_drainage_skybox
- a2_hideout\a2_hideout_skybox
- a2_pistol\a2_pistol_skybox
- a2_quarantine_entrance\a2_quarantine_entrance_skybox
- a2_train_yard\a2_train_yard_skybox
- a3_c17_processing_plant\skybox
- a3_distillery\a3_distillery_skybox
- a3_hotel_street\hotel_street_skybox
- a3_hotel_street\hotel_street_skybox_static
- a4_c17_parking_garage\skybox
- a4_c17_tanker_yard\skybox
- a4_c17_water_tower\skybox
- a4_c17_zoo\skybox
- a5_ending\void_space
- a5_vault\vault_skybox
- error — Gets stuck endlessly loading.
- a1_intro_world\citadel_vista_screen — Potentially a backdrop for a TV screen?
- a1_intro_world\citadel_vista — Looks to be the same as above.
- a5_ending\void_space — The floating Zen island at the end, but with no planet or Gman.
nav_generate_no_restart 1 — Generates a navmesh so NPC’s can walk around a custom SteamVR Workshop Tools map.
load <Saveslot>/<Name> Loads a certain save. Example: load S2/quick loads the quick save from the third save slot. (S0 = first slot, S1 = seconond slot).
splitscreen_mode <mode> — Enables a buggy but potentially hackable splitscreen mode. Modes are 0-4. (3 works best. 0 is normal).
vr_draw_hand 1 Draws ghost hands that always stay where your controllers are. (Your normal in-game hands can be moved by handles or walls).
Fun Commands
vr_shotgun_chamber_light_brightness 5000 — Entire Shotgun glows brightly when out of ammo.
vr_energygun_handcannon_pellet_count 250 — Massive shotgun blasts to kill anything in your path!
vr_energygun_rof 0.2 — Rapid fire laser gun! (lag prone)
Related Posts:
- Half-Life: Alyx – How to make NPC Wars
- Half-Life Alyx: How to Equip the Guns
- Half-Life Alyx: How to Fix Subtitles not working
- Half-Life Alyx: 100% Achievements Guide (All 11 Chapters)
- Half-Life Alyx: Save Game Locations
Add to the player’s ammo & crafting currency levels. Format:
hlvr_addresources
hlvr_addresources 0 0 0 0 change as needed
hlvr_addresources 10 0 0 0 gives 10 pistol ammo
hlvr_addresources 0 10 0 0 gives 10 smg ammo
hlvr_addresources 0 0 10 0 gives 10 shotgun ammo
hlvr_addresources 0 0 0 10 gives 10 Resin