Forums » Bugs
Determining sector of a mine kill when player absent
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
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
Dear Devs,
Please fix VO so my plugins work again.
Thanks,
NoobSpy
Please fix VO so my plugins work again.
Thanks,
NoobSpy
lol, yeah this seems pretty self-centered but I'm all for adding more useful info to the client events.
+1
Should be in Suggestions though.
Should be in Suggestions though.
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.
died: charid
killer: charid
weapon: weapontype
sector: sectorid
We won't be adding the ship of the dead player to the event.