Advertisement
Guest User

Untitled

a guest
Jan 30th, 2018
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 KB | None | 0 0
  1. my notes:
  2. code:
  3. if ( byte_B9B8F0 )
  4. {
  5. v7 = 0;
  6. if ( CStats::GetStatValue(STATS_FAT) > 0.0 )
  7. {
  8. CStats::DecrementStat(STATS_FAT, 25.0);
  9. CStats::DisplayScriptStatUpdateMessage(0, STATS_FAT, 25.0);
  10. v7 = 1;
  11. if ( !byte_B9B8F1 )
  12. byte_B9B8F1 = LOBYTE(v1->m_wHoursWithoutFood) + 24;
  13. }
  14. if ( CStats::GetStatValue(STATS_MUSCLE) <= 0.0
  15. || (signed __int16)v1->m_wHoursWithoutFood <= (unsigned __int8)byte_B9B8F1 && byte_B9B8F1 )
  16. {
  17. if ( !v7 )
  18. v1->m_pPed->__parent.m_fHealth = v1->m_pPed->__parent.m_fHealth - 2.0;
  19. }
  20. else
  21. {
  22. CStats::DecrementStat(STATS_MUSCLE, 25.0);
  23. CStats::DisplayScriptStatUpdateMessage(0, STATS_MUSCLE, 25.0);
  24. }
  25. }
  26. else
  27. {
  28. v6 = CText::Get(&TheText, "NOTEAT");
  29. CHud::SetHelpMessage(v6, 1, 0, 1);
  30. byte_B9B8F0 = 1;
  31. }
  32.  
  33. if
  34. no muscle
  35. or <25h and you have fat when beginning to starve
  36. then
  37. if fat = 0, then lose health
  38. else
  39. muscle
  40.  
  41. B9B8F1 is set to 0 on hour change after getting a sprunk
  42.  
  43. no-fat timer decreases:
  44. sprunk: 3
  45. hotdog: 5
  46.  
  47.  
  48. Cheat table:
  49. <?xml version="1.0" encoding="utf-8"?>
  50. <CheatTable>
  51. <CheatEntries>
  52. <CheatEntry>
  53. <ID>188</ID>
  54. <Description>"Fat"</Description>
  55. <LastState Value="0" RealAddress="00B793D4"/>
  56. <VariableType>Float</VariableType>
  57. <Address>00B793D4</Address>
  58. </CheatEntry>
  59. <CheatEntry>
  60. <ID>189</ID>
  61. <Description>"Muscle"</Description>
  62. <LastState Value="0" RealAddress="00B793DC"/>
  63. <VariableType>Float</VariableType>
  64. <Address>00B793DC</Address>
  65. </CheatEntry>
  66. <CheatEntry>
  67. <ID>190</ID>
  68. <Description>"h w/o food needs to surpass this value to lose muscle"</Description>
  69. <LastState Value="73" RealAddress="00B9B8F1"/>
  70. <VariableType>Byte</VariableType>
  71. <Address>B9B8F1</Address>
  72. </CheatEntry>
  73. <CheatEntry>
  74. <ID>191</ID>
  75. <Description>"m_wHoursWithoutFood"</Description>
  76. <LastState Value="12" RealAddress="00B7CEDC"/>
  77. <VariableType>4 Bytes</VariableType>
  78. <Address>B7CEDC</Address>
  79. </CheatEntry>
  80. </CheatEntries>
  81. </CheatTable>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement