[REQ] Custom weapon support

Want to talk about war3ft or make suggestions? Post them here

Moderator: Forum Moderator

Locked
MaximusBrood
Peon
Posts: 5
Joined: Wed Apr 12, 2006 10:04 am

[REQ] Custom weapon support

Post 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
MaximusBrood
Peon
Posts: 5
Joined: Wed Apr 12, 2006 10:04 am

Post by MaximusBrood »

Sorry to bump this, but I need this a lot :wink:
User avatar
Geesu
<b>King of the world!</b>
Posts: 3160
Joined: Tue Jul 05, 2005 9:24 pm
Contact:

Post 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
No Support via PM
Mith
Peon
Posts: 10
Joined: Thu Jun 22, 2006 12:02 am

Post 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).
User avatar
Geesu
<b>King of the world!</b>
Posts: 3160
Joined: Tue Jul 05, 2005 9:24 pm
Contact:

Post by Geesu »

It does if you parse the log files - but only then
No Support via PM
MaximusBrood
Peon
Posts: 5
Joined: Wed Apr 12, 2006 10:04 am

Post 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);
User avatar
Geesu
<b>King of the world!</b>
Posts: 3160
Joined: Tue Jul 05, 2005 9:24 pm
Contact:

Post by Geesu »

You mean like war3ft creates a forward...? So other plugins could includea war3ft.inc file or something?

Josh
No Support via PM
User avatar
Geesu
<b>King of the world!</b>
Posts: 3160
Joined: Tue Jul 05, 2005 9:24 pm
Contact:

Post 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
No Support via PM
User avatar
Geesu
<b>King of the world!</b>
Posts: 3160
Joined: Tue Jul 05, 2005 9:24 pm
Contact:

Post by Geesu »

Added for RC6 Beta 4
No Support via PM
Locked