A tutorial on how to get portal to work in halflife 2

Talk about Valve games and mods.
Post Reply
fug4life
Beta Tester
Beta Tester
Posts: 4093
Joined: Mon Dec 11, 2006 10:35 am

A tutorial on how to get portal to work in halflife 2

Post by fug4life »

Taken from primotech's web page so full credit to those guys!

http://www.primotechnology.com/2007/10/ ... -2-portal/

Now, follow our instructions below to the letter and you’ll be firing your gravity gun through portals at unsuspecting Combine in no time.

First off, backup up your entire Portal directory in a safe place. It’s the folder marked ‘portal’ in ..\Steam\steamapps\(your_username)\. We, nor Valve, take any responsibility in the unlikely event of you hosing your game files. Worse comes to worse though, you could always just redownload.
Next, download and install, if you haven’t already, GCFScape. This handy program will allow you to access the cached game files for any Source-powered game, in addition to several other Steam games you may have downloaded.
Once that’s done, browse to the directory ..\Steam\steamapps\. There, you’ll see all the available GCF archives. We’ll start with Half-Life 2.
Open the GCF marked ‘half-life 2 content.gcf’ You’ll see a directory tree in the left pane. Click the box to the left of the folder marked ‘hl2’ to see the directory listing contained within it. Then, right-click ‘maps,’ select ‘Extract’ and extract the entire folder into the directory \Steam\steamapps\the_great_bundini\portal\portal. This will merge it with the existing Portal map folder.
Do the same with the ’scenes’ folder
Fire up Steam and run Portal. When it’s done doing its thing, open up the developer console with ‘~’ (you may need to enable it under your keyboard options).
At the console, type ‘maps *’ to list all the available maps. Now that you’ve imported the Half-Life 2 maps, this will be a fairly lengthy list and some of the names, like citadel and canals, should seem familiar.
Type ‘map’ and then the map name to open that map. For instance, ‘map d1_canals_01’
When the map is done loading, pull up the console again and enable cheats by entering ‘sv_cheats 1’
To give yourself all weapons, including the portal gun, enter ‘impulse 101’
Depending on how far you got in Portal, you may need to upgrade the portal gun to fire both portals. Enter ‘upgrade_portalgun’ to do so
Go lay waste to some alien scum with the power of portals!

Here are some more thoughts on our experiences:

Follow the same steps if you’d like to try it out with Half-Life 2: Deatmatch or Episodes 1 and 2.
We actually highly recommend starting with the HL2: DM maps to give you a feel of how things operate and allow you to experiment with various techniques. You can spawn an enemy by first looking where you would like him to be placed and then entering, say, ‘npc_create_equipment weapon_shotgun; wait; npc_create npc_combine_s’ to create a Combine soldier with a shotgun. (Visit this HL2 Filefront page for more details)
Sorry, but we’ve racked our brains and can’t figure out a simple way to get multiple people into a game of HL2: DM this way. We’re sure some enterprising group of modders will come up with something in the coming weeks, though.
We did not attempt to do this with Team Fortress 2, Counter-Strike: Source, or Day of Defeat: Source. As fun as it might sound in theory, we would like to dissuade you from trying it as well, as it probably won’t yield any real satisfactory results.
All the same basic concepts of Portal apply here, including realistic momentum and gravity. You’ll also automatically regain health very quickly as in Portal. We’ll try to find a fix for this and post it soon.
It may take some time to figure out which surfaces work and which don’t, since obviously this is no longer clearly indicated by the textures. Generally speaking, shoot only for flat walls, floors, and ceilings and not objects like rocks or boxes.
Sadly, NPC’s and enemies cannot pass through portals. However, almost all ammunition, from bullets shot to grenades tossed to objects flung with the gravity gun, can and will make their way through smoothly.
You’ll also probably notice a weird, floating colored cloud that follows you around (it appears a few times in the video above). We couldn’t figure out a way to disable this, but thankfully it’s only a minor annoyance.
'I would probably smarten up before you meet Violet'.
'She has zero tolerance for idiots'.

fug's Obsidian files
fug's Obsidian clips
Obsidian wiki
Obsidian Map Database
Hell-met
Obsidian Gold
Obsidian Gold
Posts: 2885
Joined: Tue Jun 27, 2006 4:09 am
Location: BIENVENUE DANS MON PAYS LE KEBEK

Post by Hell-met »

everyone who has basic gcf knowledge can do this without a tut

i mean everyone thinks this is a super awesome leet hack

the npcs are mute, including their gun firepower, that makes it dull.
fug4life
Beta Tester
Beta Tester
Posts: 4093
Joined: Mon Dec 11, 2006 10:35 am

Post by fug4life »

I just saw the screen shots and got all excited, although to lazy at mo to test
'I would probably smarten up before you meet Violet'.
'She has zero tolerance for idiots'.

fug's Obsidian files
fug's Obsidian clips
Obsidian wiki
Obsidian Map Database
Hell-met
Obsidian Gold
Obsidian Gold
Posts: 2885
Joined: Tue Jun 27, 2006 4:09 am
Location: BIENVENUE DANS MON PAYS LE KEBEK

Post by Hell-met »

theres nothing to get excited about, trust me

youll just end up being stuck somewhere because you broke triggers.
fug4life
Beta Tester
Beta Tester
Posts: 4093
Joined: Mon Dec 11, 2006 10:35 am

Post by fug4life »

kk, I hear yur, but still...
'I would probably smarten up before you meet Violet'.
'She has zero tolerance for idiots'.

fug's Obsidian files
fug's Obsidian clips
Obsidian wiki
Obsidian Map Database
Hell-met
Obsidian Gold
Obsidian Gold
Posts: 2885
Joined: Tue Jun 27, 2006 4:09 am
Location: BIENVENUE DANS MON PAYS LE KEBEK

Post by Hell-met »

MY IDEALOGY = JUST fraking WAIT FOR PROPER CONVERTION(S)!

ARGHHH FUCGKEINTT/IUN
Steve
npc_strider
npc_strider
Posts: 614
Joined: Thu Dec 28, 2006 7:42 pm

Post by Steve »

I agree, Portals are great, but i dont see the urge to spend 30 minutes getting them in games where they dont belong.
Image
Steve: Yo tengo tu madre en mi pantalones, lolzo
Fire_cube: my mom is actually in MY pants
Fire_cube: youshithead
Hell-met
Obsidian Gold
Obsidian Gold
Posts: 2885
Joined: Tue Jun 27, 2006 4:09 am
Location: BIENVENUE DANS MON PAYS LE KEBEK

Post by Hell-met »

steve = my point
User avatar
larz
npc_combinegunship
npc_combinegunship
Posts: 726
Joined: Fri Jun 23, 2006 12:17 am
Location: Crowley, Texas
Contact:

Post by larz »

I NU IT!
Image
Microsoft™ wrote: my favorite thing to do is rape little children
Post Reply