Raised This Month: $32 Target: $400
 8% 

[CS:GO/CS:S] Clutch Or Cluck (v1.7.0 - July 11, 2017)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
GabenNewell
Member
Join Date: May 2013
Plugin ID:
4144
Plugin Version:
1.7.0
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Clutch now or cluck the next round.
    Old 03-26-2014 , 06:39   [CS:GO/CS:S] Clutch Or Cluck (v1.7.0 - July 11, 2017)
    Reply With Quote #1




    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+
    Attached Files
    File Type: zip css.zip (189.2 KB, 760 views)
    File Type: sp Get Plugin or Get Source (clutchorcluck.sp - 1348 views - 23.3 KB)
    File Type: zip clutchorcluck160.zip (214.8 KB, 465 views)

    Last edited by GabenNewell; 07-12-2017 at 14:35. Reason: Removed v1.7.0 zip (broken version).
    GabenNewell is offline
    Chesterfield
    Senior Member
    Join Date: Apr 2013
    Old 03-26-2014 , 10:10   Re: [CS:GO] Clutch Or Cluck
    Reply With Quote #2

    Tried it, works and its funny!
    Chesterfield is offline
    boombee
    SourceMod Donor
    Join Date: Nov 2013
    Old 03-26-2014 , 19:20   Re: [CS:GO] Clutch Or Cluck
    Reply With Quote #3

    OMG! LOL, nice one
    boombee is offline
    nguyenbaodanh
    AlliedModders Donor
    Join Date: Jun 2007
    Location: HCMC, Vietnam
    Old 03-26-2014 , 23:52   Re: [CS:GO] Clutch Or Cluck
    Reply With Quote #4

    Please limit an admin flag to use sm_chicken.
    __________________
    nguyenbaodanh is offline
    Jargon
    SourceMod Donor
    Join Date: Jun 2012
    Location: Sydney, Australia
    Old 03-27-2014 , 02:22   Re: [CS:GO] Clutch Or Cluck
    Reply With Quote #5

    Just use sourcemod overrides in the meantime.
    Jargon is offline
    GabenNewell
    Member
    Join Date: May 2013
    Old 03-27-2014 , 06:34   Re: [CS:GO] Clutch Or Cluck
    Reply With Quote #6

    Quote:
    Originally Posted by nguyenbaodanh View Post
    Please limit an admin flag to use sm_chicken.
    I guess I can add that.


    Has anyone experienced any bugs yet?
    GabenNewell is offline
    nguyenbaodanh
    AlliedModders Donor
    Join Date: Jun 2007
    Location: HCMC, Vietnam
    Old 03-27-2014 , 10:51   Re: [CS:GO] Clutch Or Cluck
    Reply With Quote #7

    maybe another chicken model? coz it's missing animation now
    __________________
    nguyenbaodanh is offline
    GabenNewell
    Member
    Join Date: May 2013
    Old 03-27-2014 , 16:30   Re: [CS:GO] Clutch Or Cluck
    Reply With Quote #8

    Quote:
    Originally Posted by nguyenbaodanh View Post
    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!

    I included the cvars sm_coc_model and sm_coc_modeldead in the clutchorcluck.cfg in case you want to use your own models.
    GabenNewell is offline
    TnTSCS
    AlliedModders Donor
    Join Date: Oct 2010
    Location: Undisclosed...
    Old 03-31-2014 , 18:21   Re: [CS:GO] Clutch Or Cluck
    Reply With Quote #9

    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
    __________________
    View my Plugins | Donate

    Last edited by TnTSCS; 03-31-2014 at 18:21.
    TnTSCS is offline
    GabenNewell
    Member
    Join Date: May 2013
    Old 03-31-2014 , 19:23   Re: [CS:GO] Clutch Or Cluck
    Reply With Quote #10

    Quote:
    Originally Posted by TnTSCS View Post
    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.
    GabenNewell is offline
    Reply


    Thread Tools
    Display Modes

    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 21:11.


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