If ( StrEqual(name, "player_bot_replace", false)) Public void Event_Replace( Event event, const char name, bool dontBroadcast) Public void Event_TongueRelease( Event event, const char name, bool dontBroadcast) RequestFrame(OnSmokerSurvivorClear, smoker) If ( IsValidClient(victim) & IsValidAliveSmoker(smoker) & GetClientTeam(victim) = 2) Public void Event_TonguePullStopped( Event event, const char name, bool dontBroadcast) If ( IsValidClient(victim) & GetClientTeam(victim) = 2) Public void Event_TongueGrab( Event event, const char name, bool dontBroadcast) SetInfectedAbilityTimer(iSmoker, duration, fTongueDelayTank) HookEvent( "tongue_pull_stopped", Event_TonguePullStopped) HookEvent( "tongue_release", Event_TongueRelease) HookEvent( "tongue_grab", Event_TongueGrab) HookEvent( "bot_player_replace", Event_Replace) HookEvent( "player_bot_replace", Event_Replace) HookEvent( "round_start", Event_TongueRelease) AddChangeHook(ConvarChanged) ĬonvarTongueDelaySurvivor. Public APLRes AskPluginLoad2( Handle myself, bool late, char error, int err_max)ĭescription = "Modify the Smoker's tongue ability timer in certain scenarios.",ĬonvarTongueDelayTank = CreateConVar( "l4d2_tongue_delay_tank", "8.0", "How long of a cooldown does the Smoker get on a quick clear by Tank punch/rock? (Vanilla = ~0.5s)") ĬonvarTongueDelaySurvivor = CreateConVar( "l4d2_tongue_delay_survivor", "4.0", "How long of a cooldown does the Smoker get on a quick clear by Survivors? (Vanilla = ~0.5s)") įTongueDelayTank = convarTongueDelayTank.FloatValue įTongueDelaySurvivor = convarTongueDelaySurvivor.FloatValue ĬonvarTongueDelayTank. Check for Capper on OnNextFrame on Tongue Release Event for additional scenario? Further documentation on configuring SourceMod can be found at the ( "").- Make bots/replacing players get hooked if they're currently pulled (bot_replace, player_replace) If you get "unknown command" instead, it's most likely a directory problem with the two VDFs I explained earlier. These should give you a list of commands. To make sure they're working, type "meta" and "sm" in the server console. MetaMod and SourceMod should start automatically when you start up your server. "file" "addons/sourcemod/bin/sourcemod_mm" Inside the brackets it should look like this: Now enter the metamod folder and edit "sourcemod.vdf". You should see "metamod" and "sourcemod" folders, as well as "metamod.vdf". Go ahead and open up the srcds addons folder.
SOURCEMOD L4D2 EVENTS DOWNLOAD
Then download ( "") and extract its contents (addons and cfg) to the same directory. For example, c:\srcds\left4dead2\left4dead2, or c:\srcds\cstrike. ( "") and extract the contents to your base srcds game folder. When it's finished, you'll see 100% and then something like "your server is up to date." This will probably take a long time the first time you run it, but whenever a game is updated through Steam, run the batch file and only the updates will be downloaded. HLDSUpdateTool will now begin downloading and updating your server files as needed. Name it whatever, but make sure you add ".bat" to the filename and save.ĭouble-click the new batch file that appears and you'll see a command prompt. Others include "cstrike" (CS:S), "tf" (TF2) and "dods" (DOD:S).Ĭhoose "save as" from the file menu and under file types, "all file types". **Note:** The "**-game**" parameter specifies which game files to download.
SOURCEMOD L4D2 EVENTS UPDATE
If you're in the Eastern United States for example, go with United States - East Coast.Ĭreate a new text document and paste this inside:Ĭ:\Program Files (x86)\Valve\HLServer\HldsUpdateTool" -command update -game "left4dead2" -dir "c:\srcds" -verify_all -retry Once you reach the part that says "Please select from your region.", choose the region of the world in which you are located.
( "") (Half-Life Dedicated Server Update Tool) and run through the installation process, leaving everything as it is.