Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. // Shadow's Physics.cpp : Defines the exported functions for the DLL application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "SADXModLoader.h"
  6.  
  7. extern "C"
  8. {
  9. __declspec(dllexport) ModInfo SADXModInfo = { ModLoaderVer };
  10. void __declspec(dllexport) OnFrame()
  11. {
  12. ((AnimData_t*)0x3C56210)[18].TransitionSpeed = 0.1;
  13. ((AnimData_t*)0x3C56210)[64].TransitionSpeed = 0.25;
  14. if (GetCharacterObject(0) && CharObj1Ptrs[0]->Action == 12)
  15. {
  16. CharObj2 *co2 = GetCharObj2(0);
  17. if (co2->Speed.x >= 5)
  18. co2->AnimationThing.Index = 64;
  19. WriteData((int*)0x00494FDC, 64);
  20. WriteData((int*)0x00497CC0, 64);
  21. else if (co2->Speed.x >= 4)
  22. co2->AnimationThing.Index = 18;
  23. WriteData((int*)0x00494FDC, 18);
  24. WriteData((int*)0x00497CC0, 18);
  25. }
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement