From 914162c69887f6b6eb2410e99212c9dd5195df47 Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Fri, 13 May 2016 17:02:44 -0400 Subject: [PATCH] Update messing variable in pz_feed.sqf Messing now has a third parameter for dayz_nutrition. --- CHANGE LOG 1.0.6.txt | 2 +- SQF/dayz_code/actions/pzombie/pz_feed.sqf | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGE LOG 1.0.6.txt b/CHANGE LOG 1.0.6.txt index fd965c027..e265e62ce 100644 --- a/CHANGE LOG 1.0.6.txt +++ b/CHANGE LOG 1.0.6.txt @@ -95,7 +95,7 @@ [FIXED] Players are no longer able to brute force doors or safes by the method described in #1187 @icomrade [FIXED] Fix some items not displaying removal option #1135 @icomrade -[UPDATED] .hpp files updated in dayz_epoch_b CfgLootPos > CfgBuildingPos. @Uro1 +[UPDATED] .hpp files updated in dayz_code\Configs\CfgLoot\CfgBuildingPos. @Uro1 [UPDATED] .bat files updated in Config-Examples @Raziel23x [UPDATED] Updated all config.cfg in Config-Examples, Added Default Steam Ports and Updated Layout. @Namindu [UPDATED] Epoch.sql, 1.0.5_Updates.sql & CfgServerTraders with correct classnames for upgradable hilux1 & datsun1 versions. @Uro1 diff --git a/SQF/dayz_code/actions/pzombie/pz_feed.sqf b/SQF/dayz_code/actions/pzombie/pz_feed.sqf index e83397222..69a23246d 100644 --- a/SQF/dayz_code/actions/pzombie/pz_feed.sqf +++ b/SQF/dayz_code/actions/pzombie/pz_feed.sqf @@ -53,7 +53,11 @@ if !(alive _item) then { r_player_blood = r_player_bloodTotal; }; - player setVariable ["messing",[dayz_hunger,dayz_thirst],true]; + //Publish messing + player setVariable ["messing",[dayz_hunger,dayz_thirst,dayz_nutrition],false]; //No need to be sent to everyplayer + PVDZ_serverStoreVar = [player,"messing",[dayz_hunger,dayz_thirst,dayz_nutrition]]; //update server side only + publicVariableServer "PVDZ_serverStoreVar"; + player setVariable["USEC_BloodQty",r_player_blood,true]; player setVariable["medForceUpdate",true];