mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-14 20:22:56 +03:00
Add group system
Initial commit, not tested in multiplayer yet. Some revisions still left to do.
This commit is contained in:
@@ -486,7 +486,7 @@ class FSM
|
||||
"_isHiveOk = false;" \n
|
||||
"_newPlayer = false;" \n
|
||||
"_isInfected = false;" \n
|
||||
"_mygroup = [];" \n
|
||||
"dayz_myGroup = [];" \n
|
||||
"_characterCoins = 0;" \n
|
||||
"_globalCoins = 0;" \n
|
||||
"_CoinsSpecial = 0;" \n
|
||||
@@ -495,7 +495,7 @@ class FSM
|
||||
" _isHiveOk = _msg select 7;" \n
|
||||
" _newPlayer = _msg select 8;" \n
|
||||
" _isInfected = _msg select 9;" \n
|
||||
" _mygroup = _msg select 10;" \n
|
||||
" dayz_myGroup = _msg select 10;" \n
|
||||
" _characterCoins = _msg select 11;" \n
|
||||
" _globalCoins = _msg select 12;" \n
|
||||
" _CoinsSpecial = _msg select 13;" \n
|
||||
@@ -1171,12 +1171,6 @@ class FSM
|
||||
" player setVariable [""GlobalMoney"", _globalCoins, true];" \n
|
||||
" player setVariable [""MoneySpecial"", _CoinsSpecial, true];" \n
|
||||
"};" \n
|
||||
"" \n
|
||||
"if (DZE_groupManagement) then {" \n
|
||||
" player setVariable [""savedGroup"", _mygroup, true];" \n
|
||||
" player setVariable [""purgeGroup"", 0, true];" \n
|
||||
"};" \n
|
||||
"" \n
|
||||
"dayz_musicH = [] spawn player_music;" \n
|
||||
"dayz_slowCheck = [] spawn player_spawn_2;" \n
|
||||
"Dayz_logonTime = daytime;" \n
|
||||
|
||||
@@ -227,6 +227,8 @@ while {1 == 1} do {
|
||||
player setVariable["USEC_infected",true,true];
|
||||
};
|
||||
};
|
||||
|
||||
if (!isNil "dayz_groupInit") then {call dayz_groupMarkers;};
|
||||
|
||||
// Radiation zones rapid blood loss
|
||||
if (DZE_InRadiationZone) then {
|
||||
|
||||
@@ -12,6 +12,7 @@ while {true} do {
|
||||
if ((!isNil "Dayz_loginCompleted") and {(Dayz_loginCompleted)}) exitWith {
|
||||
//diag_log [ __FILE__, __LINE__, "End loop"];
|
||||
dayz_playerName = if (alive player) then {name player} else {"unknown"};
|
||||
if (dayz_groupSystem) then {call compile preprocessFileLineNumbers "\z\addons\dayz_code\groups\init.sqf";};
|
||||
};
|
||||
_display = uiNameSpace getVariable "BIS_loadingScreen";
|
||||
if ((!isNil "_display") and {(dayz_loadScreenMsg != "" )}) then {
|
||||
|
||||
@@ -28,6 +28,8 @@ sched_onEachFrame = {
|
||||
hintSilent localize "str_player_lowPFS";
|
||||
diag_log format [ "h1nt: LOW FPS (%1)", diag_fpsmin ];
|
||||
};
|
||||
|
||||
if (!isNil "dayz_groupIcons") then {call dayz_groupIcons;};
|
||||
|
||||
_ret
|
||||
};
|
||||
Reference in New Issue
Block a user