(tested with source mod 1.5.0)
A silly plugin with a silly name
.
Description:
Sometimes you are incapped by a horde, with little or no chance of survive. Sometimes, you are the last man standing and you are caught by an SI, if you have a pipebomb in your inventory, why not make it explode?
That's right, if you are incapacitated or trapped by an SI and you have a pipebomb, you can make it explode, killing many infected around you (including your character).
Usage:
When you are incapped or grabbed. Keep holding the "USE" key for two seconds. During this time, your character will say his last words before exploding.
You can abort the explosion with just releasing the key.
CVars:
A config file will be generated at "
cfg\sourcemod" directory.
- l4d2_heroic_pipe_grabbed 1=Enable, 0=Disable the plugin when you are grabbed (default 1)
- l4d2_heroic_pipe_incapped 1=Enable, 0=Disable the plugin when you are incapped
- (default 1)
- l4d2_heroic_pipe_key defines the detonation key (default 32)
- l4d2_heroic_pipe_radius defines the radius of the explosion (default 250)
- l4d2_heroic_pipe_power defines the power of the explosion (default 300)
- l4d2_heroic_pipe_debug 1=Enable, 0=Disable. Display some info in the chat
(default 0)
- l4d2_heroic_pipe_(survivor) defines the voice file of the character and the clock of the explosion (the time that you need keep holding the detonation key) in seconds.
About l4d2_heroic_pipe_key CVar:
You can run the plugin in debug mode and press some keys (even the mouse) to obtain the key values.
About l4d2_heroic_pipe_(survivor) CVars:
There is a variable for each character, each define the detonation time and the voice file for each character (you can check the
l4d2_heroic_pipe.cfg file), for example:
l4d2_heroic_pipe_nick "taunt03.wav,2.0"
l4d2_heroic_pipe_zoey "swear09.wav,1.0"
The first part defines the audio file to play, a comma, and the time (in seconds) of the detonator.The audio files were taken from this paths:
Steam\steamapps\common\left 4 dead 2\left4dead2\sound\player\survivor\voice
Steam\steamapps\common\left 4 dead 2\left4dead2_dlc1\sound\player\survivor\voice
Steam\steamapps\common\left 4 dead 2\left4dead2_dlc2\sound\player\survivor\voice
Steam\steamapps\common\left 4 dead 2\left4dead2_dlc3\sound\player\survivor\voice
You can choose any file within the character folder. Just add the file name, do not put the full path.