This commit is contained in:
[VB]AWOL
2013-11-18 10:22:04 -06:00
parent 946c80d211
commit 160c62927f
2 changed files with 26 additions and 8 deletions

View File

@@ -233,10 +233,23 @@ _playerObj setVariable["humanity_CHK",_humanity];
//_playerObj setVariable["state",_state,true]; //_playerObj setVariable["state",_state,true];
_playerObj setVariable["lastPos",getPosATL _playerObj]; _playerObj setVariable["lastPos",getPosATL _playerObj];
dayzPlayerLogin2 = [_worldspace,_state,PVDZE_plr_SetWeather,PVDZE_plr_SetDate,_randomSpot]; dayzPlayerLogin2 = [_worldspace,_state,_randomSpot];
_clientID = owner _playerObj;
_clientID publicVariableClient "dayzPlayerLogin2";
// PVDZE_plr_SetWeather,PVDZE_plr_SetDate
PVDZE_obj_Debris = DZE_LocalRoadBlocks;
_clientID = owner _playerObj;
if (!isNull _playerObj) then {
_clientID publicVariableClient "dayzPlayerLogin2";
// send road blocks
_clientID publicVariableClient "PVDZE_obj_Debris";
_clientID publicVariableClient "PVDZE_plr_SetDate";
_clientID publicVariableClient "PVDZE_plr_SetWeather";
};
//record time started //record time started
_playerObj setVariable ["lastTime",time]; _playerObj setVariable ["lastTime",time];
//_playerObj setVariable ["model_CHK",typeOf _playerObj]; //_playerObj setVariable ["model_CHK",typeOf _playerObj];

View File

@@ -380,6 +380,7 @@ spawn_ammosupply = {
}; };
}; };
DZE_LocalRoadBlocks = [];
spawn_roadblocks = { spawn_roadblocks = {
private ["_position","_veh","_istoomany","_marker","_spawnveh","_WreckList"]; private ["_position","_veh","_istoomany","_marker","_spawnveh","_WreckList"];
@@ -412,15 +413,19 @@ spawn_roadblocks = {
_marker setMarkerText str(_spawnveh); _marker setMarkerText str(_spawnveh);
}; };
// fill array with classes and positions [class,pos,dir]
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 enableSimulation false; //_veh = createVehicle [_spawnveh,_position, [], 0, "CAN_COLLIDE"];
//_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];
}; };
}; };