mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-30 08:35:52 -04:00
[General] Set actor data correctly
This commit is contained in:
parent
69bf2749a5
commit
a5d0486c82
@ -103,7 +103,7 @@ void Cell::readCellFrame(ActorList& actorList)
|
|||||||
if (dedicatedActors.count(mapIndex) > 0)
|
if (dedicatedActors.count(mapIndex) > 0)
|
||||||
{
|
{
|
||||||
DedicatedActor *actor = dedicatedActors[mapIndex];
|
DedicatedActor *actor = dedicatedActors[mapIndex];
|
||||||
actor->position = baseActor.pos;
|
actor->position = baseActor.position;
|
||||||
actor->drawState = baseActor.drawState;
|
actor->drawState = baseActor.drawState;
|
||||||
|
|
||||||
actor->headPitch = baseActor.headPitch;
|
actor->headPitch = baseActor.headPitch;
|
||||||
|
@ -50,4 +50,8 @@ MWWorld::Ptr LocalActor::getPtr()
|
|||||||
void LocalActor::setPtr(const MWWorld::Ptr& newPtr)
|
void LocalActor::setPtr(const MWWorld::Ptr& newPtr)
|
||||||
{
|
{
|
||||||
ptr = newPtr;
|
ptr = newPtr;
|
||||||
|
|
||||||
|
refId = newPtr.getCellRef().getRefId();
|
||||||
|
refNumIndex = newPtr.getCellRef().getRefNum().mIndex;
|
||||||
|
mpNum = newPtr.getCellRef().getMpNum();
|
||||||
}
|
}
|
||||||
|
@ -20,14 +20,12 @@ namespace mwmp
|
|||||||
int refNumIndex;
|
int refNumIndex;
|
||||||
int mpNum;
|
int mpNum;
|
||||||
|
|
||||||
ESM::Position pos;
|
ESM::Position position;
|
||||||
|
ESM::Cell cell;
|
||||||
|
|
||||||
char drawState;
|
char drawState;
|
||||||
bool isFlying;
|
bool isFlying;
|
||||||
|
|
||||||
ESM::Position position;
|
|
||||||
ESM::Cell cell;
|
|
||||||
|
|
||||||
float headPitch;
|
float headPitch;
|
||||||
float headYaw;
|
float headYaw;
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ void PacketActorFrame::Packet(RakNet::BitStream *bs, bool send)
|
|||||||
RW(actor.refId, send);
|
RW(actor.refId, send);
|
||||||
RW(actor.refNumIndex, send);
|
RW(actor.refNumIndex, send);
|
||||||
RW(actor.mpNum, send);
|
RW(actor.mpNum, send);
|
||||||
RW(actor.pos, send);
|
RW(actor.position, send);
|
||||||
RW(actor.drawState, send);
|
RW(actor.drawState, send);
|
||||||
|
|
||||||
RW(actor.headPitch, send);
|
RW(actor.headPitch, send);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user