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

    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 1 reply
    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 7 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
×
×
  • Create New...