Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Sonic Boost**********************STILL ON WORK IN PROGRESS !!!!!!!!!!!
- if (co2 == NULL) return;
- if (GetCharacterObject(0) && GetCharacterID(0) == Characters_Sonic && MetalSonicFlag == 0)
- {
- if (SpeedShoesCount == 0)
- {
- if (CharObj1Ptrs[0]->Action != 4 && CharObj1Ptrs[0]->Action != 5 && CharObj1Ptrs[0]->Action != 6 && CharObj1Ptrs[0]->Action != 14 && CharObj1Ptrs[0]->Action != 23 && CharObj1Ptrs[0]->Action != 44)
- {
- if (ControllerPointers[0]->PressedButtons & Buttons_Y)
- {
- Y_was_pressed = true;
- }
- if (ControllerPointers[0]->PressedButtons & Buttons_Y && co2->Speed.x <= 2.5)
- {
- co2->Speed.x = 2.5;
- }
- if (Y_was_pressed && ControllerPointers[0]->HeldButtons & Buttons_Y)
- {
- WriteData((float**)0x55E6FA, &Boost_SuperTornado);
- if (!auraobj) auraobj = LoadObject(LoadObj_Data1, 2, Sonic_SuperAura_Load);
- if (!trailobj)
- {
- trailobj = LoadObject(LoadObj_Data1, 6, SonicDashTrail_Init);
- trailobj->Data1->CharIndex = 0;
- }
- if (co2->Speed.x <= 6)
- {
- co2->PhysicsData.MaxAccel = 7.0;
- co2->PhysicsData.GroundAccel = 0.30;
- co2->PhysicsData.field_68 = 0;
- }
- else
- {
- co2->PhysicsData.MaxAccel = 7.0;
- co2->PhysicsData.GroundAccel = 0.15;
- co2->PhysicsData.field_68 = 0;
- }
- }
- if (ControllerPointers[0]->HeldButtons & !Buttons_Y || co2->Speed.x < 2.5 )
- {
- Y_was_pressed = false;
- DeleteObject_(auraobj);
- DeleteObject_(trailobj);
- auraobj = nullptr;
- trailobj = nullptr;
- WriteData((float**)0x55E6FA, &SuperTornado);
- co2->PhysicsData.MaxAccel = 3.5;
- co2->PhysicsData.GroundAccel = 0.05;
- co2->PhysicsData.field_68 = -0.4275;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement