mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 00:49:54 +00:00
8df08c7d10
Players can no longer unilaterally use items on themselves in their inventory. When they try to use an item, they send a PlayerItemUse packet to the server with the item's details. A serverside script can then check the item and either send the packet back to make the item use go through or drop it.
17 lines
406 B
C++
17 lines
406 B
C++
#ifndef OPENMW_PACKETPLAYERITEMUSE_HPP
|
|
#define OPENMW_PACKETPLAYERITEMUSE_HPP
|
|
|
|
#include <components/openmw-mp/Packets/Player/PlayerPacket.hpp>
|
|
|
|
namespace mwmp
|
|
{
|
|
class PacketPlayerItemUse : public PlayerPacket
|
|
{
|
|
public:
|
|
PacketPlayerItemUse(RakNet::RakPeerInterface *peer);
|
|
|
|
virtual void Packet(RakNet::BitStream *bs, bool send);
|
|
};
|
|
}
|
|
|
|
#endif //OPENMW_PACKETPLAYERITEMUSE_HPP
|