Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Shadow's Physics.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;
- if (GetCharacterObject(0) && CharObj1Ptrs[0]->Action == 12)
- {
- CharObj2 *co2 = GetCharObj2(0);
- if (co2->Speed.x >= 5)
- co2->AnimationThing.Index = 64;
- WriteData((int*)0x00494FDC, 64);
- WriteData((int*)0x00497CC0, 64);
- else if (co2->Speed.x >= 4)
- co2->AnimationThing.Index = 18;
- WriteData((int*)0x00494FDC, 18);
- WriteData((int*)0x00497CC0, 18);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement