Overview
This guide will surprise you of how many weapons there are in Portal! You will need to know how to open up the developer console to do this. You can find a key to bind to console in the option on the keyboard category.
Crowbar
give weapon_crowbar
Gravity Gun
give weapon_physcannon
Portal Gun
give weapon_portalgun
If you want the portal gun to be upgraded, just type:
upgrade_portalgun
9mm Pistol
give weapon_pistol
.357 Magnum
give weapon_357
Alyx Gun
give weapon_alyxgun
SMG
give weapon_smg1
Pulse Rifle
give weapon_ar2
Shotgun
give weapon_shotgun
Crossbow
give weapon_crossbow
Grenade
give weapon_frag
RPG
give weapon_rpg
Hopwire
give weapon_hopwire
To be able to activate the hopwire grenade properly, you need to write down this too:
hopwire_vortex 1
This allows the grenade to create a mini black hole. Can crash the game if you stand at point blank range, next to it as you activate it! Otherwise, standing slightly near it will kill you. The rollermine you see on the picture is the actual black hole grenade when thrown.
Bugbait
give weapon_bugbait
Annabelle (Rifle)
give weapon_annabelle
Suitcase
give weapon_citizensuitcase
Package
give weapon_citizenpackage
Cubemap
give weapon_cubemap
Extra Weapons
⚠ These weapons cannot be equipped as a weapon in Portal, by the player. ⚠
give weapon_stunstick
give weapon_striderbuster
give weapon_oldmanharpoon
The harpoon is not really in Portal. Half Life 2: Lost Coast only!
Guns attached to Vehicles
You need to write two commands. One to spawn the vehicle and another to attach the gun.
-
To spawn the airboat, enter this in the console:ch_createairboat
-
Now, we only need to unlock the gun, so type this down:ent_fire airboat enablegun 1Now you can go full rambo, because that gun is a lmg. Just don’t overheat it.
-
For the jeep, you will need to enter this down:ch_createjeep
-
When you have done that, type in:ent_fire jeep enableradar; ent_fire jeep enablegun 1What happens is that you unlock the Gauss Cannon attachment for the jeep.
Do not enter the “ch_createjalopy” command because it will crash the game instantly. The vehicle is supposed to be the yellow drivable car from Half-Life 2 Episode 2, however because of how unfinished and broken it was at the time, it is not usable unfortunately.
Impulse 101 (Unlock all normal weapons)
impulse 101
This gives you:
-
Ammunition for the weapons
-
item_suit
-
weapon_crowbar
-
weapon_physcannon
-
weapon_portalgun (Upgraded)
-
weapon_pistol
-
weapon_357
-
weapon_smg1
-
weapon_ar2
-
weapon_shotgun
-
weapon_crossbow
-
weapon_frag
-
weapon_rpg
-
weapon_bugbait
This is a demonstration video:
Ammo
Before you spawn the ammo, aim at the ground where you want to spawn the ammo. You can use “give” instead of “ent_create” so you get the ammo instantly. For receiving ammo supply exclusive to the current weapon, use “givecurrentammo” alone instead.
ent_create item_ammo_pistol ent_create item_ammo_357 ent_create item_ammo_smg1 ent_create item_ammo_smg1_grenade ent_create item_ammo_ar2 ent_create item_ammo_ar2_altfire ent_create item_box_buckshot ent_create item_ammo_crossbow ent_create weapon_frag ent_create item_rpg_round ent_create weapon_hopwire ent_create item_box_sniper_rounds ent_create item_box_flare_rounds
There is no flare gun or sniper rifle in this game, but the developers left the rounds in Half Life 2 and Portal anyway! Even tho the npc_sniper exists, it doesn’t use a sniper rifle. You can pick up sniper rounds, but not the flare rounds. If you try, you will get an error in the console, I quote:
Originally posted by author:“ERROR: Attempting to give unknown ammo type (FlareRound).”
In Conclusion
There are 20 weapons in the game, excluding the guns attached to the vehicles because of how restricted those are. 18 of them are weapons the player can pick up. Six of those weapons are weapons from Half-Life 2 that wasn’t supposed to be used by the player in the first place but can be equipped.
Be sure to give this guide a like to show some support!
Comment for any suggestions or questions.