@ -399,133 +399,133 @@ void ObjectFunctions::AddContainerItem() noexcept
tempContainerItem = emptyContainerItem ;
tempContainerItem = emptyContainerItem ;
}
}
void ObjectFunctions : : SendObjectPlace ( bool sendToOtherPlayers , bool s endTo AttachedPlayer) noexcept
void ObjectFunctions : : SendObjectPlace ( bool sendToOtherPlayers , bool s kip AttachedPlayer) noexcept
{
{
mwmp : : ObjectPacket * packet = mwmp : : Networking : : get ( ) . getObjectPacketController ( ) - > GetPacket ( ID_OBJECT_PLACE ) ;
mwmp : : ObjectPacket * packet = mwmp : : Networking : : get ( ) . getObjectPacketController ( ) - > GetPacket ( ID_OBJECT_PLACE ) ;
packet - > setObjectList ( & writeObjectList ) ;
packet - > setObjectList ( & writeObjectList ) ;
if ( sendTo AttachedPlayer)
if ( ! skip AttachedPlayer)
packet - > Send ( false ) ;
packet - > Send ( false ) ;
if ( sendToOtherPlayers )
if ( sendToOtherPlayers )
packet - > Send ( true ) ;
packet - > Send ( true ) ;
}
}
void ObjectFunctions : : SendObjectSpawn ( bool sendToOtherPlayers , bool s endTo AttachedPlayer) noexcept
void ObjectFunctions : : SendObjectSpawn ( bool sendToOtherPlayers , bool s kip AttachedPlayer) noexcept
{
{
mwmp : : ObjectPacket * packet = mwmp : : Networking : : get ( ) . getObjectPacketController ( ) - > GetPacket ( ID_OBJECT_SPAWN ) ;
mwmp : : ObjectPacket * packet = mwmp : : Networking : : get ( ) . getObjectPacketController ( ) - > GetPacket ( ID_OBJECT_SPAWN ) ;
packet - > setObjectList ( & writeObjectList ) ;
packet - > setObjectList ( & writeObjectList ) ;
if ( sendTo AttachedPlayer)
if ( ! skip AttachedPlayer)
packet - > Send ( false ) ;
packet - > Send ( false ) ;
if ( sendToOtherPlayers )
if ( sendToOtherPlayers )
packet - > Send ( true ) ;
packet - > Send ( true ) ;
}
}
void ObjectFunctions : : SendObjectDelete ( bool sendToOtherPlayers , bool s endTo AttachedPlayer) noexcept
void ObjectFunctions : : SendObjectDelete ( bool sendToOtherPlayers , bool s kip AttachedPlayer) noexcept
{
{
mwmp : : ObjectPacket * packet = mwmp : : Networking : : get ( ) . getObjectPacketController ( ) - > GetPacket ( ID_OBJECT_DELETE ) ;
mwmp : : ObjectPacket * packet = mwmp : : Networking : : get ( ) . getObjectPacketController ( ) - > GetPacket ( ID_OBJECT_DELETE ) ;
packet - > setObjectList ( & writeObjectList ) ;
packet - > setObjectList ( & writeObjectList ) ;
if ( sendTo AttachedPlayer)
if ( ! skip AttachedPlayer)
packet - > Send ( false ) ;
packet - > Send ( false ) ;
if ( sendToOtherPlayers )
if ( sendToOtherPlayers )
packet - > Send ( true ) ;
packet - > Send ( true ) ;
}
}
void ObjectFunctions : : SendObjectLock ( bool sendToOtherPlayers , bool s endTo AttachedPlayer) noexcept
void ObjectFunctions : : SendObjectLock ( bool sendToOtherPlayers , bool s kip AttachedPlayer) noexcept
{
{
mwmp : : ObjectPacket * packet = mwmp : : Networking : : get ( ) . getObjectPacketController ( ) - > GetPacket ( ID_OBJECT_LOCK ) ;
mwmp : : ObjectPacket * packet = mwmp : : Networking : : get ( ) . getObjectPacketController ( ) - > GetPacket ( ID_OBJECT_LOCK ) ;
packet - > setObjectList ( & writeObjectList ) ;
packet - > setObjectList ( & writeObjectList ) ;
if ( sendTo AttachedPlayer)
if ( ! skip AttachedPlayer)
packet - > Send ( false ) ;
packet - > Send ( false ) ;
if ( sendToOtherPlayers )
if ( sendToOtherPlayers )
packet - > Send ( true ) ;
packet - > Send ( true ) ;
}
}
void ObjectFunctions : : SendObjectTrap ( bool sendToOtherPlayers , bool s endTo AttachedPlayer) noexcept
void ObjectFunctions : : SendObjectTrap ( bool sendToOtherPlayers , bool s kip AttachedPlayer) noexcept
{
{
mwmp : : ObjectPacket * packet = mwmp : : Networking : : get ( ) . getObjectPacketController ( ) - > GetPacket ( ID_OBJECT_TRAP ) ;
mwmp : : ObjectPacket * packet = mwmp : : Networking : : get ( ) . getObjectPacketController ( ) - > GetPacket ( ID_OBJECT_TRAP ) ;
packet - > setObjectList ( & writeObjectList ) ;
packet - > setObjectList ( & writeObjectList ) ;
if ( sendTo AttachedPlayer)
if ( ! skip AttachedPlayer)
packet - > Send ( false ) ;
packet - > Send ( false ) ;
if ( sendToOtherPlayers )
if ( sendToOtherPlayers )
packet - > Send ( true ) ;
packet - > Send ( true ) ;
}
}
void ObjectFunctions : : SendObjectScale ( bool sendToOtherPlayers , bool s endTo AttachedPlayer) noexcept
void ObjectFunctions : : SendObjectScale ( bool sendToOtherPlayers , bool s kip AttachedPlayer) noexcept
{
{
mwmp : : ObjectPacket * packet = mwmp : : Networking : : get ( ) . getObjectPacketController ( ) - > GetPacket ( ID_OBJECT_SCALE ) ;
mwmp : : ObjectPacket * packet = mwmp : : Networking : : get ( ) . getObjectPacketController ( ) - > GetPacket ( ID_OBJECT_SCALE ) ;
packet - > setObjectList ( & writeObjectList ) ;
packet - > setObjectList ( & writeObjectList ) ;
if ( sendTo AttachedPlayer)
if ( ! skip AttachedPlayer)
packet - > Send ( false ) ;
packet - > Send ( false ) ;
if ( sendToOtherPlayers )
if ( sendToOtherPlayers )
packet - > Send ( true ) ;
packet - > Send ( true ) ;
}
}
void ObjectFunctions : : SendObjectState ( bool sendToOtherPlayers , bool s endTo AttachedPlayer) noexcept
void ObjectFunctions : : SendObjectState ( bool sendToOtherPlayers , bool s kip AttachedPlayer) noexcept
{
{
mwmp : : ObjectPacket * packet = mwmp : : Networking : : get ( ) . getObjectPacketController ( ) - > GetPacket ( ID_OBJECT_STATE ) ;
mwmp : : ObjectPacket * packet = mwmp : : Networking : : get ( ) . getObjectPacketController ( ) - > GetPacket ( ID_OBJECT_STATE ) ;
packet - > setObjectList ( & writeObjectList ) ;
packet - > setObjectList ( & writeObjectList ) ;
if ( sendTo AttachedPlayer)
if ( ! skip AttachedPlayer)
packet - > Send ( false ) ;
packet - > Send ( false ) ;
if ( sendToOtherPlayers )
if ( sendToOtherPlayers )
packet - > Send ( true ) ;
packet - > Send ( true ) ;
}
}
void ObjectFunctions : : SendDoorState ( bool sendToOtherPlayers , bool s endTo AttachedPlayer) noexcept
void ObjectFunctions : : SendDoorState ( bool sendToOtherPlayers , bool s kip AttachedPlayer) noexcept
{
{
mwmp : : ObjectPacket * packet = mwmp : : Networking : : get ( ) . getObjectPacketController ( ) - > GetPacket ( ID_DOOR_STATE ) ;
mwmp : : ObjectPacket * packet = mwmp : : Networking : : get ( ) . getObjectPacketController ( ) - > GetPacket ( ID_DOOR_STATE ) ;
packet - > setObjectList ( & writeObjectList ) ;
packet - > setObjectList ( & writeObjectList ) ;
if ( sendTo AttachedPlayer)
if ( ! skip AttachedPlayer)
packet - > Send ( false ) ;
packet - > Send ( false ) ;
if ( sendToOtherPlayers )
if ( sendToOtherPlayers )
packet - > Send ( true ) ;
packet - > Send ( true ) ;
}
}
void ObjectFunctions : : SendDoorDestination ( bool sendToOtherPlayers , bool s endTo AttachedPlayer) noexcept
void ObjectFunctions : : SendDoorDestination ( bool sendToOtherPlayers , bool s kip AttachedPlayer) noexcept
{
{
mwmp : : ObjectPacket * packet = mwmp : : Networking : : get ( ) . getObjectPacketController ( ) - > GetPacket ( ID_DOOR_DESTINATION ) ;
mwmp : : ObjectPacket * packet = mwmp : : Networking : : get ( ) . getObjectPacketController ( ) - > GetPacket ( ID_DOOR_DESTINATION ) ;
packet - > setObjectList ( & writeObjectList ) ;
packet - > setObjectList ( & writeObjectList ) ;
if ( sendTo AttachedPlayer)
if ( ! skip AttachedPlayer)
packet - > Send ( false ) ;
packet - > Send ( false ) ;
if ( sendToOtherPlayers )
if ( sendToOtherPlayers )
packet - > Send ( true ) ;
packet - > Send ( true ) ;
}
}
void ObjectFunctions : : SendContainer ( bool sendToOtherPlayers , bool s endTo AttachedPlayer) noexcept
void ObjectFunctions : : SendContainer ( bool sendToOtherPlayers , bool s kip AttachedPlayer) noexcept
{
{
mwmp : : ObjectPacket * packet = mwmp : : Networking : : get ( ) . getObjectPacketController ( ) - > GetPacket ( ID_CONTAINER ) ;
mwmp : : ObjectPacket * packet = mwmp : : Networking : : get ( ) . getObjectPacketController ( ) - > GetPacket ( ID_CONTAINER ) ;
packet - > setObjectList ( & writeObjectList ) ;
packet - > setObjectList ( & writeObjectList ) ;
if ( sendTo AttachedPlayer)
if ( ! skip AttachedPlayer)
packet - > Send ( false ) ;
packet - > Send ( false ) ;
if ( sendToOtherPlayers )
if ( sendToOtherPlayers )
packet - > Send ( true ) ;
packet - > Send ( true ) ;
}
}
void ObjectFunctions : : SendVideoPlay ( bool sendToOtherPlayers , bool s endTo AttachedPlayer) noexcept
void ObjectFunctions : : SendVideoPlay ( bool sendToOtherPlayers , bool s kip AttachedPlayer) noexcept
{
{
mwmp : : ObjectPacket * packet = mwmp : : Networking : : get ( ) . getObjectPacketController ( ) - > GetPacket ( ID_VIDEO_PLAY ) ;
mwmp : : ObjectPacket * packet = mwmp : : Networking : : get ( ) . getObjectPacketController ( ) - > GetPacket ( ID_VIDEO_PLAY ) ;
packet - > setObjectList ( & writeObjectList ) ;
packet - > setObjectList ( & writeObjectList ) ;
if ( sendTo AttachedPlayer)
if ( ! skip AttachedPlayer)
packet - > Send ( false ) ;
packet - > Send ( false ) ;
if ( sendToOtherPlayers )
if ( sendToOtherPlayers )
packet - > Send ( true ) ;
packet - > Send ( true ) ;
}
}
void ObjectFunctions : : SendConsoleCommand ( bool sendToOtherPlayers , bool s endTo AttachedPlayer) noexcept
void ObjectFunctions : : SendConsoleCommand ( bool sendToOtherPlayers , bool s kip AttachedPlayer) noexcept
{
{
mwmp : : ObjectPacket * packet = mwmp : : Networking : : get ( ) . getObjectPacketController ( ) - > GetPacket ( ID_CONSOLE_COMMAND ) ;
mwmp : : ObjectPacket * packet = mwmp : : Networking : : get ( ) . getObjectPacketController ( ) - > GetPacket ( ID_CONSOLE_COMMAND ) ;
packet - > setObjectList ( & writeObjectList ) ;
packet - > setObjectList ( & writeObjectList ) ;
if ( sendTo AttachedPlayer)
if ( ! skip AttachedPlayer)
packet - > Send ( false ) ;
packet - > Send ( false ) ;
if ( sendToOtherPlayers )
if ( sendToOtherPlayers )
packet - > Send ( true ) ;
packet - > Send ( true ) ;