Firestorm
07-08-2006, 11:50 AM
// DESCRIPTION:
// ============
//
// DoD AntiCamping is a simple but powerful plugin
// to automatically handles and encourages campers to take
// flags and fulfill the aim of Day of Defeat.
// Snipers and MGs are excluded from checking and punishments!
//
//
//
// FEATURES:
// =========
//
// This Plugin is for Day of Defeat ONLY!
//
// DoD AntiCamping has three modes:
//
// MODE 1:
// This setting activates the "camptime" mode of DoD AntiCamping.
// X seconds after a kill, the killer is checked if he's still
// on the same position and a positiv camper check is made.
// after each positive camper check, the players positive checks will
// be compared to the set actions and if the amount fits to an action,
// it will be executed.
//
// MODE 2:
// This only Mode only applies for proned players.
// if a player is proned/proned+deployed/deployed, he will be checked
// if he is still in one of those states and the same position after
// Y seconds and a positive camper check is made if he is.
// after each positive camper check, the players positive checks will
// be compared to the set actions and if the amount fits to an action,
// it will be executed.
//
// MODE 3:
// This setting activates the "kills/flag-ratio" mode of DoD AntiCamping.
// If a player exceeds the set ratio of kills devided by flagpoints,
// a positive camper check is made and is compared to the actions again.
// after an action took place, his flag-account and his kill-account
// is reset (independent from kills/score of the scoreboard).
// counted are only positive camper checks.
//
// MODE 0:
// This setting will completely disable DoD AntiCamping.
// USAGE (all cvars for amxx.cfg):
// ===============================
//
// dod_anticampingmode <1/2/3/0> = sets mode for DoD AntiCamping
//
// anticamping_startcheck = number of kills to start
// checking for kill/flag-ratio
// (Mode 3 ONLY)
// anticamping_killflagratio = sets kill/flagratio to identify
// campers. (Mode 3 ONLY)
// anticamping_pronetime = sets time in seconds someone
// is allowed to be proned and on
// same position after a kill.
// (Mode 2 ONLY)
// anticamping_camptime = sets time in seconds someone
// is allowed to be at the same
// position after a kill
// (Mode 1 ONLY)
// anticamping_glow = sets amount of positiv camping
// checks to make the player glow
// anticamping_slapglow = sets amount of positiv camping
// checks to slap a player and make
// anticamping_slapdamage = sets amount of damage to cause by
// slapping the player
// anticamping_knifeonly = sets amount of positiv camping
// checks to only allow the player
// to use a knife/spade
// anticamping_slay = sets amount of positiv camping
// checks to slay a player
// anticamping_kick = sets amount of positiv camping
// checks to kick a player
// CHANGELOG:
// ==========
//
// - 01.11.2004 Version 0.5alpha
// Initial Alpha-Release
//
// - 21.11.2004 Version 0.6beta
// * slightly changed the modes a bit
// * added autochange of mode for certain
// maps that have objectives instead of
// flags (besides para maps), this applies
// when Mode3 was chosen and will be switched
// to Mode1
// * changed name to "DoD AntiCamping"
// * changed status to Beta
// ============
//
// DoD AntiCamping is a simple but powerful plugin
// to automatically handles and encourages campers to take
// flags and fulfill the aim of Day of Defeat.
// Snipers and MGs are excluded from checking and punishments!
//
//
//
// FEATURES:
// =========
//
// This Plugin is for Day of Defeat ONLY!
//
// DoD AntiCamping has three modes:
//
// MODE 1:
// This setting activates the "camptime" mode of DoD AntiCamping.
// X seconds after a kill, the killer is checked if he's still
// on the same position and a positiv camper check is made.
// after each positive camper check, the players positive checks will
// be compared to the set actions and if the amount fits to an action,
// it will be executed.
//
// MODE 2:
// This only Mode only applies for proned players.
// if a player is proned/proned+deployed/deployed, he will be checked
// if he is still in one of those states and the same position after
// Y seconds and a positive camper check is made if he is.
// after each positive camper check, the players positive checks will
// be compared to the set actions and if the amount fits to an action,
// it will be executed.
//
// MODE 3:
// This setting activates the "kills/flag-ratio" mode of DoD AntiCamping.
// If a player exceeds the set ratio of kills devided by flagpoints,
// a positive camper check is made and is compared to the actions again.
// after an action took place, his flag-account and his kill-account
// is reset (independent from kills/score of the scoreboard).
// counted are only positive camper checks.
//
// MODE 0:
// This setting will completely disable DoD AntiCamping.
// USAGE (all cvars for amxx.cfg):
// ===============================
//
// dod_anticampingmode <1/2/3/0> = sets mode for DoD AntiCamping
//
// anticamping_startcheck = number of kills to start
// checking for kill/flag-ratio
// (Mode 3 ONLY)
// anticamping_killflagratio = sets kill/flagratio to identify
// campers. (Mode 3 ONLY)
// anticamping_pronetime = sets time in seconds someone
// is allowed to be proned and on
// same position after a kill.
// (Mode 2 ONLY)
// anticamping_camptime = sets time in seconds someone
// is allowed to be at the same
// position after a kill
// (Mode 1 ONLY)
// anticamping_glow = sets amount of positiv camping
// checks to make the player glow
// anticamping_slapglow = sets amount of positiv camping
// checks to slap a player and make
// anticamping_slapdamage = sets amount of damage to cause by
// slapping the player
// anticamping_knifeonly = sets amount of positiv camping
// checks to only allow the player
// to use a knife/spade
// anticamping_slay = sets amount of positiv camping
// checks to slay a player
// anticamping_kick = sets amount of positiv camping
// checks to kick a player
// CHANGELOG:
// ==========
//
// - 01.11.2004 Version 0.5alpha
// Initial Alpha-Release
//
// - 21.11.2004 Version 0.6beta
// * slightly changed the modes a bit
// * added autochange of mode for certain
// maps that have objectives instead of
// flags (besides para maps), this applies
// when Mode3 was chosen and will be switched
// to Mode1
// * changed name to "DoD AntiCamping"
// * changed status to Beta