Half-Life: Opposing Force Hints

Cheat Codes

  • The game should install two shortcuts to run the game with, one of which is called "Opposing Force Console." Run it instead of the regular one if you want to use any of the cheats. Note that if it puts a shortcut on your desktop, it won't be a console shortcut. Either copy and paste the console shortcut from the Programs menu, or use the instructions in the following paragraph to turn a regular OpForce shortcut into a console shortcut.

    CREATING A CONSOLE SHORTCUT: Before running the game, add the -console parameter to the call to HL.EXE. To do that, right-click on the shortcut for Opposing Force that you want to edit and choose "Properties." Then, in the "Target" field, leave what's there and add a space and "-console" (w/o the quote marks), then click on the Okay button. Now run the game using the shortcut you just edited. (Note that you can also add -dev to the parameter list to get more debug-style messages, but it's not really useful.)

    When the game comes up, you'll have a new option at the top of the main menu called "Console" that you can click on. You can also bring down the console while playing by pressing the ~ (tilde) key.

    To get the cheats to work, you need to bring down the console, type "sv_cheats 1" and then "map c0a0" (w/o quotes), then use the main menu to start a new game or load a saved game. Once you do all that, all of the following codes should work:

    * god - god mode toggle
    * noclip - no-clip mode toggle
    * notarget - invisibility toggle
    * impulse 76 - type this code and then load a save; now you can type it again and again to spawn new marines (note that they attack you unless you have "notarget" in effect)
    * impulse 101 - gives a PCV and all weapons from both Half-Life and OpForce
    * impulse 203 - deletes the NPC or monster you're aiming at

    * sv_gravity # - replace # with a number; 800 is regular, and 150 is moon-like
    * r_fullbright # - replace # with a 1 to eliminate shadows; a 0 restores to normal
    * thirdperson - switches to third-person view
    * firstperson - switches to first-person view
    * +cammousemove - mouse moves the camera in third-person mode
    * -cammousemove - returns camera control to normal
    * chase_active # - chase mode in third-person (1 activates, 0 deactivates)

    * give $ - gives the item you replace the $ with from the following list:

         item_healthkit            item_longjump            item_suit
         item_battery              item_antidote
         weapon_357                weapon_9mmhandgun        weapon_9mmAR
         weapon_crossbow           weapon_crowbar           weapon_egon
         weapon_gauss              weapon_handgrenade       weapon_hornetgun
         weapon_rpg                weapon_satchel           weapon_shotgun
         weapon_snark              weapon_tripmine          weapon_eagle
         weapon_displacer          weapon_grapple           weapon_knife
         weapon_m249               weapon_sniperrifle       weapon_pipewrench
         weapon_shockrifle         weapon_sporelauncher
         ammo_357                  ammo_9mmAR               ammo_mp5clip
         ammo_ARgrenades           ammo_buckshot            ammo_crossbow
         ammo_gaussclip            ammo_rpgclip             ammo_556
         ammo_762

    To give yourself more ammo for a weapon that doesn't have an ammo type listed, just give yourself the weapon again (like with the sporelauncher). BTW: ammo_556 is for the M-249 SAW gun, and ammo_762 is for the sniper rifle.

    The "map" command can be used to instantly start a new game in a certain part of a certain chapter. You start without anything, including the PCV suit, so you'll want to use the "give" command or "impulse 101" to get that and some weapons and ammo. Below are the map codes that you can use. Note that not everything will work properly when you use some of these codes, and you could easily end up getting stuck (unless you use other cheats like "noclip" to progress).

      of0a0                               -- Opposing Force (helicopter ride)
      of1a1, of1a2, of1a3, of1a4, of1a4b  -- Welcome to Black Mesa
      of1a5, of1a5b                       -- "We Are Pulling Out"
      of2a1, of2a1b, of2a2, of2a3         -- Missing in Action
      of2a4, of2a5, of2a5b                -- Friendly Fire
      of3a1, of3a1b, of3a2                -- We Are Not Alone
      of3a4, of3a5, of3a6                 -- Crush Depth
      of4a1, of4a2, of4a3                 -- Vicarious Reality
      of4a4, of4a5                        -- Pit Worm's Nest
      of5a1, of5a2, of5a3, of5a4          -- Foxtrot Uniform
      of6a1, of6a2, of6a3, of6a4          -- "The Package"
      of6a4b, of6a5                       -- Worlds Collide
      of7a0                               -- Conclusion (Administrator)

    You can even use the "map" command to replay all of the original Half-Life chapters with Adrian Shephard and all the cool new OpForce weapons! Just use one of the following codes to start a new game on that chapter (use c0a0 to start at the very beginning) and then use the "impulse 101" code to give yourself a PCV suit and all the weapons from both games. (Note that there are a few subtle differences when you play as Shephard, like people not talking to you and guards not opening doors for you. Use "noclip" to get past these situations.)

      c0a0, c0a0a, c0a0b, c0a0c, c0a0d, c0a0e  -- Black Mesa Inbound (tram ride)
      c1a0, c1a0a, c1a0b, c1a0c, c1a0d, c1a0e  -- Anomalous Materials
      c1a1, c1a1a, c1a1b, c1a1c, c1a1d, c1a1f  -- Unforeseen Consequences
      c1a2, c1a2a, c1a2b, c1a2c, c1a2d         -- Office Complex
      c1a3, c1a3a, c1a3b, c1a3c, c1a3d         -- "We've Got Hostiles"
      c1a4, c1a4b, c1a4d, c1a4e, c1a4f, c1a4g,
        c1a4i, c1a4j, c1a4k                    -- Blast Pit
      c2a1, c2a1a, c2a1b                       -- Power Up
      c2a2, c2a2a, c2a2b1, c2a2b2, c2a2c,
        c2a2d, c2a2e, c2a2f, c2a2g, c2a2h      -- On a Rail
      c2a3, c2a3a, c2a3b, c2a3c, c2a3d, c2a3e  -- Apprehension
      c2a4, c2a4a, c2a4b, c2a4c, c2a4d, c2a4e,
        c2a4f, c2a4g                           -- Residue Processing
      c2a5, c2a5a, c2a5b, c2a5c, c2a5d, c2a5e,
        c2a5f, c2a5g, c2a5w, c2a5x             -- Surface Tension
      c3a1, c3a1a, c3a1b                       -- "Forget About Freeman!"
      c3a2, c3a2a, c3a2b, c3a2c, c3a2d, c3a2e,
        c3a2f                                  -- Lambda Core
      c4a1                                     -- Xen
      c4a2, c4a2a, c4a2b                       -- Gonarch's Lair
      c4a1a, c4a1b, c4a1c, c4a1d, c4a1e, c4a1f -- Interloper
      c4a3                                     -- Nihilanth
      c5a1                                     -- Endgame (Administrator)

    You can use the "bind" command to bind a cheat command to a key. For instance, to be able to press G to get some Mp5 grenades, type: bind g "give ammo_ARgrenades". (Note that quote marks are necessary there.)

    Another way to bind keys to codes is to edit the CONFIG.CFG file that's in the GEARBOX directory under your Half-Life directory. It's a plain text file, so if you load it up in Microsoft Word, be sure to load it as an MS-DOS format text file. Find the BIND command section right at the top and modify and/or add bind statements as desired. For instance, you could add a line that binds the "sv_cheats 1" command to the H key, "god" to the G key, "noclip" to the N key, etc.