Guest User

CGSUHooks.h

a guest
Mar 29th, 2022
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #pragma once
  2. DECLARE_HOOK(AShooterGameState_Tick, void, AShooterGameState*, float);
  3.  
  4. void InitHooks()
  5. {
  6. ArkApi::GetHooks().SetHook("AShooterGameState.Tick", &Hook_AShooterGameState_Tick, &AShooterGameState_Tick_original);
  7. }
  8.  
  9. void RemoveHooks()
  10. {
  11. ArkApi::GetHooks().DisableHook("AShooterGameState.Tick", &Hook_AShooterGameState_Tick);
  12. }
  13.  
  14. void Hook_AShooterGameState_Tick(AShooterGameState* _this, float DeltaSeconds)
  15. {
  16. AShooterGameState_Tick_original(_this, DeltaSeconds);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment