Raised This Month: $168 Target: $400
 42% 

[L4D/L4D2] Rage Counter v2.1


Post New Thread Reply   
 
Thread Tools Display Modes
Author
crazydog
SourceMod Donor
Join Date: Jan 2006
Plugin ID:
1052
Plugin Version:
2.1
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    25 
    Plugin Description:
    Counts ragequits in l4d, displays on quit
    Old 07-31-2009 , 04:50   [L4D/L4D2] Rage Counter v2.1
    Reply With Quote #1

    It's recommended you delete data/maxrages.txt (or just run all the reset commands) when updating to v1.8. If you don't, sm_ragetime will produce VERY skewed results, since it will divide the time by the total # of rages, and most of those won't have had their times recorded.

    Description:

    First: This plugin is 100% FOR FUN! If you do not like the idea of every disconnect being called a "rage", do not use this plugin!

    A "rage", in this plugin, is defined as a user disconnecting from a game by their own hand. Kicks, crashes, and timeouts are not counted as rage.

    This is based on CUatTHEFINISH's idea, which he made into a plugin, then requested it to be removed (here). The basic idea for this plugin is his, but this plugin is 100% my work.

    This plugin adds 1 to the number of "rages", and prints a message like this to the chat every time someone disconnects:
    Quote:
    [Rage Counter] There have been 4 rage quits.
    It's all in fun, and is not supposed to mean anything, so don't take it too seriously.

    It also contains some nifty stat tracking for (rage) quits.

    Commands:
    ==Client Commands==
    sm_rages (or say !rages, /rages) - Prints the number of rages to your chat
    sm_maxrages (or say !maxrages, /maxrages) - Prints the highest number of rages in a game to your chat
    sm_avgrages (or say !avgrags, /avgrages) - Prints the average number of rages per versus campaign to your chat
    sm_totalrages -(or say...) - Prints the total number of rages on the server (or all forked servers).
    sm_totalgames - (or say...) - Prints the total number of games played on the server (or all forked servers)
    sm_ragetime - (or say...) - Prints the average connection time for people who rage quit.
    ==Admin Commands== (Require kick flag)
    sm_rage_reset - Resets number of rages
    sm_rage_resettotal - Resets total number of rages
    sm_rage_resetgames - Resets total number of games
    sm_rage_resetmax - Resets max rage quit count
    sm_exemptrage - Exempts the next quit from being a rage
    sm_rage_resettimes - Resets average rage time

    Cvars:
    sm_rage_version - Shows the version
    sm_rage_enable - Enable (1) or disable (0) the plugin
    sm_rage_versuscheck - If 1, plugin will disable itself if mp_gamemode is NOT versus, and enable itself if mp_gamemode IS versus
    sm_rage_autoreset:
    0 = Don't reset
    1 = Use configs/ragemaps.txt
    2 = Reset on maps with 01_ in their names (m1_ in l4d2)
    3 = Use configs/ragemaps.txt AND maps with 01_ in their names (m1_ in l4d2)


    Installation:
    ==Required Steps==
    1) Download and place ragecounter.smx into addons/sourcemod/plugins
    2) Change the map or run "sm plugins load ragecounter"
    3) Edit cfg/sourcemod/plugin.rage.cfg to your needs
    ==Optional Steps==
    3) Open addons/sourcemod/configs/ragemaps.txt (auto generated)
    4) Add names of maps you want rages to reset on, one per line.
    First map of each campaign is recommended

    Changelog:
    Code:
    Left 4 Dead 2 Changelog
    ------------
    2.1 - UNTESTED!!
     - Added support for versus/scavenge mutations (will continue to update in the future)
     - ragemaps.txt now includes passing, sacrifice, and no mercy by default
    2.0
     - Changed version numbers to match between plugins
    1.1
     - Added support for scavenge (teamversus/teamscavenge is implied)
     - Added sm_ragestats - prints all rage stats through one command
    1.0
     - Added Left4Dead 2 Support 
    
    Left 4 Dead Changelog
    ------------
    2.0
     - Changed version numbers to match between plugins
    1.9
     - Added sm_ragestats - prints all rage stats through one command
    1.8
     - Added sm_exemptrage
     - Added "Average rage time" tracker
     - Added sm_rage_resettimes
     - Added sm_ragetime
    1.7.4
     - Added FCVAR_DONTRECORD to version cvar
    1.7.3
     - plugin.rage.cfg now generated in cfg/sourcemod/
     - No matter what the status of data/maxrages.txt is (not existent, missing lines, etc), it will be updated to the correct format
    1.7.2
     - Fixed a bug that would cause invalid array index errors
     - Current rages are no longer reset when the plugin is reloaded
     - Fixed divide by 0 error for sm_avgrages
    1.7.1
     - Added sm_rage_versuscheck. If 1, plugin will disable if mp_gamemode is NOT versus
    1.7
     - Added sm_avgrages, sm_totalrages, sm_totalgames, sm_rage_resettotal, sm_rage_resetgames, sm_rage_resetmax
     - Removed sm_rage_savemax
    1.6
     - Added sm_rage_enable, sm_rage_savemax, sm_maxrages
     - Now keeps track of the highest # of rages in one game
    1.5
     - Fixed bug where rages would sometimes not be counted
    1.4.1
     - Typo! :D
    1.4 
     - sm_ragemap_autoreset updated
    1.3
     - Added:
      sm_rage_autoreset
      sm_rage_reset
     - Rages will now reset on maps specified in addons/sourcemod/configs/ragemaps.txt
    1.2
     - Fixed some users having double rage counts.
    1.1
     - Timeouts are no longer counted
     - Kicks are no longer counted
    1.0
     - Initial Release
    Attached Files
    File Type: sp Get Plugin or Get Source (ragecounter.sp - 1552 views - 14.7 KB)
    File Type: sp Get Plugin or Get Source (l4d2_ragecounter.sp - 1433 views - 14.4 KB)

    Last edited by crazydog; 12-08-2010 at 15:48.
    crazydog is offline
    Remmington
    Junior Member
    Join Date: Jul 2009
    Old 07-31-2009 , 08:24   Re: [L4D] Rage Counter
    Reply With Quote #2

    Looks like a cool plugin, thanks.

    I'm currently working on a plugin, it is designed to shock the hell out of their daddy parts when they rage quit.
    Remmington is offline
    Antithasys
    Moderator
    Join Date: Apr 2008
    Old 07-31-2009 , 21:10   Re: [L4D] Rage Counter
    Reply With Quote #3

    It would be more accurate to say that it counts quits... since you don't really care if they are quitting because the score is to high, just got steamrolled, etc.
    __________________
    [my plugins]

    When you think about asking a question... consider what have you tried?
    Antithasys is offline
    duke24m
    Junior Member
    Join Date: Apr 2009
    Old 08-01-2009 , 01:11   Re: [L4D] Rage Counter
    Reply With Quote #4

    Does it keep the number, or does it reset every game?

    *edit

    nvm

    Last edited by duke24m; 08-01-2009 at 02:17.
    duke24m is offline
    crazydog
    SourceMod Donor
    Join Date: Jan 2006
    Old 08-01-2009 , 02:53   Re: [L4D] Rage Counter
    Reply With Quote #5

    Quote:
    Originally Posted by duke24m View Post
    Does it keep the number, or does it reset every game?

    *edit

    nvm
    What were your findings? I thought it would reset after every game and I think it does, but I'm actually not sure and never tested it..does it?

    @Antithasys, yeah but that's no fun.
    crazydog is offline
    duke24m
    Junior Member
    Join Date: Apr 2009
    Old 08-01-2009 , 03:06   Re: [L4D] Rage Counter
    Reply With Quote #6

    It doesn't reset, but it counts them leaving twice.
    duke24m is offline
    crazydog
    SourceMod Donor
    Join Date: Jan 2006
    Old 08-01-2009 , 07:09   Re: [L4D] Rage Counter
    Reply With Quote #7

    Quote:
    Originally Posted by duke24m View Post
    It doesn't reset, but it counts them leaving twice.
    It counts who leaving twice when?

    Well, it should reset, so I'll fix that.
    crazydog is offline
    duke24m
    Junior Member
    Join Date: Apr 2009
    Old 08-01-2009 , 16:23   Re: [L4D] Rage Counter
    Reply With Quote #8

    It does it like...

    [Rage Counter] There have been 2 rage quits.
    <Player> has left the server.
    [Rage Counter] There have been 3 rage quits.

    I actually like it not resetting though, but that's just me.
    duke24m is offline
    me48072
    New Member
    Join Date: Jul 2009
    Old 08-01-2009 , 16:25   Re: [L4D] Rage Counter
    Reply With Quote #9

    it doesn't count them twice well not that i noticed if they are kicked it counts it (by admin or vote) and doesn't reset at end of game
    me48072 is offline
    duke24m
    Junior Member
    Join Date: Apr 2009
    Old 08-01-2009 , 16:51   Re: [L4D] Rage Counter
    Reply With Quote #10

    Quote:
    Originally Posted by me48072 View Post
    it doesn't count them twice well not that i noticed if they are kicked it counts it (by admin or vote) and doesn't reset at end of game
    I wonder if it's because I have the Connect Announce plugin on my server...
    duke24m 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 09:39.


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