Description:
This plugins prevents the smoker from smoking the last survivor.
It checks for the following status:
1 survivor running around
the other survivors dead, incapped, pounced, smoked, smoked from ledge, hanging from ledge or falling from ledge.
Tested on L4D1. Included conditions for L4D2 but untested.
Feature:
Use cfg to set the server to automatically slap the smoker to break his tongue or kill the smoker, when he tries to smoke the last survivor.
CVAR/Command list:
killorslap (default=1) 1 = kill smoker / 2 = slap smoker
displaykillmessage (default=3) 0 - Disabled; 1 - small HUD Hint; 2 - big HUD Hint ; 3 - Chat Notification
Changelog:
2019-07-15 (v1.0.0)
* Initial release.
Installation instructions:
Click 'Get Plugin' button, place SMX in the sourcemod plugins folder and you're done. Or compile it yourself.
Dependencies:
no idea about older versions of sourcemod, I compiled it with:
SourcePawn Compiler 1.10.0.6356
and
SourcePawn Compiler 1.10.0.6393
Plans:
none atm
Credits:
Based on code snippets from:
* [L4D, L4D2] No Death Check Until Dead (survivor/infected checks)
*
https://forums.alliedmods.net/showthread.php?t=142432
* [L4D & L4D2] Survivor Bot Takeover v0.8 (check incap routine)
*
https://forums.alliedmods.net/showthread.php?p=1192594
* And TeleportEntity suggestion by xZk to break tongue instead of using SlapPlayer