Description:
This plugin 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-20 (v1.0.0)
* Initial release.
2019-07-21 (v1.0.1)
* Code cleanup and added language support by Aya Supay
2019-07-23 (v1.0.5)
* Code cleanup and added language support by Aya Supay
* new code for handling survivors and cleanup by Lux
Installation instructions:
Click 'Get Plugin' button, place SMX in the sourcemod plugins folder. Or compile it yourself.
Download 'l4d_nosmoking.phrases.txt' and place it in translations folder.
Dependencies:
none
Plans:
none atm
Credits:
Based on code snippets from:
* [L4D, L4D2] No Death Check Until Dead
*
https://forums.alliedmods.net/showthread.php?t=142432
* [L4D & L4D2] Survivor Bot Takeover v0.8
*
https://forums.alliedmods.net/showthread.php?p=1192594
* xZk TeleportEntity suggestion to break tongue
* Aya Supay code cleanup and added language support
* Lux for different approach on tongue_grab and code cleanup