mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-21 23:50:48 +03:00
weather v2
This commit is contained in:
@@ -59,7 +59,7 @@ if (isServer) then {
|
||||
//Client only
|
||||
if (!isDedicated) then {
|
||||
"PVDZE_plr_SetDate" addPublicVariableEventHandler {(_this select 1) call player_setDate};
|
||||
"PVDZE_plr_SetWeather" addPublicVariableEventHandler {zeroCurrentWeather = (_this select 1)};
|
||||
"PVDZE_plr_SetWeather" addPublicVariableEventHandler {zeroPreviousWeather = zeroCurrentWeather; zeroCurrentWeather = (_this select 1)};
|
||||
"PVDZE_obj_RoadFlare" addPublicVariableEventHandler {(_this select 1) spawn object_roadFlare};
|
||||
"PVDZE_plr_Morph2" addPublicVariableEventHandler {(_this select 1) call player_serverModelChange};
|
||||
"PVDZE_plr_Morph" addPublicVariableEventHandler {(_this select 1) call server_switchPlayer};
|
||||
|
||||
@@ -559,6 +559,7 @@ if(!isDedicated) then {
|
||||
dayz_bodyMonitor = [];
|
||||
|
||||
// weather control var
|
||||
zeroPreviousWeather = [0,0,[0,0],0];
|
||||
zeroCurrentWeather = [0,0,[0,0],0];
|
||||
|
||||
dayz_baseTypes = getArray (configFile >> "CfgBuildingLoot" >> "Default" >> "zombieClass");
|
||||
|
||||
Reference in New Issue
Block a user