// ******************************
// Blade's Anticamp
//
// * Description:
// - camping is allowed for cts if the Bomb has been droped
// - camping is allowed for Terrors on Hostage maps
// - camping is allowed for Terrors if the Bomb has been planted
// - camper will loose healthpoints every 2 sec.
// - camping is allowed for player with 15 healthpoints
//
// * Install instructions:
// 1. Install Mattie's EventScripts plugins:
//
http://mattie.info/cs//
// 2. Extract the file in:
// /addons/eventscripts/anticamp/es_anticamp.txt
//
// 3. Add the following line somewhere in autoexec.cfg:
// es_load anticamp
//
block config
{
// *********************************************************************
// This sound will be emitted from camper with the camp message
// Leave blank to disable this option
detect_sound "HL1/fvox/bell.wav"
// Beacon sound
// Leave blank to disable this option
beacon_sound "buttons/button17.wav"
// 0 = No player movement, with player movement
slap_mode 1
// Minimum health where camping is allowed
min_health 15
// Amount of cash decrease during camping every 2 sec
takecash 100
// Amount of health decrease during camping every 2 sec
health_slap 5
// *********************************************************************
// Set the timer when the punishments should be triggered -
// after the camptime has passed. Do not use floats!
// To disable set to -1
slap "6"
cash "10"
blind "-1"
strip "-1"
beacon "1"
credits "-1"
message "0" // can be fired several times
// *********************************************************************
// Define camp permission for CT on desired maps. Leave blank to revoke
allow_t_camp ""
// Define camp permission for T on desired maps. Leave bland to revoke
allow_ct_camp "ad,eg"
// Exclude from anticamp
// 0 = nothing, 1 = humans, 2 = bots
exclude 2
// Set this value to change the camptime in seconds
// Do not use floats!
camptime 16,0
// Default radius is 200 ~ 2.5m = 8ft
campradius 180
// Activates anticamp on round start, if specified time has elapsed.
start_timer 5