AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   ELO Ranking (https://forums.alliedmods.net/showthread.php?t=82100)

MikeJS 12-17-2008 06:44

ELO Ranking
 
2 Attachment(s)
I was sick of other rating plugins giving you hundreds of points for useless things such as building teleporter entrances and forcing tons of spam upon you, so I made my own that relies more on skill (except demomen still get points :P) than time played and saves whether you want to have your chat spammed. There is a TF2 specific version which gives medics 1/3 of the points the person they're healing gets.
NON TF2 VERSION IS UNTESTED

Thanks to R_Hehl (r5053) for N1G-TF2-RANK, which was useful for seeing how things are done and for the arena hook.

Cvars:
Code:

// ELO Ranking K-value.
sm_elo_k "16"

Players can use the following commands in chat:
  • rank - Displays their rating, rank and KPD
  • session - Displays session stats
  • top10 - Displays top 10 players
  • elo_notify - Toggle chat notifications/spam (defaults to off)

Installation:
Put the .smx with all your plugins.
(Optional) Create a database called "elo" in your configs/databases.cfg

Changelog:
27/12/08 1.2 - Fixed quote bug
23/12/08 1.1 - Added arena hook from r5053
17/12/08 1.0 - Initial Release

http://i226.photobucket.com/albums/d.../elokilled.jpg
http://i226.photobucket.com/albums/d...ge/elorank.jpg
http://i226.photobucket.com/albums/d...elosession.jpg

Enabling notifications by default:
Replace line 90 (95 in non TF2 version) with
Code:

Format(query, sizeof(query), "INSERT INTO elostats VALUES('%s', '%N', 1600, 0, 0, 1)", clientid, client);
and line 93 (98 in non TF2 version) with
Code:

Format(query, sizeof(query), "INSERT INTO elostats (steamid, name, rating, kills, deaths, notify) VALUES ('%s', '%N', 1600, 0, 0, 1)", clientid, client);

Sammy-ROCK! 12-17-2008 07:58

Re: ELO Ranking
 
In the mid Picture I see "KPD: 2.000000". I don't think you wanted that many 0's. So I give you the tip. Use %.xf and x are the number of extra chars after the point.
Example:
PHP Code:

Format(MyStringsizeof(MyString), "KPD: %f"2.0); // KPD: 2.000000
Format(MyStringsizeof(MyString), "KPD: %.2f"2.0); // KPD: 2.00 

Also I don't think you should remove enginner points. But give him points when peoples use his teleporter instead of when he builds.

MikeJS 12-17-2008 08:23

Re: ELO Ranking
 
Thanks for the float tip, however the only things this plugin will give you points for are kills and medic assists. It's supposed to rank you based on your skill, not how many times you stand on a capture point/set someone on fire etc.

{7~11} TROLL 12-17-2008 19:04

Re: ELO Ranking
 
are bots supported on the rank? cause i hate when they are lol

Sammy-ROCK! 12-17-2008 19:16

Re: ELO Ranking
 
It's not. Not even bot kills are counted as I can see.

MikeJS 12-18-2008 07:55

Re: ELO Ranking
 
Nope. I tried to figure out how to give the trains on Well points, but I gave up.

DDR Khat 12-18-2008 08:03

Re: ELO Ranking
 
Quote:

Originally Posted by MikeJS (Post 728684)
Thanks for the float tip, however the only things this plugin will give you points for are kills and medic assists. It's supposed to rank you based on your skill, not how many times you stand on a capture point/set someone on fire etc.

No offense but I don't like this. Obviously I'm not going to use it but heres my opinion as to why;

Khat rushes in as a scout, distracts two soldiers and they begin to hunt him down, during this time Sammy comes in as a pyro and kills them both. Woot, the plan worked! But only Sammy gets the points for this on your stat-board.

Sammy runs in and starts gunning down MikeJS whom is a heavy, gets him to low health, then Khat gets a headshot on MikeJS, all that effort Sammy put into killing MikeJS goes to waste.

Not to mention this type of statistic gathering completely kills the idea of TEAMPLAY which is what TF2 is supposed to be orientated towards.

p.s I'm not ranting, good work with your plugin, I'm just letting you know why people might choose the other ones (Such as *a certain other plugin*, when it's completely released, where you get to truly see ALL of your stats on the server)

Sammy-ROCK! 12-18-2008 08:37

Re: ELO Ranking
 
While I agree with your args and the way I killed everyone in that game. His point on the plugin was exactly evade some of those things. But I think he should give points to the assister.

MikeJS 12-18-2008 09:49

Re: ELO Ranking
 
If a player gets a load of points by "luck", they'll quickly have their rating brought back down.
You missed out on a kill because someone stole it off you? Surely you're capable of going and finding someone else to kill and seeing as your rating is lower than it "should" be, you'll get more points for it.

I do feel there should be more added to the plugin like multipliers for certain weapons, but I designed this to be something that rates you on your individual skill, not how good/bad your team is.

DDR Khat 12-18-2008 10:14

Re: ELO Ranking
 
Quote:

Originally Posted by Sammy-ROCK! (Post 729265)
While I agree with your args and the way I killed everyone in that game. His point on the plugin was exactly evade some of those things. But I think he should give points to the assister.

I assume you meant that you liked that you killed everyone in the first exampme? :grr:

But yes, at least points to the assister then this might be a bit fairer, I would still recommend taking a few more things into account or perhaps give decimal points per point of damage you do to someone. so rather than tracking kills

Sammy gets 1.02 points for dealing 102 points of damage to MikeJS
DDRKhat gets .18 points for dealing 18 points of damage to MikeJS
MikeJS (looses?) .5 points for killing himself with the world (landing from a high height)


All times are GMT -4. The time now is 06:39.

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