Forums » Bugs

Determining sector of a mine kill when player absent

Dec 30, 2013 TheRedSpy link
Hi devs,

When you guys rolled out the persistent mine feature I asked momerath if he would add two new variables to the PLAYER_DIED event, namely 'sector' and 'ship'. As far as I know the event returns the following:

PLAYER_DIED(int died = charid, int killed = charid, int weapon = wid)

If we could get those extra return variables for sector and the name of the ship the opponent was flying (either as a shipid we can correlate to a name or as a string) it would allow us to un-break a lot of the plugins that rely on determining the location of where a death occurs. Currently these plugins work on the assumption that the death occurs in the current sector of the killer, but now that this is not always the case they return all sorts of funny stuff.

Cheers
Dec 30, 2013 greenwall link
Dear Devs,

Please fix VO so my plugins work again.

Thanks,
NoobSpy
Dec 30, 2013 abortretryfail link
lol, yeah this seems pretty self-centered but I'm all for adding more useful info to the client events.
Dec 30, 2013 Pizzasgood link
+1

Should be in Suggestions though.
Jan 01, 2014 raybondo link
PLAYER_DIED event has 4 entries:
died: charid
killer: charid
weapon: weapontype
sector: sectorid

We won't be adding the ship of the dead player to the event.