mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
again
This commit is contained in:
@@ -233,10 +233,23 @@ _playerObj setVariable["humanity_CHK",_humanity];
|
||||
//_playerObj setVariable["state",_state,true];
|
||||
_playerObj setVariable["lastPos",getPosATL _playerObj];
|
||||
|
||||
dayzPlayerLogin2 = [_worldspace,_state,PVDZE_plr_SetWeather,PVDZE_plr_SetDate,_randomSpot];
|
||||
_clientID = owner _playerObj;
|
||||
_clientID publicVariableClient "dayzPlayerLogin2";
|
||||
dayzPlayerLogin2 = [_worldspace,_state,_randomSpot];
|
||||
|
||||
// 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
|
||||
_playerObj setVariable ["lastTime",time];
|
||||
//_playerObj setVariable ["model_CHK",typeOf _playerObj];
|
||||
|
||||
@@ -380,6 +380,7 @@ spawn_ammosupply = {
|
||||
};
|
||||
};
|
||||
|
||||
DZE_LocalRoadBlocks = [];
|
||||
|
||||
spawn_roadblocks = {
|
||||
private ["_position","_veh","_istoomany","_marker","_spawnveh","_WreckList"];
|
||||
@@ -412,15 +413,19 @@ spawn_roadblocks = {
|
||||
_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));
|
||||
_veh = createVehicle [_spawnveh,_position, [], 0, "CAN_COLLIDE"];
|
||||
_veh enableSimulation false;
|
||||
|
||||
//_veh = createVehicle [_spawnveh,_position, [], 0, "CAN_COLLIDE"];
|
||||
//_veh enableSimulation false;
|
||||
|
||||
// Randomize placement a bit
|
||||
_veh setDir round(random 360);
|
||||
_veh setpos _position;
|
||||
//_veh setDir round(random 360);
|
||||
//_veh setpos _position;
|
||||
|
||||
_veh setVariable ["ObjectID","1",true];
|
||||
//_veh setVariable ["ObjectID","1",true];
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user