Logging for HLStatsX...

.: Ideas, questions, comments and requests.

Moderators: c0ldfyr3, Mods, [CSSMC]

Post Reply
Uber Elite
Posts: 278
Joined: Wed Apr 26, 2006 3:28 pm
Location: Austin, TX

Logging for HLStatsX...

Post 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
MOD Creator
Posts: 475
Joined: Sun Apr 23, 2006 6:47 pm
Location: Dublin, Ireland

Post by c0ldfyr3 »

Lex, can you just add more points for every other weapon kill? Zombies couldnt possibly get a kill with another weapon =P
Uber Elite
Posts: 278
Joined: Wed Apr 26, 2006 3:28 pm
Location: Austin, TX

Post 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
Uber Elite
Posts: 332
Joined: Mon Apr 24, 2006 4:45 am
Location: Los Angeles

Post 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
Uber Elite
Posts: 278
Joined: Wed Apr 26, 2006 3:28 pm
Location: Austin, TX

Post 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
Uber Elite
Posts: 332
Joined: Mon Apr 24, 2006 4:45 am
Location: Los Angeles

Post 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
Uber Elite
Posts: 332
Joined: Mon Apr 24, 2006 4:45 am
Location: Los Angeles

Post by Undisclosed »

an easier way is to find the variable for CT kills
Uber Elite
Posts: 278
Joined: Wed Apr 26, 2006 3:28 pm
Location: Austin, TX

Post 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
Uber Elite
Posts: 278
Joined: Wed Apr 26, 2006 3:28 pm
Location: Austin, TX

Post 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
MOD Creator
Posts: 475
Joined: Sun Apr 23, 2006 6:47 pm
Location: Dublin, Ireland

Post 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
Uber Elite
Posts: 278
Joined: Wed Apr 26, 2006 3:28 pm
Location: Austin, TX

Post 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
Uber Elite
Posts: 332
Joined: Mon Apr 24, 2006 4:45 am
Location: Los Angeles

Post by Undisclosed »

adding a log makes everything easy, cause not everyone turn on the mod 100% of the time
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest