Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my notes:
- code:
- if ( byte_B9B8F0 )
- {
- v7 = 0;
- if ( CStats::GetStatValue(STATS_FAT) > 0.0 )
- {
- CStats::DecrementStat(STATS_FAT, 25.0);
- CStats::DisplayScriptStatUpdateMessage(0, STATS_FAT, 25.0);
- v7 = 1;
- if ( !byte_B9B8F1 )
- byte_B9B8F1 = LOBYTE(v1->m_wHoursWithoutFood) + 24;
- }
- if ( CStats::GetStatValue(STATS_MUSCLE) <= 0.0
- || (signed __int16)v1->m_wHoursWithoutFood <= (unsigned __int8)byte_B9B8F1 && byte_B9B8F1 )
- {
- if ( !v7 )
- v1->m_pPed->__parent.m_fHealth = v1->m_pPed->__parent.m_fHealth - 2.0;
- }
- else
- {
- CStats::DecrementStat(STATS_MUSCLE, 25.0);
- CStats::DisplayScriptStatUpdateMessage(0, STATS_MUSCLE, 25.0);
- }
- }
- else
- {
- v6 = CText::Get(&TheText, "NOTEAT");
- CHud::SetHelpMessage(v6, 1, 0, 1);
- byte_B9B8F0 = 1;
- }
- if
- no muscle
- or <25h and you have fat when beginning to starve
- then
- if fat = 0, then lose health
- else
- muscle
- B9B8F1 is set to 0 on hour change after getting a sprunk
- no-fat timer decreases:
- sprunk: 3
- hotdog: 5
- Cheat table:
- <?xml version="1.0" encoding="utf-8"?>
- <CheatTable>
- <CheatEntries>
- <CheatEntry>
- <ID>188</ID>
- <Description>"Fat"</Description>
- <LastState Value="0" RealAddress="00B793D4"/>
- <VariableType>Float</VariableType>
- <Address>00B793D4</Address>
- </CheatEntry>
- <CheatEntry>
- <ID>189</ID>
- <Description>"Muscle"</Description>
- <LastState Value="0" RealAddress="00B793DC"/>
- <VariableType>Float</VariableType>
- <Address>00B793DC</Address>
- </CheatEntry>
- <CheatEntry>
- <ID>190</ID>
- <Description>"h w/o food needs to surpass this value to lose muscle"</Description>
- <LastState Value="73" RealAddress="00B9B8F1"/>
- <VariableType>Byte</VariableType>
- <Address>B9B8F1</Address>
- </CheatEntry>
- <CheatEntry>
- <ID>191</ID>
- <Description>"m_wHoursWithoutFood"</Description>
- <LastState Value="12" RealAddress="00B7CEDC"/>
- <VariableType>4 Bytes</VariableType>
- <Address>B7CEDC</Address>
- </CheatEntry>
- </CheatEntries>
- </CheatTable>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement