Raised This Month: $51 Target: $400
 12% 

[TF2] Bounty Hunt 0.1.3


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Afronanny
Veteran Member
Join Date: Aug 2009
Plugin ID:
1702
Plugin Version:
0.1.3
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Kill a specified player to earn your team points!
    Old 05-31-2010 , 13:42   [TF2] Bounty Hunt 0.1.3
    Reply With Quote #1

    TF2 Bounty Hunt
    This plugin requires SM 1.3.3 or higher.

    Bounty Hunt is a mod inspired by DoctorWho.

    His request sums it up quite nicely:
    Quote:
    Originally Posted by DoctorWho View Post
    - Randomly choose a player from each team
    - Randomly choose a death type, and assign to both players.
    - Set a beacon on the players chosen for the bounty hunt as a sort of mark so opposition will know who to hunt. just something to "mark" the bountied players so the other team knows who to hunt.)
    - When one of the players is killed by the correctly chosen death, the other team gets buffed with crits for 5-10 seconds.
    - After the buff expires, have the mod "reroll" bounties and start again.
    The mod contains all of the above and more.

    Everytime the chosen player from each team is killed by the deathtype randomly selected by the plugin (ubersaw, sniper's tauntkill, telefrag, clumsy painful death, minigun, etc.), the winning team gets a crit-buff for 10 seconds ( length is configurable by cvar), and their teamscore goes up by 1.

    The chosen players will have small red beacons set on them.

    To plugin approvers: Yes, I know, the DeathType enum code is gross and disgusting. It works fine for now, but I'm working on it >.<

    Installation
    Place bounty.smx into the plugins/ directory.
    Place bounty.phrases.txt into the translations/ directory.

    Commands/Cvars
    Commands -
    sm_reroll - Reroll Bounties - Requires generic admin flag (flag 'b')
    sm_showbounty - Display the HUD text showing the name of people being hunted for each team as well as the death type.

    Cvars -
    sm_tf2bounty_version (Current: 0.1.1) - Version of TF2 Bounty Hunt mod on the server
    sm_bounty_enabled (Default: 1) - Enable/Disable all features of TF2 Bounty Hunt
    sm_bounty_critduration (Default: 10.0) - Duration of crits/Time before new bounty is chosen

    sm_bounty_ads (Default: 1) - Display ads + credits (HUD text)
    sm_bounty_ads_interval (Default: 300.0) - Interval between ads.

    Credits:
    Me - Writing the plugin
    AlliedModders - Beacon code from base Funcommands plugin
    DoctorWho - Came up with the idea
    psychonic - So kindly gave me the MyServerAddTag and MyServerRemoveTag stocks, reminded me to use a switch instead of 6 million ifs >.<

    Voting:
    Currently there is no !votereroll or anything of the sort implemented, but you can use chundo's Custom Votes to allow players to vote a reroll of the bounty if they get a difficult deathtype such as telefrag or tauntkill, or someone is turtling.

    Example entry in playervotes.cfg from Custom Votes:
    Code:
    "votereroll"
    {
        "title"        "Reroll bounty?"
        "type"        "confirm"
        "command"        "sm_reroll"
        "trigger"
        {
            "command"    "votereroll"
            "notice"    "%u wants to reroll bounty"
            "delay"    "300"
            "percent"    "75"
            "count"    "5"
        }
    }


    Maps:
    Someone suggested to me that this mod should have custom maps. I'm not making any maps for this mod. If anyone else wants to make (a) map(s) for this mod, go right ahead, I'll post them here, but I intended this mod just for regular maps.

    Todo:

    Please post any suggestions/problems/errors you encounter so I can implement/fix them. The current list of features I will add is below.

    Code:
      - Prevent bounty turtling
      - Add cvar for display of bounty in chat/HUD/both
      - Punish team for turtling
              -Cvar for uber/crits/both for turtling
              -Cvar for length of punishment
      - Make beacon more noticable/add sound
      - Bounty kills other bounty = Something epic?
      - Clean up the disgusting DeathType code
      - Add more to translations file/Don't hardcode phrases
    Changelog:

    Code:
    0.1.3 - Client crash fixed
    0.1.2 - Possible client crash fix
    0.1.1 - Fixed environmental death check, added credits, fixed team score not being changed properly
    0.1 - Initial Release
    Please post any feedback that you may have! It will help me make changes necessary for game balance. My testing is only proof-of-concept. It cannot be properly balanced without due gameplay.
    Attached Files
    File Type: txt bounty.phrases.txt (2.3 KB, 875 views)
    File Type: sp Get Plugin or Get Source (bounty.sp - 1803 views - 16.3 KB)

    Last edited by Afronanny; 10-18-2010 at 18:54.
    Afronanny is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 05-31-2010 , 17:03   Re: [TF2] Bounty Hunt
    Reply With Quote #2

    Seems like a fun mod, thanks. :]

    Testing now...
    Drixevel is offline
    Afronanny
    Veteran Member
    Join Date: Aug 2009
    Old 05-31-2010 , 18:12   Re: [TF2] Bounty Hunt
    Reply With Quote #3

    Version 0.1.1
    • Added a couple macros to make my life easier
    • Now adds "bountyhunt" to sv_tags
    • Fixed team score not being properly changed when the bountyhunt is over.
    • Added advertisements (since it's a gameplay mod, people should know about it)
    • Added 2 cvars:
    • sm_bounty_ads (Def: 1) - Show advertisements
    • sm_bounty_ads_time (Def: 300.0) - Time in between Advertisements
    • Added console cmd "sm_showbounty" to show the HUD message if it disappeared because of death, classchange.
    • Cvar sm_bounty_enabled actually enables/disables all features of the plugin now.
    Afronanny is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 05-31-2010 , 21:37   Re: [TF2] Bounty Hunt 0.1.1
    Reply With Quote #4

    Updated :]
    Drixevel is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 05-31-2010 , 23:01   Re: [TF2] Bounty Hunt 0.1.1
    Reply With Quote #5

    O_O Well i loaded the plugin via plugin manager and it seemed to work at first but then when i did the re-roll vote, everyones clients crashed.
    Drixevel is offline
    Afronanny
    Veteran Member
    Join Date: Aug 2009
    Old 05-31-2010 , 23:38   Re: [TF2] Bounty Hunt 0.1.1
    Reply With Quote #6

    Quote:
    Originally Posted by r3dw3r3w0lf View Post
    O_O Well i loaded the plugin via plugin manager and it seemed to work at first but then when i did the re-roll vote, everyones clients crashed.
    Did it work without the vote? Without the vote, I'm experiencing no problems. I'll try it with Custom Votes later.

    When you say plugin manager, do you mean you did this: "sm plugins load bounty"?
    Afronanny is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 06-01-2010 , 01:00   Re: [TF2] Bounty Hunt 0.1.1
    Reply With Quote #7

    ya basically, the plugin manager does that. It's basically a plugin that loads, reloads, and unloads plugins but basically uses the commands(i think) but it should still work that way.

    I Did a map change on my server with it activated and it didn't do anything but say you made the plugin in the center of it but once i activated the plugin and we hit yes, we see our names at the bottom and then we crash.
    Drixevel is offline
    Afronanny
    Veteran Member
    Join Date: Aug 2009
    Old 06-01-2010 , 06:43   Re: [TF2] Bounty Hunt 0.1.1
    Reply With Quote #8

    Quote:
    Originally Posted by r3dw3r3w0lf View Post
    ya basically, the plugin manager does that. It's basically a plugin that loads, reloads, and unloads plugins but basically uses the commands(i think) but it should still work that way.

    I Did a map change on my server with it activated and it didn't do anything but say you made the plugin in the center of it but once i activated the plugin and we hit yes, we see our names at the bottom and then we crash.

    Try without custom votes. Just do sm_reroll and see if the same thing happens.
    Afronanny is offline
    DoctorWho
    Junior Member
    Join Date: Jan 2010
    Old 06-01-2010 , 08:44   Re: [TF2] Bounty Hunt 0.1.1
    Reply With Quote #9

    Afro, this is fantastic! Thanks very much for the time you've put into this.

    I'm going to get this up and running as soon as possible on one of our servers to assist with testing/debugging.

    Again, THANKS it looks awesome!
    DoctorWho is offline
    Afronanny
    Veteran Member
    Join Date: Aug 2009
    Old 06-01-2010 , 15:21   Re: [TF2] Bounty Hunt 0.1.1
    Reply With Quote #10

    Quote:
    Originally Posted by r3dw3r3w0lf View Post
    ya basically, the plugin manager does that. It's basically a plugin that loads, reloads, and unloads plugins but basically uses the commands(i think) but it should still work that way.

    I Did a map change on my server with it activated and it didn't do anything but say you made the plugin in the center of it but once i activated the plugin and we hit yes, we see our names at the bottom and then we crash.
    I tried it with custom votes, and while it shouldn't make a difference, I experienced no problems.

    Quote:
    Originally Posted by DoctorWho View Post
    Afro, this is fantastic! Thanks very much for the time you've put into this.

    I'm going to get this up and running as soon as possible on one of our servers to assist with testing/debugging.

    Again, THANKS it looks awesome!
    It only took me 20 or so hours to code then test + tweak.

    Last edited by Afronanny; 06-01-2010 at 15:57.
    Afronanny is offline
    Reply



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


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