Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- DECLARE_HOOK(AShooterGameState_Tick, void, AShooterGameState*, float);
- void InitHooks()
- {
- ArkApi::GetHooks().SetHook("AShooterGameState.Tick", &Hook_AShooterGameState_Tick, &AShooterGameState_Tick_original);
- }
- void RemoveHooks()
- {
- ArkApi::GetHooks().DisableHook("AShooterGameState.Tick", &Hook_AShooterGameState_Tick);
- }
- void Hook_AShooterGameState_Tick(AShooterGameState* _this, float DeltaSeconds)
- {
- AShooterGameState_Tick_original(_this, DeltaSeconds);
- }
Advertisement
Add Comment
Please, Sign In to add comment