Rune Central

The Official Rune Quake Message Board
It is currently Sun Oct 22, 2017 9:32 am

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: +fraglogging
PostPosted: Thu May 04, 2017 5:06 pm 
Offline
Site Admin
User avatar

Joined: Fri Mar 07, 2003 7:41 pm
Posts: 1202
Location: New Jersey, USA
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.

_________________
Slot Zero
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: +fraglogging
PostPosted: Fri May 05, 2017 4:13 am 
Offline

Joined: Sat Apr 29, 2017 3:43 pm
Posts: 14
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group