bunker update

revert to normal object for first spawn
inrease size by 10
This commit is contained in:
vbawol 2017-10-20 14:38:00 -05:00
parent c51b21bd24
commit 4003e6d49c

View File

@ -286,8 +286,8 @@ if (worldName == "VR") then {
_newBunkerCounter = 0;
// size
_maxRows = 20;
_maxColumns = 20;
_maxRows = 30;
_maxColumns = 30;
_rngChance = 0; // Lower this to spawn more positions
_scriptHiveKey = "EPOCH:DynamicBunker"; // do not change
@ -326,7 +326,7 @@ if (worldName == "VR") then {
// Generate Seed
_seed = random 999999;
diag_log format["Generating bunker with seed: %1",_seed];
_location = ATLToASL _debugLocation;
_location = _debugLocation;
_originalLocation = +_location;
_valuesAndWeights = [
"bunker_epoch", 0.2, // empty bunker
@ -354,8 +354,7 @@ if (worldName == "VR") then {
_rng = _seed random [_location select 0,_location select 1];
if (_rng > _rngChance) then {
_selectedBunker = selectRandomWeighted _valuesAndWeights;
_object = createSimpleObject [_selectedBunker, _location];
//_object = createVehicle [_selectedBunker, _location, [], 0, "CAN_COLLIDE"];
_object = createVehicle [_selectedBunker, _location, [], 0, "CAN_COLLIDE"];
if (isNull _firstBunker) then {_firstBunker = _object;};
_allBunkers pushBack _object;
_newBunkerCounter = _newBunkerCounter + 1;