From f0b7be5d8fd810bebf451b973db370d1de2033e1 Mon Sep 17 00:00:00 2001 From: eraser1 Date: Tue, 7 Jun 2016 11:17:02 -0500 Subject: [PATCH] Small stuff --- @ExileServer/addons/a3_dms/config.cpp | 3 +-- @ExileServer/addons/a3_dms/scripts/fn_SpawnAIGroup.sqf | 3 ++- .../addons/a3_dms/scripts/fn_SpawnAIGroup_MultiPos.sqf | 3 ++- README.md | 4 ++++ 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/@ExileServer/addons/a3_dms/config.cpp b/@ExileServer/addons/a3_dms/config.cpp index 4c460d9..9c0226e 100644 --- a/@ExileServer/addons/a3_dms/config.cpp +++ b/@ExileServer/addons/a3_dms/config.cpp @@ -4,7 +4,7 @@ class CfgPatches { units[] = {}; weapons[] = {}; - a3_DMS_version = "June 6, 2016 (RC1)"; + a3_DMS_version = "June 7, 2016 (RC1.1)"; requiredVersion = 1.36; requiredAddons[] = {"exile_client","exile_server_config"}; }; @@ -49,7 +49,6 @@ class CfgFunctions class GroupReinforcementsManager {}; //class HandleMissionEvents {}; class HeliParatroopers_Monitor {}; - //class HeliPatrol {}; class ImportFromM3E {}; class ImportFromM3E_Convert {}; class ImportFromM3E_Static {}; diff --git a/@ExileServer/addons/a3_dms/scripts/fn_SpawnAIGroup.sqf b/@ExileServer/addons/a3_dms/scripts/fn_SpawnAIGroup.sqf index 7657f54..2701ed8 100644 --- a/@ExileServer/addons/a3_dms/scripts/fn_SpawnAIGroup.sqf +++ b/@ExileServer/addons/a3_dms/scripts/fn_SpawnAIGroup.sqf @@ -89,6 +89,7 @@ if ((DMS_ai_use_launchers && {DMS_ai_launchers_per_group>0}) || {!(_launcherType }; private _units = units _group; + private _launchers = missionNamespace getVariable [format ["DMS_AI_wep_launchers_%1",_launcherType],["launch_NLAW_F"]]; for "_i" from 0 to (((DMS_ai_launchers_per_group min _count)-1) max 0) do { @@ -96,7 +97,7 @@ if ((DMS_ai_use_launchers && {DMS_ai_launchers_per_group>0}) || {!(_launcherType { private _unit = _units select _i; - private _launcher = (selectRandom (missionNamespace getVariable [format ["DMS_AI_wep_launchers_%1",_launcherType],["launch_NLAW_F"]])); + private _launcher = selectRandom _launchers; removeBackpackGlobal _unit; _unit addBackpack "B_Carryall_mcamo"; diff --git a/@ExileServer/addons/a3_dms/scripts/fn_SpawnAIGroup_MultiPos.sqf b/@ExileServer/addons/a3_dms/scripts/fn_SpawnAIGroup_MultiPos.sqf index cd0796b..4377a01 100644 --- a/@ExileServer/addons/a3_dms/scripts/fn_SpawnAIGroup_MultiPos.sqf +++ b/@ExileServer/addons/a3_dms/scripts/fn_SpawnAIGroup_MultiPos.sqf @@ -105,6 +105,7 @@ if ((DMS_ai_use_launchers && {DMS_ai_launchers_per_group>0}) || {!(_launcherType }; private _units = units _group; + private _launchers = missionNamespace getVariable [format ["DMS_AI_wep_launchers_%1",_launcherType],["launch_NLAW_F"]]; for "_i" from 0 to (((DMS_ai_launchers_per_group min _count)-1) max 0) do { @@ -112,7 +113,7 @@ if ((DMS_ai_use_launchers && {DMS_ai_launchers_per_group>0}) || {!(_launcherType { private _unit = _units select _i; - private _launcher = (selectRandom (missionNamespace getVariable [format ["DMS_AI_wep_launchers_%1",_launcherType],["launch_NLAW_F"]])); + private _launcher = selectRandom _launchers; removeBackpackGlobal _unit; _unit addBackpack "B_Carryall_mcamo"; diff --git a/README.md b/README.md index 3a63a89..4d66bf4 100644 --- a/README.md +++ b/README.md @@ -150,12 +150,16 @@ ___ # Changelog: ### Test Branch: +#### June 7, 2016 (11:15 PM CST-America) **Release Candidate 1.1**: +* Slight optimization of SpawnAIGroup functions (if you have launchers enabled). + #### June 6, 2016 (10:45 PM CST-America) **Release Candidate 1**: * New function: DMS_fnc_IsPosBlacklisted (optimized replacement for "BIS_fnc_IsPosBlacklisted") * Config value "DMS_findSafePosBlacklist" now supports the ability to blacklist within a certain distance of a given position. * "DMS_CLIENT" functions are now compiled in pre-init (broadcasting is still done in post-init). * Notifications from "textTilesRequest" and "dynamicTextRequest" should no longer "stack" on each other; if two missions spawn right after another, the second mission notification will be delayed at least until the first one completes. * More Micro-optimizations on most functions; parameters passed to DMS functions will no longer be checked to see if they are the right type, etc. It was determined that they didn't really provide any benefit, as most errors either don't trigger the "params" error, or the error is simply reiterated elsewhere. +* Removed config value "DMS_MissionMarkerCount" * "DMS_fnc_FindSuppressor" has been overhauled; it simply checks the configs for the provided weapon classname to return a random muzzle/suppressor classname. Consequently, the function is smaller, faster, and perfectly compatible with any weapon. * The "freeze manager" will now unfreeze AI if needed regardless of setting "DMS_ai_allowFreezing" to false.