L4D2 ONLY
Description
This plugin applies a constant shock to survivors dead bodies. (
same animation from defibrillator)
To see what this plugin does, slay some survivor and watch its body.
Features
- Allow configuring the repeat interval.
- Allow configuring the repeat count.
Cvars
A configuration file named "
l4d2_dead_bodies_spasm.cfg" will automatically be created for you upon the first run in the "
\cfg\sourcemod\" folder.
PHP Code:
// How many times should apply a shock to survivors dead bodies.
// 0 = Unlimited.
// -
// Default: "0"
// Minimum: "0.000000"
l4d2_dead_bodies_spasm_count "0"
// Enable/Disable the plugin.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_dead_bodies_spasm_enable "1"
// How often (in seconds) should apply a shock to the survivors dead bodies.
// -
// Default: "1.0"
// Minimum: "0.100000"
l4d2_dead_bodies_spasm_interval "1.0"
Admin Commands
- sm_print_cvars_l4d2_dead_bodies_spasm => Print the plugin related cvars and their respective values to the console. (z flag required)
Change Log
Notes
- survivor_death_model entity is only available in L4D2.
- This plugin applies the Shock input to the survivor_death_model entities.
- You can replicate this by using "ent_fire survivor_death_model Shock" in the console.
Post Reply
- Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.
Installation
- Put the "l4d2_dead_bodies_spasm.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.