Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Basics.cpp : Defines the exported functions for the DLL application.
- //
- #include "stdafx.h"
- #include "SADXModLoader.h"
- extern "C"
- {
- __declspec(dllexport) ModInfo SADXModInfo = { ModLoaderVer };
- void __declspec(dllexport) OnFrame()
- {
- ((AnimData_t*)0x3C56210)[18].TransitionSpeed = 0.1;
- ((AnimData_t*)0x3C56210)[64].TransitionSpeed = 0.25;
- ((AnimData_t*)0x3C56210)[11].AnimationSpeed = 0.7;
- ((AnimData_t*)0x3C56210)[12].AnimationSpeed = 0.415;
- ((AnimData_t*)0x3C56210)[13].AnimationSpeed = 0.415;
- if (GetCharacterObject(0) && CharObj1Ptrs[0]->Action == 12)
- {
- CharObj2 *co2 = GetCharObj2(0);
- if (co2->Speed.x >= 5)
- {
- co2->AnimationThing.Index = 64;
- WriteData((short*)0x00494FDC, (short)64);
- WriteData((short*)0x00497CC0, (short)64);
- }
- else if (co2->Speed.x <= 4 && co2->Speed.x >= 2)
- {
- co2->AnimationThing.Index = 18;
- WriteData((short*)0x00494FDC, (short)18);
- WriteData((short*)0x00497CC0, (short)18);
- }
- if (GameState == 3 || GameState == 4 || GameState == 7 || GameState == 21) WriteData((short*)0x00494FDC, (short)18);
- if (co2->Speed.x < 4.75) co2->PhysicsData.Run2 = 5.25;
- else if (co2->Speed.x < 26) co2->PhysicsData.Run2 = co2->Speed.x + 0.5f;
- else co2->PhysicsData.Run2 = 26;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement