MGTDB

No hunger or thirst whilst in safezone

3 posts in this topic

Pull ExileClient_object_player_stats_update.sqf from the client files and add to mission file root (or where you have custom files)
Find

ExileClientPlayerAttributes set [2, ((((ExileClientPlayerAttributes select 2) - (100 / ExileClientHungerDecay * _hungerFactor * _timeElapsed)) min 100) max 0)];
ExileClientPlayerAttributes set [3, ((((ExileClientPlayerAttributes select 3) - (100 / ExileClientThirstDecay * _thirstFactor * _timeElapsed)) min 100) max 0)];

and replace it with

if !(ExilePlayerInSafezone) then
{
    ExileClientPlayerAttributes set [2, ((((ExileClientPlayerAttributes select 2) - (100 / ExileClientHungerDecay * _hungerFactor * _timeElapsed)) min 100) max 0)];
    ExileClientPlayerAttributes set [3, ((((ExileClientPlayerAttributes select 3) - (100 / ExileClientThirstDecay * _thirstFactor * _timeElapsed)) min 100) max 0)];
};

Don't forget in mission config, to add it into

class CfgExileCustomCode
{
	ExileClient_object_player_stats_update = "ExileClient_object_player_stats_update.sqf";//or with your path to custom files
};

Pack mission and you're done!

  • Like 4
  • Thanks 3

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.