/*************************************************************************** * plugin_ejl_timebomb.sma version 4.0 Date: 10/26/2002 * Author: Eric Lidman ejlmozart@hotmail.com * Alias: Ludwig van Upgrade: http://lidmanmusic.com/cs/plugins.html * * Fixed: 10/26/02 Revised for adminmod 2.50.50 * Fixed: 8/22/02 Minor tweaks including a timer correction scheme added * Added: 6/27/02 Command: admin_timebombs_default * Added: 6/27/02 Option to use HLFX for firey explosions * * Modified by cactus to be more efficient at recognizing 'kamikazi' * * Modified by author to be sensitive to the friendlyfire cvar. This way if * FF is off, you dont blow up your teamates. This plugin was designed for * Counter-Strike. With the change to use the CS specific mp_friendlyfire * cvar, I dont know if this will work with mods like TFC or others now. * If it does, let me know. I already know that the C4 timer sound and * part of the explosion sound will only be heard in CS. * * Modified 3-30-02 by author to have a delay at round start for kamikazi * runs. Also, within the first 10 seconds of roun start, the bomb will * only kill the bomber and no bystanders. LOGD is required to make these * changes work. http://logd.sourceforge.net/ * Once you get LogD, find and change this one line in my script: * * #define use_logd 1 // 0=no 1=yes * * By default use_logd is set to 0 to make it comapatible for all users. * * You can have firey explosions if you have the HLFX dll installed * As of this version HLFX is only available for windows servers. * Let us thank Lightfoot for coming up with the * Windows HLFX dll. Will somebody please write the Linux version!! * You need to find this in the script and change it to 1 * * #define use_HLFX 1 // 0=no 1=yes * * By defaulf use_HLFX is set to 0 so that it is universally compatible. * Note that whith the use of HLFX, the friendlyfire feature doesnt work * because HLFX does its own blast radius calculation and takes its own * killing action based on that redering the scripting here for * friendlyfire sensitivity useless. Too bad. The LodD part of it * (where you cant blow up others at spawn) still works though because * I decided not to let HLFX do the killing in that event. * Get latest HLFX here: http://deadone.no-ip.org/dead_one/HLFX/ * * * COMMANDS: * * say: kamikaze * admin_timebombs < 0 | 1 > * admin_timebombs_default * admin_timebomb * admin_vote_timebomb * * Player can become a timebomb by saying "kamikazi" in chat. Admin can * disable the kamikaze function with admin_timebombs 0 and turn it back * on again with admin_timebombs 1. Admin can make any live player without * immunity into a timebomb with admin_timebomb . All players can * start a vote to turn a player into a timebomb in much the same way that * admin_vote_map or admin_vote_kick works -- admin_vote_timebomb . * admin_timebombs_default sets the current timebombs mode as default by * writing it to the vault file and loading it at map start when plugins * are initialized. Admin ACCESS_RCON is required to set default. * * * THE DETAILS: * * Timer has a 15 second fuse. Countdown is done with half-life sounds. * Bystanders will also die when bomb explodes. * You know you are a bystander (or bomb) if you hear the C4 timer beep. * No more than one player can be a timebomb at any given time. * A timebomb player glows random colors during the countdown. * Dead Players cannot become timebombs. * There is a 5 minute delay between "kamikaze" runs for each player. * A timebomb who dies before the end of countdown explodes one second * after death, also killing bystanders. * * Make sure you have these in your adminmod.cfg: * admin_fx 1 * allow_client_exec 1 * file_access_read 1 * file_access_write 1 * Adminmod has them set to 0 by default, just change them to 1 * *************************************************************************** * * Compile Instructions: Take the sound.inc file and place it in the "include" * folder which is in the "scripting" folder of your adminmod installation. * Put ejl_timebomb.sma in the "myscripts" folder. "Complile_all", just like * any other scripts. Make sure to list the plugin in your plugin .ini. * If you dont want to compile it yourself, there is a windows and linux * version all compiled in this package. * *************************************************************************** * Additional credit: * This plugin is a very, very, very loose spinoff on plugin_sank_dice, * which I heavily modified, and then tore down to make this plugin. * So thanks to Luke Sankey for the basic structure, or whats left of it. * **************************************************************************/