View Single Post
Author Message
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 09-10-2012 , 14:48   [CS:GO] Grenade Pack 2
Reply With Quote #1

DESCRIPTION:
Give players the ability to hold more than 3 nades. By default, CS:GO limits players to 1 of each type, with a max 3 total nades. This plugin allows you to define how many of each type you want players to be able to carry.

- Ability to set a hard number of total grenades a player can carry, regardless of type.
- Ability to set a hard number of total "types" of grenades a player can carry. Example, you allow up to 4 HE, 3 Flash-bang, 2 Decoy, 3 Smoke, and 2 Molotov/Incendiary however you set total types to 3... that means players can only carry up to the max of 3 types (whatever types they choose, but max 3 types).

This plugin is VIP equipped:
VIP players can hold more of each type of nade than regular players can, if you set it up that way in the config file. If a player has the admin flag RESERVATION "a" they will be marked as VIP for this plugin.

*** You can override the flag needed for VIP by utilizing admin_overrides.cfg and assigning whatever flag you want to "gp2_csgo_vip"

As of 0.0.1.6 I've added a debug feature for this plugin, see CVar list for options.

CVars


Change Log


REQUIREMENTS:
Sourcemod 1.5.0-dev+3756 or better
SDKHooks - Version 2.2 (or better) for CS:GO

Optional:
Updater (if you want automatic updates)

Credits:
SourceMod Team
Greyscale - for original Grenade Pack idea for CS:S

KNOWN ISSUES:
None that I found, report them as you see them.

To Do List:
+ Add option where you can define a hard set limit of nades, like 4 - players (or ViPs) can have any combination of nades, limit 4 to carry. Two CVars for this, one for regulars and another for ViPs.

INSTALLATION:
Copy the .smx to your sourcemod/plugins folder and the phrases.txt to your sourcemod/translation folder. When you run the plugin for the first time, it will auto generate a configuration file in your cfg/sourcemod folder named "plugin.GrenadePack2_csgo.cfg" - edit that to your liking then reload the plugin (or better, change the map).

The online compiler won't work, you have to download the .SMX file. This is due to custom include files (see .sp for what those are).

Updated configuration file and translation file required for 0.0.1.3
Attached Files
File Type: txt grenadepack2_csgo.phrases.txt (4.2 KB, 1805 views)
File Type: sp Get Plugin or Get Source (GrenadePack2_csgo.sp - 1237 views - 44.1 KB)
File Type: smx GrenadePack2_csgo.smx (17.5 KB, 953 views)
__________________
View my Plugins | Donate

Last edited by TnTSCS; 04-18-2015 at 09:35. Reason: Update from 0.0.1.4 to 0.0.1.6
TnTSCS is offline