PDA

View Full Version : DoD EnemySpyMod ( v0.9beta )


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

{SR} *Raggy*
01-21-2007, 10:46 AM
Would this plugin work with the new amxx? Since the changes...

Kiel |17.SS|
01-21-2007, 05:50 PM
Can they hear what the enemys say?

diamond-optic
01-21-2007, 07:00 PM
it compiles fine.. so give it a try :p

{SR} *Raggy*
01-21-2007, 08:18 PM
Alrite I'll give it a go later on :) And I'll let ye know if it works good :P

Kiel |17.SS|
01-22-2007, 04:03 AM
Thats really awesome. You should make it though so your voice chat is the other teams, and you can hear what the other team says. Also, maybe the spy can be something you can pick, like the sniper or smg.

{SR} *Raggy*
02-02-2007, 11:29 AM
Well this plugin is great and everything but my guys want to change it to changing the spy per death not round... Could that happen for this please? A new version like that?

Hood [10th MD]
04-23-2007, 10:08 PM
Maybe we can make it like medic class where someone can say /spy and become the spy as long as they want, but have a cvar to limit # per team, and also have a way for admins to override the user and become the spy if they want.
Maybe I'll do that later on.