AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Cache-Cache Remake v1.0.2 (https://forums.alliedmods.net/showthread.php?t=231089)

guipatinador 12-07-2013 13:36

Cache-Cache Remake v1.0.2
 
1 Attachment(s)
Cache-Cache Remake v1.0.2


http://i.imgur.com/iBV3q67.png

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)

Blizzard_87 12-07-2013 15:25

Re: Cache-Cache Remake v1.0.1
 
Nicely done!

bibu 12-07-2013 16:04

Re: Cache-Cache Remake v1.0.1
 
You should change the defines into cvars. Good job.

Kia 12-08-2013 08:19

Re: Cache-Cache Remake v1.0.1
 
Seems légit.
Nice job.

tonykaram1993 12-08-2013 15:31

Re: Cache-Cache Remake v1.0.1
 
Quote:

Originally Posted by guipatinador (Post 2069671)
- Sometimes CTs don't receive the screenfade message. This problem could be from the server or the players.

I have never heard of such an issue. Can you please explain? How does it not work? You mean the players can see normally? If so, I think this is a dangerous bug that needs to be addressed. Maybe someone here can help you figuring it out.

guipatinador 12-08-2013 15:38

Re: Cache-Cache Remake v1.0.1
 
Quote:

Originally Posted by tonykaram1993 (Post 2070101)
You mean the players can see normally? If so, I think this is a dangerous bug that needs to be addressed. Maybe someone here can help you figuring it out.

Yes, thats it.
Sometimes the Counter-Terrorist Team don't get the screenfade message and can see normally during the hide time. This is not dangerous but is boring.

tonykaram1993 12-08-2013 15:41

Re: Cache-Cache Remake v1.0.1
 
What I meant by dangerous was that it will give the CTs an advantage if you want to call it that way.
I will check the code whenever I get back home, in the mean time I see that this is an interesting plugin judging from the pictures provided.

ConnorMcLeod 12-08-2013 15:56

Re: Cache-Cache Remake v1.0.1
 
Try using MSG_ONE instead of MSG_ONE_UNRELIABLE.
You may also want to block any Fade message that would be sent to players when they are supposed to be blind.

al3amri 12-15-2013 07:38

Re: Cache-Cache Remake v1.0.1
 
i like it i played with my friends and had alot of fun !
but if you add like a laser for ct's guns will be better :)

Lokogaditano 12-15-2013 11:48

Re: Cache-Cache Remake v1.0.1
 
nice plugin

can you put a cvar that have the hability to TT to walk or not

ttcanwalk 1/0


All times are GMT -4. The time now is 16:49.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.