Jump to content
  • 0

I'M SO THIRSTY


semipr0

Question

So its time to go chop down another ten acres of forest cause I need to build a couple of walls for my base. I'd better eat and drink before I go cause I don't want to start starving while I work.

 

Oh wait I've cut down 80 pieces of firewood, look I'm nearly starving again.

 

Oh crap I need to stop crafting lumber because I'm nearly starving again.

 

Oh god I had to afk for 57 minutes to helping a player on the server with a lost vehicle bug....and I've died of dehydration because I forgot to log out.

 

Listen, this shit needs some tweaks and I know its DayZ code not Epoch code.

 

Anyways I tried a fix yesterday and it doesn't work. So I need some help. I run a real time Epoch server, there are full day and night cycles. I'd prefer something closer to about a three hour decay state on hunger and thirst. The changes as I added them to player_spawn_2.sqf follow.

//Hunger
	_hunger = +((((r_player_bloodTotal - r_player_blood) / r_player_bloodTotal) * 5) + _speed + dayz_myLoad) * 3;
	if (time - dayz_panicCooldown < 120) then {
		_hunger = _hunger * 2;
	};
	dayz_hunger = dayz_hunger + (_hunger / 180); //60 is default

	//Thirst
	_thirst = 2;
	if (!_inVehicle) then {
		_thirst = (_speed + 4) * 3;
	};
	dayz_thirst = dayz_thirst + (_thirst / 180) * (dayz_temperatur / dayz_temperaturnormal);	//TeeChange Temperatur effects added Max Effects: -25% and + 16.6% waterloss //60 is default

Now the defaults there as stated are 60 which I am assuming means minutes but changing to 180 did not affect any visible change to decay rates for hunger and thirst. And it caused a minor on log bug where the hunger indicator was black for everyone that connected.

 

I'm not really trying to make things easier I'm just trying to make the hunger and thirst rates more applicable to a 24 hour day and night cycle, the current decay rates seem focused heavily on either short term play sessions or servers running 4 hour day and night cycles. But in real time the decay rates do not make sense.

 

Anyways I make the above changes and added the player_spawn_2.sqf to my mission fixes folder and executed the script from init and it didn't seem to change anything.

 

What am I doing wrong? Cause it seems pretty cut and dried to me unless that divisor is counting seconds instead of minutes but I could be completely off track too.

 

I searched around Google looking for examples on this and came up mostly with threads of people complaining about having to eat and drink constantly. I figured it would be a relatively easy tweak but....not so much it appears.

 

Any help would be appreciated. Thank you.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Whether or not your server is running a full cycle of day and night like mine, I highly doubt people will play on it for the full length of time to only need to eat and drink for lets say breakfast, lunch, dinner and snacks in between (if that's what your trying to achive?) Which I can see your point if you had a player base that was on there almost all day.

 

As you say it focuses heavily on either short term play sessions or servers running 4 hour day and night cycles. This is the majority of the player base in a nuttshell. I'd only be inclined to change those kind of times if you know your player base is or will be on for longer then 4hours other wise this is (in my opinion a waste of time) no offence. I'd leave it how it is because it leaves people to survive more and your idea would kind of make it abit easier on them.

 

 

But anyway to help with what your trying to do wouldn't you have to adjust something in the weight system too, as this courses you to need more food and drink etc the more your holding? or the realism of crafting the wood etc (working) would make you more hungry or thirsty anyway? I'm not much of a coder just trying to give some friendly thoughts towards what your trying to do.

Link to comment
Share on other sites

  • 0

Most of my players are power players. They're on for 8 to 12 hours in a day usually.

 

Its just not realistic that you can starve in 57 minutes. I'm trying to present a "realistic" Epoch environment as much as I can and this is an area that I feel needs a slight tweak for realism.

 

I believe its more than acceptable to make a code based assumption that over a period of 2 hours someone might feel hungry. And after 4 hours they will definitely want to eat. But a cycle based on 60 minutes total is simply non-immersive in an environment where most of the players are immersion players and the server is set up for immersion based play.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...