Update messing variable in pz_feed.sqf

Messing now has a third parameter for dayz_nutrition.
This commit is contained in:
ebaydayz
2016-05-13 17:02:44 -04:00
parent 33c3c7601f
commit 914162c698
2 changed files with 6 additions and 2 deletions

View File

@@ -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

View File

@@ -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];