Firestorm
07-09-2006, 10:45 AM
// DESCRIPTION:
// ============
//
// A random player of the axis team and a random player of the allied
// team will be a spy and looks like an enemy soldier and has these
// weapons. he/she will be the spy for a whole round and will get
// another random class on every respawn.
// USAGE:
// ======
//
// CVARS:
//
// dod_enemyspymod_enabled <1/0> = enable/disable Plugin by default
//
// dod_enemyspymod_taimmunity <1/0> = enable/disable health regain after
// a spy got attacked by a team mate
//
//
// ADMIN COMMAND:
//
// amx_enemyspymod <1/0> = enable/disable EnemySpy Mod
// CHANGELOG:
// ==========
//
// - 30.09.2004 Version 0.1pre-alpha
// Initial Alpha
//
// - 03.10.2004 Version 0.2pre-alpha
// looks more like a plugin now,
// but doesn't work like it should
//
// - 04.10.2004 Version 0.3pre-alpha
// works like it should now
//
// - 05.10.2004 Version 0.4alpha
// cleaned the code a bit
//
// - 06.10.2004 Version 0.5beta
// * added "silent footsteps" to the spies
// * changed to beta status
//
// - 09.10.2004 Version 0.6beta
// * fixed some bugs
// * cleaned the code
// * changed announcements to
// only one message per player
// per round
// * reduced message time when a spy got
// killed/tked to 5 seconds
// * made sure that no player will be the
// spy two rounds in a row
//
// - 19.10.2004 Version 0.7beta
// * fixed minor bugs
// * if a team's spy leaves the server
// a new spy for that team is chosen.
// * to prevent logs full of errors,
// EnemySpy Mod is disabled 5 seconds
// before a mapchange.
//
// - 26.10.2004 Version 0.8beta
// * fixed some minor bugs
// * fixed process of resetting spies
// and spies that leave the server
//
// - 07.11.2004 Version 0.8beta2
// * fixed error with set_user_footsteps
// native
//
// - 26.07.2005 Version 0.9beta
// * added cvar to enable/disable the plugin,
// this way you can enable the plugin by
// default without the need to be on the
// server and enable it by admin command
// * added feature/cvar to give your team's
// spy the health back that he got removed
// by a team attack.
// * some code optimizations
// ============
//
// A random player of the axis team and a random player of the allied
// team will be a spy and looks like an enemy soldier and has these
// weapons. he/she will be the spy for a whole round and will get
// another random class on every respawn.
// USAGE:
// ======
//
// CVARS:
//
// dod_enemyspymod_enabled <1/0> = enable/disable Plugin by default
//
// dod_enemyspymod_taimmunity <1/0> = enable/disable health regain after
// a spy got attacked by a team mate
//
//
// ADMIN COMMAND:
//
// amx_enemyspymod <1/0> = enable/disable EnemySpy Mod
// CHANGELOG:
// ==========
//
// - 30.09.2004 Version 0.1pre-alpha
// Initial Alpha
//
// - 03.10.2004 Version 0.2pre-alpha
// looks more like a plugin now,
// but doesn't work like it should
//
// - 04.10.2004 Version 0.3pre-alpha
// works like it should now
//
// - 05.10.2004 Version 0.4alpha
// cleaned the code a bit
//
// - 06.10.2004 Version 0.5beta
// * added "silent footsteps" to the spies
// * changed to beta status
//
// - 09.10.2004 Version 0.6beta
// * fixed some bugs
// * cleaned the code
// * changed announcements to
// only one message per player
// per round
// * reduced message time when a spy got
// killed/tked to 5 seconds
// * made sure that no player will be the
// spy two rounds in a row
//
// - 19.10.2004 Version 0.7beta
// * fixed minor bugs
// * if a team's spy leaves the server
// a new spy for that team is chosen.
// * to prevent logs full of errors,
// EnemySpy Mod is disabled 5 seconds
// before a mapchange.
//
// - 26.10.2004 Version 0.8beta
// * fixed some minor bugs
// * fixed process of resetting spies
// and spies that leave the server
//
// - 07.11.2004 Version 0.8beta2
// * fixed error with set_user_footsteps
// native
//
// - 26.07.2005 Version 0.9beta
// * added cvar to enable/disable the plugin,
// this way you can enable the plugin by
// default without the need to be on the
// server and enable it by admin command
// * added feature/cvar to give your team's
// spy the health back that he got removed
// by a team attack.
// * some code optimizations