Jump to content

[REL] GTAIV Hunger Mod


Recommended Posts

CaptainDingo

It's finally done!

 

First off, big props go to Gangsta Killa whose beginner guide on coding inspired me to even do this in the first place (I'm kind of a fast learner, my first script mod just hours later lol.gif). Also, thanks to HazardX for turning on the lightbulb over my head and giving me a clue on where to gather the resources I needed to make this mod work the way I wanted.

 

Thanks also to Vetra for helping me with his big huge daunting string replacement thingy! Even though I just spelled his name wrong in my .txt file, he'll find it in his heart to forgive me! moto_whistle.gif

 

This mod requires HazardX's .NET Scripthook.

 

 

The next major version is complete!

[Download Now!]

Then Click Here to download the quick fix to the "raising MAXHUNGER above 1,000 starts you out hungry" problem. Sorry, I'm busy right now so I don't have time to re-zip the archive and announce it as a new version or anything.

 

 

CHANGES

  • The speed at which you get hungry and the money it costs to deliver food to your refrigerators is edited via the .ini file
  • Yes, that's right, dial 555-FOOD and all your safehouses will be stocked with food for a fee!
  • Take food out of the refrigerators (or the cabinets for the west safehouse) by using the ; key (currently not configurable, sorry!)
  • Carry one food item with you at a time; it acts like a mobile hunger/health reliever when you eat it by pressing the ' key (currently not configurable, maybe next version!)
  • Eat it in the car!
  • New status bar replaces the barrage of messages about your state of hunger! As it widens, your hunger grows!
  • Just as before, you can go to Cluckin' Bell, Burger Shot, any nut/hotdog/Sprunk stand and any Sprunk machine to relieve your hunger, and you'll slowly starve to death when your hunger reaches its maximum!
HOW TO CHANGE THE .INI

 

The things under [sETTINGS] are the two things that have designed to be changed. MAXHUNGER is how many units of hunger must be burned through before you begin starving. So if you want it to take LONGER to get hungry, INCREASE this value. The default is 1,000 and is personally my favorite.

 

ORDERFOODCOST is the dollar amount required to stock your refrigerators. The default is $200.

 

Please do NOT change anything under [DONOTTOUCH] or the script may fail.

 

KNOWN ISSUES

None, except one graphical flaw, not a functional flaw (it doesn't affect the way the mod works):

  • Eating food taken out of the refrigerator while you're crouched makes Niko do some... interesting levitating trick. biggrin.gif If any of you scripters out there know how to design an if condition to work around whether Niko is crouching or not, send me a PM so I can fix it in the next version!
Possible goals/ideas for future versions:

*Implement a water bottle Niko carries with him at all times so he can regain his ability to sprint by taking a gulp?

*Dial a number to have a delivery guy deliver takeout to your location? DONE icon14.gif (Sort of, it took on a different incarnation)

*Be able to eat food from the refrigerators of your safehouses? DONE icon14.gif

*Other detriments to being extremely hungry, like poorer accuracy?

*A hunger status bar in place of messages? DONE icon14.gif

*Maybe even some sort of a buff for being fed? turn.gif

Edited by CaptainDingo
Link to comment
https://gtaforums.com/topic/401633-rel-gtaiv-hunger-mod/
Share on other sites

Dvt-MedShot

 

Good mod! smile.gif Can be added something like training? Just like "GTA S-A"...

No that isn't possible yet. (and I have high hopes that it won't ever be)

 

Can you upload it now? user posted image

There are gym training models in \Grand Theft Auto IV\pc\data\maps\props\commercial\beauty.img:

 

user posted image

user posted image

user posted image

user posted image

user posted image

 

And there are files of barbers and jewelry...

Link to comment
https://gtaforums.com/topic/401633-rel-gtaiv-hunger-mod/#findComment-1059038682
Share on other sites

CaptainDingo

 

Can be done? smile.gif

Sorry man, I don't think I'll be doing anything like exercise or training with this mod (but who knows... maybe...).

 

However, I already have a new feature that's about 75% done for the next release and I wanted to tell you guys about it.

 

In the next version you'll be able to go to the refrigerator of any safehouse and bring along one food item with you that can be eaten anywhere, anytime. turn.gif Across all safehouses, you can only access up to ~10 or so food items in this way before they become empty. When the refrigerators run out, you dial a grocery delivery service (Unsure of the phone number yet) and all your safehouses will be restocked within the next minute or so for a fee. You'll pay a little extra for food in this manner, but you'll basically have one portable food source that you can take with you into a mission or wherever to heal with and to make sure you don't starve (because I'm aware many missions are long and you might not have an opportunity to stop and eat somewhere turn.gif).

 

Oh, and you can eat it in your car if you want!

 

So look forward to that! colgate.gif

Edited by CaptainDingo
Link to comment
https://gtaforums.com/topic/401633-rel-gtaiv-hunger-mod/#findComment-1059039944
Share on other sites

CaptainDingo

 

Great for the upcoming updates, because Niko always get starving just less than 10 minutes IRL

I know, the speed at which Niko goes hungry is maybe a bit extreme right now when trying to keep story gameplay in mind. I personally play the game in short bursts on a complete save but I'm going to start a new game and play through the story again and see if I should make it take a bit longer for him to go hungry for all of you still doing missions or who just like playing new games.

 

However, the good news is the new feature is 100% implemented and works very well! After I replay some of the story and balance the numbers a bit I will upload the new version.

 

To be exact, the current time it takes to go from full to starving is 16.6 minutes. I may round that off to 20 minutes even, and with the new addition of one portable food source, you should notice greater eating options and less chance of starving on a long mission. And it's even better since you can eat it in the car, so you don't have to disturb what you're currently doing. turn.gif

 

 

Can you add the feature to get fat?

 

Niko already looks a little soggy around the edges though, doesn't he? lol.gif

 

Unfortunately I can't do this until we can alter models, and ultimately I don't know if I would add this feature even if I could, since it's more of a vanity thing and would require a ton of work.

Edited by CaptainDingo
Link to comment
https://gtaforums.com/topic/401633-rel-gtaiv-hunger-mod/#findComment-1059041271
Share on other sites

CaptainDingo

Next version might not be for a little bit. sad.gif I'm currently undergoing some serious coaching to figure out writing to my .ini (which I need to do so the script can remember how much food you have in your safehouses).

 

Writing one little integer to a file may turn out to be more work than the entire mod itself. cryani.gif

Link to comment
https://gtaforums.com/topic/401633-rel-gtaiv-hunger-mod/#findComment-1059042211
Share on other sites

CaptainDingo
Ow CaptainDingo, does the bar can be toggled appear/disappear?

 

Since the bar is a bit annoying when we want to use the phone smile.gif

Sorry, I'll try to let you do that in the next version. :x

 

But, it doesn't obscure the phone (for me) when you're actually dialing a number, since the phone raises above the bar.

Link to comment
https://gtaforums.com/topic/401633-rel-gtaiv-hunger-mod/#findComment-1059048738
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

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