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

[L4D/L4D2] Rage Counter v2.1


Post New Thread Reply   
 
Thread Tools Display Modes
Mexfrag
Junior Member
Join Date: Aug 2009
Old 08-01-2009 , 16:54   Re: [L4D] Rage Counter
Reply With Quote #11

Quote:
Originally Posted by duke24m View Post
I wonder if it's because I have the Connect Announce plugin on my server...
Same problem here, counts them twice every time someone disconnects
Mexfrag is offline
n0limit
Senior Member
Join Date: May 2009
Old 08-01-2009 , 18:06   Re: [L4D] Rage Counter
Reply With Quote #12

I like this idea, but maybe you should wait 2 minutes to see if the person reconnects, then call it a rage quit.
You could optionally record player names too.
n0limit is offline
CUatTHEFINISH
Member
Join Date: Apr 2009
Old 08-01-2009 , 22:33   Re: [L4D] Rage Counter
Reply With Quote #13

Interesting to see this adaption. If you'd like I can post my sourcecode and maybe we can collaborate on this. Throw me a PM and we can talk sometime.

It's got some coding issues, I know it's not entirely sound (I don't think it's closing MySQL connections properly), but it does make a good list of readouts.

This is what mine does:
http://www.downwithea.com/dev/l4d/motd.php

Connects to a MySQL database and posts the steam id/friend id. Uses a CVAR to tell the database what server the rage quit came from and what not. This also allows a running total count and can query the MySQL database for people to be able to type... oh say !ragecount and have it spit back the amount of people who raged. I never got around to adding the voting mechanic to it like I wanted to. Ended up pulling a lot of hours at work during the summer.

My coding checks to see if the player timed out or was kicked. So it doesn't log people who lag out and what have you. The only reason why we were logged recently was because I didn't have the proper commands in to keep it form logging people on disconnect after the end of Death Aboard.
__________________

Last edited by CUatTHEFINISH; 08-01-2009 at 22:56.
CUatTHEFINISH is offline
crazydog
AlliedModders Donor
Join Date: Jan 2006
Old 08-01-2009 , 22:58   Re: [L4D] Rage Counter
Reply With Quote #14

I'm using the version of the plugin in this thread on my servers, and it's only counted once for me. Not sure why you get duplicates. I'm also using connect announce.

I'm running it on the player_disconnect event which is only fired when a player disconnects, or times out..

As for it resetting, I can't find a way to pragmatically check to see if the game is over, but I'm still looking.


@n0limit, The problem with that is there would be a 2 minute delay between a disconnect and the rages going up, which would make it seem random.

@CUatTHEFINISH, the reason I wouldn't want to do that is because not every quit is a rage. I don't want to log them as ragers or anything, I just want it to make people who get raged against not as frustrated.

Last edited by crazydog; 08-01-2009 at 23:22.
crazydog is offline
CUatTHEFINISH
Member
Join Date: Apr 2009
Old 08-01-2009 , 23:01   Re: [L4D] Rage Counter
Reply With Quote #15

Quote:
As for it resetting, I can't find a way to pragmatically check to see if the game is over, so I'm adding a step to the instructions to add "sm plugins reload ragecounter" to sourecmod.cfg
That's the same problem I hit with my coding. There is no flag that signals the end of a versus game (disconnect reason or otherwise). And when everybody gets thrown back to lobby they are all logged for disconnecting. I really wish they had included a flag for that :/

My method around it was disabling the plugin for finale maps.
__________________
CUatTHEFINISH is offline
crazydog
AlliedModders Donor
Join Date: Jan 2006
Old 08-01-2009 , 23:34   Re: [L4D] Rage Counter
Reply With Quote #16

I've updated to v1.1
It ignores timeouts and kicks now.
I still am not seeing double rages.

On my servers, the rages are reset when the game ends.
I'm not sure how this happens.

I am using the Left4Dead game Mode Config Loader. I usually have it set to refresh the plugins when a campaign starts. The server resets to coop when a game is done, and it usually refeshes the plugins, and unloads ragecounter. When a versus game starts, it refresh the plugins, so rage counter is loaded.

I just tested it without that plugin doing anything, and it still reset when I started a new game.
crazydog is offline
duke24m
Junior Member
Join Date: Apr 2009
Old 08-02-2009 , 06:05   Re: [L4D] Rage Counter
Reply With Quote #17

Okay, with further testing, it reset when I restarted my server.

v1.1 still counts players as leaving twice (not part of the change log), and also counted when someone got vote kicked. (Not sure if you meant kicks by means of an admin using the !kick command though)
duke24m is offline
m4ster
Senior Member
Join Date: Mar 2007
Old 08-02-2009 , 08:00   Re: [L4D] Rage Counter
Reply With Quote #18

If i leave server becouse i will be AFK, and i dont wanna ruin fun on server.. i am counted as a Raged ?
__________________
m4ster is offline
Mexfrag
Junior Member
Join Date: Aug 2009
Old 08-02-2009 , 13:55   Re: [L4D] Rage Counter
Reply With Quote #19

Same here, still counting twice when someone leaves. This is my plugin list just in case. Using MM 1.7, SM 1.2.1 on a dedicated Linux server.

12:52:07 [SM] Listing 17 plugins:
01 "Basic Commands" (1.2.1) by AlliedModders LLC
02 "Basic Info Triggers" (1.2.1) by AlliedModders LLC
03 "Basic Comm Control" (1.2.1) by AlliedModders LLC
04 "L4D Vote Manager 2" (1.5.4) by Madcap
05 "Connect Announce" (0. by Arg!
06 "Client Preferences" (1.2.1) by AlliedModders LLC
07 "Rage Counter" (1.1) by Crazydog
08 "Admin Menu" (1.2.1) by AlliedModders LLC
09 "Anti-Flood" (1.2.1) by AlliedModders LLC
10 "Player Commands" (1.2.1) by AlliedModders LLC
11 "Admin Help" (1.2.1) by AlliedModders LLC
12 "Basic Chat" (1.2.1) by AlliedModders LLC
13 "Advertisements" (0.5.5) by Tsunami
14 "Sound Commands" (1.2.1) by AlliedModders LLC
15 "Basic Votes" (1.2.1) by AlliedModders LLC
16 "Basic Ban Commands" (1.2.1) by AlliedModders LLC
17 "Admin File Reader" (1.2.1) by AlliedModders LLC
Mexfrag is offline
crazydog
AlliedModders Donor
Join Date: Jan 2006
Old 08-02-2009 , 21:33   Re: [L4D] Rage Counter
Reply With Quote #20

@duke24m, I haven't tested votekicking. I did test sm_kick. I know how I can ignore votekicking, so I'll do that.

@m4ster, Yes, you would make the "rage" count go up. Your user information, however, is not stored anywhere. All this does is counts the number of disconnects, and calls them rages. Again, it's all in fun.

@Mexfrag...I noticed you said Metamod 1.7....do you mean 1.7.0 or 1.7.1? If you don't have 1.7.1, try that and let me know what happens.

@Everyone:
I do not see the double counts on my servers.

The only way this could be happening is if player_disconnect is being fired twice.

This COULD happen if they are playing as infected, as the bot would disconnect too, BUT, I'm ignoring bots.

I will test this on a clean sourcemod installation with no other plugins and see what happens.

Edit:
Well, I tested it on my servers, with NO plugins running but this one, and I only get one rage. Same thing when I have all these running too:
Code:
           01 "Basic Comm Control" (1.2.2-dev) by AlliedModders LLC
           02 "Sound Commands" (1.2.2-dev) by AlliedModders LLC
           03 "Client Preferences" (1.2.2-dev) by AlliedModders LLC
           04 "Basic Info Triggers" (1.2.2-dev) by AlliedModders LLC
           05 "Client Execute" (1.0.0.1) by Twilight Suzuka
           06 "SM /me Support" (1.0.1) by Mad_Dugan
           07 "SourceBans" (1.4.3) by InterWave Studios Development Team
           08 "Anti-Flood" (1.2.2-dev) by AlliedModders LLC
           09 "All4Dead" (1.4.5) by James Richardson (grandwazir)
           10 "Admin Menu" (1.2.2-dev) by AlliedModders LLC
           11 "Basic Chat" (1.2.2-dev) by AlliedModders LLC
           12 "L4D Stats" (1.1.1) by msleeper
           13 "Admin File Reader" (1.2.2-dev) by AlliedModders LLC
           14 "[L4D] VS Infected Bots" (1.6.1) by djromero (SkyDavid)
           15 "Votekick Autoban" (1.3) by n0limit
           16 "Left 4 Dead Achievement Notifier" (1.0) by Fexii
           17 "Connect Announce" (0.8) by Arg!
           18 "PounceRecord" (1.1) by n0limit
           19 "Fun Commands" (1.2.2-dev) by AlliedModders LLC
           20 "Player Commands" (1.2.2-dev) by AlliedModders LLC
           21 "L4D SM Respawn" (1.0) by AtomicStryker
           22 "Game Mode Config Loader" (1.3) by Thraka
           23 "L4D Vote Manager 2" (1.5.2) by Madcap
           24 "[L4D] Spawn Minigun" (1.0) by 4nt1h4cker
           25 "Server status" (1.1.5) by GachL
           26 "Fun Votes" (1.2.2-dev) by AlliedModders LLC
           27 "Reserved Slots" (1.2.2-dev) by AlliedModders LLC
           28 "Basic Votes" (1.2.2-dev) by AlliedModders LLC
           29 "Admin Help" (1.2.2-dev) by AlliedModders LLC
           30 "AdminSentinel" (1.2.000) by <eVa>StrontiumDog 
           31 "Triggers" (2.3.0) by theY4Kman
           32 "Basic Commands" (1.2.2-dev) by AlliedModders LLC
           33 "Teleport by Name" (1.2) by Alm
           34 "[L4D] Hidden Ability Hints" (1.0) by Thraka
           35 "Advertisements" (0.5.5) by Tsunami
           36 "Nextmap" (1.2.2-dev) by AlliedModders LLC
           37 "[L4D] VS Auto-spectate on AFK" (1.3.1) by djromero (SkyDavid, David Romero)
           38 "Rage Counter" (1.1) by Crazydog
           39 "Pounce Announce" (1.1) by n0limit
           40 "L4D Score/Team Manager" (1.1.1) by Downtown1
Code:
SourceMod Version Information:
             SourceMod Version: 1.2.1
             SourcePawn Engine: SourcePawn 1.1, jit-x86 (build 1.2.1)
             SourcePawn API: v1 = 4, v2 = 3
             Compiled on: May 30 2009 18:20:47
             Build ID: 2708:69195a250d70
             http://www.sourcemod.net/

Metamod:Source version 1.7.1
         Build ID: 644:f526469efdeb
         Loaded As: Valve Server Plugin
         Compiled on: Feb 25 2009
         Plugin interface version: 14:14
         SourceHook version: 5:5
         http://www.metamodsource.net/
Anyone getting double counts..are you using any other metamod plugins? Or anything unique?

Last edited by crazydog; 08-02-2009 at 21:57.
crazydog 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 15:47.


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