A couple tweaks...

* **Tweaks to saltflats static mission:**
* AI Vehicle is spawned AFTER the base is spawned (hopefully
limits/prevents it from spawning inside something).
* Before spawning a new crate, any crate (with the same classname) that
potentially exists from a previous mission is deleted first.
This commit is contained in:
eraser1 2015-11-18 19:49:08 -06:00
parent c488a90841
commit ec9cc60c6e
3 changed files with 31 additions and 18 deletions

View File

@ -172,6 +172,6 @@ else
};
DMS_Version = "November 14 2015";
DMS_Version = "November 18 2015";
"DMS post-init complete." call DMS_fnc_DebugLog;

View File

@ -59,7 +59,7 @@ _AISoldierSpawnLocations =
// Create AI
_AICount = 20 + (round (random 5));
// I add
_group =
[
_AISoldierSpawnLocations,
@ -69,18 +69,6 @@ _group =
_side
] call DMS_fnc_SpawnAIGroup_MultiPos;
_veh =
[
[
[_pos,100,random 360] call DMS_fnc_SelectOffsetPos,
_pos
],
_group,
"assault",
_difficulty,
_side
] call DMS_fnc_SpawnAIVehicle;
_staticGuns =
[
@ -100,11 +88,20 @@ _staticGuns =
"assault",
_difficulty,
"bandit",
"O_HMG_01_high_F"
"random"
] call DMS_fnc_SpawnAIStaticMG;
// Create Crate
_crateClassname = "I_CargoNet_01_ammo_F";
deleteVehicle (nearestObject [_pos, _crateClassname]); // Make sure to remove any previous crate.
_crate = [_crateClassname, _pos] call DMS_fnc_SpawnCrate;
_baseObjs = [];
if (isNil "DMS_SaltFlatsBaseSpawned") then
if (isNil "DMS_SaltFlatsBaseSpawned") then // This is to prevent having to delete then respawn the base, which would create unnecessary load on the server. Best to just leave the base up (unless you don't want to respawn the mission).
{
_baseObjs =
[
@ -114,8 +111,18 @@ if (isNil "DMS_SaltFlatsBaseSpawned") then
};
// Create Crate
_crate = ["I_CargoNet_01_ammo_F",_pos] call DMS_fnc_SpawnCrate;
// Spawn the vehicle AFTER the base so that it spawns the vehicle in a (relatively) clear position.
_veh =
[
[
[_pos,100,random 360] call DMS_fnc_SelectOffsetPos,
_pos
],
_group,
"assault",
_difficulty,
_side
] call DMS_fnc_SpawnAIVehicle;
// Define mission-spawned AI Units

View File

@ -94,6 +94,12 @@ ___
___
# Changelog:
#### November 18, 2015 (7:45 PM CST-America):
* **Tweaks to saltflats static mission:**
* AI Vehicle is spawned AFTER the base is spawned (hopefully limits/prevents it from spawning inside something).
* Before spawning a new crate, any crate (with the same classname) that potentially exists from a previous mission is deleted first.
#### November 14, 2015 (8:30 PM CST-America):
* **NEW CONFIG VALUES:**