1.0.2.4 RC1

This commit is contained in:
[VB]AWOL
2013-10-05 06:29:39 -05:00
parent b8b5d35926
commit 27300140a8
34 changed files with 661 additions and 77 deletions

View File

@@ -351,6 +351,53 @@ spawn_roadblocks = {
};
spawn_mineveins = {
private ["_position","_veh","_istoomany","_marker","_spawnveh","_positions"];
if (isDedicated) then {
_position = [getMarkerPos "center",0,(HeliCrashArea*0.75),10,0,2000,0] call BIS_fnc_findSafePos;
if ((count _position) == 2) then {
_positions = selectBestPlaces [_position, 500, "(1 + hills) * (1 - sea)", 10, 5];
_position = (_positions call BIS_fnc_selectRandom) select 0;
// Get position with ground
_istoomany = _position nearObjects ["All",5];
if((count _istoomany) > 0) exitWith { diag_log("DEBUG VEIN: Too many at " + str(_position)); };
//if(DZEdebug) then {
_marker = createMarker [str(_position) , _position];
_marker setMarkerShape "ICON";
_marker setMarkerType "DOT";
_spawnveh = ["Iron_Vein_DZE","Iron_Vein_DZE","Iron_Vein_DZE","Iron_Vein_DZE","Iron_Vein_DZE","Iron_Vein_DZE","Iron_Vein_DZE","Silver_Vein_DZE","Silver_Vein_DZE","Gold_Vein_DZE"] call BIS_fnc_selectRandom;
_marker setMarkerText str(_spawnveh);
// };
//diag_log("DEBUG: Spawning a crashed " + _spawnveh + " with " + _spawnloot + " at " + str(_position));
_veh = createVehicle [_spawnveh,_position, [], 0, "CAN_COLLIDE"];
_veh enableSimulation false;
// Randomize placement a bit
_veh setDir round(random 360);
_veh setpos _position;
_veh setVariable ["ObjectID","1",true];
};
};
};
if(isnil "DynamicVehicleDamageLow") then {
DynamicVehicleDamageLow = 0;
};

View File

@@ -55,6 +55,9 @@ if(isnil "MaxHeliCrashes") then {
if(isnil "MaxDynamicDebris") then {
MaxDynamicDebris = 100;
};
if(isnil "MaxMineVeins") then {
MaxMineVeins = 100;
};
// Custon Configs End
if (isServer and isNil "sm_done") then {
@@ -250,10 +253,10 @@ if (isServer and isNil "sm_done") then {
if (!((typeOf _object) in dayz_allowedObjects)) then {
_object setvelocity [0,0,1];
//_object setvelocity [0,0,1];
_object call fnc_veh_ResetEH;
if(_ownerID != "0") then {
if(_ownerID != "0" and !(_object isKindOf "Bicycle")) then {
_object setvehiclelock "locked";
};
@@ -322,6 +325,12 @@ if (isServer and isNil "sm_done") then {
[] spawn spawn_roadblocks;
};
//(1 - forest) * (1 + hills) * (1 - sea)
diag_log ("HIVE: Spawning # of Veins: " + str(MaxMineVeins));
for "_x" from 1 to MaxMineVeins do {
[] spawn spawn_mineveins;
};
if(isnil "dayz_MapArea") then {
dayz_MapArea = 10000;
};