mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-12 02:08:14 +08:00
[saco] Match the three CLocalPlayer damage reports; RELIABLE_ORDERED is 9 and the WORD arg copy widens to a dword
This commit is contained in:
1 parent
441f89429a
commit
67d0758e1d
1 file changed
+46
@@ -114,3 +114,49 @@ DWORD CLocalPlayer::GetPlayerColorAsARGB()
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
// the damage reports scale the amount down to a third before sending
|
||||
void CLocalPlayer::FUNC_100068A0(WORD a1, float a2, int a3, int a4)
|
||||
{
|
||||
a2 *= 0.33f;
|
||||
|
||||
RakNet::BitStream bsSend;
|
||||
|
||||
bsSend.Write1();
|
||||
bsSend.Write(a1);
|
||||
bsSend.Write(a2);
|
||||
bsSend.Write(a3);
|
||||
bsSend.Write(a4);
|
||||
pNetGame->GetRakClient()->RPC(RPC_PlayerDamage, &bsSend, HIGH_PRIORITY, RELIABLE_ORDERED, 0, FALSE);
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
void CLocalPlayer::FUNC_100069B0(WORD a1, float a2, int a3, int a4)
|
||||
{
|
||||
a2 *= 0.33f;
|
||||
|
||||
RakNet::BitStream bsSend;
|
||||
|
||||
bsSend.Write0();
|
||||
bsSend.Write(a1);
|
||||
bsSend.Write(a2);
|
||||
bsSend.Write(a3);
|
||||
bsSend.Write(a4);
|
||||
pNetGame->GetRakClient()->RPC(RPC_PlayerDamage, &bsSend, HIGH_PRIORITY, RELIABLE_ORDERED, 0, FALSE);
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
void CLocalPlayer::FUNC_10006AC0(WORD a1, float a2, int a3, int a4)
|
||||
{
|
||||
RakNet::BitStream bsSend;
|
||||
|
||||
bsSend.Write0();
|
||||
bsSend.Write(a1);
|
||||
bsSend.Write(a2);
|
||||
bsSend.Write(a3);
|
||||
bsSend.Write(a4);
|
||||
pNetGame->GetRakClient()->RPC(RPC_ActorDamage, &bsSend, HIGH_PRIORITY, RELIABLE_ORDERED, 0, FALSE);
|
||||
}
|
||||
Reference in new issue
Block a user