Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Summer Special
      2. The Diamond Casino Heist
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Frontier Pursuits
      2. Find Lobbies & Outlaws
      3. Help & Support
    3. Crews

    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. Grand Theft Auto Series

    2. GTA VI

      1. St. Andrews Cathedral
    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
    6. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
    7. GTA III

      1. Guides & Strategies
      2. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    3. Gangs

    1. Announcements

    2. Support

    3. Suggestions

HalfOfAKebab

Decreasing the Max Health statistic

Recommended Posts

HalfOfAKebab

I was tinkering around in the data files for fun, and in ar_stats.dat I found these three lines:

# when you die we want to decrease player's max health57    STAT_TIMELIMIT_DEATH_HEALTH                558    STAT_TIMELIMIT_ADD_TO_HEALTH            1000

What's up with this? I've never heard of this happening, so I did a little bit of research. The only thing I could find about CJ's maximum health being affected by death is on this page, which claims that dying will increase CJ's health by one or two points. This goes against what the data snippet above suggests.

 

This statistics guide tells us that whenever the maximum health decreases, it decreases by a single point and not five like the snippet suggests. However, it doesn't mention how the maximum health might decrease.

 

What are your thoughts? Have you ever noticed an effect on CJ's maximum health whenever he has died?

Edited by HalfOfAKebab
  • Like 1

Share this post


Link to post
Share on other sites
Super Grunt 281

http://strategywiki.org/wiki/Grand_Theft_Auto:_San_Andreas/Stats is right, the max health increase if you die a lot of times even if the game show the end of the bar red (with the - too) .

 

And I tried, using the suicide cheat, the game tell me the max health decrease but I still survive one rocket in the face (I used multiple cheats and hostile peds was one of them) .

 

EDIT : http://i.imgur.com/lE5ved2.jpg

(it's red but I have more health look at the top right, that space under the fist)

Edited by Super Grunt 281

Share this post


Link to post
Share on other sites
HalfOfAKebab

http://strategywiki.org/wiki/Grand_Theft_Auto:_San_Andreas/Stats is right, the max health increase if you die a lot of times even if the game show the end of the bar red (with the - too) .

 

And I tried, using the suicide cheat, the game tell me the max health decrease but I still survive one rocket in the face (I used multiple cheats and hostile peds was one of them) .

 

EDIT : http://i.imgur.com/lE5ved2.jpg

(it's red but I have more health look at the top right, that space under the fist)

So you're saying that dying says it decreases it, but doesn't actually?

Share this post


Link to post
Share on other sites
Super Grunt 281

So you're saying that dying says it decreases it, but doesn't actually?

 

Yes, the 'max health - ' is a lie, someone should fix that.

Share this post


Link to post
Share on other sites
GTAGuy1995

I was the one who edited the strategy wiki page because there was a lot of wrong information about the health system in SA.

 

I've made these discoveries 1-2 years ago when I used GTA 3 HUD mod and I found out exactly how the health system works in SA. I wanted to use that because I dislike health bars in general and I prefer health shown as a number because you know the exact amount of health. The first time I played SA I didn't use any mods but I did use the mod on my second playthrough of the game (which sadly I didn't finish because the mod caused a lot of problems and it was taken directly from SA LC mod) and on my previous 100% save game.

 

In the original versions of SA, you started the game with 100 health (tiny health bar, same size as armor bar, as a stat this means 568 or 569 points, see below for more information about this) and you could increase the maximum health gradually by exercising at gym, cycling, running, swimming and so on. I forgot when it exactly increases but I believe it happens once at every 9 in-game hours. When it's increased first time, the health bar moves a bit lower to make space for when it's fully maxed. It increases by 3 and 4 points each time, for example at beginning of the game when you increase health first time, your health increases from 100 to 103, then to 107, then to 110, then to 114 and so on. You can also increase the health by completing Paramedic side mission, which is immediately increased to 176. So if you have 176 health, then you have reached the maximum health limit and can't increase any further.

 

In all these years, most people thought that the maximum health in SA is 150 but in reality it is 176, that is when you have the long health bar (as a stat, this means 1000 points). On the mobile version, the maximum health possible is 220 (as a stat, this means 1250 points). The reason why the maximum health possible has been further increased on mobile version is to compensate the controls because on mobile it is a lot harder to play. However the starting health was also changed, it is now 125 instead of 100.

 

Now about health increasing instead of decreasing when dying, yeah I found this randomly one time. When I was playing, I had 117 health and I was playing for fun and got wasted few times. After coming out of the hospital, I noticed Max Health - in the left upper corner and I noticed I still had 117 health. When I entered the ambulance, I had 119 health. So I realized that you actually increase health even if you die but only 1 or 2 points at every couple of deaths. Note that the 1-2 points I'm referring are at the exact health shown in game. The 5 points you see in the code above refers to the health in the code, because the health in SA works differently. I'm not sure how to explain exactly but you can look into this topic for more info related to the health in SA: http://gtaforums.com/topic/398615-ambulance-and-max-health/

 

In Super Grunt 281's screenshot, CJ currently has 101 or 102 max health. To find out how much health you have and don't want to use mods, you can also upload your save game at: http://gtasnp.com/

The site displays information about your save game. Unfortunately the current health is always shown as full (example 100 / 100) because SA doesn't record the current health in the save game. Only GTA 3 and VC record the exact amount of health in the save game, even though in VC when you save the game the health gets restored to full, the game still remembers the health you had when you saved the game.

 

Hope this information helps. :D

  • Like 3

Share this post


Link to post
Share on other sites
HalfOfAKebab

In the original versions of SA, you started the game with 100 health (tiny health bar, same size as armor bar, as a stat this means 568 or 569 points, see below for more information about this) [...]

I don't understand this part. Why is there a variation?

 

In Super Grunt 281's screenshot, CJ currently has 101 or 102 max health.

I also don't understand this. I can tell it's at least 101 because the weapon slot icon is shifted up, but how do you know it's 101 or 102? Could it be 103?

 

Very interesting post, btw!

Edited by HalfOfAKebab

Share this post


Link to post
Share on other sites
GTAGuy1995

 

I don't understand this part. Why is there a variation?

I don't understand that either because some people said it's either 568 or 569. When I used save game editor for SA, the lowest health stat can be 569 which equals to having 100 health. Assuming 569 is correct, 568 might have been a typo, I'm not sure here.

 

 

I also don't understand this. I can tell it's at least 101 because the weapon slot icon is shifted up, but how do you know it's 101 or 102? Could it be 103?

I don't know but if I were to guess, it could be 101 because first time when health increases, it gives the lower value, in this case it's 1. In the other case where health increases normally through exercising, running, etc it's 3. After that it gives the higher value and then repeats, like in the example I gave in the previous post. I don't think health could be 103 in that screenshot because if you look closely, it looks almost the same size as the one you have at beginning of the game where you have only 100 health. It's a small difference and it's hard to tell the exact amount. That's why in video games I prefer more when health is displayed as a number rather than a bar.

 

 

Very interesting post, btw!

Thanks!

  • Like 1

Share this post


Link to post
Share on other sites
Super Grunt 281

Too bad the minimum health is 100, that would be cool to have something like 50.

 

I prefer health shown as a number because you know the exact amount of health.

 

It's up to the people who make the game, I know one game with exactly a gun who inflict 2.5 per shot, the game only show a 3 when the remaining half is gone but it's 2 otherwise.

 

It's the same with health, always full numbers.

Share this post


Link to post
Share on other sites
GTAGuy1995

 

It's up to the people who make the game, I know one game with exactly a gun who inflict 2.5 per shot, the game only show a 3 when the remaining half is gone but it's 2 otherwise.

I know that it's up to the people who make the game to decide what health system to use but I would have preferred numbers because it's easier to tell how much health you have and that way you know the exact amount of health. With bar you can't tell the exact amount of health, which can make a small difference in playing.

 

Just so you know that GTA 3 and VC (and also Advance) used numbers display for health and armor but after that, all the GTA games starting with SA use bars display for health and armor.

Edited by GTAGuy1995

Share this post


Link to post
Share on other sites
Super Grunt 281

GTA III and Vice City show full numbers too but according to the weapon.dat any weapon do the same (sometimes beyond 100 but this never one-shot the player, I think the .357 remove 45hp) .

 

The good point with numbers is they show you when your health increase with a prostitute.

Share this post


Link to post
Share on other sites
GTAGuy1995

Sorry for not replying earlier, been a bit busy as of lately.

 

The reason why the weapons don't do full damage is because the player always takes 3 times less damage from any of the attacks. For the example mentioned above, this is true. The .357 does full 135 damage to the peds and kills them in one hit (peds have 100 health just like the player but they take full damage, players take only 1/3 damage), while to the player it only does 45 damage which is exactly a third. The same goes to the explosions, instead of the full 250 damage per explosion, the player only receives 83.3 damage. And so on...

 

And I forgot to point one thing above about peds killing CJ in one hit with rocket launcher: there is something I don't understand here. In all cases when player is hit by an explosion, assuming the player has full 100 health, he survives with 17 health but in SA there is a chance where a rocket to the face will instantly kill the player, even if he had more than 83 health to survive that explosion. It happened to me a couple of times in DYOM where I gave some enemies the Rocket Launcher and when they hit me, I got instantly killed at 100 health. It doesn't always happen though.

 

As for health increase with a prostitute...well yeah this is true for GTA 3 and Vice City but in SA the health doesn't actually increase above your maximum limit. In GTA 3 and VC, it was a temporary 25 health boost over your maximum health but in SA prostitutes don't increase health above your maximum. I tried that some time ago with the GTA 3 HUD mod, I still had 176 health. I also remember trying with a save game that had health maxed halfway but it didn't increase either.

Edited by GTAGuy1995

Share this post


Link to post
Share on other sites
HalfOfAKebab

Is it possible for the maximum health to be reduced below 100 by dying a lot, or are 176 and 100 the absolute limits?

Edited by HalfOfAKebab

Share this post


Link to post
Share on other sites
GTAGuy1995

I don't think max health can be lower than 100 because like I said, frequently dying increases the max health instead of decreasing it. I don't know if is actually possible to bring the max health even lower than 100, we will have to ask someone who knows modding. But I know that 176 is the normal maximum health limit in the original versions of SA (220 in the newer Mobile version). By modding, the maximum health possible is 255 I think. Look on the topic I posted earlier, there is a post that shows a screenshot where someone modded game to increase maximum health to 255, which is maximum possible by modding the game.

Edited by GTAGuy1995
  • Like 1

Share this post


Link to post
Share on other sites
crashoverride93

Maybe find where the max health is stored then find out what writes to it when you start a new game then you can modify that line.

 

After that all you have to do is write a Cleo script to rewrite that address.

 

You may want to also do this same procedure to find out what writes to it when you die and correct it by adding a negative value.

Edited by crashoverride93

Share this post


Link to post
Share on other sites
boludoz
Where do you want to get with something so simple, the only thing I see interesting is that doing scripts with the 0A1F: set_stat 24 max_to # manage to change the health bar to the minimum, and flickering without affecting my health,

This error of lowering the maximum health is done with 0A1F: set_stat 24 max_to -100

 

with '-'

Edited by boludoz

Share this post


Link to post
Share on other sites
crashoverride93

 

Where do you want to get with something so simple, the only thing I see interesting is that doing scripts with the 0A1F: set_stat 24 max_to # manage to change the health bar to the minimum, and flickering without affecting my health,

This error of lowering the maximum health is done with 0A1F: set_stat 24 max_to -100

 

with '-'

I can't make heads or tails of what you are asking here try and rephrase the question.

  • Like 1

Share this post


Link to post
Share on other sites
boludoz

 

Where do you want to get with something so simple, the only thing I see interesting is that doing scripts with the 0A1F: set_stat 24 max_to # manage to change the health bar to the minimum, and flickering without affecting my health,

This error of lowering the maximum health is done with 0A1F: set_stat 24 max_to -100

 

with '-'

I can't make heads or tails of what you are asking here try and rephrase the question.

 

I try to modify these stats, but one thing is the maximum health, another thing is the amount of health that has the ped. Is that what you mean?

Share this post


Link to post
Share on other sites
crashoverride93

 

 

Where do you want to get with something so simple, the only thing I see interesting is that doing scripts with the 0A1F: set_stat 24 max_to # manage to change the health bar to the minimum, and flickering without affecting my health,

This error of lowering the maximum health is done with 0A1F: set_stat 24 max_to -100

 

with '-'

I can't make heads or tails of what you are asking here try and rephrase the question.

 

I try to modify these stats, but one thing is the maximum health, another thing is the amount of health that has the ped. Is that what you mean?

No I mean writing to the address that writes to it in memory with write memory opcode.

Share this post


Link to post
Share on other sites
boludoz
example

0629: change_integer_stat 24 to 5 //SET MAX

0223: set_actor $PLAYER_ACTOR health_to 5 //SET REAL


------------------------------------

MAX STAT : 1454, MORE CRASH THE GAME

Edited by boludoz

Share this post


Link to post
Share on other sites
boludoz

 

 

 

Where do you want to get with something so simple, the only thing I see interesting is that doing scripts with the 0A1F: set_stat 24 max_to # manage to change the health bar to the minimum, and flickering without affecting my health,

This error of lowering the maximum health is done with 0A1F: set_stat 24 max_to -100

 

with '-'

I can't make heads or tails of what you are asking here try and rephrase the question.

 

I try to modify these stats, but one thing is the maximum health, another thing is the amount of health that has the ped. Is that what you mean?

No I mean writing to the address that writes to it in memory with write memory opcode.

 

I do not recommend editing the game memory with CLEO or ASI, it is incompatible between platforms and generates many problems.

Share this post


Link to post
Share on other sites
crashoverride93

You would have to find the new memory addresses for other platforms.

 

Cheat engine is used on windows but

 

You would need similar program to find the addresses on another platform.

Share this post


Link to post
Share on other sites
boludoz

You would have to find the new memory addresses for other platforms.

 

Cheat engine is used on windows but

 

You would need similar program to find the addresses on another platform.

Ja, expect me to open my PS2, and for sure it is much easier than editing the MAIN.SCM, sometimes it is easier to accept and remain silent. I completely refuse to modify the memory of the game and sacrifice compatibility, I think the maximum I use is a cleo. Why invent opcodes where there are none and sacrifice compatibility even between the same versions of PC and may without any extra content can even edit the memory. Do you need examples of this?

Edited by boludoz

Share this post


Link to post
Share on other sites
crashoverride93

Cleo won't work on ps2 anyway Cleo is for pc and mobile versions

 

For android there is a cheat engine like program you can use to find the memory addresses though I forget what its called.

 

You can use write memory opcode in Cleo.

Edited by crashoverride93

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • 2 Users Currently Viewing
    0 members, 0 Anonymous, 2 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.