Introduction
This is a remake version of the original Cache-Cache by djeyL (
http://forums.alliedmods.net/showthread.php?t=78477). The original have a lot of bugs. The main ideia of this plugin is to correct them.
Description
Ts have 45 seconds to found a good spot in the map. CTs get a blue dark screen (screenfade) until the countdown reaches 0. At this time, the map stays completly dark and CTs receive weapons (M4 + deagle + grenade). Their job is to find and kill the Ts. Ts have nightvision, knife, a grenade and can kill CTs. CTs have a big flashlight with different colors. When the round is over, the last Ts players to get killed are transfered to CT.
Players can't choose their team. Everyone goes to T, then the plugin automatically moves players into CT. If there are no players on CT team, the game is automatically paused and is resumed when more players enters.
Commands (chat)
- /sounds – Enable / disable songs during the game
Admin Commands (console)
cache_cache_update_cvars - Updates the plugin CVARS
CVARS
Code:
cachecache_min_players 2 // Minimum players to start the game (min value is 2)
cachecache_t_ct_ratio 4 // Ratio between Ts and CTs. (min value is 1)
cachecache_time_to_hide 45 // Time to Ts get hide. (min value is 5)
cachecache_time_between_ads 180 // Time between chat ads. 0 to disable
cachecache_t_grenade_ammo 1 // Number of grenades when a player is T. 0 to disable
cachecache_ct_weapon_ammo 250 // Ammo of CTs weapons. 0 to disable
cachecache_ct_grenade_ammo 2 // Number of grenades when a player is CT. 0 to disable
cachecache_ct_glow_alpha 25 // Intensity of glow when a player is CT. 0 to disable (max value is 255)
cachecache_recommended_cvars 1 // Use or not recommended cvars
cachecache_ct_screenfade 1 // Screenfade or not CT players during the hide time
cachecache_t_can_kill_ct 1 // If set to 1, Ts can kill CTs with knife or grenade. 0 to disable
cachecache_t_can_use_flashlight 0 // If set to 1, Ts can use flashlight. This CVAR is disabled by default
NOTE: CVARS are updated at new round.
This are the recommended cvars. They are automaticaly updated,
mp_roundtime 3.15
mp_freezetime 0
mp_friendlyfire 0
mp_autoteambalance 0
mp_flashlight 1
mp_hostagepenalty 0
mp_limitteams 0
sv_maxspeed 400
humans_join_team T
Requirements
PHP Code:
#include < amxmodx >
#include < amxmisc >
#include < cstrike >
#include < engine >
#include < fun >
#include < hamsandwich >
Defines
PHP Code:
#define PREFIX "[Cache-Cache Remake]"
#define MAX_PLAYERS 32
#define ADMIN_FLAG ADMIN_IMMUNITY
#define TIME_TO_STRIP_WEAPONS 0.2
#define TIME_TO_DISABLE_GODMODE_CTS 5.0
#define TIME_WAITING_FOR_NEW_PLAYERS 5.0
#define TIME_FOR_DELAYED_END_ROUND 3.0
#define FAST_SPEED 400.0
#define SLOW_SPEED 0.1
#define LOW_GRAVITY 0.25
#define NORMAL_GRAVITY 1.0
#define LIGHT_DARK "a"
#define LIGHT_NORMAL "d"
Screenshots
Instalation
1. Download the .amxx attached
2. Install the plugin normally
3. Copy the cvars to your server.cfg and customize at your own way
4. Change map or restart your server
Known issues
- Sometimes CTs don't receive the screenfade message. This problem could be from the server or the players.
Changelog
Code:
v1.0.2 (06/04/2014)
- Changed MSG_ONE_UNRELIABLE to MSG_ONE in ScreenFade function.
v1.0.1 (7/12/2013)
- Added a CVAR to min players
v1.0.0 (7/12/2013)
- Initial release
Credits
- djeyLfor original plugin
- ConnorMcLeod for some code snippets (screenfade, block players from receiving C4, block players from touching ground weapons)