Raised This Month: $80 Target: $400
 20% 

[CS:S] Health Bounty v1.1.1 (Updated 8/22/10)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Steell
SourceMod Donor
Join Date: Mar 2009
Plugin ID:
1881
Plugin Version:
1.1.1
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Bounty system where the payout is extra health on the next round.
    Old 08-15-2010 , 00:37   [CS:S] Health Bounty v1.1.1 (Updated 8/22/10)
    Reply With Quote #1

    Health Bounty


    About:
    As a player does well on the map, a bounty is placed on his head, which grows steadily until he/she is killed. The bounty is awarded as bonus HP at the beginning of the next round.
    Installation:
    Just place health-bounty.smx in the plugins folder and your cvars will automatically be generated in cfg/sourcemod/plugin.health-bounty.cfg. Alternatively, you can extract health-bounty.zip to your mod's root directory.
    Admin Commands:
    • sm_healthbounty_set <name> <amt> - Sets a bounty of amount "amt" on player "name". Can be used by all admins with the Kick flag.
    Cvar Configuration:
    Code:
    // Disable or enable the health bounty plugin.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_healthbounty "1"
    
    // How much the bounty goes up by to the player who planted the bomb if the bomb explodes
    // -
    // Default: "5"
    // Minimum: "0.000000"
    sm_healthbounty_bomb "5"
    
    // Health added to player's bounty per kill. Ignored if health_bounties.ini is in use
    // -
    // Default: "10"
    // Minimum: "0.000000"
    sm_healthbounty_bonus "10"
    
    // 1 - Print to chat, 2 - Print to center, 0 - Disable
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "2.000000"
    sm_healthbounty_display "1"
    
    // Headshot bonus - amount of extra health added to the bounty if the bounty is killed by a headshot.
    // -
    // Default: "5"
    // Minimum: "0.000000"
    sm_healthbounty_headshot "5"
    
    // How much the bounty should go up by whent he player rescues hostages
    // -
    // Default: "10"
    // Minimum: "0.000000"
    sm_healthbounty_hostie "10"
    
    // Minimum kill streak required before a bounty is placed on a player. Ignored if health_bounties.ini is in use.
    // -
    // Default: "5"
    // Minimum: "0.000000"
    sm_healthbounty_kills "5"
    
    // Highest amount that a bounty can be.
    // -
    // Default: "0"
    // Minimum: "0.000000"
    sm_healthbounty_limit "0"
    
    // Money to add to the bounty if the player survives the round.
    // -
    // Default: "5"
    // Minimum: "0.000000"
    sm_healthbounty_round "5"
    
    // Starting bounty amount once sm_bounty_kills is reached. Ignored if health_bounties.ini is in use.
    // -
    // Default: "50"
    // Minimum: "0.000000"
    sm_healthbounty_startamount "50"
    Advanced Configuration:
    If you want more control over when bounties are incremented, and by what amount, you can optionally use the health_bounties.ini file, included in the attached .zip file. This file is placed in the sourcemod/configs folder.

    health_bounties.ini Example:
    Code:
    //This file is used by Health Bounty (health-bounty.smx)
    
    //The purpose of this file is to define non-uniform bounty increments, rather
    //than increments of a constant value on each kill as the cvars provide
    
    //To define new bounty levels, use the following format:
    // "KILLS" "BOUNTY"
    
    //For example:
    //----------------------------------
    // "5"  "20"   At five kills, the player's bounty will be 20 HP.
    // "7"  "10"   At seven kills, the player's bounty will have 10 HP added.
    // "10" "20"   At ten kills, the player's bounty will have 20 HP added.
    // "15" "30"   At fifteen kills, the player's bounty will have 30 HP added.
    //----------------------------------
    
    //IF YOU DO NOT WANT TO USE THIS FILE AND WOULD RATHER USE THE CVARS, EITHER:
    //  RENAME IT
    //  COMMENT IT OUT
    //  OR LEAVE IT BLANK
    //---------------------------------------------------------------------------//
    
    ; "KILLS" "BOUNTY ADDITION"
    "5" "20"
    "7" "10"
    "10" "10"
    "15" "10"
    Change Log:
    1.1.1 (8/22/10)
    • Fixed bug with applying bounty increment for surviving the round.

    1.1 (8/16/10)
    • Changed HP award time to player_spawn rather than round_start (this accommodates for Deathmatch servers).
    • Added admin command to put a bounty on a player.

    1.0.1 (8/15/10)
    • Fixed bug with limit of 0 not being infinity.
    • Fixed bug with loading bounty specifications from health-bounties.ini
    • Changed health-bounties.ini specification so that each kill count results in an increment of the specified bounty.

    1.0 (8/14/10)
    • Initial Release
    Attached Files
    File Type: zip health-bounty.zip (11.6 KB, 570 views)
    File Type: sp Get Plugin or Get Source (health-bounty.sp - 789 views - 16.4 KB)

    Last edited by Steell; 03-09-2011 at 14:15. Reason: New Version: 1.1.1
    Steell is offline
    sinblaster
    Grim Reaper
    Join Date: Feb 2010
    Location: Australia
    Old 08-15-2010 , 02:41   Re: [CSS] Health Bounty v1.0 (Updated 8/14/10)
    Reply With Quote #2

    Will this work on a CSS deathmatch (bailopen's) Steell?
    __________________
    Happy Happy Joy Joy

    sinblaster is offline
    Steell
    SourceMod Donor
    Join Date: Mar 2009
    Old 08-15-2010 , 09:52   Re: [CSS] Health Bounty v1.0 (Updated 8/14/10)
    Reply With Quote #3

    Health is only awarded at the beginning of a round, and not when a player is respawned, so it shouldn't work. However, I'll look into it.
    Steell is offline
    sinblaster
    Grim Reaper
    Join Date: Feb 2010
    Location: Australia
    Old 08-15-2010 , 11:48   Re: [CSS] Health Bounty v1.0 (Updated 8/14/10)
    Reply With Quote #4

    Great thanks. It seems anything on my server that allows a player to gain some kind of reward is really appealing to them amd it brings them back again and again.. Personally I dont see what the excitement is, probably due to that fact Ive never won a game on my own server because I suck at this game lol. I'll just toddle of and have a cry now. Cheers Steell
    __________________
    Happy Happy Joy Joy

    sinblaster is offline
    Steell
    SourceMod Donor
    Join Date: Mar 2009
    Old 08-15-2010 , 13:25   Re: [CSS] Health Bounty v1.0.1 (Updated 8/15/10)
    Reply With Quote #5

    Version 1.0.1 Released.
    • Fixed bug with limit of 0 not being infinity.
    • Fixed bug with loading bounty specifications from health-bounties.ini
    • Changed health-bounties.ini specification so that each kill count results in an increment of the specified bounty.

    Upcoming features in the next version:
    • Bounty awarded on respawn for deathmatch servers.
    Steell is offline
    Steell
    SourceMod Donor
    Join Date: Mar 2009
    Old 08-16-2010 , 02:15   Re: [CSS] Health Bounty v1.1 (Updated 8/16/10)
    Reply With Quote #6

    Version 1.1 Released.
    • Changed HP award time to player_spawn rather than round_start (this accommodates for Deathmatch servers).
    • Added admin command to put a bounty on a player.
    Steell is offline
    sinblaster
    Grim Reaper
    Join Date: Feb 2010
    Location: Australia
    Old 08-16-2010 , 05:50   Re: [CSS] Health Bounty v1.1 (Updated 8/16/10)
    Reply With Quote #7

    • Changed HP award time to player_spawn rather than round_start (this accommodates for Deathmatch servers).
    • Added admin command to put a bounty on a player.

    Awesome changes thanks Steell Ill try it and get back to you.
    __________________
    Happy Happy Joy Joy

    sinblaster is offline
    sinblaster
    Grim Reaper
    Join Date: Feb 2010
    Location: Australia
    Old 08-21-2010 , 21:59   Re: [CSS] Health Bounty v1.1 (Updated 8/16/10)
    Reply With Quote #8

    So far its hard to tell. health bounties are being printed to chat, Increments of health per player killing player are rising properly for the bounty i.e 5 health added for kill. Players appear to be getting the bounties awarded. I have to test it more.

    My issue here is at the moment I am testing with bots and my ping is 400. (dont ask its always high due to rim and congestion)

    First error in log is as follows.

    Code:
    L 08/22/2010 - 10:48:56: [SM] Native "GetClientFrags" reported: Client index 0 is invalid
    I will spend some more time on it today asap.

    We have en election in Australia this weekend for Prime Minister and we look like weve ended up with a hung parliment. Its not good.
    __________________
    Happy Happy Joy Joy

    sinblaster is offline
    Steell
    SourceMod Donor
    Join Date: Mar 2009
    Old 08-22-2010 , 12:29   Re: [CSS] Health Bounty v1.1.1 (Updated 8/22/10)
    Reply With Quote #9

    Version 1.1.1 Released.
    • Fixed bug with applying bounty increment for surviving the round.
    Steell is offline
    Steell
    SourceMod Donor
    Join Date: Mar 2009
    Old 08-22-2010 , 12:29   Re: [CSS] Health Bounty v1.1 (Updated 8/16/10)
    Reply With Quote #10

    Quote:
    Originally Posted by sinblaster View Post
    First error in log is as follows.
    Code:
    L 08/22/2010 - 10:48:56: [SM] Native "GetClientFrags" reported: Client index 0 is invalid
    Most recent update should fix this error, thanks for testing.
    Steell 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 13:14.


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