View Single Post
Aya Supay
Member
Join Date: Nov 2015
Old 07-21-2019 , 08:48   Re: [L4D] L4DNoSmoking (v1.0.0, 2019-07-20)
Reply With Quote #3

Quote:
Originally Posted by finishlast View Post
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

nice job

the code update a bit and add language support enjoy

Last edited by Aya Supay; 07-22-2019 at 22:51.
Aya Supay is offline