Requires SDK Hooks (tested with source mod 1.3.7 and SDK Hooks 2.1)
Description:
Explosions caused by pipe bombs, oxygen tanks, propane tanks, fuel barrels and grenade launchers throw any near survivor or SI in the air (except witches). The throw force and damange vary according to the distance of the player at the moment of the explosion.
CVars:
A config file will be generated at "
cfg\sourcemod" directory.
- l4d2_detonation_force_disable_gamemodes - disable the plugin in the game modes defined (separated by commas). For example, "versus,mutation12,community4" will disabled the plugin in the game modes Versus, Realism Versus and Nightmare, "*" will disable the plugin in all game modes (default "empty")
- l4d2_detonation_force_immunity - who is immune to the explosion. 0=nobody, 1=survivors, 2=infected (default 0).
- l4d2_detonation_force_ghost_mode - 1=Enable, 0=Disable knock back in infected ghost (default 0).
- l4d2_detonation_scale_damage - % of explosive force as damage, this damage doesn't override the original damage of the explosive (default 0.05, namely 5%).
- l4d2_grenade_detonation_force - grenade launcher explosive force (default 50).
- l4d2_barrel_detonation_force - fuel barrel explosive force (default 250).
- l4d2_pipe_detonation_force - pipe bomb explosive force (default 300).
- l4d2_bomb_detonation_force - applies to the propane tank, oxygen tank and some generic explosions (default 250).
Installation:
Download the
"l4d2_DetonationForce.smx" and put into your
"addons\sourcemod\plugins" directory.
Download the
"l4d2_detonationforce.txt" and put into your
"addons\sourcemod\gamedata" directory.
Delete the old configuration file:
"cfg\sourcemod\l4d2_detonation_force.cfg"
Known issues:
if you're too close to the explosion, you will not be thrown into the air (I've tried many things to fix that, but the "stun" of the explosions stop the flight).
Changelog:
Quote:
1.6.1:
- signatures update (thanks to exstream).
1.6:
- add new cvar "l4d2_detonation_force_disable_gamemodes" .
- removed cvar "l4d2_detonation_force_enable" (the new variable makes it unnecessary).
1.5:
- add new cvar "l4d2_barrel_detonation_force".
- add new cvar "l4d2_pipe_detonation_force".
1.4:
- add new cvar "l4d2_detonation_force_ghost_mode".
- minor edits to the code.
1.3: - add config file.
- some entity checks.
1.2: - fixed "invalid edict" bug.
1.1:
- add new cvar "l4d2_detonation_force_immunity".
- add support for L4D 1.
1.0: Initial release.
|