cleanup and move road debris back to server

This commit is contained in:
[VB]AWOL
2013-11-25 15:57:57 -06:00
parent e2144b1d11
commit 796f5008b6
4 changed files with 12 additions and 17 deletions

View File

@@ -1031,7 +1031,7 @@ class FSM
"selectNoPlayer;" \n "selectNoPlayer;" \n
"_myTime = diag_tickTime;" \n "_myTime = diag_tickTime;" \n
"" \n "" \n
"dayz_loadScreenMsg = ""You are running an incorrect version of DAYZ_CODE, please download this file from dayzepoch.com."";" \n "dayz_loadScreenMsg = ""You are running an incorrect version, please download update from dayzepoch.com."";" \n
"" \n "" \n
"1 cutText [format[localize ""str_player_18"",dayz_versionNo,_version], ""PLAIN""];" \n "1 cutText [format[localize ""str_player_18"",dayz_versionNo,_version], ""PLAIN""];" \n
"" \n "" \n

View File

@@ -235,20 +235,15 @@ _playerObj setVariable["lastPos",getPosATL _playerObj];
dayzPlayerLogin2 = [_worldspace,_state,_randomSpot]; dayzPlayerLogin2 = [_worldspace,_state,_randomSpot];
// PVDZE_plr_SetWeather,PVDZE_plr_SetDate // PVDZE_obj_Debris = DZE_LocalRoadBlocks;
PVDZE_obj_Debris = DZE_LocalRoadBlocks;
_clientID = owner _playerObj; _clientID = owner _playerObj;
if (!isNull _playerObj) then { if (!isNull _playerObj) then {
_clientID publicVariableClient "dayzPlayerLogin2"; _clientID publicVariableClient "dayzPlayerLogin2";
// send road blocks // send road blocks
_clientID publicVariableClient "PVDZE_obj_Debris"; // _clientID publicVariableClient "PVDZE_obj_Debris";
_clientID publicVariableClient "PVDZE_plr_SetDate"; _clientID publicVariableClient "PVDZE_plr_SetDate";
_clientID publicVariableClient "PVDZE_plr_SetWeather";
}; };
//record time started //record time started
_playerObj setVariable ["lastTime",time]; _playerObj setVariable ["lastTime",time];

View File

@@ -414,18 +414,18 @@ spawn_roadblocks = {
}; };
// fill array with classes and positions [class,pos,dir] // fill array with classes and positions [class,pos,dir]
DZE_LocalRoadBlocks set [count DZE_LocalRoadBlocks,[_spawnveh,_position,round(random 360)]]; // DZE_LocalRoadBlocks set [count DZE_LocalRoadBlocks,[_spawnveh,_position,round(random 360)]];
//diag_log("DEBUG: Spawning a crashed " + _spawnveh + " with " + _spawnloot + " at " + str(_position)); //diag_log("DEBUG: Spawning a crashed " + _spawnveh + " with " + _spawnloot + " at " + str(_position));
//_veh = createVehicle [_spawnveh,_position, [], 0, "CAN_COLLIDE"]; _veh = createVehicle [_spawnveh,_position, [], 0, "CAN_COLLIDE"];
//_veh enableSimulation false; _veh enableSimulation false;
// Randomize placement a bit // Randomize placement a bit
//_veh setDir round(random 360); _veh setDir round(random 360);
//_veh setpos _position; _veh setpos _position;
//_veh setVariable ["ObjectID","1",true]; _veh setVariable ["ObjectID","1",true];
}; };
}; };
@@ -503,9 +503,9 @@ if(isnil "DZE_DiagVerbose") then {
dze_diag_fps = { dze_diag_fps = {
if(DZE_DiagVerbose) then { if(DZE_DiagVerbose) then {
diag_log format["DEBUG FPS : %1 OBJECTS: %2 : PLAYERS: %3", DZE_diag_fps,(count (allMissionObjects "")),(playersNumber west)]; diag_log format["DEBUG FPS : %1 OBJECTS: %2 : PLAYERS: %3", diag_fps,(count (allMissionObjects "")),(playersNumber west)];
} else { } else {
diag_log format["DEBUG FPS : %1", DZE_diag_fps]; diag_log format["DEBUG FPS : %1", diag_fps];
}; };
}; };

View File

@@ -299,7 +299,7 @@ if (isServer and isNil "sm_done") then {
// spawn_roadblocks // spawn_roadblocks
diag_log ("HIVE: Spawning # of Debris: " + str(MaxDynamicDebris)); diag_log ("HIVE: Spawning # of Debris: " + str(MaxDynamicDebris));
for "_x" from 1 to MaxDynamicDebris do { for "_x" from 1 to MaxDynamicDebris do {
[] call spawn_roadblocks; [] spawn spawn_roadblocks;
}; };
// spawn_ammosupply at server start 1% of roadblocks // spawn_ammosupply at server start 1% of roadblocks
diag_log ("HIVE: Spawning # of Ammo Boxes: " + str(MaxAmmoBoxes)); diag_log ("HIVE: Spawning # of Ammo Boxes: " + str(MaxAmmoBoxes));