- SOURCEMOD L4D2 MULTIPLE EQUIPMENT FULL
- SOURCEMOD L4D2 MULTIPLE EQUIPMENT SOFTWARE
- SOURCEMOD L4D2 MULTIPLE EQUIPMENT LICENSE
G_hCvarDamage = CreateConVar( "l4d2_spitter_acid_damage", "2", "Apply full damage value from dmg_* cvars. G_hCvarDmgSurvBots = CreateConVar( "l4d2_spitter_acid_dmg_bots", "1.0", "Damage dealt to survivor bots (games default is 1.0 with l4d2_spitter_acid_damage 2).", CVAR_FLAGS) G_hCvarDmgSurvivor = CreateConVar( "l4d2_spitter_acid_dmg_survivor", "1.0", "Damage dealt to survivors (games default is 1.0 with l4d2_spitter_acid_damage 2).", CVAR_FLAGS) Can use a ratio instead by changing l4d2_spitter_acid_damage.", CVAR_FLAGS) G_hCvarDmgSpecial = CreateConVar( "l4d2_spitter_acid_dmg_special", "8.0", "Damage dealt to special infected. G_hCvarDmgSelf = CreateConVar( "l4d2_spitter_acid_dmg_self", "0.0", "Damage dealt to self owner of acid. G_hCvarDmgCommon = CreateConVar( "l4d2_spitter_acid_dmg_common", "5.0", "Damage dealt to common infected. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. G_hCvarModesTog = CreateConVar( "l4d2_spitter_acid_modes_tog", "0", "Turn on the plugin in these game modes. G_hCvarModesOff = CreateConVar( "l4d2_spitter_acid_modes_off", "", "Turn off the plugin in these game modes, separate by commas (no spaces). G_hCvarModes = CreateConVar( "l4d2_spitter_acid_modes", "", "Turn on the plugin in these game modes, separate by commas (no spaces). G_hCvarAllow = CreateConVar( "l4d2_spitter_acid_allow", "1", "0=Plugin off, 1=Plugin on.", CVAR_FLAGS) SetFailState( "Failed to find \"CInsectSwarm::CanHarm \" signature.") G_hDetourHarm = DHookCreateFromConf(hGameData, "CInsectSwarm::CanHarm") If( hGameData = null ) SetFailState( "Failed to load \"%s.txt \" gamedata.", GAMEDATA) Handle hGameData = LoadGameConfigFile(GAMEDATA) If( FileExists(sPath) = false ) SetFailState( " \n= \nMissing required file: \"%s\". Strcopy(error, err_max, "Plugin only supports Left 4 Dead 2.") īuildPath( Path_SM, sPath, sizeof(sPath), "gamedata/ %s.txt", GAMEDATA) Public APLRes AskPluginLoad2( Handle myself, bool late, char error, int err_max) =ĭescription = "Unlocks Spitter Acid to damage common and special infected. Int g_iCvarEffects, g_iCvarExplode, g_iCvarExplodes, g_iCvarDamage #define PARTICLE_SPIT "spitter_projectile_explode"ĬonVar g_hCvarAllow, g_hCvarMPGameMode, g_hCvarModes, g_hCvarModesOff, g_hCvarModesTog, g_hCvarEffects, g_hCvarExplode, g_hCvarExplodes, g_hCvarDmgCommon, g_hCvarDmgSelf, g_hCvarDmgSpecial, g_hCvarDmgSurvivor, g_hCvarDmgSurvBots, g_hCvarDamage įloat g_fCvarCommon, g_fCvarSelf, g_fCvarSpecial, g_fCvarSurvivor, g_fCvarSurvBots #define GAMEDATA "l4d2_spitter_acid_damage" #define MIN_RANGE 60 // Range to hurt when in spit #define MAX_RANGE 400 // Range to detect if near spit
DEBUG BENCHMARK - Don't benchmark with NEON_DEBUG or you'll get bad results. DEBUG NEON - Shows beams where the fires are and where contact is made to enemies. Uses "Neon Beams" plugin to display traces. Demonstrates getting flame positions from "inferno" style entities ("insect_swarm" / "fire_cracker_blast") ALTERNATIVE METHOD: original before detour: Optimized to unhook OnTakeDamage when no longer used. Added cvar "l4d2_spitter_acid_dmg_self" to control Spitter damage from their own spit. Fixed cvar "l4d2_spitter_acid_damage" not actually being used. Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart. Extra checks to prevent "IsAllowedGameMode" throwing errors. Added better error log message when gamedata file is missing. Added cvar "l4d2_spitter_acid_explosives" to allow Spitter Acid to ignite/explode explosives. Fixed not detecting Scavenge mode if the "_tog" cvar was not being used. Fixed map spawn gascans not being affected and igniting. Added cvar "l4d2_spitter_acid_explode" to control which explosives should ignite or explode (gascans can only ignite). Added cvar "l4d2_spitter_acid_dmg_bots" to set the damage for survivor bots. *ĝescrp : Unlocks Spitter Acid to damage common and special infected.
SOURCEMOD L4D2 MULTIPLE EQUIPMENT LICENSE
* You should have received a copy of the GNU General Public License * GNU General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * but WITHOUT ANY WARRANTY without even the implied warranty of * This program is distributed in the hope that it will be useful,
SOURCEMOD L4D2 MULTIPLE EQUIPMENT SOFTWARE
* the Free Software Foundation, either version 3 of the License, or
* it under the terms of the GNU General Public License as published by
* This program is free software: you can redistribute it and/or modify