What is a trainer? A trainer is a program written to intercept and alter the memory addresses of games that are running in the background. Usually trainers contain such features as GOD MODE, UNLIMITED LIVES and others. Since trainers address specific memory locations, they are usually written to only support a specific version of a game.

This cheat needs to modify your game files, so make back-ups before attempting this file hack.

Requires: You need both Portal and Half-life 2 installed.

Back up your Portal directory. Unless you changed the install path, the directory is in :Steamsteamapps(your_username)portal. If you make a mistake during this hack, you may need to re-download Portal through Steam (or at worse, Half-life 2 through Steam).

Download and install GCFScape if you do not have it already. This program allows you to access the cached game files for games using the Source engine.

Go into the directory :Steamsteamapps for all the available GCF archives available. Open the file half-life 2 content.gcf via GCFScape. Click the hl2 folder on the left pane of the GCFScape Explorer window. Right mouse click maps and select the command Extract to place all the contents of the maps folder into the directory :Steamsteamappsthe_great_bundiniportalportal. This merges Half-life 2 maps with the Portal map folder.

Repeat the above step with the scenes folder via GCFScape.

Boot up Steam to run Portal. Drop the developer console with ‘~’ (you may need to enable it under your keyboard options or enable it via the -console command switch on the executable's shortcut).

On the developer console, type maps * to list all the available maps; this should inclde the Half-life 2 maps imported from the previous steps. Type map and then the name of that map (i.e., map d1_canals_01).

Once the map is loaded and you can play, drop the console and enable the cheats for Portal by entering sv_cheats 1. Give yourself all weapons (including the Portal Gun) by entering impulse 101. You may need to input upgrade_portalgun to enable you to fire both portals.

Enjoy the havoc. Note that this hack also works with Episode 1 and Episode 2. You will notice that while NPCs from Half-life cannot pass through portals, all other inert objects (including yourself) and weapons fire will pass through with no problems.

First go into the console and type sv_cheats 1
next type give weapon_alyxgun
The gun will appear below you and face it and hit USE
It may appear as a black box on the side of the screen but still cool to use!