Advertisement
Benji23245

Untitled

Oct 21st, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. if (auraobj && CharObj1Ptrs[0]->Action != 6 && ControllerPointers[0]->HeldButtons & Buttons_Z)
  2. {
  3. is_boosting = true;
  4. }
  5. else is_boosting = false;
  6.  
  7. //On Water, not boosting => invisible aura ****************************************** it crashes
  8. if (co2->gap5C[0] & 2 && !is_boosting)
  9. {
  10. if (!NoBoost_OnWater)
  11. {
  12. WriteJump((void*)0x55E6F5, (void*)0x55E78A);
  13. if (!auraobj)
  14. {
  15. auraobj = LoadObject(LoadObj_Data1, 2, Sonic_SuperAura_Load);
  16. }
  17. NoBoost_OnWater = true;
  18. }
  19. //___SONIC_OBJECTS[76]->basicdxmodel->mats[0].attr_texId = -8;
  20. }
  21. else if (NoBoost_OnWater)
  22. {
  23. WriteData((void*)0x55E6F5, visible_aura);
  24. DeleteObject_(auraobj);
  25. auraobj = nullptr;
  26. NoBoost_OnWater = false;
  27. //___SONIC_OBJECTS[76]->basicdxmodel->mats[0].attr_texId = 0;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement