I was just looking through my script and was thinking how I could amend it. I had forgotten what a good job I had done ! ;D
I actually use it in conjunction with three other scripts - buildcamp.sqs, buildfire.sqs and breakcamp.sqs.
The first is a player addAction that makes the player crouch, plays a "tent building" sound and creates a small tent object. The tent itself has buildfire.sqs as an addAction.
On activation buildfire.sqs puts the player into a crouch, plays a "campfire building" sound and creates a campfire object. If you light the fire then your hunger and fatigue levels start to go down back to zero after around a minute. I even separated the hunger and fatigue parts so that the lit fire lowers your hunger and the tent lowers your fatigue ! :toocool:
And of course when you're finished you simply do the addAction "breakcamp.sqs" to remove the tent and give you your buildcamp.sqs script back.
You may notice what stays behind - the campfire. The idea was that if you were playing player vs player you might be able to follow your enemy by looking for the smoke from his burning campfire or finding his burnt out ashes - neat !
I have attached the first script (exhaustion.sqs) but I can't vouch for it. As I said - it didn't seem to work properly and we kept getting guys flaking out in the middle of a firefight. Kind of funny at first but a real pain the second or third time. OTOH - maybe three days without sleep was SUPPOSED to do that to us !
Please feel free to use or abuse as you see fit. I'll put my mind to fixing it up and post the whole lot in the Scripts forum next week.
Cheers !
Roni
PS - Don't forget to give yourself a fireplace to roast your marshmallows on and keep your hunger levels down !