Advertisement
Benji23245

Untitled

Jun 13th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. //Sonic Boost
  2. if (co2 == NULL) return;
  3. if (GetCharacterObject(0) && GetCharacterID(0) == Characters_Sonic && MetalSonicFlag == 0)
  4. {
  5. if (SpeedShoesCount == 0)
  6. {
  7. if (ControllerPointers[0]->HeldButtons & Buttons_Y && (CharObj1Ptrs[0]->Action != 4 || CharObj1Ptrs[0]->Action != 6 || CharObj1Ptrs[0]->Action != 14 || CharObj1Ptrs[0]->Action != 44))
  8. {
  9. WriteData((float**)0x55E6FA, &Boost_SuperTornado);
  10. if (!auraobj) auraobj = LoadObject(LoadObj_Data1, 2, Sonic_SuperAura_Load);
  11. if (!trailobj)
  12. {
  13. trailobj = LoadObject(LoadObj_Data1, 6, SonicDashTrail_Init);
  14. trailobj->Data1->CharIndex = 0;
  15. }
  16. if (co2->Speed.x <= 6)
  17. {
  18. co2->PhysicsData.MaxAccel = 7.0;
  19. co2->PhysicsData.GroundAccel = 0.30;
  20. co2->PhysicsData.field_68 = 0;
  21. }
  22. else
  23. {
  24. co2->PhysicsData.MaxAccel = 7.0;
  25. co2->PhysicsData.GroundAccel = 0.15;
  26. co2->PhysicsData.field_68 = 0;
  27. }
  28. }
  29. else
  30. {
  31. DeleteObject_(auraobj);
  32. DeleteObject_(trailobj);
  33. auraobj = nullptr;
  34. trailobj = nullptr;
  35. WriteData((float**)0x55E6FA, &SuperTornado);
  36. co2->PhysicsData.MaxAccel = 3.5;
  37. co2->PhysicsData.GroundAccel = 0.05;
  38. co2->PhysicsData.field_68 = -0.4275;
  39. }
  40. }
  41. else
  42. {
  43. if (ControllerPointers[0]->HeldButtons & Buttons_Y && (CharObj1Ptrs[0]->Action != 4 || CharObj1Ptrs[0]->Action != 6 || CharObj1Ptrs[0]->Action != 14 || CharObj1Ptrs[0]->Action != 44))
  44. {
  45. WriteData((float**)0x55E6FA, &Boost_SuperTornado);
  46. if (!auraobj) auraobj = LoadObject(LoadObj_Data1, 2, Sonic_SuperAura_Load);
  47. if (!trailobj)
  48. {
  49. trailobj = LoadObject(LoadObj_Data1, 6, SonicDashTrail_Init);
  50. trailobj->Data1->CharIndex = 0;
  51. }
  52. if (co2->Speed.x <= 6)
  53. {
  54. co2->PhysicsData.MaxAccel = 14.0;
  55. co2->PhysicsData.GroundAccel = 0.60;
  56. co2->PhysicsData.field_68 = 0;
  57. }
  58. else
  59. {
  60. co2->PhysicsData.MaxAccel = 14.0;
  61. co2->PhysicsData.GroundAccel = 0.30;
  62. co2->PhysicsData.field_68 = 0;
  63. }
  64. }
  65. else
  66. {
  67. DeleteObject_(auraobj);
  68. DeleteObject_(trailobj);
  69. auraobj = nullptr;
  70. trailobj = nullptr;
  71. WriteData((float**)0x55E6FA, &SuperTornado);
  72. co2->PhysicsData.MaxAccel = 7.0;
  73. co2->PhysicsData.GroundAccel = 0.10;
  74. co2->PhysicsData.field_68 = -0.8550;
  75. }
  76. }
  77. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement