Forums » Suggestions

Allow PLAYER_DIED event to show assists

Jun 15, 2019 Luxen link
So, I had this idea during TeamDX that I'd like to be able to award people for assisting in a kill, but of course there isn't really a reportable way to do that. PLAYER_DIED in the api lets you see who died, who made a kill, and what did the killing, but is there any way you could have the event [or a separate function] provide a rolling list of any pilot who damaged the "killed pilot" and for how much, with what item, including negative values for repair blasters on the killer and accumulative values for PCBs?

as a relative newbie to LUA, I dunno if thats very feasible or difficult, but it'd be kinda nice to be able to report that kind of stuff for events that follow a more directed gameplay.
Jun 16, 2019 Camzure link
If we were making an API update, I would request SO many things that need to be updated/documented.

That being said, I do not think this is possible. The only mechanic I have witnessed that even comes close to it is the very small amount of license gain that you get from attacking a bot and damaging it a little, a bot that was severely damaged by someone else. You would get a little XP, while they would get the full reward.

Maybe this is possible for player kills as well. Not sure.
Jun 16, 2019 yodaofborg link
I would think the opposite is true, if it is possible for bots, I would suggest it's possible for all player/ship/entities and it has just been chosen to not be for players yet. After all, what are bots but AI constructs waiting for brains to occupy them? Sounds like most players to me! ;)

But that aside I think it would be neat for assist style rewards, in both normal PVP and group efforts like this event/Deneb. Not sure as much detail as requested is currently possible, but I would wager that at least "damaged by" and "killed by" are already 2 different logged events and that the first one just isn't exposed in any meaningful way. Unknown technicalities aside, I think even the combat XP gained by player kills should be shared among killers. Would be nice when ganking someone to know I did the most damage cos the killer only got 5xp or somesuch. Could also lead to a new badge.

+1
Jun 17, 2019 Pizzasgood link
I could see this information being something they chose not to broadcast to players to avoid gumming them up with a bunch of (normally) useless data. If so, perhaps there could be a way to opt-in to receiving events like this so that those with poor connections could continue getting the simplified set.
Jun 17, 2019 Luxen link
If thats the case, maybe when a player_died event is triggered, a function request_extended_death_info could be run to retrieve that data from the sector daemon?
Jun 17, 2019 Roda Slane link
Jun 17, 2019 Luxen link
I was under the assumption that that event only triggered when >you< were hit, but... why then would it have the receiver's charID? I'll play around with this, thanks for pointing that out, Roda!