Raised This Month: $ Target: $400
 0% 

Does a plugin like this exist for TF2?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Munckeyz
Member
Join Date: Mar 2014
Old 12-29-2014 , 08:55   Does a plugin like this exist for TF2?
Reply With Quote #1

Basically, I'd like a plugin that exports kill stats.

What classes are killing what classes, and what weapons are being used to get the kills. I'd like to be able to see the stats so I can collate them into some kind of spreadsheet.

I don't know if a plugin like this exists, so I'm asking here... Sorry if this is a stupid thread.
Munckeyz is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 12-29-2014 , 12:08   Re: Does a plugin like this exist for TF2?
Reply With Quote #2

There was a web stats one, but I don't think it was kept up to date or anything, and wasn't built to dynamically add new items. You could probably modify that, it should be on the forums somewhere.

Other stuff is like gameME and other pay services, which you probably do not want/need.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Munckeyz
Member
Join Date: Mar 2014
Old 12-29-2014 , 16:13   Re: Does a plugin like this exist for TF2?
Reply With Quote #3

I'd just like to have the information rather than a ranking system, even just a list of kills, like "Player 1 (Scout) killed Player 2 (Spy) with Baby Face's Blaster". Something that exports data in a way that allows me to make a spreadsheet out of it.
Munckeyz is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 12-30-2014 , 20:13   Re: Does a plugin like this exist for TF2?
Reply With Quote #4

You can bind a function to the player death event and collect information about the victim/attacker(s), and use file I/O to write that data to the disk. (perhaps maybe in CSV form so that it opens in a spreadsheet in excel?)

https://wiki.alliedmods.net/Team_For...s#player_death (relevant event)

The user IDs contain the players that killed/got killed. The weapon name used to kill the player is also recorded in the event.

These may also be useful:

https://sm.alliedmods.net/api/index....d=show&id=442&
https://sm.alliedmods.net/api/index....d=show&id=853&

Last edited by Potato Uno; 12-30-2014 at 20:14. Reason: Weapon name
Potato Uno is offline
Munckeyz
Member
Join Date: Mar 2014
Old 12-31-2014 , 19:48   Re: Does a plugin like this exist for TF2?
Reply With Quote #5

I have no coding knowledge, so how do I do something like that?

Also, does this work for bots?
Munckeyz is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 01-01-2015 , 02:55   Re: Does a plugin like this exist for TF2?
Reply With Quote #6

You can find tutorials in writing plugins here (I'd read both of them at least 5 times over), and look at other plugins' source code for ideas on how to do stuff (I do this often).

https://wiki.alliedmods.net/Category...eMod_Scripting

And yes, it would work for bots. You can use the built in functions in the sourcepawn API to automatically filter out kills made by bots.

https://sm.alliedmods.net/api/
Potato Uno is offline
Munckeyz
Member
Join Date: Mar 2014
Old 01-01-2015 , 19:52   Re: Does a plugin like this exist for TF2?
Reply With Quote #7

Thank you! I'll take a look.
Munckeyz 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 00:36.


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