1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 02:49:55 +00:00
openmw-tes3mp/apps/openmw-mp/processors/player/ProcessorPlayerPosition.hpp
David Cernat 3effd5f1ff [General] Update positions for dead players on other clients
Dead players will now show up at the correct cell and position for living players, making server scripts that allow players to revive each other much more functional.
2019-03-24 03:52:05 +02:00

23 lines
491 B
C++

#ifndef OPENMW_PROCESSORPLAYERPOSITION_HPP
#define OPENMW_PROCESSORPLAYERPOSITION_HPP
#include "../PlayerProcessor.hpp"
namespace mwmp
{
class ProcessorPlayerPosition : public PlayerProcessor
{
public:
ProcessorPlayerPosition()
{
BPP_INIT(ID_PLAYER_POSITION)
}
void Do(PlayerPacket &packet, Player &player) override
{
player.sendToLoaded(&packet);
}
};
}
#endif //OPENMW_PROCESSORPLAYERPOSITION_HPP