Half Life 2 Cheats on Mac
Magnus Nystedt | Sep 24, 2008 | Comments 28

Half Life 2 is a game that was released in 2004 only for Windows PCs. It was a huge hit and has a great following of fans still today, but it’s still not available for Mac. Now that Macs all run Intel processors you can actually run Half Life 2 on your Mac and it’s still a very entertaining game. No, it’s not an official release, so I’m not going to tell you where to find it, but it’s not very hard to find, if you know what I mean – nudge, nudge.
For the Windows version there are plenty of sites with information about how to cheat in Half Life 2. I don’t encourage you to cheat but it could happen that you find yourself in a situation in the game where you just can’t get out of it and where a cheat would help. And the basic technique for cheating is the same on Mac as it is with Windows, but with some differences, so I thought I’d tell you how.
First you’d right-click on the Half Life 2 icon and select Show Package Contents.
Then you’re going to find the Contents > Resources > transgaming > c_drive > Program Files > root > HL2 > cfg folder. In there you will see a config.cfg file. Open that file with a text editor, in my case I use BBEdit.
Look for a line which starts with con_enable and change the “0″ to “1″. Also add a new line, sv_cheats “1″. I put my two lines at the end so you can see better what it looks like but you don’t have to. Once that’s done, save the file and start the game.
Once in the game, press the tilde “~” key on the keyboard and here you enter commands for what you want to do. Here’s a complete list:
god – God mode (server side only)
give <item or weapon name> – Gives a weapon or an item (see the list below)
buddha – Reduces your health
hurtme # – Hurts the player (# is damage amount)
impulse 101 – All weapons
impulse 82 – Spawns a jeep
notarget – Player becomes hidden to NPCs
noclip – Walk through walls (server side only)
maps – Displays map list
map <map name> – Load a specified map (see the list below)
developer # – Sets developer mode to on/off/verbose (0-off, 1-on, 2-verbose)
+mlook – Enables mouse look
hud_quickhelp/text? 1 – Shows crosshair
viewmodel_fov # – Sets the size of the weapon you’re carrying (54 is default)
exec <filename> – Execute a script file
cl_drawhud 1 – Turns hud display on
cl_enablehud 1 – Turns hud display on
cl_showfps 1 – Shows frames per second in game
npc_create – Creates an NPC (works in worlds that have an NPC entity)
npc_create_aimed – Creates an NPC aiming away from the player.
picker – Toggles ‘picker’ mode.
setpos – Move player to specified origin (must have sv_cheats 1 enabled).
setang – Snap player eyes to specified pitch yaw (musthave sv_cheats).
sv_gravity # – Set gravity to #
sv_stopspeed # – Set minimum stopping speed when on ground to #
sv_friction # – Sets world friction to #
sv_bounce # – Sets bounce multiplier for physically simulated objects collision
sv_maxvelocity # – Sets the maximum velocity of any moving object to #
sv_waterdist # – Sets vertical view fixup when eyes are near water plane to #
air_density # – Changes the density of air to #
dsp_explosion_effect_duration # – Sets length of confusion/ear-ringing effect to #
prop_debug – Toggle bounding-boxes debug mode on/off (red – ignore damage, white – respond to damage, green – health)
sv_soundemitter_filecheck – Toggle reporting missing .wav files for sounds
mat_numtextureunits # – Limits the number of texture units to # (0 – let the game decide how many texture units to use)
mat_yuv 0 – ?
It might be that you don’t see very clearly what’s going on because the graphics are a bit messed up, at least that’s the case for me. But try typing in the codes anyway, it works fine here.
About the Author: I'm the Managing Editor of Shufflegazine and Shufflegazine.com. When there's time I also take care of our Tech Chat podcast, Facebook page, Twitter account and more. You can also listen to me on radio every week. Coming from an extensive career in higher education IT teaching I try to spread word about technology to readers in a way that is approachable and understandable for all.











Great but i don’t know how to type “~” on my mac keyboard :S
It’s easy Cracky, press Shift and the key which looks like “~”.
please help
the cv_cheats “1″ dosen`t work. When i started Half Life 2 the Line cv_che….
always deleted
If you’re typing “cv_cheats 1″ it doesn’t work, it should be “sv_cheats 1″.
Thanks Magnus, works like a charm.
Ok that’s my problem: I have a MacBook with a french keyboard. I finally found the “~”, but when I’m in the game, ~ doesn’t work because I have an english keyboard in the game (don’t know if you understand). So I tried to set my keyboard to french in Options in the pause menu, but i can’t… Next I tried to know where the ~ is on an english keyboard, I found it, I tried in the game but it nothing happened! So I really don’t know what to do and I need help!!!
Thanks!
Oh yeah and thanks for this tutorial, I guess it worked for you guys!
When i started Half Life 2 the Line sv_cheats “1″ also always deleted and i have a german keyboard so i can’t find the key ~
please help me
Raphael, perhaps you can change the keyboard layout in Mac OS X?
Hey guys,
I already have a HL2 on my Mac, and I beat the game on normal difficulty. Since it wasn’t too much of a challenge, I decided to try and beat it on hard. Anyways, today whenever I loaded the game, I tried walking straight, but the computer wouldn’t obey me. It’s as if my keyboard’s buttons aren’t functional anymore, apart from the shirt, ctrl, space and number buttons. Does anyone know by any chance how to fix this problem? I’ve been searching the net over and over, and still fail to find the answer…
Thanks in advance!
Does this behavior persist between reboots?
Yeah it does…I tried rebooting several times, tried starting new games…but no change…so like I said, everything except for the letter buttons works. Except for the console…I can’t even open that damn thing…You have any idea what’s goin’ on?
same “tilde” problem! is there a method to start HL2 with opened console?
Hi, thanks for the cheats. I have a problem: i can't find the line sv_cheats “1″. I tried to create a new line, but it doesn't work. Any suggestion? Please!
i Create Sv_cheats “1″, and i start game, don't work. When i check for sv_cheats “1″ on config, there isn't.
Any question?
You need to lock the config.cfg file after editing. I'm sure that will cause other problems later on, but the ~ key will work and the cheats will be enabled.
I have a mac, don't bother asking.
I have the HL2 on my desktop, and I right click>
Show package contents>Contents>Rescources
All in there is “Shortcut.incs”. Thats it. Help?
It appears this info is a little out of date; I bought and downloaded HL2 about June 5th, and the files you describe are separate from the .app, under Users/<me>/Steam Content/<my Steam username>/half life 2/hl2/cfg/config.cfg
There is a protective mechanism at work too; I can modify the .cfg file, but when I launch the game it is always overwritten back to its original values.
I tried locking the file, but the GUI Get Info window apparently can't lock this file; there is some permissions trick going on.
If I use a terminal window to look at the file with ls -l, I see
-rw-r–r–@ 1 paul staff 5757 Jun 10 21:58 config.cfg
The @ apparently means it has extended attributes, but it seems that the only one is text encoding so I don't think this is significant.
I tried sudo chmod u-w config.cfg
This seems to have done the trick; to undo this later you would use sudo chmod u+w config.cfg
I tried Paul R. Potts suggestion but I couldn't find the cfg folder. I downloaded my Half Life 2 from Steam. Please help me.
Please note that this article was written way before the official Steam for Mac version came out and I've not tested this on Steam yet.
i just put “sv_cheats 1″ and it unlocked all the cheats, i didn't have to mess around with any of the files…
Or you could just enable developer's console in Options/Keyboard/Advanced… which, mind you, is IN-GAME and MUCH EASIER.
How do you do this if you downloaded the game from STEAM?
I have the game from STEAM and I don't found “Half Life 2.app”
I've changed the config text file, now I'm in the terminal but do not understand.
What do I have to type exactly in the terminal?
I have to type before or after changing the text of the config file?
Thanks
I found it!
Boys with Steam, the config file is here:
Users/”user”/Library/Application Support/Steam/SteamApps/”steam user name”/half-life 2/hl2/cfg
Users/”user”/Library/Application Support/Steam/SteamApps/”steam user name”/half-life 2/hl2/cfg
Users/”user”/Library/Application Support/Steam/SteamApps/”steam user name”/half-life 2/hl2/cfg
Hey! Worked for me when I blocked the file in the info window