Description:
Clutch Or Cluck is a fun plugin for Counter-Strike: Global Offensive and Counter-Strike: Source that may be used to help balance or unbalance stacked teams, or just for plain and simple fun.
Server managers can configure the settings to be either a game of choice or a game of luck.
The default configuration allows the last living player on a team (against 5 or more living opponents) to choose between Clutch or Cluck:
Clutch
- The player is given 500 HP to help him clutch the round.
- The player will be rewarded with 200 HP the next round if he wins.
- The player will be set on fire the next round if he fails.
Cluck
- The player is turned into a stealthy chicken with 1 HP.
- The player can only use a knife.
- The player will still be a chicken the next round whether he wins or not.
Features:
Win or Die - Slays players of the losing team who still have more than 50 HP at the end of a round.
Admin Commands:
sm_chicken <target> - Sets the model of a player to a chicken. Requires admin slay flag or use SourceMod Overrides:
- Overrides
- {
- "sm_chicken" "abc"
- }
Cvars:
CODE
// ConVars for plugin "clutchorcluck.smx"
// Clutch Or Cluck plugin version.
// -
sm_coc_version "1.7.0"
// Sets beacon on the player. (0 = Disabled, 1 = Clutch, 2 = Cluck, 3 = Both)
// * Requires funcommands.smx
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "3.000000"
sm_coc_beacon "0"
// Number of seconds to burn a player for not clutching.
// -
// Default: "60.0"
// Minimum: "0.000000"
// Maximum: "120.000000"
sm_coc_burntime "60.0"
// Allow chickens to pick up and plant the bomb.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_coc_c4pickup "1"
// Enable/disable the plugin.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_coc_enable "1"
// Health points when attempting to clutch a round.
// -
// Default: "500"
// Minimum: "1.000000"
// Maximum: "5000.000000"
sm_coc_hpbonus "500"
// Health points when turned into a chicken.
// -
// Default: "1"
// Minimum: "1.000000"
// Maximum: "5000.000000"
sm_coc_hpchicken "1"
// Health points for successfully clutching a round.
// -
// Default: "200"
// Minimum: "1.000000"
// Maximum: "1000.000000"
sm_coc_hpreward "200"
// Allow chickens to use a knife.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_coc_knife "1"
// Maximum number of rivals for Clutch Or Cluck to activate.
// -
// Default: "20"
// Minimum: "1.000000"
// Maximum: "40.000000"
sm_coc_maxrivals "20"
// Cluck model for Counter-Terrorists.
// -
// Default: "models/chicken/chicken.mdl"
sm_coc_mdl_cluckct "models/chicken/chicken.mdl"
// Cluck model for Terrorists.
// -
// Default: "models/chicken/chicken.mdl"
sm_coc_mdl_cluckt "models/chicken/chicken.mdl"
// Clutch model for Counter-Terrorists.
// -
// Default: ""
sm_coc_mdl_clutchct ""
// Clutch model for Terrorists.
// -
// Default: ""
sm_coc_mdl_clutcht ""
// Minimum number of rivals for Clutch Or Cluck to activate.
// -
// Default: "5"
// Minimum: "1.000000"
// Maximum: "40.000000"
sm_coc_minrivals "5"
// Show clutch round information.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_coc_msg_clutch "1"
// Show chicken kill/death notifications.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_coc_msg_killdeath "1"
// Show warning when Clutch or Cluck has been set on a player.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_coc_msg_warn "1"
// Show win or die team slay message.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_coc_msg_windordie "1"
// Randomly set Clutch or Cluck based on a ratio.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_coc_random "0"
// Percentage (%) chance for the player to turn into a chicken if sm_coc_random is 1. (100 = Always)
// -
// Default: "50"
// Minimum: "0.000000"
// Maximum: "100.000000"
sm_coc_ratio "50"
// Slay players who team kill friendly chickens.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_coc_slaytk "1"
// Allow chickens to toggle third-person view using reload key. (CS:GO only)
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_coc_thirdperson "1"
// Minimum number of seconds left in a round for Clutch Or Cluck to activate.
// -
// Default: "20"
// Minimum: "10.000000"
// Maximum: "240.000000"
sm_coc_timeleft "20"
// If non-zero, slays players of the losing team whose HP is greater than or equal to this value.
// -
// Default: "50"
// Minimum: "0.000000"
// Maximum: "5000.000000"
sm_coc_winordie "50"
CS:GO Installation:
Put the clutchorcluck.smx file in your /csgo/addons/sourcemod/plugins folder.
Load the plugin using "sm plugins load clutchorcluck" or simply restart your server.
Edit the /csgo/cfg/sourcemod/clutchorcluck.cfg file to your liking.
Restart your server for the changes to take effect.
CS:Source Installation:
Extract css.zip into your /cstrike folder or /cstrike/custom/my_custom_stuff folder.
Put the clutchorcluck.smx file in your /cstrike/addons/sourcemod/plugins folder.
Load the plugin using "sm plugins load clutchorcluck" or simply restart your server.
Edit the /cstrike/cfg/sourcemod/clutchorcluck.cfg file to your liking.
Restart your server for the changes to take effect.
Custom Models:
Extract the custom materials and models into your mod directory.
Create a clutchorcluck.ini file in your /<mod>/addons/sourcemod/configs folder.
List the paths of all the files required for that model in the clutchorcluck.ini file.
Change the model cvars in the /<mod>/cfg/sourcemod/clutchorcluck.cfg file to the path of your custom model.
Restart your server for the changes to take effect.
Example: /csgo/addons/sourcemod/configs/clutchorcluck.ini
CODE
// Paths of custom models/materials
materials/models/props_farm/chicken_pink.vmt
materials/models/props_farm/chicken_pink.vtf
models/chicken/chicken.dx90.vtx
models/chicken/chicken.mdl
models/chicken/chicken.phy
models/chicken/chicken.vvd