Page 1 of 1

Logging for HLStatsX...

Posted: Tue May 02, 2006 4:34 pm
by lex_talionis
c0ld,

Per this post: http://www.sourcemod.net/forums/viewtop ... 3947#33947

I didn't want to keep posting to that thread for obvious reasons.

Right now, we have HLStatsX configured such that we call CT's team "Humans" and T's "Zombies" so we are able to log in HLStatsX DB action "win" for "Humans" and "Zombies" such as here: http://lex.urldownload.com/stats/web/hl ... &game=css4

We also have weapon "zombie_claws_of_death" defined so Zombie gets 0.80 point modifier for killing with this weapon and we have a "Weapon" award for the player that kills most with this weapon...you can see award at bottom of page here: http://lex.urldownload.com/stats/web/hl ... ?game=css4 The award is called "Zombification Whore"

So now, all we really need is to award the top human for killing the most zombies. Since we have zombie_teams enabled this should be easy. Basically here, we just need to award the player with the most Terrorist kills, right? What's the standard log called for killing a Terrorists? Killed_T ?? If you can tell me this then we are good, else, perhaps you can implement a log called "Killed_Zombie" either way would work.

What do you think?

Thanks,
Lex

Posted: Fri May 05, 2006 1:33 pm
by c0ldfyr3
Lex, can you just add more points for every other weapon kill? Zombies couldnt possibly get a kill with another weapon =P

Posted: Fri May 05, 2006 5:10 pm
by lex_talionis
c0ld,

Everything is fine with Zombiemod and HLStatsX for points etc. Right now every weapon, including zombie_claws_of_death have a point modifier of 1.00 except for pistols...hell if a human kills a zombie with a pistol he deserves a point modifier of 2.00...you can see what I'm talking about here: http://lex.urldownload.com/stats/web/hl ... &game=css4

Now, one thing we are missing is an award for the human with the most zombie kills each day...currently we can only recognize the Top Zombification Whore each day based on the number of kills with zombie_claws_of_death, but because every human uses different weapons, we can single him out unless we can assign a certain log to when a human kills a zombie. Off the top of my head the console log when a human kills a zombie is somthing like: player (xyz) killed player (xyz) with "ak47"...so something like player (xyz) killed player (xyz) with "ak47" "zombie_killed" work work...so then we record players number of occurances of "zombie_killed" and then it will work.

Lex

Posted: Fri May 05, 2006 5:44 pm
by Undisclosed
Zombies get .30 points if they kill a human. My hlstats: http://www.ssfclanbase.com/hlstats/hlstats.php

The way to add the award for most zombie kills is to sum up all the kills. "kill with gun1, kill with gun2, kill with etc"

EDIT: Wow, i like this picture: Image

1 more thing about the log. On hostage maps, when the timer run out, Terrorist (Zombie) will be count as a win. This is not accurate, cause sometimes humans survive til the timer runs out

Posted: Fri May 05, 2006 6:35 pm
by lex_talionis
Undisclosed,

Thanks, btw, you can use that img for weapon: zombie_claws_of_death it you want too, just put in in your /web/hlstatsimg/weapons/css folder and it should work.

About the point modifiers, my feeling is that since zombies only have one weapon to attack, then all regular weapons which are available to humans should be the same point modifier to be fair...so having all point modifier .3 or any number will work best I think. Only difference is the total volume of points...if every modifier is .1 then on your player rankings the points overall will be lower vs. a modifier of 2...but everything is balanced this way.

Well, would you know how to modifiy the hlstatsx code to sum "kills with" for each player to make this work?

Thanks,
Lex

Posted: Fri May 05, 2006 10:27 pm
by Undisclosed
Well, I think .3 is fair. If theres a very sucky player who always get turned into a zombie, he can easily gain points. Killing a zombie is about 4 times harder than turning someone into a zombie. .3 is fair i think, if you think killing a zombie is 6 times harder...change it to .2

Posted: Fri May 05, 2006 11:36 pm
by Undisclosed
an easier way is to find the variable for CT kills

Posted: Sat May 06, 2006 12:59 am
by lex_talionis
Well,

Here are the two situations:

Human Kill:
19:58:57: "N00Bâ„¢<11><STEAM_0:1:6210382><CT>" killed "aznsausage<20><STEAM_0:1:5896518><TERRORIST>" with "mp5navy"

Zombie Kill:
19:59:43: "Strayy-|82ndID|-<10><STEAM_0:0:9849694><TERRORIST>" killed "ibabox<13><STEAM_0:1:1941209><CT>" with "zombie_claws_of_death"

If we can get c0ld to implement a log for killing a zombie like L.Duke has for killing the VIP (assasinated_the_vip), then this would work.

Lex

Posted: Thu May 11, 2006 1:43 pm
by lex_talionis
Undisclosed,

Did you ever figure out how to award the human with the most zombie kills yet?

Also, you'll be happy to know: http://www.hlstatsx.com/forum/index.php?topic=1945.0

My plan, since this flash will be shared accross all servers on our current implementation of HLStatsX is to create a new DB and instance of HLStatsX on my rented host and make it our deticated ZombieMod HLStatsX.

Lex

Posted: Thu May 11, 2006 2:26 pm
by c0ldfyr3
Lex, I thought this problem would be resolved if you just add the kills with every other weapon except zombie_claws_of_death?

Or, total kills - zombie_claws_of_death kills.

Either will work..or I can add a log =D

Posted: Thu May 11, 2006 2:29 pm
by lex_talionis
c0ldfyr3 wrote:Lex, I thought this problem would be resolved if you just add the kills with every other weapon except zombie_claws_of_death?

Or, total kills - zombie_claws_of_death kills.

Either will work..or I can add a log =D
Okay, yes it will probably work, but it would test my brain cells and atm I'm not sure if I have enough. If it's not hard, please add a log =D

Thanks,
Lex

Posted: Thu May 11, 2006 5:20 pm
by Undisclosed
adding a log makes everything easy, cause not everyone turn on the mod 100% of the time