Page 1 of 1

[REQ] Custom weapon support

Posted: Wed Nov 15, 2006 4:08 pm
by MaximusBrood
I have made my own statistics plugin that counts all kills and sends them to a remote MySQL server. (http://gotjuice.nl/stats)
The stats work smoothly, but it won't register all kills, this is because it isn't counting all war3ft kills.

Could you please make sure all war3ft kills are reported to one function in the war3ft plugin itself. From there I could forward it to my stats plugin. Possible prototype of the function: reportKill(killer, victim, weaponIndex, weaponName);

Thanks in advance,

MaximusBrood

Posted: Mon Dec 18, 2006 4:54 pm
by MaximusBrood
Sorry to bump this, but I need this a lot :wink:

Posted: Tue Dec 19, 2006 2:46 pm
by Geesu
OK to bump - I don't remember seeing this the first time you requested it...

I am a little confused as to what you need? Do you want me to custom generate weapons using csx/dodx? Or just fire off a function call to ur plugin?

Josh

Posted: Tue Dec 19, 2006 6:50 pm
by Mith
I guess he wants the plugin to count all the kills (right now, if you kill someone through critical grenade or suicide bomber, for example, it doesn't count as a kill).

Posted: Tue Dec 19, 2006 7:50 pm
by Geesu
It does if you parse the log files - but only then

Posted: Sun Jan 07, 2007 9:27 am
by MaximusBrood
That's right, I must parse the logfiles with Warcraft 3: FT in it's current shape. It's a bit inefficient to parse the logs for something as simple as this.
However, if there could be a small function that is triggered every time Warcraft 3: FT makes a custom kill, for example by critical grenade or thorns aura,
I can do all my stats handling in there, so it registers all kills, including the ones made by Warcraft 3: FT.

A possible prototype: reportKill(killer, victim, weaponIndex, weaponName);

Posted: Sun Jan 07, 2007 1:28 pm
by Geesu
You mean like war3ft creates a forward...? So other plugins could includea war3ft.inc file or something?

Josh

Posted: Fri Jan 26, 2007 1:05 pm
by Geesu
Maximus does this look ok:

CreateMultiForward( "fwd_ReportKill", ET_IGNORE, FP_CELL, FP_CEL, FP_CELL, FP_STRING );


I noticed ur thread here + was wondering if what I did matched up w/what you wanted...
http://forums.alliedmods.net/showthread ... ltiForward

Posted: Fri Feb 02, 2007 12:47 am
by Geesu
Added for RC6 Beta 4