fix: update pos server HP.

This commit is contained in:
Tungdv
2025-10-29 14:54:52 +07:00
parent 4283029b1f
commit f94162d9ba
+2 -1
View File
@@ -738,7 +738,7 @@ public class CECHostPlayer : CECPlayer
SetPlayerInfor(new INFO(role.cid, role.crc_e, role.crc_c));
Vector3 pos = new Vector3(role.pos.x, role.pos.y, role.pos.z);
if (txtName != null) txtName.text = roleName;
transform.position = pos;
//transform.position = pos;
SetModelHostPlayer();
m_dwResFlags = (uint)PlayerResourcesReadyFlag.RESFG_ALL;
joystick = FindAnyObjectByType<Joystick>();
@@ -761,6 +761,7 @@ public class CECHostPlayer : CECPlayer
//a_LogOutput(1, "m_CDRInfo.fStepHeight = %d", m_CDRInfo.fStepHeight);
//m_CDRInfo.vAbsVelocity = Vector3.zero;
// Create work manager
SetPos(pos);
m_pWorkMan = new CECHPWorkMan(this);
if (m_pWorkMan == null)
{