Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CNetGame_SendPacketToPlayer( uint32_t netgame, RakNet::BitStream* bStream, uint16_t playerid )
- {
- uint32_t unknown; // don't mind about it
- _asm
- {
- mov esi, netgame
- mov ecx, [esi+0x3C]
- mov eax, [ecx]
- push edx
- push playerid // playerid
- lea edx, unknown // set the address of unknown on edx
- push edx
- call dword ptr [eax+0xE0] // GetPlayerIDFromIndex
- mov ecx, [esi+0x3C]
- mov edx, [ecx]
- mov edi, [eax] // Set PlayerID (the raknet one) on edi
- mov ax, [eax+4]
- push 0 // set the last parameter of RakServerInterface->Send to false
- sub esp, 8
- mov ecx, esp
- push 1
- mov [ecx], edi
- push 1
- mov [ecx+0x04], ax
- mov ecx, bStream
- push 1
- push ecx
- mov ecx, [esi+0x3C]
- call dword ptr [edx+0x1C]
- }
- }
Add Comment
Please, Sign In to add comment