AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:GO/CS:S] Clutch Or Cluck (v1.7.0 - July 11, 2017) (https://forums.alliedmods.net/showthread.php?t=237554)

GabenNewell 03-26-2014 06:39

[CS:GO/CS:S] Clutch Or Cluck (v1.7.0 - July 11, 2017)
 
3 Attachment(s)
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:
Code:

Overrides
{
    "sm_chicken"    "abc"
}


Cvars:

PHP 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:

  1. Put the clutchorcluck.smx file in your /csgo/addons/sourcemod/plugins folder.
  2. Load the plugin using "sm plugins load clutchorcluck" or simply restart your server.
  3. Edit the /csgo/cfg/sourcemod/clutchorcluck.cfg file to your liking.
  4. Restart your server for the changes to take effect.

CS:Source Installation:
  1. Extract css.zip into your /cstrike folder or /cstrike/custom/my_custom_stuff folder.
  2. Put the clutchorcluck.smx file in your /cstrike/addons/sourcemod/plugins folder.
  3. Load the plugin using "sm plugins load clutchorcluck" or simply restart your server.
  4. Edit the /cstrike/cfg/sourcemod/clutchorcluck.cfg file to your liking.
  5. Restart your server for the changes to take effect.

Custom Models:

  1. Extract the custom materials and models into your mod directory.
  2. Create a clutchorcluck.ini file in your /<mod>/addons/sourcemod/configs folder.
  3. List the paths of all the files required for that model in the clutchorcluck.ini file.
  4. Change the model cvars in the /<mod>/cfg/sourcemod/clutchorcluck.cfg file to the path of your custom model.
  5. 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



Changelog:

Spoiler

* Please delete your /cfg/sourcemod/clutchorcluck.cfg file when updating to newer versions.

* Possibly requires SourceMod 1.7+

Chesterfield 03-26-2014 10:10

Re: [CS:GO] Clutch Or Cluck
 
Tried it, works and its funny!

boombee 03-26-2014 19:20

Re: [CS:GO] Clutch Or Cluck
 
OMG! LOL, nice one :P

nguyenbaodanh 03-26-2014 23:52

Re: [CS:GO] Clutch Or Cluck
 
Please limit an admin flag to use sm_chicken.

Jargon 03-27-2014 02:22

Re: [CS:GO] Clutch Or Cluck
 
Just use sourcemod overrides in the meantime.

GabenNewell 03-27-2014 06:34

Re: [CS:GO] Clutch Or Cluck
 
Quote:

Originally Posted by nguyenbaodanh (Post 2116369)
Please limit an admin flag to use sm_chicken.

I guess I can add that.


Has anyone experienced any bugs yet?

nguyenbaodanh 03-27-2014 10:51

Re: [CS:GO] Clutch Or Cluck
 
maybe another chicken model? coz it's missing animation now

GabenNewell 03-27-2014 16:30

Re: [CS:GO] Clutch Or Cluck
 
Quote:

Originally Posted by nguyenbaodanh (Post 2116504)
maybe another chicken model? coz it's missing animation now

Since this is my very first SourceMod plugin created from the ground up, all I did was set the player model to the default CS:GO chicken model. If someone can teach me how to fix the chicken animation, that would be great! :up:

I included the cvars sm_coc_model and sm_coc_modeldead in the clutchorcluck.cfg in case you want to use your own models.

TnTSCS 03-31-2014 18:21

Re: [CS:GO] Clutch Or Cluck
 
Chicken animation should be just fine. You're using the default CS:GO chicken model, just like I have setup with my Chicken Mod plugin.

Is the animation not working for this plugin GabenNewell? Have you tested it yourself?

The only thing I didn't see was a model precache:
PHP Code:

public OnConfigsExecuted()
{
    
PrecacheModel(cocmodeltrue);


Also, you'll definitely need this if people use a custom model, unless you tell them to use a seperate plugin for precaching and adding to download tables.

Take a look at my plugin for examples and what not - if you want.
https://forums.alliedmods.net/showthread.php?t=156898

GabenNewell 03-31-2014 19:23

Re: [CS:GO] Clutch Or Cluck
 
Quote:

Originally Posted by TnTSCS (Post 2118560)
Chicken animation should be just fine. You're using the default CS:GO chicken model, just like I have setup with my Chicken Mod plugin.

Is the animation not working for this plugin GabenNewell? Have you tested it yourself?

The only thing I didn't see was a model precache:
PHP Code:

public OnConfigsExecuted()
{
    
PrecacheModel(cocmodeltrue);


Also, you'll definitely need this if people use a custom model, unless you tell them to use a seperate plugin for precaching and adding to download tables.

Take a look at my plugin for examples and what not - if you want.
https://forums.alliedmods.net/showthread.php?t=156898

Oh ty, I'll add that. Just curious... Does it have to be in OnConfigsExecuted()? Why not at the end of OnPluginStart() after AutoExecConfig? What's the difference?

As for the animation, I just tested your Chicken Mod plugin and it works the same way as mine. The chicken is static. I believe nguyenbaodanh was referring to the running animation to make it seem natural at least.


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

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