Jump to content
The Dark Mod Forums

[Resolved in TDM 2.06] Possible to make food give you more health?


Wallace

Recommended Posts

I could swear it heals nothing. It would be easy to test: add a testmap with a bunch of eatables and one AI. Get hurt and eat the food to see if the health bar moves at all.

Clipper

-The mapper's best friend.

Link to comment
Share on other sites

I recall a spawnarg sets the healing level. So if you wanted more you could tweak that spawnarg in the general def file and it'll apply to all maps. DIY tip.

What do you see when you turn out the light? I can't tell you but I know that it's mine.

Link to comment
Share on other sites

Any chance the next update could tweak food to be more useful? Not like making each apple a health potion, but at least a notable increase in health. I've eaten entire kitchens and saw no health increase :(

 

Stumbling across a kitchen full of food would offer a nice place to take a breather and get a little healing before the next journey.

 

 

It heals 1 hp, so you'd have to eat a lot to notice.

 

What is the default amount of full health?

Edited by Wallace
Link to comment
Share on other sites

You will have to extract the file "tdm_defs01.pk4". In there you will find all the def-files, in which item properties (and a lot more) are defined. In the def-folder you will need the file "tdm_moveable_food.def", where you can find all food in the game. I just checked, the healing amount really is 1. The max health of the player is 100.

Edited by Destined
Link to comment
Share on other sites

Proof:

 

 

I let AI kick my ass before killing them.

 

 

 

egYpQCs.jpg

25 delicious "atdm:moveable_food_apple", which the editor claims: "An apple a day keeps a doctor away. Two apples a day keep two doctors away. See under Moveables/Junk for apple core. This food heals 1 HP when eaten."

 

8G89PwJ.jpg

After eating all 25 apples, there is absolutely no change in the health bar.

 

End conclusion: food healing does not work as advertized. Shall I file a bug tracker entry?

 

It would be fair if the food healed 1 hp if it is promised to do so. Eating a full pantry would easily give back around 25% health, which would be significant in gameplay terms.

  • Like 1

Clipper

-The mapper's best friend.

Link to comment
Share on other sites

Awesome job Sotha ;)

 

Thanks, but I've merely just confirmed the issue.

 

Now we need an awesome coder/scripter/def wizard to actually fix it... That's where the real work lies. ;)

Clipper

-The mapper's best friend.

Link to comment
Share on other sites

The current implementation was definitelty broken. I've fixed it for 2.04, so that the "heal_amount" spawnarg does what you'd expect.

 

Is there a wiki about food and healing? I haven't found one with a quick search. Not that it needs one, but if there is one I need to update it. The way this was implemented was that you could (in theory) have used any and all of the spawnargs that are used by healing potions to make food heal over time, for example. But that didn't and couldn't ever have worked, so I've changed it to a simple one-shot heal, of whatever amount is specified in ther "heal_amount" spawnarg. It defaults to 1.

  • Like 2
Link to comment
Share on other sites

Great job steve, do we have to wait until the next TDM update or can I just re-run the tdm_update .exe?

 

Gotta wait for the update to get this along with other candy.

 

In the mean time, mappers should start stocking their WIP maps with pantries full of delicious healing items!

Clipper

-The mapper's best friend.

Link to comment
Share on other sites

It won't work in existing maps until 2.04. But if any mappers want to release a map with working food in the meantime, I can tell them how to fix it. It didn't need any game code changes, just changes to a def file and a script, so mappers can package the fix with their map in the meantime if they wish.

Link to comment
Share on other sites

It's really easy logic to implement the problem is understanding the system first to know how to put that functionality in. I could fix this so easily if I just understood the system better but I'm working on it. I just need to figure out the scripting system so I can assign health values to the food items and then when the item is consumed increment the player entity's health by the number assigned to the food. I'll start work on this now.

Edited by c0mputer-fr0d
Link to comment
Share on other sites

But my friend, SteveL just fixed the issue. No need to worry about it no more.

 

You only eat food in a mission for a moral boost anyway (you imagine it tastes good), I never expected the vitamins to work their healing on my wounds inside the mission time so I never missed the HP bonus anyway. :D

Edited by RPGista
Link to comment
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.

  • Recent Status Updates

    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 0 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
    • nbohr1more

      Please vote in the 15th Anniversary Contest Theme Poll
       
      · 0 replies
×
×
  • Create New...