Help! How to hook a method with a parameter of PhotonMessageInfo?

libModz

Awesome Active Platinian
Original poster
Jun 2, 2022
167
29
28
UK
What is solution
C++:
struct PhotonMessageInfo
{
    int  timestamp;
    std::uintptr_t sender
    void *view;
};
void (*OnRequestSpawn)(void *instance, void *PhotonPlayer, PhotonMessageInfo Info);
PhotonMessageInfo info = {0, PhotonNetwork_get_player(), NULL};
 

Trrex

Platinian
Sep 3, 2023
29
1
8
25
C++:
struct PhotonMessageInfo
{
    int  timestamp;
    std::uintptr_t sender
    void *view;
};
void (*OnRequestSpawn)(void *instance, void *PhotonPlayer, PhotonMessageInfo Info);
PhotonMessageInfo info = {0, PhotonNetwork_get_player(), NULL};
How to Use IT
 

libModz

Awesome Active Platinian
Original poster
Jun 2, 2022
167
29
28
UK
I don't understand the " on request respawn "
C++:
struct PhotonMessageInfo
{
    int  timestamp;
    std::uintptr_t sender;
    void *view;
};


void (*RoomMaster_OnRequestRespawn)(void *instance, void *player, PhotonMessageInfo Info);

PhotonMessageInfo info = {0, PhotonNetwork_get_player(), NULL};
RoomMaster_OnRequestRespawn(instance, PhotonPlayer, info);
Which part is confusing you?
 

libModz

Awesome Active Platinian
Original poster
Jun 2, 2022
167
29
28
UK
The struct part goes into a new file in your includes folder. Call it something like PMI.h