Rune Central
http://forums.runecentral.com/

+fraglogging
http://forums.runecentral.com/viewtopic.php?f=1&t=1978
Page 2 of 2

Author:  Slot Zero [ Thu May 04, 2017 5:06 pm ]
Post subject:  Re: +fraglogging

The logfrag function simply records the killer and the killee, it doesn't mention how many frags. Since you are only awarded frags during altar drop, there are two issues. Number 1, you can pick up your own head and gain frags, with logfrag() killer / killee of the same usually means its suicide. (I imagine that is how the parser works as well). I could potentially walk through each head and logfrag() each owner but since you can be a potential head, it will register as a suicide in the parser. The second issue would involve calling logfrag based on number of frags, which isn't very efficient as you would have to loop it potentially 20-100 times who would get the bulk of the credit for deaths if that was done? Basically I left logfrag() off for heads because there doesn't seem to be a good way to accurately track frags.

I could potentially just count frags even though the player isn't getting them or bring them to the altar? For example, I kill you, mod registers a logfrag() in my favor, you pick up your own head and score frag but in reality I got none.

Author:  Dozer316 [ Fri May 05, 2017 4:13 am ]
Post subject:  Re: +fraglogging

Thanks for the answer man, yeah I can see that being tricky to get around.

You're correct regarding the parser seeing samename/samename as a suicide so if that's what would get written to the log when you're carrying your own head and drop it at the altar then it will log this as such.

I'll keep thinking about it although I'm not confident I'll find a solution that you have not already run through and found problematic.

Dozer.

Page 2 of 2 All times are UTC - 5 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/