PORTAL COMMANDS
ent_create_portal_weight_box - spawns a standard cube
ent_create_portal_weight_box; ent_fire !picker skin 1 - spawns a companion cube
ent_create_portal_weight_box; ent_fire !picker skin 2 - spawns a skull cube (Still
Alive only)
ent_create_portal_metal_sphere - spawns an edgeless safety cube
ent_create prop_glados_core - spawns a core (can't be picked up)
ent_create updateitem2 - spawns a radio (no music)
ent_create npc_portal_turret_floor - spawns a turret
ent_create npc_rocket_turret - spawns a rocket turret
ent_create npc_security_camera - spawns a security camera
ent_create weapon_portalgun - spawns a portal gun that you can pick up
prop_dynamic_create gladdysdestruction/gladdysbody - spawns GLaDOS
prop_dynamic_create gladdysdestruction/glados_junk_05_ - spawns Hoopy
prop_dynamic_create props/light_rail_endcap - spawns the end of a light rail
prop_dynamic_create props/light_rail_corner - spawns the pillar of a light rail
prop_dynamic_create props/lift_platform - spawns a lift platform
prop_dynamic_create props/door_02 - spawns GLaDOS' chamber door
prop_dynamic_create props/switch001 - spawns a button
prop_dynamic_create props/toilet_body_reference - spawns a toilet
prop_dynamic_create props/table_reference - spawns a table
prop_dynamic_create props/bed_body_reference - spawns a bed
prop_dynamic_create props/pedestal_center_reference - spawns a portal gun pedestal
prop_dynamic_create props/round_elevator_body - spawns an elevator
prop_dynamic_create props/combine_ball_launcher - spawns an energy pellet launcher
prop_dynamic_create props/combine_ball_catcher - spawns an energy pellet catcher
prop_dynamic_create props/glados_stairs - spawns the stairs in GLaDOS' chamber
prop_dynamic_create props_bts/glados_bunker - spawns the bunker in GLaDOS' chamber
prop_dynamic_create props_bts/glados_aperturedoor - spawns an incinerator
prop_dynamic_create props_bts/glados_screenborder_curve - spawns a screen
prop_dynamic_create props_bts/bts_turret - spawns a hanging turret
prop_dynamic_create player/chell - spawns Chell
prop_dynamic_create props/cake/cake - spawns a cake
HALF - LIFE 2 PROPS/NPC
npc_create npc_turret_floor - spawns an HL2 turret
npc_create npc_alyx - spawns Alyx
npc_create npc_breen - spawns Breen
npc_create npc_gman - spawns G-Man
npc_create npc_combine_s - spawns a combine
npc_create npc_metropolice - spawns a metropolice
npc_create npc_citizen - spawns a citizen
npc_create npc_zombie - spawns a zombie
npc_create npc_fastzombie - spawns a fast zombie
npc_create npc_barnacle - spawns a barnacle
npc_create npc_headcrab - spawns a head crab
npc_create npc_poisonzombie - spawns a poison zombie
npc_create npc_headcrab_fast - spawns a fast head crab
npc_create npc_poisonheadcrab - spawns a poison head crab
ch_createjeep - spawns a buggy
ch_createairboat - spawns an air boat
npc_create npc_antlion - spawns a antlion
npc_citizen_insignia - places a visible model on the Citizens
OTHER NPC COMMANDS
npc_create_equipment weapon_shotgun - (NPC spawns equipped with a shotgun.)
npc_create_equipment weapon_smg1 - (NPC spawns equipped with a SMG.)
npc_create_equipment weapon_ar2 - (NPC spawns equipped with a pulse rifle.)
npc_create_equipment weapon_crowbar - (NPC spawns equipped with a crowbar.)
npc_create_equipment weapon_RPG - (NPC spawns equipped with a RPG rocket launcher.)
ENVIROMENT & USER
buddha - you can take damage but won't die
god - invincible
sv_portal_placement_never_fail # - allows you to place portals anywhere (0 = off, 1
= on)
noclip - allows you to fly
notarget - turrets won't shoot you
impulse 101 - gives you weapons from half life (use mouse wheel to scroll through
weapons)
impulse 200 - removes portal gun texture (can still shoot)
fire_rocket_projectile - fires a rocket
fire_energy_ball - fires a high energy pellet
cl_showfps # - shows fps (0 = off, 1 = on)
sv_cheats # - enables cheats (0 = off, 1 = on)
sv_gravity # - changes gravity (600 is normal)
violence_hblood # - disables blood (0 = off, 1 = on)
thirdperson - makes your view thirdperson
thirdpersonshoulder - makes your view thirdpersonshoulder
firstperson - makes your view firstperson again
host_timescale # - changes game speed (1 is normal)
change_portalgun_linkage_id # - changes the portal gun linkage id for the user
(0,1,2,3,)
give weapon_portalgun - gives the player a standard portal gun
upgrade_portalgun - upgrades the stands portal gun to a dual portal gun
kill - kills player
bind <key> <command> - still works with only a few commands, huh
showtriggers_toggle - shows the triggers in a map
mat_fullbright # - disables shadows (0 = off, 1 = on)
map <map name> - loads specified map
crash - crashes game
killserver - kills the server
maxplayers # - sets the amount of players
ent_remove - removes what you are looking at
ent_remove_all <entity name here> - removes the entity specified
ent_fire COMMANDS
ent_fire !picker skin # - changes the skin of an object (0 - 10)
ent_fire !picker open - opens doors
ent_fire !picker close - closes doors
ent_fire <entity name here> - will pick up the entity which is specified
ent_fire prop_portal fizzle - removes portals you placed
ent_fire npc_rocket_turret toggle - toggles rocket turrets
ent_remove - Removes what you looking at
CORE SPAWNS
You are able to spawn the cores with their dialogue now!
ent_create prop_glados_core coretype # spawnflags 1048904 cycle 1.00 playbackrate
1.00 sequence 2 delaybetweenlines 0.40
Changing the # after "coretype" to the numbers below will change the command to
spawn that specific core with their dialogue.
0 = Curiosity Core
1 = Anger Core
2 = Cake Core
3 = Morality Core
OTHER COMMANDS
prop_physics_create props_junk/watermelon01 -spawns a melon
No damage: god
You never die, but you can get damaged: buddha
Infinite power for your suit: sv_infinite_aux_power 1
All weapons and ammo: impulse 101
Head skulls: impulse 102
Suicide: kill
Kill all npc’s in the area: npc_kill
Npcs don’t notice you: notarget (may make some scripted events not working
correctly)
Become non-solid and fly like a ghost: noclip
Spawn a jeep: ch_createjeep
Spawn a jeep: impulse 82
Spawn an airboat: ch_createairboat
Add and enable the gun on the airboat: ent_fire prop_vehicle_airboat enablegun 1
Spawn an airboat: impulse 83
Super charged Gravity gun: physcannon_mega_enabled 1
Freeze npcs movements/animations: ai_disable (may make some scripted events not
working correctly)
Make the camera shake a bit: shake
Delete an item that you are aiming at: impulse 203
Delete more than just an item that you are aiming at: ent_remove
Ignite almost anything you look at: ent_fire !picker ignite
Remove a special type of npc: ent_remove npc_*insert npc name here*
Remove all special type of npcs: ent_remove_all npc_*insert npc name here*
Adjust the noclip speed: sv_noclipspeed # (#=Number)
Adjust the physcannon push(launching) force or drag force: physcannon_maxforce #
(#=Number)
GIVE COMMANDS
give item_healthkit - Gives you a health kit
give item_healthvial - Gives you a health vial
give item_suit - Gives you the Hazardous enviroment suit
give item_battery - Gives you a battery
give item_healthcharger
give item_suitcharger
give item_box_srounds - 9mm Ammo
give item_box_mrounds - SMG Ammo
give item_box_lrounds - Pulse Gun Ammo
give item_box_buckshot - Shotgun Ammo
give item_ar2_grenade - SMG Grenades (secondary shot)
give item_ammo_crossbow - Crossbow Ammo
give item_ammo_pistol - Gives you pistol ammo
give item_ammo_smg1 - Gives you SMG ammo
give item_ammo_smg1_grenade - Gives you grenade launcher ammo for the SMG
give item_ammo_ar2 - Gives you Overwatch Pulse Rifle ammo
give item_ammo_ar2_altfire - Spawns energy grenade for the Overwatch Pulse Rifle
give item_rpg_round OR give item_ml_grenade - Spawns grenades for the RPG
ent_create item_box_flare_rounds - Spawns flare rounds at where you aim
ent_create item_box_sniper_rounds - Spawns sniper rounds at where you aim
givecurrentammo - Gives you ammo for the current weapon
WEAPON CHEATS
Enable cheats and use the “give” command.
weapon_crowbar
weapon_physcannon
weapon_stunstick - (Adds 7% suit power instead)
weapon_portalgun - (Portal only)
weapon_pistol
weapon_357
weapon_alyxgun - (Pick up the gun to use it)
weapon_smg1
weapon_ar2
weapon_shotgun
weapon_crossbow
weapon_frag
weapon_rpg
weapon_hopwire - (Worked in HL2:EP1 before but now only in Portal)
weapon_striderbuster - (Works in EP1 or EP2)
weapon_bugbait
weapon_annabelle - (A rifle that uses magnum ammo)
weapon_citizensuitcase
weapon_citizenpackage
weapon_oldmanharpoon - (Works only in HL2: Lost Coast)
weapon_cubemap - Gives you a tool mostly used by level designers
ent_create weapon_stunstick; ent_fire !picker addoutput "classname
weapon_stunbaton"; ent_fire !picker addoutput "OnPlayerPickup !
self:addoutput:classname weapon_stunstick:0:-1" - spawns functional stustick
impulse 101
(Gives you all the non-secret HL2 weapons) [Don't enter the give command in front
of it]
If you want to remove a certain weapon - ent_remove weapon_crossbow
NPC SPAWN COMMANDS
Type npc_create npc_ [name] to spawn an NPC. Here is a list of the names you can
enter for [name]:
alyx (Alyx Vance)
barney (Barney Calhoun)
dog (Dog)
kleiner (Dr. Kleiner)
eli (Eli Vance)
mossman (Judith Mossman)
monk (Father Grigori)
citizen (Citizen)
headcrab (Regular Headcrab)
zombie (Regular Zombie)
zombie_torso (Regular Zombie Torso)
headcrab_fast (Fast Headcrab)
headcrab_black (Black Headcrab)
headcrab_poison (Poison Headcrab)
fastzombie (Fast Zombie)
poisonzombie (Poison Zombie)
zombine (Zombine that uses an error model, so it works better in HL2:EP1)
antlion (Antlion)
antlionguard (Antlion Guard)
combine_s (Combine Soldier/Combine Elite/Prison Guard)
metropolice (Metro Cop)
stalker (Stalker)
cscanner (City Scanner)
clawscanner (Claw Scanner)
manhack (Manhack)
rollermine (Rollermine)
combine_mine (Hopper Mine)
combine_camera" (Combine Camera)
turret_floor (Combine Turret)
turret_ceiling (Ceiling Turret)
turret_ground (Ground Turret)
launcher (?)
combinedropship (Dropship)
combinegunship (Gunship)
strider (Strider)
pigeon (Pigeon)
crow (Crow)
seagull (Seagull)
barnacle (Barnacle)
ichthyosaur (Ichthyosaur)
vortigaunt (Vortigaunt)
sniper (Sniper) Aim at it and type this:
NPC SGUAD BEHAVIOR
npc_citizen_auto_player_squad - Citizens will immediately join the player's squad,
and can't be removed until they die.
npc_citizen_auto_player_squad_allow_use - Allows the player to manually add/remove
Citizens from their squad by pressing +use on them. Requires
npc_citizen_auto_player_squad 0 to properly work.
player_squad_autosummon_time - How long the squad must be in one position after
being sent there before they will automatically go back to following the player.
Default of 5 is annoyingly low. Set to something like 64 in order to make them stay
for a while.
player_squad_autosummon_time_after_combat - Similar to above, but after a combat
phase. Default of 8 is similarly annoyingly low. Set to another higher number based
on user preference to make the follow or wait. 32 is a decent number.
player_squad_autosummon_move_tolerance - How far the player can move away before
they will autosummon based on distance. Useful to set to something like 64 or such
in case you forget them. Default of 20 is somewhat low if doing more fine-tuned
placement. This is not in Hammer units!
player_squad_autosummon_player_tolerance - Similar to above. Setting both to the
same value probably wouldn't hurt, but I need more data. Default of 10 is pretty
low, however.
player_squad_transient_commands - Toggle the entire autosummon functionality. The
squad command panel will also change from a blank text display (where the SQUAD
FOLLOWING text will appear) to show SQUAD STATIONED instead. If you combine this
with npc_citizen_auto_player_squad 0 and
npc_citizen_auto_player_squad_allow_use 1 - you can very effectively make the NPC
stay and hold down one
spot.
impulse 50 - The send/recall command.