mirror of
https://github.com/Defent/DMS_Exile.git
synced 2024-08-30 16:52:12 +00:00
github pls
This commit is contained in:
parent
db16672811
commit
0592ac910c
@ -97,7 +97,7 @@ for "_i" from 1 to _count do
|
||||
};
|
||||
|
||||
// An AI will definitely spawn with a launcher if you define type
|
||||
if ((DMS_ai_use_launchers && {DMS_ai_launchers_per_group>0}) || {!(_launcherType isEqualTo "")}) then
|
||||
if ((DMS_ai_use_launchers || {!(_launcherType isEqualTo "")}) then
|
||||
{
|
||||
if (_launcherType isEqualTo "") then
|
||||
{
|
||||
@ -105,9 +105,9 @@ 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"]];
|
||||
private _launchers = missionNamespace getVariable [format ["DMS_AI_wep_launchers_%1",_launcherType],DMS_AI_wep_launchers_AT];
|
||||
|
||||
for "_i" from 0 to (((DMS_ai_launchers_per_group min _count)-1) max 0) do
|
||||
for "_i" from 0 to ((DMS_ai_launchers_per_group min _count)-1) do
|
||||
{
|
||||
if ((random 100)<DMS_ai_use_launchers_chance) then
|
||||
{
|
||||
@ -117,15 +117,14 @@ if ((DMS_ai_use_launchers && {DMS_ai_launchers_per_group>0}) || {!(_launcherType
|
||||
|
||||
removeBackpackGlobal _unit;
|
||||
_unit addBackpack "B_Carryall_mcamo";
|
||||
private _rocket = _launcher call DMS_fnc_selectMagazine;
|
||||
|
||||
[_unit, _launcher, DMS_AI_launcher_ammo_count,_rocket] call BIS_fnc_addWeapon;
|
||||
[_unit, _launcher, DMS_AI_launcher_ammo_count] call DMS_fnc_addWeapon;
|
||||
|
||||
_unit setVariable ["DMS_AI_Launcher",_launcher];
|
||||
|
||||
if (DMS_DEBUG) then
|
||||
{
|
||||
(format["SpawnAIGroup_MultiPos :: Giving %1 a %2 launcher with %3 %4 rockets",_unit,_launcher,DMS_AI_launcher_ammo_count,_rocket]) call DMS_fnc_DebugLog;
|
||||
(format["SpawnAIGroup_MultiPos :: Giving %1 a %2 launcher with %3 rockets",_unit,_launcher,DMS_AI_launcher_ammo_count]) call DMS_fnc_DebugLog;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -152,7 +152,7 @@ ___
|
||||
# Changelog:
|
||||
|
||||
### Main Branch
|
||||
### July 5, 2016 (8:15 PM CST-America):
|
||||
### July 5, 2016 (7:15 PM CST-America):
|
||||
* Fixed a typo in the config (the second ```DMS_Survivor_Vehicle_MoneyGain``` should be ```DMS_Survivor_Vehicle_SpawnMoney```).
|
||||
* Added Apex weapons, equipment, and vehicles to config (disabled by default).
|
||||
* Reduced ```DMS_ai_share_info_distance``` default value drastically, from 300 meters to 25 (it was overpowered and unrealistic).
|
||||
|
Loading…
Reference in New Issue
Block a user