[Opcode] Implement SetFace opcode (#2167)

* Implement SetFace opcode

This implements the opcode that's used to update zone clients when a
client updates their face

* Use SetFace in #feature command

Add check for valid number

This adds the #feature eyes command which isn't in the illusion struct
This commit is contained in:
hg
2022-05-11 19:57:20 -04:00
committed by GitHub
parent 29cdd91ca0
commit d8aa8f7e7a
18 changed files with 140 additions and 65 deletions
+4 -4
View File
@@ -5856,10 +5856,11 @@ void Client::Handle_OP_FaceChange(const EQApplicationPacket *app)
return;
}
// Notify other clients in zone
entity_list.QueueClients(this, app, false);
auto fc = reinterpret_cast<FaceChange_Struct*>(app->pBuffer);
// Notify other clients in zone
SetFaceAppearance(*fc, true);
FaceChange_Struct* fc = (FaceChange_Struct*)app->pBuffer;
m_pp.haircolor = fc->haircolor;
m_pp.beardcolor = fc->beardcolor;
m_pp.eyecolor1 = fc->eyecolor1;
@@ -5872,7 +5873,6 @@ void Client::Handle_OP_FaceChange(const EQApplicationPacket *app)
m_pp.drakkin_details = fc->drakkin_details;
Save();
MessageString(Chat::Red, FACE_ACCEPTED);
//Message(Chat::Red, "Facial features updated.");
return;
}