mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-19 14:42:56 +03:00
add 2 new vars and fix up variable names
DZE_HeartBeat DZE_UseBloodTypes
This commit is contained in:
@@ -430,10 +430,10 @@ class FSM
|
||||
"" \n
|
||||
"_msg = [];" \n
|
||||
"progressLoadingScreen 0.65;" \n
|
||||
"PVDZ_plr_Login1 = [_playerUID,player];" \n
|
||||
"publicVariableServer ""PVDZ_plr_Login1"";" \n
|
||||
"diag_log ['Sent to server: PVDZ_plr_Login1', PVDZ_plr_Login1]; " \n
|
||||
"PVDZ_send = [player,""dayzSetDate"",[player]];" \n
|
||||
"PVDZE_plr_Login = [_playerUID,player];" \n
|
||||
"publicVariableServer ""PVDZE_plr_Login"";" \n
|
||||
"diag_log ['Sent to server: PVDZE_plr_Login', PVDZE_plr_Login]; " \n
|
||||
"PVDZ_send = [player,""PVDZE_plr_SetDate"",[player]];" \n
|
||||
"publicVariableServer ""PVDZ_send"";" \n
|
||||
"diag_log ['Sent to server: PVDZ_send', PVDZ_send]; " \n
|
||||
"_myTime = diag_tickTime;" \n
|
||||
@@ -740,9 +740,9 @@ class FSM
|
||||
"" \n
|
||||
"dayz_playerAchievements = _playerAchievements;" \n
|
||||
" " \n
|
||||
"PVDZ_serverStoreVar = [player,""Achievements"",_playerAchievements];" \n
|
||||
"publicVariableServer ""PVDZ_serverStoreVar"";" \n
|
||||
"diag_log ['Sent to server: PVDZ_serverStoreVar', PVDZ_serverStoreVar]; " \n
|
||||
"PVDZE_serverStoreVar = [player,""Achievements"",_playerAchievements];" \n
|
||||
"publicVariableServer ""PVDZE_serverStoreVar"";" \n
|
||||
"diag_log ['Sent to server: PVDZE_serverStoreVar', PVDZE_serverStoreVar]; " \n
|
||||
"player setVariable [""Achievements"",_playerAchievements,false];" \n
|
||||
"" \n
|
||||
"" \n
|
||||
@@ -1503,9 +1503,9 @@ class FSM
|
||||
priority = 0.000000;
|
||||
to="Stream";
|
||||
precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
|
||||
condition=/*%FSM<CONDITION""">*/"!isNil ""dayzSetDate"""/*%FSM</CONDITION""">*/;
|
||||
action=/*%FSM<ACTION""">*/"diag_log ['Date & time received:', dayzSetDate];" \n
|
||||
"setDate dayzSetDate;" \n
|
||||
condition=/*%FSM<CONDITION""">*/"!isNil ""PVDZE_plr_SetDate"""/*%FSM</CONDITION""">*/;
|
||||
action=/*%FSM<ACTION""">*/"diag_log ['Date & time received:', PVDZE_plr_SetDate];" \n
|
||||
"setDate PVDZE_plr_SetDate;" \n
|
||||
"diag_log ['Local date on this client:', date];"/*%FSM</ACTION""">*/;
|
||||
};
|
||||
/*%FSM</LINK>*/
|
||||
|
||||
@@ -329,8 +329,8 @@ dayz_myLoad = (((count dayz_myBackpackMags) * 0.2) + (count dayz_myBackpackWpns)
|
||||
_messTimer = 0;
|
||||
player setVariable ["messing",[dayz_hunger,dayz_thirst,dayz_nutrition],false];
|
||||
|
||||
PVDZ_serverStoreVar = [player,"messing",[dayz_hunger,dayz_thirst,dayz_nutrition]];
|
||||
publicVariableServer "PVDZ_serverStoreVar";
|
||||
PVDZE_serverStoreVar = [player,"messing",[dayz_hunger,dayz_thirst,dayz_nutrition]];
|
||||
publicVariableServer "PVDZE_serverStoreVar";
|
||||
};
|
||||
|
||||
//Save Checker
|
||||
@@ -340,8 +340,8 @@ dayz_myLoad = (((count dayz_myBackpackMags) * 0.2) + (count dayz_myBackpackWpns)
|
||||
PVDZ_plr_Save = [player,nil,false,dayz_playerAchievements];
|
||||
publicVariableServer "PVDZ_plr_Save";
|
||||
|
||||
PVDZ_serverStoreVar = [player,"Achievements",dayz_playerAchievements];
|
||||
publicVariableServer "PVDZ_serverStoreVar";
|
||||
PVDZE_serverStoreVar = [player,"Achievements",dayz_playerAchievements];
|
||||
publicVariableServer "PVDZE_serverStoreVar";
|
||||
player setVariable ["Achievements",dayz_playerAchievements,false];
|
||||
|
||||
if (isServer) then {
|
||||
|
||||
@@ -24,7 +24,7 @@ sched_gui = {
|
||||
};
|
||||
|
||||
// move this elsewhere, it deals with the menu
|
||||
if (!isNull cursorTarget and !dayz_heartBeat) then {
|
||||
if (!isNull cursorTarget and {!dayz_heartBeat} and {DZE_HeartBeat}) then {
|
||||
if (alive cursorTarget) then {
|
||||
cursorTarget spawn dayz_lowHumanity;
|
||||
};
|
||||
|
||||
@@ -8,8 +8,8 @@ sched_medical_slow = { // 10 seconds
|
||||
player setVariable["USEC_BloodQty", r_player_blood, false];
|
||||
player setVariable["medForceUpdate", true, false];
|
||||
//Send only to server
|
||||
PVDZ_serverStoreVar = [player, "USEC_BloodQty", r_player_blood];
|
||||
publicVariableServer "PVDZ_serverStoreVar";
|
||||
PVDZE_serverStoreVar = [player, "USEC_BloodQty", r_player_blood];
|
||||
publicVariableServer "PVDZE_serverStoreVar";
|
||||
};
|
||||
|
||||
objNull
|
||||
|
||||
Reference in New Issue
Block a user