mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-29 16:11:37 -04:00
[General] Add hasRace to record overrides in RecordsDynamic packet
This commit is contained in:
parent
ddb25a482d
commit
b3747839c0
@ -1188,6 +1188,8 @@ void RecordsDynamicFunctions::SetRecordRace(const char* race) noexcept
|
|||||||
tempNpc.data.mRace = race;
|
tempNpc.data.mRace = race;
|
||||||
else
|
else
|
||||||
LOG_MESSAGE_SIMPLE(TimedLog::LOG_ERROR, "Tried to set race for record type %i which lacks that property", writeRecordsType);
|
LOG_MESSAGE_SIMPLE(TimedLog::LOG_ERROR, "Tried to set race for record type %i which lacks that property", writeRecordsType);
|
||||||
|
|
||||||
|
tempOverrides.hasRace = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void RecordsDynamicFunctions::SetRecordClass(const char* charClass) noexcept
|
void RecordsDynamicFunctions::SetRecordClass(const char* charClass) noexcept
|
||||||
|
@ -939,7 +939,7 @@ void RecordHelper::overrideRecord(const mwmp::NpcRecord& record)
|
|||||||
else
|
else
|
||||||
finalData.setIsMale(baseData->isMale());
|
finalData.setIsMale(baseData->isMale());
|
||||||
|
|
||||||
if (!record.data.mRace.empty())
|
if (record.baseOverrides.hasRace)
|
||||||
finalData.mRace = recordData.mRace;
|
finalData.mRace = recordData.mRace;
|
||||||
|
|
||||||
if (record.baseOverrides.hasModel)
|
if (record.baseOverrides.hasModel)
|
||||||
|
@ -113,6 +113,7 @@ namespace mwmp
|
|||||||
bool hasHair = false;
|
bool hasHair = false;
|
||||||
bool hasHead = false;
|
bool hasHead = false;
|
||||||
bool hasGender = false;
|
bool hasGender = false;
|
||||||
|
bool hasRace = false;
|
||||||
bool hasFaction = false;
|
bool hasFaction = false;
|
||||||
|
|
||||||
bool hasScale = false;
|
bool hasScale = false;
|
||||||
|
@ -296,6 +296,7 @@ void PacketRecordDynamic::Packet(RakNet::BitStream *bs, bool send)
|
|||||||
RW(overrides.hasGender, send);
|
RW(overrides.hasGender, send);
|
||||||
RW(overrides.hasFlags, send);
|
RW(overrides.hasFlags, send);
|
||||||
RW(overrides.hasModel, send);
|
RW(overrides.hasModel, send);
|
||||||
|
RW(overrides.hasRace, send);
|
||||||
RW(overrides.hasHair, send);
|
RW(overrides.hasHair, send);
|
||||||
RW(overrides.hasHead, send);
|
RW(overrides.hasHead, send);
|
||||||
RW(overrides.hasFaction, send);
|
RW(overrides.hasFaction, send);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user