1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-24 22:53:51 +00:00
openmw-tes3mp/apps/openmw-mp/processors/player/ProcessorWorldKillCount.hpp
David Cernat 4d40df3ea8 [Server] Don't automatically send kill count packets to other players
This should be handled in server scripts instead so that servers with respawning NPCs can be have kills shared across parties and witnesses instead of shared across all players on the server.
2019-05-22 22:13:42 +03:00

25 lines
586 B
C++

#ifndef OPENMW_PROCESSORWORLDKILLCOUNT_HPP
#define OPENMW_PROCESSORWORLDKILLCOUNT_HPP
#include "../PlayerProcessor.hpp"
namespace mwmp
{
class ProcessorWorldKillCount : public PlayerProcessor
{
public:
ProcessorWorldKillCount()
{
BPP_INIT(ID_WORLD_KILL_COUNT)
}
void Do(PlayerPacket &packet, Player &player) override
{
DEBUG_PRINTF(strPacketID.c_str());
Script::Call<Script::CallbackIdentity("OnWorldKillCount")>(player.getId());
}
};
}
#endif //OPENMW_PROCESSORWORLDKILLCOUNT_HPP