Advertisement
Benji23245

Untitled

Oct 19th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. //Out of any function
  2. void MetalSonic_AfterImage_Display_r(ObjectMaster *obj)
  3. {
  4. njSetTexture((NJS_TEXLIST*)0x91CB58);
  5. MetalSonic_AfterImage_Display(obj);
  6. }
  7.  
  8. //In Init
  9. WriteCall((void*)0x4959AA, MetalSonic_AfterImage_Display_r);
  10. WriteData((ObjectFuncPtr*)0x495AED, MetalSonic_AfterImage_Display_r);
  11.  
  12. //In OnFrame
  13. if (is_hyper)
  14. {
  15. if (++testvar3 == 6)
  16. {
  17. ObjectMaster *v1 = LoadObject(LoadObj_Data1, 3, MetalSonic_AfterImages_Main);
  18. if (v1) *(int*)&v1->Data1->Object = 6;
  19. testvar3 = 0;
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement