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

[TF2] Rage Quit Announce


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Crispy
Junior Member
Join Date: Dec 2008
Plugin ID:
1130
Plugin Version:
1.0.0
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    2 
    Plugin Description:
    Announces rage quits ala Unreal Tournament
    Old 09-02-2009 , 22:44   [TF2] Rage Quit Announce
    Reply With Quote #1

    This plugin is the result of a conversation between a couple of clanmates and myself one night after a mass exodus of players from our server. It will print a message to the screen, and play an announcement when it detects one or more rage quits.

    Important:
    If you are running a pure server, then you will need to add the following line to your pure_server_whitelist.txt file. Otherwise, the announcement sounds will not play.
    Code:
     sound\ragequit\...        allow_from_disk+check_crc
    Credits:
    Plugin coding and announcements by Crispy
    Special thanks to Code Echo and Sugar for the great ideas.

    Notes:
    The announcements don't sound exactly like those in Unreal Tournament.

    Changelog:
    • 1.0.0
    • Player's team, frags, and deaths are now queried on player death instead of on disconnect. This should get rid of the errors that have been reported.
    • The check for a player disconnecting with less than 30 seconds left in the round is disabled during the setup phase

    Clan XOR
    http://xor.clanservers.com/
    Attached Files
    File Type: sp Get Plugin or Get Source (rageannounce.sp - 3157 views - 8.2 KB)
    File Type: smx rageannounce.smx (6.8 KB, 1204 views)
    File Type: zip rageannounce.zip (1.98 MB, 2608 views)

    Last edited by Crispy; 12-26-2009 at 04:43.
    Crispy is offline
    MjrNuT
    SourceMod Donor
    Join Date: Feb 2008
    Location: Under the Beaming CA Sun
    Old 09-03-2009 , 13:41   Re: [TF2] Rage Quit Announce
    Reply With Quote #2

    how is this determining execution? set number of disconnects based on time?

    only the players left ingame get to hear it though, right? The RQers go away w/o any knowledge.

    this is funny
    __________________
    Flames and Ash Gaming
    Addon: SM v1.4.0-dev MM 1.8.5-dev
    Plugins: Advertisements, Webshortcuts, spray tracer, SBans, RTD, gScramble Balance, misc
    MjrNuT is offline
    Crispy
    Junior Member
    Join Date: Dec 2008
    Old 09-03-2009 , 23:07   Re: [TF2] Rage Quit Announce
    Reply With Quote #3

    The criteria I use to determine if a player disconnect is a rage quit is based on a number of assumptions which aren't entirely accurate, but it's all in good fun. The checks that are made to determine a rage quit break down like this:
    • End of Round (and 60 sec thereafter)
      1. Player was on losing team
    • Round will end in 30 sec or less
      1. Any player disconnects
    • Any other time during the round
      1. Player's K/D ratio < 0.1
      2. Player was dominated by more than 2 players
      3. Player was on the losing team for the previous two or more rounds
      4. Opposing team total frags is three times more than that of player's team
    Spectators and disconnect reasons other than "Disconnect by user" are not counted.

    Quote:
    Originally Posted by MjrNuT View Post
    only the players left ingame get to hear it though, right? The RQers go away w/o any knowledge.
    That's correct. As far as I know there is no way to interact with a client after receiving the "player_disconnect" event.
    Crispy is offline
    MjrNuT
    SourceMod Donor
    Join Date: Feb 2008
    Location: Under the Beaming CA Sun
    Old 09-04-2009 , 02:22   Re: [TF2] Rage Quit Announce
    Reply With Quote #4

    Great breakdown. Thanks for that. So I'll give it a go.

    and... *pound sand* to those RQers that don't get interacted with... lol
    __________________
    Flames and Ash Gaming
    Addon: SM v1.4.0-dev MM 1.8.5-dev
    Plugins: Advertisements, Webshortcuts, spray tracer, SBans, RTD, gScramble Balance, misc
    MjrNuT is offline
    retsam
    Veteran Member
    Join Date: Aug 2008
    Location: so-cal
    Old 09-03-2009 , 14:02   Re: [TF2] Rage Quit Announce
    Reply With Quote #5

    I was wondering how it would determine who is "rage quiting" as well...
    retsam is offline
    BrutalGoerge
    AlliedModders Donor
    Join Date: Jul 2007
    Old 09-03-2009 , 14:07   Re: [TF2] Rage Quit Announce
    Reply With Quote #6

    looks like it looks at how many people are dominating the client, and if he has a crappy k/d ratio
    __________________
    My Pluggies If you like, consider to me.
    BrutalGoerge is offline
    MjrNuT
    SourceMod Donor
    Join Date: Feb 2008
    Location: Under the Beaming CA Sun
    Old 09-10-2009 , 20:26   Re: [TF2] Rage Quit Announce
    Reply With Quote #7

    Seems to work. We've only heard the Rage Quit soundbyte. None of the others though. Are the other sound files actually used?

    It is a little chuckle to have happen.
    __________________
    Flames and Ash Gaming
    Addon: SM v1.4.0-dev MM 1.8.5-dev
    Plugins: Advertisements, Webshortcuts, spray tracer, SBans, RTD, gScramble Balance, misc
    MjrNuT is offline
    Crispy
    Junior Member
    Join Date: Dec 2008
    Old 09-10-2009 , 22:21   Re: [TF2] Rage Quit Announce
    Reply With Quote #8

    Yes, all the sound files are used, and which one is determined by the number of players who have rage quit in the last 30 seconds. I'm still debating over whether to leave it as is, or bump it up to 45 seconds.
    Crispy is offline
    MjrNuT
    SourceMod Donor
    Join Date: Feb 2008
    Location: Under the Beaming CA Sun
    Old 09-11-2009 , 17:54   Re: [TF2] Rage Quit Announce
    Reply With Quote #9

    Ahh, gotya. Hey, I have some error logs.

    Quote:
    09/09/2009 - 00:00:14: [SM] Native "GetClientTeam" reported: Client index 0 is invalid
    L 09/09/2009 - 00:00:14: [SM] Displaying call stack trace for plugin "rageannounce.smx":
    L 09/09/2009 - 00:00:14: [SM] [0] Line 150, rageannounce.sp::Event_PlayerDisconnect()
    __________________
    Flames and Ash Gaming
    Addon: SM v1.4.0-dev MM 1.8.5-dev
    Plugins: Advertisements, Webshortcuts, spray tracer, SBans, RTD, gScramble Balance, misc
    MjrNuT is offline
    Crispy
    Junior Member
    Join Date: Dec 2008
    Old 09-12-2009 , 19:28   Re: [TF2] Rage Quit Announce
    Reply With Quote #10

    Quote:
    Originally Posted by MjrNuT View Post
    Ahh, gotya. Hey, I have some error logs.
    Yikes! I never expected client 0 to disconnect, but then again nobody expects the Spanish Inquisition. Ahem, anyway I fixed the issue, and bumped the plugin to version 0.1.1. Thanks for the bug report.
    Crispy 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 05:23.


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