The Blob on 16/10/2005 at 01:34
Can I change the propery of food in Thief3 to make it edible and then maybe even generate like 1 health point?
New Horizon on 16/10/2005 at 02:52
Basically, you just want to make the entire "food" archetype a child of "Inventory Objects" instead of Set Dressing.
Add Inventory properties to "food" such as ...max inventory stack, stackable, Item Affect...which is going to be health of course. :)
I can't remember exactly what ones need to be added but it's really quite easy.
Then you will want to copy the healthpotion script and name it something like, healthfood. Change the amount of health it gives the player...maybe an eigth and also change the sound to the sound of eating. I just grabbed that sound out of Thief 2...you'll also need to copy the health potion schema file and alter it to allow the eating sound to play.
I find the old sounds function well if you convert them to the following.
16 bit mono
44,000 kbps
They will need to be Windows PCM or they won't play at all.
rujuro on 16/10/2005 at 16:36
That's weird, I brought a sound directly from T2 without altering it, and it played fine in game. Do some work and some not?
New Horizon on 16/10/2005 at 18:46
Quote Posted by rujuro
That's weird, I brought a sound directly from T2 without altering it, and it played fine in game. Do some work and some not?
Yeah, I think some of them are already in windows pcm format and will work.