Left 4 Dead 2

Left 4 Dead 2

Hunter Training
eyeonus  [developer] Apr 17, 2013 @ 5:52pm
Read Me
FIRST THINGS FIRST
-----------------------
The only way to launch this map in L4D2 that is guaranteed to work is to open the console and type "map hunter_training" in a NEW game, at the main menu. If you've played even one other map since launching L4D2 before trying to play Hunter Training, there is a possibility that the map will not load correctly. This is a problem with L4D2, NOT the map itself.

IFF you have "Rayman1103's Mutation Mod" you can also launch the "Hunter Training" mutation from it, which fixes most of the problems L4D2 introduces, like the bots not moving on the Live Fire Course.

The console name of the mutation is "huntertraining", so you would launch the game from console with the command "map hunter_training huntertraining".

I believe it is possible to launch a mutation as a single player campaign, but I don't know how, don't ask. That's what Google is for.

COMPATIBILITY NOTE
-----------------------
This addon works in L4D1 as well, with no changes needed, so if you own the original, I highly recommend copying this addon over to that game and just playing it in there instead. It works better, in fact, since the updates to L4D2 that broke multiplayer for this map aren't in L4D1, so if you want to play this with friends, it's much, MUCH easier to do it in the original than in 2. Also, there's no issue on the Live Fire Course with the survivors just standing around like idiots in L4D1 like there is in L4D2.

CAN'T LOAD MAP
-----------------------
The most common reason for this error is that the map hasn't finished downloading yet. Give it some time and try again.

NOT SPAWNING AS A HUNTER
-----------------------
If you are a ghost, just walk into the corridor (on the training) or one of the spawn rooms (on the Live Fire Course), the map will automagically spawn you as a hunter (or whatever it says on the room's door).

If you are not a ghost, and especially if the game makes you tank, you will need to commit suicide by opening the console and typing, without quotes, "kill". You can then wait for the respawn timer to bring you back as a ghost infected, or you can run the spawn command, details for how to use the spawn command are only a Google search away.

If you're spawning as a survivor, or getting the team switch menu, then you're not launching the map correctly. Read the "FIRST THINGS FIRST" instructions at the top of this document.

LEFT 4 DEAD 2 SPECIFIC ISSUES
-----------------------
The L4D2 Director will still sometimes spawn a witch and/or a tank when playing the map even though it's turned off by the map when the map is loaded. There's no way to stop this from happening that I am aware of. If you're stuck as tank, open the console and type, without quotes, "kill". You be then be killed and, after the respawn timer is finished, allowed to spawn like normal.

Multiplayer is NOT supported in L4D2. It MAY be possible, but ever since the update to L4D2 that removed cheats being able to be on in servers, I've no idea how to do it. Don't bother asking me.

L4D2 does not allow cheats to be turned on in servers- any servers, even the localhost one (, even though the console error message says you can turn them on in a local server). Because of this, Hunter Training can NOT be played multiplayer in L4D2.

IFF (not a typo, Google it) there is an addon that enables multiplayer cheating, this map will work, although with some un-fixable problems:

Many commands are now only able to be executed by a player, including three commands that HTM uses: "z_spawn", "give", and "noclip".

Also, the survivor bots in the Live Fire Course no longer move. A custom game mode must be used in order to make the bots move on their own. The addon listed in the description worked last time I checked, however I have received reports this is no longer the case and is therefore probably no longer possible to fix.

What does this mean for you?

In multiplayer, even if you can get it to work in the first place, which means being able to turn cheats on in the server, the auto-spawning in the first corridor and in spawn rooms will no longer work, and your health will go down when you are hit. Hunter Training **REQUIRES** cheats to be able to be turned on in order to work correctly.

The workaround for the spawning and "invincibility" (headshots still kill) are as follows:

Spawn yourself as a hunter by typing "z_spawn hunter" into your console, or
putting 'bind <key> "z_spawn hunter" ' in your autoexec.cfg, without the ', and
pressing <key> to spawn. (Replace <key> with any key - use Google to find the
names of the keys if you don't know them.) You will spawn as a hunter wherever you are looking when you execute the command, as long as you are a ghost infected when you do it.

To manually enable auto-healing, run this in console:

exec auto_heal

The map contains an "auto_heal.cfg" config file within it which contains the commands which make the "invincibility" work, you just need to manually run the file using the above command.

At this point there is no known way to correct these problems.
As soon as one is found I will fix them. (I've given up looking for one, so unless and until someone else tells me they've found it, it's not happening.)


INSTALLATION
------------
On your system:
1) Place the addon file in the "addons" directory of the game you want to play it in.
(L4D2 Workshop subscribers don't need to do this, unless they're copying it from L4D2 to L4D1.)

------------
On a dedicated server:
1) Place the addon file in the "addons" directory on the server.

(The below is REQUIRED for L4D2 servers, and recommended for L4D servers.)
2) Install SourceMod. Refer to the SourceMod site for installation instructions.
3) Place the plugin file in the "addons/sourcemod/plugins" directory on the server.
4) Place the plugin extension file in the "addons/sourcemod/gamedata" directory on the server.
(Both the plugin and the extension can be downloaded from the L4DMapDB site.)
5) Install a custom game mode onto the server and all players' games that allows the cvar "sv_cheats" to be turned on. The map will **NOT** work if cheats cannot be enabled.

------------

PLAY
----
Single Player:
-------------
1) Select "Play Single Player", NOT "Play Campaign".
2) Choose Hunter Training in the addon campaign list, and start the game.
3) Wait until you spawn as a ghost infected in the start room, and walk through the corridor to spawn as a hunter.

You can also start the maps using the console, with
"map hunter_training" for the Challenge Course or
"map hunter_training_c21" for the Live Fire Course.
(Note: In L4D2, this is only guaranteed way to run the map without issues.)

Multiplayer:
-----------
1) Open L4D(2)
\/ Skip the next step if you do not have a dedicated server.
2) Run "ms_dedicated_force_servers <server_ip>" in console, replacing <server_ip> with your server's IP address.
(The command is "mm_dedicated_force_servers <server_ip>" in L4D2, and the server must be setup correctly as detailed above.)
3) Start a new Versus Lobby.
4) Select Hunter Training in the addon campaign list.
4a) Select "Best Available" (if you have a dedicated server).
4b) Select "Local" (if you do not).
5) When everyone is ready, start the game.

Other Concerns:
--------------
The string table error is caused by having two different versions of the same map.
If both your game and the server have the same version number, then make sure both copies were downloaded from the same *official* location: either the Steam Workshop page, or the L4DMapDB page.
Last edited by eyeonus; Mar 4, 2018 @ 2:04pm
Showing 1-10 of 10 comments
eyeonus  [developer] Apr 28, 2013 @ 11:44am 
Some more detail regarding the auto-healing in the Live Fire Course:

In single player, the Hunter Spawn Room the survivors start out in turns on auto-healing for any player that goes into it (infected or survivor) and continues to run until the player quits L4D2. Switching teams, restarting the map, quitting to menu, or any other action that is not quitting the game does not stop the auto-healing.

It only has effect when sv_cheats is enabled, though, because it uses the "give" command, which is a cheat, so it doesn't affect normal gameplay. However, this does mean that if you are playing on a map with cheats enabled and the script is running, you pretty much can't die. (Only headshots, unless you're playing something immune to headshots (tank or survivor), or typing "kill" into the console, can kill you.)

It will not automatically start in multiplayer because L4D2 doesn't allow the server to run certain commands on a client, and so must be started manually in that case.

As of the current version, I've included a config file called "auto_heal.cfg" in the addon, so that it is possible to turn it on manually if you need to.

Open console and type "exec auto_heal" without the quotes, then press enter. If it outputs the text "aliasing" after about a second, then the auto-healing script is running.

All the script does is execute the command "give health" every 25 game ticks (about 1/40th of a second), which refills your health. Headshots are insta-kills, however, so the script isn't a "real" god mode.

You can also bind the script to a key so that you don't need to open the console to run it.

Put in your autoexec.cfg file the line
----
bind "X" "exec auto_heal.cfg"
----
replacing the X with whichever key you want to bind.

For anyone that's interested in what the script is, here you go:
---
alias auto_heal "wait 1000" //try to kill the script if it's already running
wait 100 //wait a bit so that if it is running it will be killed
echo aliasing //tell the player the script is being started
alias auto_heal "give health;wait 25;auto_heal" //create the alias loop
auto_heal //start looping
----
(The comments are not in the script itself, I added them here for clarity.)
Last edited by eyeonus; Apr 28, 2013 @ 11:47am
eyeonus  [developer] Jun 6, 2013 @ 7:06pm 
Solution for the issue where the survivor bots do not move from the starting position on the Live Fire Course:

Subscribe to Rayman1103's Mutation Mod and use the "Hunter Training" mutation to fix the issue with the bots not moving on the Live Fire Course.
Last edited by eyeonus; Jun 7, 2017 @ 4:33am
replay Mar 6, 2015 @ 9:39pm 
Its not working im still spawning as a survivor not a infected ghost and i followed the "Play" instructions clearly
eyeonus  [developer] Mar 14, 2015 @ 4:44pm 
I had the same problem, where I started it with "map hunter_training versus", and it would not allow cheats to be turned on.

I googled about it, and this is the only thing that I found that might actually help:

http://forums.steampowered.com/forums/showthread.php?s=dc74646b9494969c25533d0f1daf988a&p=33283734#post33283734

Basically it says close the game and restart it. I tried it, and it does seem to work.
Last edited by eyeonus; Mar 14, 2015 @ 4:46pm
Screen Lady Oct 24, 2015 @ 2:18pm 
i do not own a dedicated server, also when i try to run dedicated servers.. i crash due to a glitch i got.
i did what you told me, but.. versus doesnt let me select this map for some reason!
help?
eyeonus  [developer] Oct 25, 2015 @ 6:39am 
To be honest, I completely gave up on even trying to get my map to work on multiplayer ever since the update that made it so that cheats can not be turned on in any kind of server, period.

There may be a mod or something that allows cheats to be turned on, but I am not aware of any.

I can tell you that multiplayer still works perfectly in L4D1, if you have it, as it doesn't have any of the issues that have developed in L4D2.

I recommend getting the plugin that only enables the cheats HTM needs, so that spamming beeping pipe bombs and such isn't a thing.

While I can pretty much guarantee this map will never work in L4D2 multiplayer, unless some way to get cheats turned exists, the only real difference as far as hunters are concerned is that the L4D2 version can't bunny pounce.
Last edited by eyeonus; Oct 25, 2015 @ 6:47am
xhaled Jan 29, 2019 @ 12:15am 
are you working on more training maps for the other special infected?
eyeonus  [developer] Mar 13, 2020 @ 6:13am 
No.
i uninstalled the mod and its still making me play as infected when i load up a map using the console please help
eyeonus  [developer] May 1, 2022 @ 7:44pm 
Originally posted by da real master.chief:
i uninstalled the mod and its still making me play as infected when i load up a map using the console please help

If you are still having problems after uninstalling this, then obviously this isn't what was causing your problem.
Showing 1-10 of 10 comments
Per page: 1530 50