Raised This Month: $51 Target: $400
 12% 

Cache-Cache Remake v1.0.2


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
guipatinador
SourceMod Donner Party
Join Date: Oct 2009
Location: Poortugal
Old 12-07-2013 , 13:36   Cache-Cache Remake v1.0.2
Reply With Quote #1

Cache-Cache Remake v1.0.2




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


Spoiler


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)
Attached Files
File Type: sma Get Plugin or Get Source (CacheCacheRemake_v1_0_2.sma - 1415 views - 25.0 KB)

Last edited by guipatinador; 04-06-2014 at 13:20.
guipatinador is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 12-07-2013 , 15:25   Re: Cache-Cache Remake v1.0.1
Reply With Quote #2

Nicely done!
__________________
Blizzard_87 is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 12-07-2013 , 16:04   Re: Cache-Cache Remake v1.0.1
Reply With Quote #3

You should change the defines into cvars. Good job.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 12-08-2013 , 08:19   Re: Cache-Cache Remake v1.0.1
Reply With Quote #4

Seems légit.
Nice job.
__________________
Kia is offline
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 12-08-2013 , 15:31   Re: Cache-Cache Remake v1.0.1
Reply With Quote #5

Quote:
Originally Posted by guipatinador View Post
- 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.
__________________
My Plugins:
UltimatePlugin
UltimateSurf
UltimateAdmin
Code:
rcon version | rcon amxx version | rcon meta version
rcon amxx plugins | rcon meta list | rcon status
I AM INACTIVE ON THIS FORUM - For direct contact: [email protected]
tonykaram1993 is offline
guipatinador
SourceMod Donner Party
Join Date: Oct 2009
Location: Poortugal
Old 12-08-2013 , 15:38   Re: Cache-Cache Remake v1.0.1
Reply With Quote #6

Quote:
Originally Posted by tonykaram1993 View Post
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.
guipatinador is offline
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 12-08-2013 , 15:41   Re: Cache-Cache Remake v1.0.1
Reply With Quote #7

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.
__________________
My Plugins:
UltimatePlugin
UltimateSurf
UltimateAdmin
Code:
rcon version | rcon amxx version | rcon meta version
rcon amxx plugins | rcon meta list | rcon status
I AM INACTIVE ON THIS FORUM - For direct contact: [email protected]
tonykaram1993 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-08-2013 , 15:56   Re: Cache-Cache Remake v1.0.1
Reply With Quote #8

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.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 12-08-2013 at 15:56.
ConnorMcLeod is offline
al3amri
Member
Join Date: May 2011
Old 12-15-2013 , 07:38   Re: Cache-Cache Remake v1.0.1
Reply With Quote #9

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
al3amri is offline
Lokogaditano
Senior Member
Join Date: Apr 2009
Old 12-15-2013 , 11:48   Re: Cache-Cache Remake v1.0.1
Reply With Quote #10

nice plugin

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

ttcanwalk 1/0
Lokogaditano is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:37.


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