Written specifically for Hidden:Source Beta 4b.
Code:
/*
* Hidden:SourceMod - Radio Proximity Taunts
*
* Description:
* Plays radiotaunts#.mp3 over the IRIS's radio if a corpse_ragdoll is close enough when a hidden taunts.
*
* Console Variables:
* hsm_rpt_chat [0/1] : Successfully radioed taunts appear in global chat? 0: No, 1:Yes. Default: 1
* hsm_rpt_auto [0~1] : Chance for Hidden to automatically taunt when he kills. 0: Never. 1: Always. Default: 0
* hsm_rpt_last [0~1] : Alternate chance for Hidden to automatically taunt on the 2nd to last possible kill. 0: No alternate. 1: Always. Default: 0.333333
*
* Commands:
*
* Change-log:
* v1.0.2
* Set last-kill auto-taunt to be only "You're Next" (or "I'm coming for you" if you've altered the server's sound file. Manual taunts remain.
* Fixed error on World damage.
* Resolved inability to compile online due to missing MaxClients dynamic var.
* v1.0.1
* Added chances to automatically taunt on each kill and 2nd to last possible kill.
* Removed dependency on hidden & toteam includes.
* v1.0.0
* Initial release.
*
* Known Issues:
*
* To-Do:
*
* Contact:
* Paegus: [email protected]
* SourceMod: http://www.sourcemod.net
* Hidden:Source: http://www.hidden-source.com
*/