Advertisement
Guest User

Untitled

a guest
Apr 28th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. // Basics.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. ((AnimData_t*)0x3C56210)[11].AnimationSpeed = 0.7;
  15. ((AnimData_t*)0x3C56210)[12].AnimationSpeed = 0.415;
  16. ((AnimData_t*)0x3C56210)[13].AnimationSpeed = 0.415;
  17. if (GetCharacterObject(0) && CharObj1Ptrs[0]->Action == 12)
  18. {
  19. CharObj2 *co2 = GetCharObj2(0);
  20. if (co2->Speed.x >= 5)
  21. {
  22. co2->AnimationThing.Index = 64;
  23. WriteData((short*)0x00494FDC, (short)64);
  24. WriteData((short*)0x00497CC0, (short)64);
  25. }
  26. else if (co2->Speed.x <= 4 && co2->Speed.x >= 2)
  27. {
  28. co2->AnimationThing.Index = 18;
  29. WriteData((short*)0x00494FDC, (short)18);
  30. WriteData((short*)0x00497CC0, (short)18);
  31. }
  32. if (GameState == 3 || GameState == 4 || GameState == 7 || GameState == 21) WriteData((short*)0x00494FDC, (short)18);
  33. if (co2->Speed.x < 4.75) co2->PhysicsData.Run2 = 5.25;
  34. else if (co2->Speed.x < 26) co2->PhysicsData.Run2 = co2->Speed.x + 0.5f;
  35. else co2->PhysicsData.Run2 = 26;
  36. }
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement