feat(Pointers): Added trigger script event pointer and function definitions
This commit is contained in:
parent
939da8769d
commit
4f0cfcba75
@ -14,4 +14,5 @@ namespace big::functions
|
||||
using get_player_name = char*(Player player);
|
||||
using script_event_handler = bool(void* events, CNetGamePlayer* sourcePlayer, CNetGamePlayer* targetPlayer);
|
||||
using sync_local_time = void(int h, int m);
|
||||
using trigger_script_event = int(bool unk0, uint64_t* args, int argCount, int bitFlags);
|
||||
}
|
||||
|
@ -97,6 +97,11 @@ namespace big
|
||||
{
|
||||
m_script_event_handler = ptr.as<decltype(m_script_event_handler)>();
|
||||
});
|
||||
|
||||
main_batch.add("Trigger Script Event", "48 8B C4 48 89 58 08 48 89 68 10 48 89 70 18 48 89 78 20 41 56 48 81 EC ? ? ? ? 45 8B F0 41 8B F9", [this](memory::handle ptr)
|
||||
{
|
||||
m_trigger_script_event = ptr.as<decltype(m_trigger_script_event)>();
|
||||
});
|
||||
|
||||
main_batch.run(memory::module(nullptr));
|
||||
|
||||
|
@ -40,6 +40,7 @@ namespace big
|
||||
functions::increment_stat_event* m_increment_stat_event{};
|
||||
functions::script_event_handler* m_script_event_handler{};
|
||||
functions::sync_local_time* m_sync_local_time{};
|
||||
functions::trigger_script_event* m_trigger_script_event{};
|
||||
};
|
||||
|
||||
inline pointers *g_pointers{};
|
||||
|
Reference in New Issue
Block a user