Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +6 -0
- 8004-master/inst_fixed_en/static/inst_fixed_en/Img_C3.png +3 -0
- 8004-master/inst_fluid_en/static/inst_fluid_en/Img_I5.png +3 -0
- 8004-master/task_sums/static/task_sums/Img_A7.jpeg +3 -0
- 8210_A1P3-master/Lib/site-packages/PIL/_imaging.cp37-win32.pyd +3 -0
- 8210_A1P3-master/Lib/site-packages/PIL/_imagingcms.cp37-win32.pyd +3 -0
- 8210_A1P3-master/Lib/site-packages/_cffi_backend.cp37-win32.pyd +3 -0
- A-news-Agrregation-system-master/db.sqlite3 +3 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/REINF/controlHCsquad.sqf +64 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/REINF/controlunit.sqf +63 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/REINF/dismissPlayerGroup.sqf +59 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/REINF/dismissSquad.sqf +70 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/REINF/enemyNearCheck.sqf +6 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/REINF/garrisonAdd.sqf +56 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/REINF/garrisonDialog.sqf +92 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/REINF/postmortem.sqf +12 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/REINF/reDress.sqf +8 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/REINF/reinfplayer.sqf +47 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/REINF/stealStatic.sqf +18 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/REINF/vehStats.sqf +112 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/REINF/vehiclePrice.sqf +17 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Revive/initRevive.sqf +7 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Revive/isMedic.sqf +4 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/Infos/upsmon known problem and hints !R .txt +85 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_DoaddWP.sqf +38 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_DocreateWP.sqf +41 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_GetCOS.sqf +38 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_GetOut.sqf +29 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_GetPos2D.sqf +29 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_GetSIN.sqf +38 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_Getnearestplayer.sqf +34 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_Getunitsincargo.sqf +27 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_Haslos.sqf +49 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_LOS.sqf +32 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_Nighttime.sqf +24 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_Nowp.sqf +62 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_Replace.sqf +37 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_SN_EHFIREDNEAR.sqf +24 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_SN_EHHIT.sqf +24 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_SN_EHKILLED.sqf +41 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_SN_EHKILLEDCIV.sqf +51 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_StrInStr.sqf +16 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_StrIndex.sqf +31 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_StrLen.sqf +17 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_StrToArray.sqf +20 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_TRACK.sqf +107 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_TRACK2.sqf +132 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_arrayShufflePlus.sqf +26 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_checkbackpack.sqf +30 -0
- A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_createmarker.sqf +33 -0
.gitattributes
CHANGED
|
@@ -153,3 +153,9 @@ A-news-Agrregation-system-master/myvenv/share/python-wheels/pkg_resources-0.0.0-
|
|
| 153 |
A-news-Agrregation-system-master/myvenv/share/python-wheels/setuptools-39.0.1-py2.py3-none-any.whl filter=lfs diff=lfs merge=lfs -text
|
| 154 |
A-news-Agrregation-system-master/myvenv/share/python-wheels/urllib3-1.22-py2.py3-none-any.whl filter=lfs diff=lfs merge=lfs -text
|
| 155 |
A-news-Agrregation-system-master/myvenv/lib64/python3.6/site-packages/pip/_vendor/distlib/t64.exe filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
A-news-Agrregation-system-master/myvenv/share/python-wheels/setuptools-39.0.1-py2.py3-none-any.whl filter=lfs diff=lfs merge=lfs -text
|
| 154 |
A-news-Agrregation-system-master/myvenv/share/python-wheels/urllib3-1.22-py2.py3-none-any.whl filter=lfs diff=lfs merge=lfs -text
|
| 155 |
A-news-Agrregation-system-master/myvenv/lib64/python3.6/site-packages/pip/_vendor/distlib/t64.exe filter=lfs diff=lfs merge=lfs -text
|
| 156 |
+
8210_A1P3-master/Lib/site-packages/_cffi_backend.cp37-win32.pyd filter=lfs diff=lfs merge=lfs -text
|
| 157 |
+
ADM-master/Example[[:space:]]Workflows/TheData/Baskets/AssociationRules.table filter=lfs diff=lfs merge=lfs -text
|
| 158 |
+
8210_A1P3-master/Lib/site-packages/PIL/_imaging.cp37-win32.pyd filter=lfs diff=lfs merge=lfs -text
|
| 159 |
+
8210_A1P3-master/Lib/site-packages/PIL/_imagingcms.cp37-win32.pyd filter=lfs diff=lfs merge=lfs -text
|
| 160 |
+
A-news-Agrregation-system-master/db.sqlite3 filter=lfs diff=lfs merge=lfs -text
|
| 161 |
+
A3-Antistasi-master/A3-Antistasi/Music/dog_yelp01.wss filter=lfs diff=lfs merge=lfs -text
|
8004-master/inst_fixed_en/static/inst_fixed_en/Img_C3.png
ADDED
|
Git LFS Details
|
8004-master/inst_fluid_en/static/inst_fluid_en/Img_I5.png
ADDED
|
Git LFS Details
|
8004-master/task_sums/static/task_sums/Img_A7.jpeg
ADDED
|
Git LFS Details
|
8210_A1P3-master/Lib/site-packages/PIL/_imaging.cp37-win32.pyd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1811daacac496eac9ae29aa96b697e0d19f68d74724412b366da12f2f954dea7
|
| 3 |
+
size 2117632
|
8210_A1P3-master/Lib/site-packages/PIL/_imagingcms.cp37-win32.pyd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5bf80afb32ef8feec7a62f7d88cc5129f848d9efa56b1ba296844d0bd05f6b5c
|
| 3 |
+
size 189952
|
8210_A1P3-master/Lib/site-packages/_cffi_backend.cp37-win32.pyd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d44b2bd724589c63b8d66fae2557b920cb8885199a5ecf1aa438a90ed68cdbd5
|
| 3 |
+
size 134656
|
A-news-Agrregation-system-master/db.sqlite3
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0586ed53e73aa12addd84390e1590ada9a3eddec4ed74197a5ff534529c83700
|
| 3 |
+
size 413696
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/REINF/controlHCsquad.sqf
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
if (player != theBoss) exitWith {hint "Only Commander has the ability to control HC units"};
|
| 2 |
+
|
| 3 |
+
_grupos = _this select 0;
|
| 4 |
+
|
| 5 |
+
_grupo = _grupos select 0;
|
| 6 |
+
_unit = leader _grupo;
|
| 7 |
+
|
| 8 |
+
if !([_unit] call A3A_fnc_canFight) exitWith {hint "You cannot control an unconscious or dead unit"};
|
| 9 |
+
|
| 10 |
+
while {(count (waypoints _grupo)) > 0} do
|
| 11 |
+
{
|
| 12 |
+
deleteWaypoint ((waypoints _grupo) select 0);
|
| 13 |
+
};
|
| 14 |
+
|
| 15 |
+
_wp = _grupo addwaypoint [getpos _unit,0];
|
| 16 |
+
|
| 17 |
+
{
|
| 18 |
+
if (_x != vehicle _x) then
|
| 19 |
+
{
|
| 20 |
+
[_x] orderGetIn true;
|
| 21 |
+
};
|
| 22 |
+
} forEach units group player;
|
| 23 |
+
|
| 24 |
+
hcShowBar false;
|
| 25 |
+
hcShowBar true;
|
| 26 |
+
|
| 27 |
+
_unit setVariable ["owner",player,true];
|
| 28 |
+
_eh1 = player addEventHandler ["HandleDamage",
|
| 29 |
+
{
|
| 30 |
+
_unit = _this select 0;
|
| 31 |
+
_unit removeEventHandler ["HandleDamage",_thisEventHandler];
|
| 32 |
+
//removeAllActions _unit;
|
| 33 |
+
selectPlayer _unit;
|
| 34 |
+
(units group player) joinsilent group player;
|
| 35 |
+
group player selectLeader player;
|
| 36 |
+
hint "Returned to original Unit as it received damage";
|
| 37 |
+
}];
|
| 38 |
+
_eh2 = _unit addEventHandler ["HandleDamage",
|
| 39 |
+
{
|
| 40 |
+
_unit = _this select 0;
|
| 41 |
+
_unit removeEventHandler ["HandleDamage",_thisEventHandler];
|
| 42 |
+
removeAllActions _unit;
|
| 43 |
+
selectPlayer (_unit getVariable "owner");
|
| 44 |
+
(units group player) joinsilent group player;
|
| 45 |
+
group player selectLeader player;
|
| 46 |
+
hint "Returned to original Unit as controlled AI received damage";
|
| 47 |
+
}];
|
| 48 |
+
selectPlayer _unit;
|
| 49 |
+
|
| 50 |
+
_tiempo = 60;
|
| 51 |
+
|
| 52 |
+
_unit addAction ["Return Control to AI",{selectPlayer (player getVariable ["owner",player])}];
|
| 53 |
+
|
| 54 |
+
waitUntil {sleep 1; hint format ["Time to return control to AI: %1", _tiempo]; _tiempo = _tiempo - 1; (_tiempo < 0) or (isPlayer theBoss)};
|
| 55 |
+
|
| 56 |
+
removeAllActions _unit;
|
| 57 |
+
if (!isPlayer (_unit getVariable ["owner",_unit])) then {selectPlayer (_unit getVariable ["owner",_unit])};
|
| 58 |
+
//_unit setVariable ["owner",nil,true];
|
| 59 |
+
_unit removeEventHandler ["HandleDamage",_eh2];
|
| 60 |
+
player removeEventHandler ["HandleDamage",_eh1];
|
| 61 |
+
(units group theBoss) joinsilent group theBoss;
|
| 62 |
+
group theBoss selectLeader theBoss;
|
| 63 |
+
hint "";
|
| 64 |
+
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/REINF/controlunit.sqf
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
private ["_units","_unit"];
|
| 2 |
+
|
| 3 |
+
_units = _this select 0;
|
| 4 |
+
|
| 5 |
+
_unit = _units select 0;
|
| 6 |
+
|
| 7 |
+
if (_unit == Petros) exitWith {hint "You cannot control Petros";};
|
| 8 |
+
//if (captive player) exitWith {hint "You cannot control AI while on Undercover"};
|
| 9 |
+
if (player != leader group player) exitWith {hint "You cannot control AI if you are not the squad leader"};
|
| 10 |
+
if (isPlayer _unit) exitWith {hint "You cannot control another player"};
|
| 11 |
+
if (!(alive _unit) or (_unit getVariable ["INCAPACITATED",false])) exitWith {hint "You cannot control an unconscious, a dead unit"};
|
| 12 |
+
//if ((not(typeOf _unit in soldadosSDK)) and (typeOf _unit != "b_g_survivor_F")) exitWith {hint "You cannot control a unit which does not belong to FIA"};
|
| 13 |
+
if (side _unit != buenos) exitWith {hint format ["You cannot control a unit which does not belong to %1",nameBuenos]};
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
_owner = player getVariable ["owner",player];
|
| 17 |
+
if (_owner!=player) exitWith {hint "You cannot control AI while you are controlling another AI"};
|
| 18 |
+
|
| 19 |
+
{
|
| 20 |
+
if (_x != vehicle _x) then
|
| 21 |
+
{
|
| 22 |
+
[_x] orderGetIn true;
|
| 23 |
+
};
|
| 24 |
+
} forEach units group player;
|
| 25 |
+
|
| 26 |
+
_unit setVariable ["owner",player];
|
| 27 |
+
_eh1 = player addEventHandler ["HandleDamage",
|
| 28 |
+
{
|
| 29 |
+
_unit = _this select 0;
|
| 30 |
+
_unit removeEventHandler ["HandleDamage",_thisEventHandler];
|
| 31 |
+
//removeAllActions _unit;
|
| 32 |
+
selectPlayer _unit;
|
| 33 |
+
(units group player) joinsilent group player;
|
| 34 |
+
group player selectLeader player;
|
| 35 |
+
hint "Returned to original Unit as it received damage";
|
| 36 |
+
}];
|
| 37 |
+
_eh2 = _unit addEventHandler ["HandleDamage",
|
| 38 |
+
{
|
| 39 |
+
_unit = _this select 0;
|
| 40 |
+
_unit removeEventHandler ["HandleDamage",_thisEventHandler];
|
| 41 |
+
removeAllActions _unit;
|
| 42 |
+
selectPlayer (_unit getVariable "owner");
|
| 43 |
+
(units group player) joinsilent group player;
|
| 44 |
+
group player selectLeader player;
|
| 45 |
+
hint "Returned to original Unit as controlled AI received damage";
|
| 46 |
+
}];
|
| 47 |
+
selectPlayer _unit;
|
| 48 |
+
|
| 49 |
+
_tiempo = 60;
|
| 50 |
+
|
| 51 |
+
_unit addAction ["Return Control to AI",{selectPlayer leader (group (_this select 0))}];
|
| 52 |
+
|
| 53 |
+
waitUntil {sleep 1; hint format ["Time to return control to AI: %1", _tiempo]; _tiempo = _tiempo - 1; (_tiempo == -1) or (isPlayer (leader group player))};
|
| 54 |
+
|
| 55 |
+
removeAllActions _unit;
|
| 56 |
+
selectPlayer (_unit getVariable ["owner",_unit]);
|
| 57 |
+
//_unit setVariable ["owner",nil,true];
|
| 58 |
+
(units group player) joinsilent group player;
|
| 59 |
+
group player selectLeader player;
|
| 60 |
+
_unit removeEventHandler ["HandleDamage",_eh2];
|
| 61 |
+
player removeEventHandler ["HandleDamage",_eh1];
|
| 62 |
+
hint "";
|
| 63 |
+
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/REINF/dismissPlayerGroup.sqf
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
//if (!isServer) exitWith{};
|
| 2 |
+
|
| 3 |
+
if (player != leader group player) exitWith {hint "You cannot dismiss anyone if you are not the squad leader"};
|
| 4 |
+
|
| 5 |
+
private ["_units","_hr","_resourcesFIA","_unit","_nuevogrp"];
|
| 6 |
+
|
| 7 |
+
_units = _this select 0;
|
| 8 |
+
_units = _units - [player];
|
| 9 |
+
_units = _units select {!(isPlayer _x)};
|
| 10 |
+
if (_units isEqualTo []) exitWith {};
|
| 11 |
+
if (_units findIf {!([_x] call A3A_fnc_canFight)} != -1) exitWith {hint "You cannot disband supressed, undercover or unconscious units"};
|
| 12 |
+
player globalChat "Get out of my sight you useless scum!";
|
| 13 |
+
|
| 14 |
+
_nuevoGrp = createGroup buenos;
|
| 15 |
+
//if ({isPlayer _x} count units group player == 1) then {_ai = true; _nuevogrp = createGroup buenos};
|
| 16 |
+
|
| 17 |
+
{
|
| 18 |
+
if (typeOf _x != SDKUnarmed) then
|
| 19 |
+
{
|
| 20 |
+
[_x] join _nuevogrp;
|
| 21 |
+
if !(hayIFA) then {arrayids = arrayids + [name _x]};
|
| 22 |
+
};
|
| 23 |
+
} forEach _units;
|
| 24 |
+
|
| 25 |
+
if (recruitCooldown < time) then {recruitCooldown = time + 60} else {recruitCooldown = recruitCooldown + 60};
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
_lider = leader _nuevoGrp;
|
| 29 |
+
|
| 30 |
+
{_x domove getMarkerPos respawnBuenos} forEach units _nuevogrp;
|
| 31 |
+
|
| 32 |
+
_tiempo = time + 120;
|
| 33 |
+
|
| 34 |
+
waitUntil {sleep 1; (time > _tiempo) or ({(_x distance getMarkerPos respawnBuenos < 50) and (alive _x)} count units _nuevogrp == {alive _x} count units _nuevogrp)};
|
| 35 |
+
|
| 36 |
+
_hr = 0;
|
| 37 |
+
_resourcesFIA = 0;
|
| 38 |
+
_items = [];
|
| 39 |
+
_municion = [];
|
| 40 |
+
_armas = [];
|
| 41 |
+
|
| 42 |
+
{_unit = _x;
|
| 43 |
+
if ([_unit] call A3A_fnc_canFight) then
|
| 44 |
+
{
|
| 45 |
+
_resourcesFIA = _resourcesFIA + (server getVariable (typeOf _unit));
|
| 46 |
+
_hr = _hr +1;
|
| 47 |
+
{if (not(([_x] call BIS_fnc_baseWeapon) in unlockedWeapons)) then {_armas pushBack ([_x] call BIS_fnc_baseWeapon)}} forEach weapons _unit;
|
| 48 |
+
{if (not(_x in unlockedMagazines)) then {_municion pushBack _x}} forEach magazines _unit;
|
| 49 |
+
_items = _items + (items _unit) + (primaryWeaponItems _unit) + (assignedItems _unit) + (secondaryWeaponItems _unit) + [(hmd _unit),(headGear _unit),(vest _unit)];
|
| 50 |
+
};
|
| 51 |
+
deleteVehicle _x;
|
| 52 |
+
} forEach units _nuevogrp;
|
| 53 |
+
if (!isMultiplayer) then {_nul = [_hr,_resourcesFIA] remoteExec ["A3A_fnc_resourcesFIA",2];} else {_nul = [_hr,0] remoteExec ["A3A_fnc_resourcesFIA",2]; [_resourcesFIA] call A3A_fnc_resourcesPlayer};
|
| 54 |
+
{caja addWeaponCargoGlobal [_x,1]} forEach _armas;
|
| 55 |
+
{caja addMagazineCargoGlobal [_x,1]} forEach _municion;
|
| 56 |
+
{caja addItemCargoGlobal [_x,1]} forEach _items;
|
| 57 |
+
deleteGroup _nuevogrp;
|
| 58 |
+
|
| 59 |
+
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/REINF/dismissSquad.sqf
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
//if (!isServer) exitWith{};
|
| 2 |
+
private ["_groups","_hr","_resourcesFIA","_wp","_grupo","_veh","_salir"];
|
| 3 |
+
|
| 4 |
+
_groups = _this select 0;
|
| 5 |
+
_hr = 0;
|
| 6 |
+
_resourcesFIA = 0;
|
| 7 |
+
_salir = false;
|
| 8 |
+
{
|
| 9 |
+
if ((groupID _x == "MineF") or (groupID _x == "Watch") or (isPlayer(leader _x))) then {_salir = true};
|
| 10 |
+
} forEach _groups;
|
| 11 |
+
|
| 12 |
+
if (_salir) exitWith {hint "You cannot dismiss player led, Watchpost, Roadblocks or Minefield building squads"};
|
| 13 |
+
|
| 14 |
+
{
|
| 15 |
+
if (_x getVariable ["esNATO",false]) then {_salir = true};
|
| 16 |
+
} forEach _groups;
|
| 17 |
+
|
| 18 |
+
if (_salir) exitWith {hint "You cannot dismiss NATO groups"};
|
| 19 |
+
|
| 20 |
+
_pos = getMarkerPos respawnBuenos;
|
| 21 |
+
|
| 22 |
+
{
|
| 23 |
+
theBoss sideChat format ["%2, I'm sending %1 back to base", _x,name petros];
|
| 24 |
+
theBoss hcRemoveGroup _x;
|
| 25 |
+
_wp = _x addWaypoint [_pos, 0];
|
| 26 |
+
_wp setWaypointType "MOVE";
|
| 27 |
+
sleep 3} forEach _groups;
|
| 28 |
+
|
| 29 |
+
sleep 100;
|
| 30 |
+
|
| 31 |
+
{_grupo = _x;
|
| 32 |
+
{
|
| 33 |
+
|
| 34 |
+
if (alive _x) then
|
| 35 |
+
{
|
| 36 |
+
_hr = _hr + 1;
|
| 37 |
+
_resourcesFIA = _resourcesFIA + (server getVariable [typeOf _x,0]);
|
| 38 |
+
if (!isNull (assignedVehicle _x)) then
|
| 39 |
+
{
|
| 40 |
+
_veh = assignedVehicle _x;
|
| 41 |
+
if ((typeOf _veh) in vehFIA) then
|
| 42 |
+
{
|
| 43 |
+
_resourcesFIA = _resourcesFIA + ([(typeOf _veh)] call A3A_fnc_vehiclePrice);
|
| 44 |
+
if (count attachedObjects _veh > 0) then
|
| 45 |
+
{
|
| 46 |
+
_subVeh = (attachedObjects _veh) select 0;
|
| 47 |
+
_resourcesFIA = _resourcesFIA + ([(typeOf _subVeh)] call A3A_fnc_vehiclePrice);
|
| 48 |
+
deleteVehicle _subVeh;
|
| 49 |
+
};
|
| 50 |
+
deleteVehicle _veh;
|
| 51 |
+
};
|
| 52 |
+
};
|
| 53 |
+
_mochi = backpack _x;
|
| 54 |
+
if (_mochi != "") then
|
| 55 |
+
{
|
| 56 |
+
switch (_mochi) do
|
| 57 |
+
{
|
| 58 |
+
case MortStaticSDKB: {_resourcesFIA = _resourcesFIA + ([SDKMortar] call A3A_fnc_vehiclePrice)};
|
| 59 |
+
case AAStaticSDKB: {_resourcesFIA = _resourcesFIA + ([staticAABuenos] call A3A_fnc_vehiclePrice)};
|
| 60 |
+
case MGStaticSDKB: {_resourcesFIA = _resourcesFIA + ([SDKMGStatic] call A3A_fnc_vehiclePrice)};
|
| 61 |
+
case ATStaticSDKB: {_resourcesFIA = _resourcesFIA + ([staticATBuenos] call A3A_fnc_vehiclePrice)};
|
| 62 |
+
};
|
| 63 |
+
};
|
| 64 |
+
};
|
| 65 |
+
deleteVehicle _x;
|
| 66 |
+
} forEach units _grupo;
|
| 67 |
+
deleteGroup _grupo;} forEach _groups;
|
| 68 |
+
_nul = [_hr,_resourcesFIA] remoteExec ["A3A_fnc_resourcesFIA",2];
|
| 69 |
+
|
| 70 |
+
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/REINF/enemyNearCheck.sqf
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
private ["_unit","_dist","_return"];
|
| 2 |
+
_unit = _this select 0;
|
| 3 |
+
_dist = _this select 1;
|
| 4 |
+
_return = false;
|
| 5 |
+
{if (_x distance _unit < _dist) exitWith {_return = true}} forEach (allUnits select {((side group _x == malos) or (side group _x == muyMalos)) and ([_x] call A3A_fnc_canFight)});
|
| 6 |
+
_return
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/REINF/garrisonAdd.sqf
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
private ["_hr","_resourcesFIA","_tipo","_coste","_marcador","_garrison","_posicion","_unit","_grupo","_veh","_pos"];
|
| 2 |
+
|
| 3 |
+
_hr = server getVariable "hr";
|
| 4 |
+
|
| 5 |
+
if (_hr < 1) exitWith {hint "You lack of HR to make a new recruitment"};
|
| 6 |
+
|
| 7 |
+
_resourcesFIA = server getVariable "resourcesFIA";
|
| 8 |
+
|
| 9 |
+
_tipo = _this select 0;
|
| 10 |
+
|
| 11 |
+
_coste = 0;
|
| 12 |
+
|
| 13 |
+
if (_tipo isEqualType "") then
|
| 14 |
+
{
|
| 15 |
+
_coste = server getVariable _tipo;
|
| 16 |
+
_coste = _coste + ([SDKMortar] call A3A_fnc_vehiclePrice);
|
| 17 |
+
}
|
| 18 |
+
else
|
| 19 |
+
{
|
| 20 |
+
_tipo = if (random 20 <= skillFIA) then {_tipo select 1} else {_tipo select 0};
|
| 21 |
+
_coste = server getVariable _tipo;
|
| 22 |
+
};
|
| 23 |
+
|
| 24 |
+
if (_coste > _resourcesFIA) exitWith {hint format ["You do not have enough money for this kind of unit (%1 € needed)",_coste]};
|
| 25 |
+
|
| 26 |
+
_marcador = posicionGarr;
|
| 27 |
+
|
| 28 |
+
if ((_tipo == staticCrewBuenos) and (_marcador in puestosFIA)) exitWith {hint "You cannot add mortars to a Roadblock garrison"};
|
| 29 |
+
|
| 30 |
+
_posicion = getMarkerPos _marcador;
|
| 31 |
+
|
| 32 |
+
if (surfaceIsWater _posicion) exitWith {hint "This Garrison is still updating, please try again in a few seconds"};
|
| 33 |
+
|
| 34 |
+
if ([_posicion,500] call A3A_fnc_enemyNearCheck) exitWith {Hint "You cannot Recruit Garrison Units with enemies near the zone"};
|
| 35 |
+
_nul = [-1,-_coste] remoteExec ["A3A_fnc_resourcesFIA",2];
|
| 36 |
+
/*
|
| 37 |
+
_garrison = [];
|
| 38 |
+
_garrison = _garrison + (garrison getVariable [_marcador,[]]);
|
| 39 |
+
_garrison pushBack _tipo;
|
| 40 |
+
garrison setVariable [_marcador,_garrison,true];
|
| 41 |
+
//[_marcador] call A3A_fnc_mrkUpdate;*/
|
| 42 |
+
_cuenta = selectMax [count (garrison getVariable _marcador),0];
|
| 43 |
+
[_tipo,buenos,_marcador,1] remoteExec ["A3A_fnc_garrisonUpdate",2];
|
| 44 |
+
waitUntil {(_cuenta < count (garrison getVariable _marcador)) or (lados getVariable [_marcador,sideUnknown] != buenos)};
|
| 45 |
+
|
| 46 |
+
if (lados getVariable [_marcador,sideUnknown] == buenos) then
|
| 47 |
+
{
|
| 48 |
+
hint format ["Soldier recruited.%1",[_marcador] call A3A_fnc_garrisonInfo];
|
| 49 |
+
|
| 50 |
+
if (spawner getVariable _marcador != 2) then
|
| 51 |
+
{
|
| 52 |
+
//[_marcador] remoteExec ["tempMoveMrk",2];
|
| 53 |
+
[_marcador,_tipo] remoteExec ["A3A_fnc_createSDKGarrisonsTemp",2];
|
| 54 |
+
};
|
| 55 |
+
};
|
| 56 |
+
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/REINF/garrisonDialog.sqf
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
private ["_tipo","_posicionTel","_cercano","_garrison","_coste","_hr","_size"];
|
| 2 |
+
_tipo = _this select 0;
|
| 3 |
+
|
| 4 |
+
if (_tipo == "add") then {hint "Select a zone to add garrisoned troops"} else {hint "Select a zone to remove it's Garrison"};
|
| 5 |
+
|
| 6 |
+
if (!visibleMap) then {openMap true};
|
| 7 |
+
posicionTel = [];
|
| 8 |
+
|
| 9 |
+
onMapSingleClick "posicionTel = _pos;";
|
| 10 |
+
|
| 11 |
+
waitUntil {sleep 1; (count posicionTel > 0) or (not visiblemap)};
|
| 12 |
+
onMapSingleClick "";
|
| 13 |
+
|
| 14 |
+
if (!visibleMap) exitWith {};
|
| 15 |
+
|
| 16 |
+
_posicionTel = posicionTel;
|
| 17 |
+
posicionGarr = "";
|
| 18 |
+
|
| 19 |
+
_cercano = [marcadores,_posicionTel] call BIS_fnc_nearestPosition;
|
| 20 |
+
_posicion = getMarkerPos _cercano;
|
| 21 |
+
|
| 22 |
+
if (getMarkerPos _cercano distance _posicionTel > 40) exitWith {hint "You must click near a marked zone"; _nul=CreateDialog "build_menu";};
|
| 23 |
+
|
| 24 |
+
if (not(lados getVariable [_cercano,sideUnknown] == buenos)) exitWith {hint format ["That zone does not belong to %1",nameBuenos]; _nul=CreateDialog "build_menu";};
|
| 25 |
+
if ([_posicion,500] call A3A_fnc_enemyNearCheck) exitWith {hint "You cannot manage this garrison while there are enemies nearby";_nul=CreateDialog "build_menu"};
|
| 26 |
+
//if (((_cercano in puestosFIA) and !(isOnRoad _posicion)) /*or (_cercano in ciudades)*/ or (_cercano in controles)) exitWith {hint "You cannot manage garrisons on this kind of zone"; _nul=CreateDialog "garrison_menu"};
|
| 27 |
+
_puestoFIA = if (_cercano in puestosFIA) then {true} else {false};
|
| 28 |
+
_wPost = if (_puestoFIA and !(isOnRoad getMarkerPos _cercano)) then {true} else {false};
|
| 29 |
+
_garrison = if (! _wpost) then {garrison getVariable [_cercano,[]]} else {SDKSniper};
|
| 30 |
+
|
| 31 |
+
if (_tipo == "rem") then
|
| 32 |
+
{
|
| 33 |
+
if ((count _garrison == 0) and !(_cercano in puestosFIA)) exitWith {hint "The place has no garrisoned troops to remove"; _nul=CreateDialog "build_menu";};
|
| 34 |
+
_coste = 0;
|
| 35 |
+
_hr = 0;
|
| 36 |
+
{
|
| 37 |
+
if (_x == staticCrewBuenos) then {if (_puestoFIA) then {_coste = _coste + ([vehSDKLightArmed] call A3A_fnc_vehiclePrice)} else {_coste = _coste + ([SDKMortar] call A3A_fnc_vehiclePrice)}};
|
| 38 |
+
_hr = _hr + 1;
|
| 39 |
+
_coste = _coste + (server getVariable [_x,0]);
|
| 40 |
+
} forEach _garrison;
|
| 41 |
+
[_hr,_coste] remoteExec ["A3A_fnc_resourcesFIA",2];
|
| 42 |
+
if (_puestoFIA) then
|
| 43 |
+
{
|
| 44 |
+
garrison setVariable [_cercano,nil,true];
|
| 45 |
+
puestosFIA = puestosFIA - [_cercano]; publicVariable "puestosFIA";
|
| 46 |
+
marcadores = marcadores - [_cercano]; publicVariable "marcadores";
|
| 47 |
+
deleteMarker _cercano;
|
| 48 |
+
lados setVariable [_cercano,nil,true];
|
| 49 |
+
}
|
| 50 |
+
else
|
| 51 |
+
{
|
| 52 |
+
garrison setVariable [_cercano,[],true];
|
| 53 |
+
//[_cercano] call A3A_fnc_mrkUpdate;
|
| 54 |
+
//[_cercano] remoteExec ["tempMoveMrk",2];
|
| 55 |
+
{if (_x getVariable ["marcador",""] == _cercano) then {deleteVehicle _x}} forEach allUnits;
|
| 56 |
+
};
|
| 57 |
+
[_cercano] call A3A_fnc_mrkUpdate;
|
| 58 |
+
hint format ["Garrison removed\n\nRecovered Money: %1 €\nRecovered HR: %2",_coste,_hr];
|
| 59 |
+
_nul=CreateDialog "build_menu";
|
| 60 |
+
}
|
| 61 |
+
else
|
| 62 |
+
{
|
| 63 |
+
posicionGarr = _cercano;
|
| 64 |
+
publicVariable "posicionGarr";
|
| 65 |
+
hint format ["Info%1",[_cercano] call A3A_fnc_garrisonInfo];
|
| 66 |
+
closeDialog 0;
|
| 67 |
+
_nul=CreateDialog "garrison_recruit";
|
| 68 |
+
sleep 1;
|
| 69 |
+
disableSerialization;
|
| 70 |
+
|
| 71 |
+
_display = findDisplay 100;
|
| 72 |
+
|
| 73 |
+
if (str (_display) != "no display") then
|
| 74 |
+
{
|
| 75 |
+
_ChildControl = _display displayCtrl 104;
|
| 76 |
+
_ChildControl ctrlSetTooltip format ["Cost: %1 €",server getVariable (SDKMil select 0)];
|
| 77 |
+
_ChildControl = _display displayCtrl 105;
|
| 78 |
+
_ChildControl ctrlSetTooltip format ["Cost: %1 €",server getVariable (SDKMG select 0)];
|
| 79 |
+
_ChildControl = _display displayCtrl 126;
|
| 80 |
+
_ChildControl ctrlSetTooltip format ["Cost: %1 €",server getVariable (SDKMedic select 0)];
|
| 81 |
+
_ChildControl = _display displayCtrl 107;
|
| 82 |
+
_ChildControl ctrlSetTooltip format ["Cost: %1 €",server getVariable (SDKSL select 0)];
|
| 83 |
+
_ChildControl = _display displayCtrl 108;
|
| 84 |
+
_ChildControl ctrlSetTooltip format ["Cost: %1 €",(server getVariable staticCrewBuenos) + ([SDKMortar] call A3A_fnc_vehiclePrice)];
|
| 85 |
+
_ChildControl = _display displayCtrl 109;
|
| 86 |
+
_ChildControl ctrlSetTooltip format ["Cost: %1 €",server getVariable (SDKGL select 0)];
|
| 87 |
+
_ChildControl = _display displayCtrl 110;
|
| 88 |
+
_ChildControl ctrlSetTooltip format ["Cost: %1 €",server getVariable (SDKSniper select 0)];
|
| 89 |
+
_ChildControl = _display displayCtrl 111;
|
| 90 |
+
_ChildControl ctrlSetTooltip format ["Cost: %1 €",server getVariable (SDKATman select 0)];
|
| 91 |
+
};
|
| 92 |
+
};
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/REINF/postmortem.sqf
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_muerto = _this select 0;
|
| 2 |
+
sleep cleantime;
|
| 3 |
+
deleteVehicle _muerto;
|
| 4 |
+
_grupo = group _muerto;
|
| 5 |
+
if (!isNull _grupo) then
|
| 6 |
+
{
|
| 7 |
+
if ({alive _x} count units _grupo == 0) then {deleteGroup _grupo};
|
| 8 |
+
}
|
| 9 |
+
else
|
| 10 |
+
{
|
| 11 |
+
if (_muerto in staticsToSave) then {staticsToSave = staticsToSave - [_muerto]; publicVariable "staticsToSave";};
|
| 12 |
+
};
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/REINF/reDress.sqf
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
//if (worldName != "Tanoa") exitWith {};
|
| 2 |
+
private ["_unit"];
|
| 3 |
+
|
| 4 |
+
_unit = _this select 0;
|
| 5 |
+
|
| 6 |
+
_unit addUniform (selectRandom banditUniforms);
|
| 7 |
+
|
| 8 |
+
_unit addItemToUniform "FirstAidKit";
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/REINF/reinfplayer.sqf
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
if (not([player] call A3A_fnc_isMember)) exitWith {hint "Only Server Members can recruit AI units"};
|
| 2 |
+
private ["_chequeo","_hr","_tipounidad","_coste","_resourcesFIA","_unit"];
|
| 3 |
+
|
| 4 |
+
//if (!allowPlayerRecruit) exitWith {hint "Server is very loaded. \nWait one minute or change FPS settings in order to fulfill this request"};
|
| 5 |
+
|
| 6 |
+
if (recruitCooldown > time) exitWith {hint format ["You need to wait %1 seconds to be able to recruit units again",round (recruitCooldown - time)]};
|
| 7 |
+
|
| 8 |
+
if (player != player getVariable ["owner",player]) exitWith {hint "You cannot buy units while you are controlling AI"};
|
| 9 |
+
|
| 10 |
+
if ([player,300] call A3A_fnc_enemyNearCheck) exitWith {Hint "You cannot Recruit Units with enemies nearby"};
|
| 11 |
+
|
| 12 |
+
if (player != leader group player) exitWith {hint "You cannot recruit units as you are not your group leader"};
|
| 13 |
+
|
| 14 |
+
_hr = server getVariable "hr";
|
| 15 |
+
|
| 16 |
+
if (_hr < 1) exitWith {hint "You do not have enough HR for this request"};
|
| 17 |
+
_arraytipounidad = _this select 0;
|
| 18 |
+
_tipoUnidad = _arrayTipoUnidad select 0;
|
| 19 |
+
_coste = server getVariable _tipounidad;
|
| 20 |
+
if (!isMultiPlayer) then {_resourcesFIA = server getVariable "resourcesFIA"} else {_resourcesFIA = player getVariable "dinero";};
|
| 21 |
+
|
| 22 |
+
if (_coste > _resourcesFIA) exitWith {hint format ["You do not have enough money for this kind of unit (%1 € needed)",_coste]};
|
| 23 |
+
|
| 24 |
+
_squadLimit = if(isMultiPlayer) then {10} else {20};
|
| 25 |
+
if ((count units group player) + (count units rezagados) > _squadLimit - 1 ) exitWith {hint "Your squad is full or you have too many scattered units with no radio contact"};
|
| 26 |
+
if (random 20 <= skillFIA) then {_tipoUnidad = _arrayTipoUnidad select 1};
|
| 27 |
+
_unit = group player createUnit [_tipounidad, position player, [], 0, "NONE"];
|
| 28 |
+
|
| 29 |
+
if (!isMultiPlayer) then
|
| 30 |
+
{
|
| 31 |
+
_nul = [-1, - _coste] remoteExec ["A3A_fnc_resourcesFIA",2];
|
| 32 |
+
}
|
| 33 |
+
else
|
| 34 |
+
{
|
| 35 |
+
_nul = [-1, 0] remoteExec ["A3A_fnc_resourcesFIA",2];
|
| 36 |
+
[- _coste] call A3A_fnc_resourcesPlayer;
|
| 37 |
+
["dinero",player getVariable ["dinero",0]] call fn_SaveStat;
|
| 38 |
+
hint "Soldier Recruited.\n\nRemember: if you use the group menu to switch groups you will lose control of your recruited AI";
|
| 39 |
+
};
|
| 40 |
+
|
| 41 |
+
[_unit] spawn A3A_fnc_FIAinit;
|
| 42 |
+
_unit disableAI "AUTOCOMBAT";
|
| 43 |
+
sleep 1;
|
| 44 |
+
petros directSay "SentGenReinforcementsArrived";
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/REINF/stealStatic.sqf
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
private ["_cercano"];
|
| 2 |
+
params ["_estatica","_jugador"];
|
| 3 |
+
|
| 4 |
+
if (!alive _estatica) exitWith {hint "You cannot steal a destroyed static weapon"};
|
| 5 |
+
|
| 6 |
+
if (alive gunner _estatica) exitWith {hint "You cannot steal a static weapon when someone is using it"};
|
| 7 |
+
|
| 8 |
+
if ((alive assignedGunner _estatica) and (!isPlayer (assignedGunner _estatica))) exitWith {hint "The gunner of this static weapon is still alive"};
|
| 9 |
+
|
| 10 |
+
if (activeGREF and ((typeOf _estatica == staticATBuenos) or (typeOf _estatica == staticAABuenos))) exitWith {hint "This weapon cannot be dissassembled"};
|
| 11 |
+
|
| 12 |
+
_cercano = [marcadores,_estatica] call BIS_fnc_nearestPosition;
|
| 13 |
+
|
| 14 |
+
if (not(lados getVariable [_cercano,sideUnknown] == buenos)) exitWith {hint "You have to conquer this zone in order to be able to steal this Static Weapon"};
|
| 15 |
+
|
| 16 |
+
_estatica setOwner (owner _jugador);
|
| 17 |
+
|
| 18 |
+
_nul = [_estatica] call fn_saveStatic;
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/REINF/vehStats.sqf
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
if (count hcSelected player == 0) exitWith {hint "You must select one group on the HC bar"};
|
| 2 |
+
|
| 3 |
+
private ["_grupo","_veh","_texto","_unidades"];
|
| 4 |
+
|
| 5 |
+
/*
|
| 6 |
+
_esStatic = false;
|
| 7 |
+
{if (vehicle _x isKindOf "StaticWeapon") exitWith {_esStatic = true}} forEach units _grupo;
|
| 8 |
+
if (_esStatic) exitWith {hint "Static Weapon squad vehicles cannot be managed"};
|
| 9 |
+
*/
|
| 10 |
+
|
| 11 |
+
if (_this select 0 == "mount") exitWith
|
| 12 |
+
{
|
| 13 |
+
_texto = "";
|
| 14 |
+
{
|
| 15 |
+
_grupo = _x;
|
| 16 |
+
_veh = objNull;
|
| 17 |
+
{
|
| 18 |
+
_owner = _x getVariable "owner";
|
| 19 |
+
if (!isNil "_owner") then {if (_owner == _grupo) exitWith {_veh = _x}};
|
| 20 |
+
} forEach vehicles;
|
| 21 |
+
if !(isNull _veh) then
|
| 22 |
+
{
|
| 23 |
+
_transporte = true;
|
| 24 |
+
if (count allTurrets [_veh, false] > 0) then {_transporte = false};
|
| 25 |
+
if (_transporte) then
|
| 26 |
+
{
|
| 27 |
+
if (leader _grupo in _veh) then
|
| 28 |
+
{
|
| 29 |
+
_texto = format ["%2%1 dismounting\n",groupID _grupo,_texto];
|
| 30 |
+
{[_x] orderGetIn false; [_x] allowGetIn false} forEach units _grupo;
|
| 31 |
+
}
|
| 32 |
+
else
|
| 33 |
+
{
|
| 34 |
+
_texto = format ["%2%1 boarding\n",groupID _grupo,_texto];
|
| 35 |
+
{[_x] orderGetIn true; [_x] allowGetIn true} forEach units _grupo;
|
| 36 |
+
};
|
| 37 |
+
}
|
| 38 |
+
else
|
| 39 |
+
{
|
| 40 |
+
if (leader _grupo in _veh) then
|
| 41 |
+
{
|
| 42 |
+
_texto = format ["%2%1 dismounting\n",groupID _grupo,_texto];
|
| 43 |
+
if (canMove _veh) then
|
| 44 |
+
{
|
| 45 |
+
{[_x] orderGetIn false; [_x] allowGetIn false} forEach assignedCargo _veh;
|
| 46 |
+
}
|
| 47 |
+
else
|
| 48 |
+
{
|
| 49 |
+
_veh allowCrewInImmobile false;
|
| 50 |
+
{[_x] orderGetIn false; [_x] allowGetIn false} forEach units _grupo;
|
| 51 |
+
}
|
| 52 |
+
}
|
| 53 |
+
else
|
| 54 |
+
{
|
| 55 |
+
_texto = format ["%2%1 boarding\n",groupID _grupo,_texto];
|
| 56 |
+
{[_x] orderGetIn true; [_x] allowGetIn true} forEach units _grupo;
|
| 57 |
+
};
|
| 58 |
+
};
|
| 59 |
+
};
|
| 60 |
+
} forEach hcSelected player;
|
| 61 |
+
if (_texto != "") then {hint format ["%1",_texto]};
|
| 62 |
+
};
|
| 63 |
+
_texto = "";
|
| 64 |
+
_grupo = (hcSelected player select 0);
|
| 65 |
+
player sideChat format ["%1, SITREP!!",groupID _grupo];
|
| 66 |
+
_unidades = units _grupo;
|
| 67 |
+
_texto = format ["%1 Status\n\nAlive members: %2\nAble to combat: %3\nCurrent task: %4\nCombat Mode:%5\n",groupID _grupo,{alive _x} count _unidades,{[_x] call A3A_fnc_canFight} count _unidades,_grupo getVariable ["tarea","Patrol"],behaviour (leader _grupo)];
|
| 68 |
+
if ({[_x] call A3A_fnc_isMedic} count _unidades > 0) then {_texto = format ["%1Operative Medic\n",_texto]} else {_texto = format ["%1No operative Medic\n",_texto]};
|
| 69 |
+
if ({_x call A3A_fnc_typeOfSoldier == "ATMan"} count _unidades > 0) then {_texto = format ["%1With AT capabilities\n",_texto]};
|
| 70 |
+
if ({_x call A3A_fnc_typeOfSoldier == "AAMan"} count _unidades > 0) then {_texto = format ["%1With AA capabilities\n",_texto]};
|
| 71 |
+
if (!(isNull(_grupo getVariable ["morteros",objNull])) or ({_x call A3A_fnc_typeOfSoldier == "StaticMortar"} count _unidades > 0)) then
|
| 72 |
+
{
|
| 73 |
+
if ({vehicle _x isKindOf "StaticWeapon"} count _unidades > 0) then {_texto = format ["%1Mortar is deployed\n",_texto]} else {_texto = format ["%1Mortar not deployed\n",_texto]};
|
| 74 |
+
}
|
| 75 |
+
else
|
| 76 |
+
{
|
| 77 |
+
if ({_x call A3A_fnc_typeOfSoldier == "StaticGunner"} count _unidades > 0) then
|
| 78 |
+
{
|
| 79 |
+
if ({vehicle _x isKindOf "StaticWeapon"} count _unidades > 0) then {_texto = format ["%1Static is deployed\n",_texto]} else {_texto = format ["%1Static not deployed\n",_texto]};
|
| 80 |
+
};
|
| 81 |
+
};
|
| 82 |
+
|
| 83 |
+
_veh = objNull;
|
| 84 |
+
{
|
| 85 |
+
_owner = _x getVariable "owner";
|
| 86 |
+
if (!isNil "_owner") then {if (_owner == _grupo) exitWith {_veh = _x}};
|
| 87 |
+
} forEach vehicles;
|
| 88 |
+
if (isNull _veh) then
|
| 89 |
+
{
|
| 90 |
+
{
|
| 91 |
+
if ((vehicle _x != _x) and (_x == driver _x) and !(vehicle _x isKindOf "StaticWeapon")) exitWith {_veh = vehicle _x};
|
| 92 |
+
} forEach _unidades;
|
| 93 |
+
};
|
| 94 |
+
if !(isNull _veh) then
|
| 95 |
+
{
|
| 96 |
+
_texto = format ["%1Current vehicle:\n%2\n",_texto,getText (configFile >> "CfgVehicles" >> (typeOf _veh) >> "displayName")];
|
| 97 |
+
if (!alive _veh) then
|
| 98 |
+
{
|
| 99 |
+
_texto = format ["%1DESTROYED",_texto];
|
| 100 |
+
}
|
| 101 |
+
else
|
| 102 |
+
{
|
| 103 |
+
if (!canMove _veh) then {_texto = format ["%1DISABLED\n",_texto]};
|
| 104 |
+
if (count allTurrets [_veh, false] > 0) then
|
| 105 |
+
{
|
| 106 |
+
if (!canFire _veh) then {_texto = format ["%1WEAPON DISABLED\n",_texto]};
|
| 107 |
+
if (someAmmo _veh) then {_texto = format ["%1Munitioned\n",_texto]};
|
| 108 |
+
};
|
| 109 |
+
_texto = format ["%1Boarded:%2/%3",_texto,{vehicle _x == _veh} count _unidades,{alive _x} count _unidades];
|
| 110 |
+
};
|
| 111 |
+
};
|
| 112 |
+
hint format ["%1",_texto];
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/REINF/vehiclePrice.sqf
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
private ["_tipo","_coste"];
|
| 2 |
+
|
| 3 |
+
_tipo = _this select 0;
|
| 4 |
+
|
| 5 |
+
_coste = server getVariable _tipo;
|
| 6 |
+
|
| 7 |
+
if (isNil "_coste") then
|
| 8 |
+
{
|
| 9 |
+
diag_log format ["Antistasi Error en vehicleprice: %!",_tipo];
|
| 10 |
+
_coste = 0;
|
| 11 |
+
}
|
| 12 |
+
else
|
| 13 |
+
{
|
| 14 |
+
_coste = round (_coste - (_coste * (0.1 * ({lados getVariable [_x,sideUnknown] == buenos} count puertos))));
|
| 15 |
+
};
|
| 16 |
+
|
| 17 |
+
_coste
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Revive/initRevive.sqf
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
private ["_unit"];
|
| 2 |
+
//esto habrá que meterlo en onplayerrespawn también
|
| 3 |
+
_unit = _this select 0;
|
| 4 |
+
//_unit setVariable ["inconsciente",false,true];
|
| 5 |
+
|
| 6 |
+
_unit setVariable ["respawning",false];
|
| 7 |
+
_unit addEventHandler ["HandleDamage", A3A_fnc_handleDamage];
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Revive/isMedic.sqf
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
private _unit = _this select 0;
|
| 2 |
+
if (_unit getUnitTrait "Medic") exitWith {true};
|
| 3 |
+
if (getNumber (configfile >> "CfgVehicles" >> (typeOf _unit) >> "attendant") == 2) exitWith {true};
|
| 4 |
+
false
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/Infos/upsmon known problem and hints !R .txt
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
===============================================================================================
|
| 2 |
+
KNOWN PROBLEMS:
|
| 3 |
+
1) Pilots are very stupid if they have to land, sometimes they crash the helicopter (trees).
|
| 4 |
+
2) Sometimes a vehicle stops and wait for something (driver switches off the engine)? In the end (~2min) stuck control makes it move but I do not know if the problem is UPSMON or Arma.
|
| 5 |
+
Difficult to reproduce cause it happens at random times and very rarely. Expecialy when reinforcement AI use combat vehicle. Possible explanation: targetpos in the forest, AI lost the way, no radio contact etc :)
|
| 6 |
+
3) Too much smoke might cause drop in Fps. (change parameters: R_USE_SMOKE_wounded = 13; R_USE_SMOKE_killed = 35;)
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
===============================================================================================
|
| 10 |
+
HINTS & TIPS :
|
| 11 |
+
|
| 12 |
+
-------------------
|
| 13 |
+
0) To get rid of the debug information set (in Init_UPSMON.sqf) KRON_UPS_Debug = 0;
|
| 14 |
+
|
| 15 |
+
-------------------
|
| 16 |
+
1) note for MissionMakers : UPSMON patrol vehicles after some time use up all fuel and stop.
|
| 17 |
+
Use a script to refuel the vehicles.
|
| 18 |
+
|
| 19 |
+
------------------
|
| 20 |
+
2) - Hide area markers before briefing. -
|
| 21 |
+
|
| 22 |
+
create Game Logic Object
|
| 23 |
+
put in initialization field:
|
| 24 |
+
|
| 25 |
+
nul = call compile preprocessFile "scripts\UPSMON\!R\markerAlpha.sqf";
|
| 26 |
+
|
| 27 |
+
(all markers area must be named area0, area1...area13)
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
------------------
|
| 31 |
+
3) If you use civilians, always set their skill to 0 (save CPU).
|
| 32 |
+
|
| 33 |
+
------------------
|
| 34 |
+
4) in init.sqf do not use:
|
| 35 |
+
|
| 36 |
+
if (isServer) then
|
| 37 |
+
{
|
| 38 |
+
//Init UPSMON scritp
|
| 39 |
+
call compile preprocessFileLineNumbers "scripts\Init_UPSMON.sqf";
|
| 40 |
+
};
|
| 41 |
+
|
| 42 |
+
use:
|
| 43 |
+
|
| 44 |
+
//Init UPSMON scritp
|
| 45 |
+
call compile preprocessFileLineNumbers "scripts\Init_UPSMON.sqf";
|
| 46 |
+
|
| 47 |
+
as Init_UPSMON.sqf has got part of the code which should be run on all clients.
|
| 48 |
+
|
| 49 |
+
----------------
|
| 50 |
+
5) If you fight on the small area think about lowering the "KRON_UPS_sharedist".
|
| 51 |
+
example: If the fight area is a town (600x600) and "KRON_UPS_sharedist = 700;", in the moment you are spotted at the edge of the town
|
| 52 |
+
all AI units in the 700m from you gets info about your position, and if they are not busy you can expect attack of all units.
|
| 53 |
+
|
| 54 |
+
6) Only one init per Group, if you init in the unit INIT (make sure this unit is 100% possibility of present)
|
| 55 |
+
|
| 56 |
+
7) if the leader is vehicle -> the group follows the vehicle (fast), if the leader is outside vehicle -> the vehicle follow the foot leader. (slow)
|
| 57 |
+
|
| 58 |
+
8) to count civilians killed by players use (array): KILLED_CIV_COUNTER [Total,by West,by East,by Resistance, the Killer]
|
| 59 |
+
example: total_number_civilians_killed_by_any_players = KILLED_CIV_COUNTER select 0;
|
| 60 |
+
number_civilians_killed_by_any_east_players = KILLED_CIV_COUNTER select 2;
|
| 61 |
+
the_killer = KILLED_CIV_COUNTER select 4;
|
| 62 |
+
(Note: if the player becomes ENEMY to all is not side anymore. Kills by ENEMY are only counted in Total)
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
================================================================================================
|
| 66 |
+
Hello UPSMON users,
|
| 67 |
+
|
| 68 |
+
I'm currently run the project but I'm not very good at creating new function to the UPSMON as I'm not good script writer.
|
| 69 |
+
I feel much better as a person who can adjust existing code to work with UPSMON well.
|
| 70 |
+
95% of the functions in UPSMON were there (created by Kronzky or Monsada).
|
| 71 |
+
I just make some of them work more smooth, and fixed some bugs.
|
| 72 |
+
The aim is reliability, performance and make all end user friendly.
|
| 73 |
+
|
| 74 |
+
So if you found a bug or had improved part of the code... let me know.
|
| 75 |
+
Any new code that could make UPSMON runs better or add new functions is very welcome. :)
|
| 76 |
+
|
| 77 |
+
forum: http://forums.bistudio.com/showthread.php?t=91696
|
| 78 |
+
|
| 79 |
+
report bug: http://dev-heaven.net/projects/upsmon/issues
|
| 80 |
+
(do not forget to attach simple mission to reproduce problem)
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
Thank you
|
| 84 |
+
|
| 85 |
+
!R
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_DoaddWP.sqf
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/****************************************************************
|
| 2 |
+
File: UPSMON_DocreateWP.sqf
|
| 3 |
+
Author: Azroul13
|
| 4 |
+
|
| 5 |
+
Description:
|
| 6 |
+
Create waypoint for group
|
| 7 |
+
Parameter(s):
|
| 8 |
+
<--- group
|
| 9 |
+
<--- position of the waypoint
|
| 10 |
+
<--- type of the waypoint
|
| 11 |
+
<--- Formation of the waypoint
|
| 12 |
+
<--- Behaviour of the waypoint
|
| 13 |
+
<--- Combatmode of the waypoint
|
| 14 |
+
<--- Radius of the waypoint
|
| 15 |
+
Returns:
|
| 16 |
+
Nothing
|
| 17 |
+
****************************************************************/
|
| 18 |
+
private ["_grp","_targetpos","_wptype","_wpformation","_speedmode","_wp1","_radius","_CombatMode"];
|
| 19 |
+
|
| 20 |
+
_grp = _this select 0;
|
| 21 |
+
_targetpos = _this select 1;
|
| 22 |
+
_wptype = _this select 2;
|
| 23 |
+
_wpformation = _this select 3;
|
| 24 |
+
_speedmode = _this select 4;
|
| 25 |
+
_Behaviour = _this select 5;
|
| 26 |
+
_CombatMode = _this select 6;
|
| 27 |
+
_radius = _this select 7;
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
_wp1 = _grp addWaypoint [_targetPos,count (waypoints _grp)];
|
| 31 |
+
_wp1 setWaypointPosition [_targetPos,count (waypoints _grp)];
|
| 32 |
+
_wp1 setWaypointType _wptype;
|
| 33 |
+
_wp1 setWaypointFormation _wpformation;
|
| 34 |
+
_wp1 setWaypointSpeed _speedmode;
|
| 35 |
+
_wp1 setwaypointbehaviour _Behaviour;
|
| 36 |
+
_wp1 setwaypointCombatMode _CombatMode;
|
| 37 |
+
_wp1 setWaypointLoiterRadius _radius;
|
| 38 |
+
if (count _this > 8) then {sleep 3; (vehicle (leader _grp)) flyinheight (_this select 8)};
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_DocreateWP.sqf
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/****************************************************************
|
| 2 |
+
File: UPSMON_DocreateWP.sqf
|
| 3 |
+
Author: Azroul13
|
| 4 |
+
|
| 5 |
+
Description:
|
| 6 |
+
Create waypoint for group
|
| 7 |
+
Parameter(s):
|
| 8 |
+
<--- group
|
| 9 |
+
<--- position of the waypoint
|
| 10 |
+
<--- type of the waypoint
|
| 11 |
+
<--- Formation of the waypoint
|
| 12 |
+
<--- Behaviour of the waypoint
|
| 13 |
+
<--- Combatmode of the waypoint
|
| 14 |
+
<--- Radius of the waypoint
|
| 15 |
+
Returns:
|
| 16 |
+
Nothing
|
| 17 |
+
****************************************************************/
|
| 18 |
+
private ["_grp","_targetpos","_wptype","_wpformation","_speedmode","_wp1","_radius","_CombatMode"];
|
| 19 |
+
|
| 20 |
+
_grp = _this select 0;
|
| 21 |
+
_targetpos = _this select 1;
|
| 22 |
+
_wptype = _this select 2;
|
| 23 |
+
_wpformation = _this select 3;
|
| 24 |
+
_speedmode = _this select 4;
|
| 25 |
+
_Behaviour = _this select 5;
|
| 26 |
+
_CombatMode = _this select 6;
|
| 27 |
+
_radius = _this select 7;
|
| 28 |
+
|
| 29 |
+
_grp call UPSMON_DeleteWP;
|
| 30 |
+
|
| 31 |
+
_wp1 = _grp addWaypoint [_targetPos,0];
|
| 32 |
+
_wp1 setWaypointPosition [_targetPos,0];
|
| 33 |
+
_wp1 setWaypointType _wptype;
|
| 34 |
+
_wp1 setWaypointFormation _wpformation;
|
| 35 |
+
_wp1 setWaypointSpeed _speedmode;
|
| 36 |
+
_wp1 setwaypointbehaviour _Behaviour;
|
| 37 |
+
_wp1 setwaypointCombatMode _CombatMode;
|
| 38 |
+
_wp1 setWaypointLoiterRadius _radius;
|
| 39 |
+
//if (count _this > 8) then {sleep 3; (vehicle (leader _grp)) flyinheight (_this select 8)};
|
| 40 |
+
|
| 41 |
+
_grp setCurrentWaypoint [_grp,(_wp1 select 1)];
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_GetCOS.sqf
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/****************************************************************
|
| 2 |
+
File: UPSMON_GetSIN.sqf
|
| 3 |
+
Author: MONSADA
|
| 4 |
+
|
| 5 |
+
Description:
|
| 6 |
+
Funci�n que devuelve el valor negativo o positivo del coseno en base a un angulo
|
| 7 |
+
Parameter(s):
|
| 8 |
+
|
| 9 |
+
Returns:
|
| 10 |
+
|
| 11 |
+
****************************************************************/
|
| 12 |
+
private["_dir","_cos"];
|
| 13 |
+
|
| 14 |
+
_dir=_this select 0;
|
| 15 |
+
if (isnil "_dir") exitWith {};
|
| 16 |
+
if (_dir<90) then
|
| 17 |
+
{
|
| 18 |
+
_cos=1;
|
| 19 |
+
}
|
| 20 |
+
else
|
| 21 |
+
{
|
| 22 |
+
if (_dir<180) then
|
| 23 |
+
{
|
| 24 |
+
_cos=1;
|
| 25 |
+
}
|
| 26 |
+
else
|
| 27 |
+
{
|
| 28 |
+
if (_dir<270) then
|
| 29 |
+
{
|
| 30 |
+
_cos=-1;
|
| 31 |
+
}
|
| 32 |
+
else
|
| 33 |
+
{
|
| 34 |
+
_cos=-1;
|
| 35 |
+
};
|
| 36 |
+
};
|
| 37 |
+
};
|
| 38 |
+
_cos
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_GetOut.sqf
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/****************************************************************
|
| 2 |
+
File: UPSMON_GetOut.sqf
|
| 3 |
+
Author: MONSADA
|
| 4 |
+
|
| 5 |
+
Description:
|
| 6 |
+
Function for order a unit to exit if no gunner
|
| 7 |
+
Parameter(s):
|
| 8 |
+
|
| 9 |
+
Returns:
|
| 10 |
+
|
| 11 |
+
****************************************************************/
|
| 12 |
+
private["_vehicle","_npc","_getout" ,"_gunner"];
|
| 13 |
+
|
| 14 |
+
_npc = _this;
|
| 15 |
+
_vehicle = vehicle (_npc);
|
| 16 |
+
_gunner = objnull;
|
| 17 |
+
_gunner = gunner _vehicle;
|
| 18 |
+
|
| 19 |
+
sleep 0.05;
|
| 20 |
+
if (!alive _npc) exitwith{};
|
| 21 |
+
|
| 22 |
+
//If no leave the vehicle gunner
|
| 23 |
+
if ( isnull _gunner || !alive _gunner || !canmove _gunner || (_gunner != _npc && driver _vehicle != _npc && commander _vehicle != _npc) ) then {
|
| 24 |
+
[_npc] allowGetIn false;
|
| 25 |
+
_npc spawn UPSMON_doGetOut;
|
| 26 |
+
unassignVehicle _npc;
|
| 27 |
+
|
| 28 |
+
//sleep 0.2;
|
| 29 |
+
};
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_GetPos2D.sqf
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/****************************************************************
|
| 2 |
+
File: UPSMON_GetPos2D.sqf
|
| 3 |
+
Author: MONSADA
|
| 4 |
+
|
| 5 |
+
Description:
|
| 6 |
+
Funci�n que devuelve una posici�n en 2D a partir de otra, una direcci�n y una distancia
|
| 7 |
+
Parameter(s):
|
| 8 |
+
<--- Position
|
| 9 |
+
<--- Direction
|
| 10 |
+
<--- Distance
|
| 11 |
+
Returns:
|
| 12 |
+
Position
|
| 13 |
+
****************************************************************/
|
| 14 |
+
private ["_pos","_dir","_dist","_cosU","_cosT","_relTX","_sinU","_sinT","_relTY","_newPos","_newPosX","_newPosY" ];
|
| 15 |
+
|
| 16 |
+
_pos = _this select 0;
|
| 17 |
+
_dir = _this select 1;
|
| 18 |
+
_dist = _this select 2;
|
| 19 |
+
|
| 20 |
+
if (isnil "_pos") exitWith {};
|
| 21 |
+
_targetX = _pos select 0; _targetY = _pos select 1;
|
| 22 |
+
|
| 23 |
+
//Calculamos posici�n
|
| 24 |
+
_cosU = [_dir] call UPSMON_GetCOS; _sinU = [_dir] call UPSMON_GetSIN;
|
| 25 |
+
_cosT = abs cos(_dir); _sinT = abs sin(_dir);
|
| 26 |
+
_relTX = _sinT * _dist * _cosU; _relTY = _cosT * _dist * _sinU;
|
| 27 |
+
_newPosX = _targetX + _relTX; _newPosY = _targetY + _relTY;
|
| 28 |
+
_newPos = [_newPosX,_newPosY];
|
| 29 |
+
_newPos;
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_GetSIN.sqf
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/****************************************************************
|
| 2 |
+
File: UPSMON_GetSIN.sqf
|
| 3 |
+
Author: MONSADA
|
| 4 |
+
|
| 5 |
+
Description:
|
| 6 |
+
Funci�n que devuelve el valor negativo o positivo del seno en base a un angulo
|
| 7 |
+
Parameter(s):
|
| 8 |
+
|
| 9 |
+
Returns:
|
| 10 |
+
|
| 11 |
+
****************************************************************/
|
| 12 |
+
private["_dir","_sin","_cos"];
|
| 13 |
+
|
| 14 |
+
_dir=_this select 0;
|
| 15 |
+
if (isnil "_dir") exitWith {};
|
| 16 |
+
if (_dir<90) then
|
| 17 |
+
{
|
| 18 |
+
_sin=1;
|
| 19 |
+
}
|
| 20 |
+
else
|
| 21 |
+
{
|
| 22 |
+
if (_dir<180) then
|
| 23 |
+
{
|
| 24 |
+
_sin=-1;
|
| 25 |
+
}
|
| 26 |
+
else
|
| 27 |
+
{
|
| 28 |
+
if (_dir<270) then
|
| 29 |
+
{
|
| 30 |
+
_sin=-1;
|
| 31 |
+
}
|
| 32 |
+
else
|
| 33 |
+
{
|
| 34 |
+
_sin=1;
|
| 35 |
+
};
|
| 36 |
+
};
|
| 37 |
+
};
|
| 38 |
+
_sin
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_Getnearestplayer.sqf
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/****************************************************************
|
| 2 |
+
File: UPSMON_Getnearestplayer.sqf
|
| 3 |
+
Author: Azroul13
|
| 4 |
+
|
| 5 |
+
Description:
|
| 6 |
+
Get the nearest player near the position.
|
| 7 |
+
Parameter(s):
|
| 8 |
+
<--- Position
|
| 9 |
+
<--- Distance
|
| 10 |
+
Returns:
|
| 11 |
+
Nearest unit or ObjNull
|
| 12 |
+
****************************************************************/
|
| 13 |
+
private ["_position","_nearestdist","_height","_nearest","_haslos"];
|
| 14 |
+
|
| 15 |
+
_position = _this select 0;
|
| 16 |
+
_nearestdist = _this select 1;
|
| 17 |
+
|
| 18 |
+
_nearest = objNull;
|
| 19 |
+
|
| 20 |
+
{
|
| 21 |
+
if (isPlayer _x) then
|
| 22 |
+
{
|
| 23 |
+
If ((getposATL _x) select 2 <= 100) then
|
| 24 |
+
{
|
| 25 |
+
If ((getposATL _x vectorDistance [_position select 0,_position select 1,0]) <= _nearestdist) exitwith
|
| 26 |
+
{
|
| 27 |
+
_nearest=_x;
|
| 28 |
+
};
|
| 29 |
+
};
|
| 30 |
+
};
|
| 31 |
+
} forEach playableUnits;
|
| 32 |
+
|
| 33 |
+
//playableUnits;
|
| 34 |
+
_nearest
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_Getunitsincargo.sqf
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/****************************************************************
|
| 2 |
+
File: UPSMON_Getunitsincargo.sqf
|
| 3 |
+
Author: Azroul13
|
| 4 |
+
|
| 5 |
+
Description:
|
| 6 |
+
Function for order a unit to exit if no gunner
|
| 7 |
+
Parameter(s):
|
| 8 |
+
|
| 9 |
+
Returns:
|
| 10 |
+
|
| 11 |
+
****************************************************************/
|
| 12 |
+
private["_vehicle","_unitsincargo","_crew"];
|
| 13 |
+
|
| 14 |
+
_vehicle = _this select 0;
|
| 15 |
+
|
| 16 |
+
_unitsincargo = [];
|
| 17 |
+
|
| 18 |
+
_crew = crew _vehicle;
|
| 19 |
+
|
| 20 |
+
{
|
| 21 |
+
If (alive _x) then
|
| 22 |
+
{
|
| 23 |
+
_unitsincargo pushback _x;
|
| 24 |
+
};
|
| 25 |
+
} foreach _crew;
|
| 26 |
+
|
| 27 |
+
_unitsincargo
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_Haslos.sqf
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/****************************************************************
|
| 2 |
+
File: UPSMON_Haslos.sqf
|
| 3 |
+
Author: Azroul13
|
| 4 |
+
|
| 5 |
+
Description:
|
| 6 |
+
|
| 7 |
+
Parameter(s):
|
| 8 |
+
<--- unit
|
| 9 |
+
<--- Target
|
| 10 |
+
<--- Max distance the unit can see the target
|
| 11 |
+
<--- Field of view of the unit
|
| 12 |
+
Returns:
|
| 13 |
+
Boolean
|
| 14 |
+
****************************************************************/
|
| 15 |
+
|
| 16 |
+
private ["_unit", "_target", "_range", "_fov","_eyeVector","_eyeDirection","_eyePosition","_targetPosition", "_inRange", "_result"];
|
| 17 |
+
|
| 18 |
+
_unit = [_this,0] call BIS_fnc_param;
|
| 19 |
+
_target = [_this,1] call BIS_fnc_param;
|
| 20 |
+
_range = [_this,2,100,[0]] call BIS_fnc_param;
|
| 21 |
+
_fov = [_this,3,130,[0]] call BIS_fnc_param;
|
| 22 |
+
|
| 23 |
+
_result = false;
|
| 24 |
+
_inRange = ((getposATL _unit) vectordistance (getposATL _target)) < _range;
|
| 25 |
+
_eyeVector = eyeDirection _unit;
|
| 26 |
+
_eyeDirection = ((_eyeVector select 0) atan2 (_eyeVector select 1));
|
| 27 |
+
_eyePosition = eyePos _unit;
|
| 28 |
+
_targetPosition = eyePos _target;
|
| 29 |
+
|
| 30 |
+
If (!(_target iskindof "CAManBase")) then
|
| 31 |
+
{
|
| 32 |
+
_targetPosition = aimpos _target;
|
| 33 |
+
};
|
| 34 |
+
|
| 35 |
+
if (_inRange) then
|
| 36 |
+
{
|
| 37 |
+
if ([_eyePosition, _eyeDirection, _fov, _targetPosition] call BIS_fnc_inAngleSector) then
|
| 38 |
+
{
|
| 39 |
+
if (!lineIntersects[_eyePosition, _targetPosition, vehicle _unit, vehicle _target]) then
|
| 40 |
+
{
|
| 41 |
+
if (!terrainIntersectASL[_eyePosition, _targetPosition]) then
|
| 42 |
+
{
|
| 43 |
+
_result = true;
|
| 44 |
+
};
|
| 45 |
+
};
|
| 46 |
+
};
|
| 47 |
+
};
|
| 48 |
+
|
| 49 |
+
_result;
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_LOS.sqf
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/****************************************************************
|
| 2 |
+
File: UPSMON_LOS.sqf
|
| 3 |
+
Author: Azroul13
|
| 4 |
+
|
| 5 |
+
Description:
|
| 6 |
+
|
| 7 |
+
Parameter(s):
|
| 8 |
+
<--- position to check
|
| 9 |
+
<--- Target position
|
| 10 |
+
Returns:
|
| 11 |
+
Boolean
|
| 12 |
+
****************************************************************/
|
| 13 |
+
|
| 14 |
+
private ["_poso","_posd","_los_ok"];
|
| 15 |
+
|
| 16 |
+
_poso = _this select 0;
|
| 17 |
+
_posd = _this select 1;
|
| 18 |
+
|
| 19 |
+
_poso = [_poso select 0, _poso select 1, (getTerrainHeightASL [_poso select 0, _poso select 1]) +1];
|
| 20 |
+
_posd = [_posd select 0, _posd select 1, (getTerrainHeightASL [_posd select 0, _posd select 1]) +1];
|
| 21 |
+
|
| 22 |
+
_los_ok = false;
|
| 23 |
+
If (!terrainIntersectASL [_poso,_posd]) then
|
| 24 |
+
{
|
| 25 |
+
//lineIntersects [_poso, _posd]
|
| 26 |
+
If (count (lineintersectsobjs [_poso,_posd,objnull,objnull,false]) == 0) then
|
| 27 |
+
{
|
| 28 |
+
_los_ok = true;
|
| 29 |
+
};
|
| 30 |
+
};
|
| 31 |
+
|
| 32 |
+
_los_ok;
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_Nighttime.sqf
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/****************************************************************
|
| 2 |
+
File: UPSMON_timeloop.sqf
|
| 3 |
+
Author: CarlGustav
|
| 4 |
+
|
| 5 |
+
Description:
|
| 6 |
+
|
| 7 |
+
Parameter(s):
|
| 8 |
+
|
| 9 |
+
Returns:
|
| 10 |
+
|
| 11 |
+
****************************************************************/
|
| 12 |
+
|
| 13 |
+
private ["_lat","_day","_hour","_sunangle","_Night"];
|
| 14 |
+
|
| 15 |
+
_Night = false;
|
| 16 |
+
_lat = -1 * getNumber(configFile >> "CfgWorlds" >> worldName >> "latitude");
|
| 17 |
+
_day = 360 * (dateToNumber date);
|
| 18 |
+
_hour = (daytime / 24) * 360;
|
| 19 |
+
_sunangle = ((12 * cos(_day) - 78) * cos(_lat) * cos(_hour)) - (24 * sin(_lat) * cos(_day));
|
| 20 |
+
|
| 21 |
+
If (_sunangle < 0) then {_Night = true;};
|
| 22 |
+
If (_sunangle > 0) then {_Night = False;};
|
| 23 |
+
|
| 24 |
+
_Night;
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_Nowp.sqf
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/****************************************************************
|
| 2 |
+
File: UPSMON_Nowp.sqf
|
| 3 |
+
Author: Azroul13
|
| 4 |
+
|
| 5 |
+
Description:
|
| 6 |
+
|
| 7 |
+
Parameter(s):
|
| 8 |
+
|
| 9 |
+
Returns:
|
| 10 |
+
|
| 11 |
+
****************************************************************/
|
| 12 |
+
|
| 13 |
+
private ["_grp","_target","_supstatus","_nowp"];
|
| 14 |
+
|
| 15 |
+
_grp = _this select 0;
|
| 16 |
+
_target = _this select 1;
|
| 17 |
+
_supstatus = _this select 2;
|
| 18 |
+
|
| 19 |
+
_nowp = true;
|
| 20 |
+
|
| 21 |
+
If (_grp getvariable ["UPSMON_NOWP",0] == 0) then
|
| 22 |
+
{
|
| 23 |
+
If (_grp getvariable ["UPSMON_Grpmission",""] != "AMBUSH") then
|
| 24 |
+
{
|
| 25 |
+
If (_grp getvariable ["UPSMON_Grpmission",""] != "FORTIFY") then
|
| 26 |
+
{
|
| 27 |
+
If (_grp getvariable ["UPSMON_Grpmission",""] != "RETREAT") then
|
| 28 |
+
{
|
| 29 |
+
If (_grp getvariable ["UPSMON_Grpmission",""] != "SURRENDER") then
|
| 30 |
+
{
|
| 31 |
+
_nowp = false;
|
| 32 |
+
};
|
| 33 |
+
}
|
| 34 |
+
};
|
| 35 |
+
};
|
| 36 |
+
}
|
| 37 |
+
else
|
| 38 |
+
{
|
| 39 |
+
switch (_grp getvariable ["UPSMON_NOWP",0]) do
|
| 40 |
+
{
|
| 41 |
+
case 1:
|
| 42 |
+
{
|
| 43 |
+
If (!IsNull _target) then
|
| 44 |
+
{
|
| 45 |
+
_nowp = false;
|
| 46 |
+
};
|
| 47 |
+
};
|
| 48 |
+
case 2:
|
| 49 |
+
{
|
| 50 |
+
If (_supstatus == "INCAPACITED") then
|
| 51 |
+
{
|
| 52 |
+
_nowp = false;
|
| 53 |
+
};
|
| 54 |
+
};
|
| 55 |
+
case 3:
|
| 56 |
+
{
|
| 57 |
+
//Always Nowp = true
|
| 58 |
+
};
|
| 59 |
+
};
|
| 60 |
+
};
|
| 61 |
+
|
| 62 |
+
_nowp
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_Replace.sqf
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/****************************************************************
|
| 2 |
+
File: UPSMON_Replace.sqf
|
| 3 |
+
Author: KRONZKY
|
| 4 |
+
|
| 5 |
+
Description:
|
| 6 |
+
|
| 7 |
+
Parameter(s):
|
| 8 |
+
|
| 9 |
+
Returns:
|
| 10 |
+
|
| 11 |
+
****************************************************************/
|
| 12 |
+
private["_str","_old","_new","_out","_tmp","_jm","_la","_lo","_ln","_i"];
|
| 13 |
+
|
| 14 |
+
_str=_this select 0;
|
| 15 |
+
_arr=toArray(_str);
|
| 16 |
+
_la=count _arr;
|
| 17 |
+
_old=_this select 1;
|
| 18 |
+
_new=_this select 2;
|
| 19 |
+
_na=[_new] call UPSMON_StrToArray;
|
| 20 |
+
_lo=[_old] call UPSMON_StrLen;
|
| 21 |
+
_ln=[_new] call UPSMON_StrLen;
|
| 22 |
+
_out="";
|
| 23 |
+
for "_i" from 0 to (count _arr)-1 do {
|
| 24 |
+
_tmp="";
|
| 25 |
+
if (_i <= _la-_lo) then {
|
| 26 |
+
for "_j" from _i to (_i+_lo-1) do {
|
| 27 |
+
_tmp=_tmp + toString([_arr select _j]);
|
| 28 |
+
};
|
| 29 |
+
};
|
| 30 |
+
if (_tmp==_old) then {
|
| 31 |
+
_out=_out+_new;
|
| 32 |
+
_i=_i+_lo-1;
|
| 33 |
+
} else {
|
| 34 |
+
_out=_out+toString([_arr select _i]);
|
| 35 |
+
};
|
| 36 |
+
};
|
| 37 |
+
_out
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_SN_EHFIREDNEAR.sqf
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/****************************************************************
|
| 2 |
+
File: UPSMON_SN_EHFIREDNEAR.sqf
|
| 3 |
+
Author: Rafalsky
|
| 4 |
+
|
| 5 |
+
Description:
|
| 6 |
+
|
| 7 |
+
Parameter(s):
|
| 8 |
+
|
| 9 |
+
Returns:
|
| 10 |
+
|
| 11 |
+
****************************************************************/
|
| 12 |
+
private ["_unit","_shooter","_dist"];
|
| 13 |
+
|
| 14 |
+
_unit = _this select 0;
|
| 15 |
+
_shooter = _this select 1;
|
| 16 |
+
_dist = _this select 2;
|
| 17 |
+
|
| 18 |
+
If (alive _unit) then
|
| 19 |
+
{
|
| 20 |
+
If (!(_unit getvariable ["UPSMON_Civfleeing",false])) then
|
| 21 |
+
{
|
| 22 |
+
["FLEE",_unit,_shooter,_dist] spawn UPSMON_Civaction;
|
| 23 |
+
};
|
| 24 |
+
};
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_SN_EHHIT.sqf
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/****************************************************************
|
| 2 |
+
File: UPSMON_SN_EHHIT.sqf
|
| 3 |
+
Author: Rafalsky
|
| 4 |
+
|
| 5 |
+
Description:
|
| 6 |
+
|
| 7 |
+
Parameter(s):
|
| 8 |
+
|
| 9 |
+
Returns:
|
| 10 |
+
|
| 11 |
+
****************************************************************/
|
| 12 |
+
private ["_unit","_shooter","_grpId"];
|
| 13 |
+
_unit = _this select 0;
|
| 14 |
+
_shooter = _this select 1;
|
| 15 |
+
_grp = group _unit;
|
| 16 |
+
|
| 17 |
+
if (!(_unit in UPSMON_GOTHIT_ARRAY)) then
|
| 18 |
+
{
|
| 19 |
+
if (side _unit != side _shooter) then
|
| 20 |
+
{
|
| 21 |
+
UPSMON_GOTHIT_ARRAY pushback _unit;
|
| 22 |
+
if (UPSMON_Debug > 0) then {player globalchat format["UNIT: %1, SHOOTER :%2 %3",_unit,_shooter,side _shooter]};
|
| 23 |
+
};
|
| 24 |
+
};
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_SN_EHKILLED.sqf
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/****************************************************************
|
| 2 |
+
File: UPSMON_SN_EHHIT.sqf
|
| 3 |
+
Author: Rafalsky
|
| 4 |
+
|
| 5 |
+
Description:
|
| 6 |
+
|
| 7 |
+
Parameter(s):
|
| 8 |
+
|
| 9 |
+
Returns:
|
| 10 |
+
|
| 11 |
+
****************************************************************/
|
| 12 |
+
private ["_unit","_shooter","_grpId"];
|
| 13 |
+
_unit = _this select 0;
|
| 14 |
+
_shooter = _this select 1;
|
| 15 |
+
if (typeName _shooter != typeName objNull) then {_shooter = _unit};//added by Barbolani to avoid .rpt error
|
| 16 |
+
_grp = group _unit;
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
if (!(_unit in UPSMON_GOTKILL_ARRAY)) then
|
| 20 |
+
{
|
| 21 |
+
if (side _unit != side _shooter) then
|
| 22 |
+
{
|
| 23 |
+
_alliednear = false;
|
| 24 |
+
|
| 25 |
+
{
|
| 26 |
+
if (alive _x) then
|
| 27 |
+
{
|
| 28 |
+
if (getposATL _unit vectordistance getposATL _x <= 30) exitwith
|
| 29 |
+
{
|
| 30 |
+
_alliednear = true;
|
| 31 |
+
};
|
| 32 |
+
};
|
| 33 |
+
} foreach units _grp;
|
| 34 |
+
|
| 35 |
+
If (_alliednear) then
|
| 36 |
+
{
|
| 37 |
+
UPSMON_GOTKILL_ARRAY pushback _unit;
|
| 38 |
+
//if (UPSMON_Debug > 0) then {player globalchat format["UNIT: %1, SHOOTER :%2 %3",_unit,_shooter,side _shooter]};
|
| 39 |
+
};
|
| 40 |
+
};
|
| 41 |
+
};
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_SN_EHKILLEDCIV.sqf
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/****************************************************************
|
| 2 |
+
File: R_SN_EHKILLEDCIV.sqf
|
| 3 |
+
Author: Rafalsky
|
| 4 |
+
|
| 5 |
+
Description:
|
| 6 |
+
|
| 7 |
+
Parameter(s):
|
| 8 |
+
|
| 9 |
+
Returns:
|
| 10 |
+
|
| 11 |
+
****************************************************************/
|
| 12 |
+
private ["_killer","_side"];
|
| 13 |
+
|
| 14 |
+
_killer = _this select 1;
|
| 15 |
+
|
| 16 |
+
//only if player killed a civilian
|
| 17 |
+
if (isPlayer _killer) then
|
| 18 |
+
{
|
| 19 |
+
KILLED_CIV_COUNTER set [0,(KILLED_CIV_COUNTER select 0) + 1];
|
| 20 |
+
|
| 21 |
+
// if (UPSMON_Debug > 0) then {player globalchat format["KILLER: %1, %2", side _killer,KILLED_CIV_COUNTER ]};
|
| 22 |
+
switch (side _killer) do
|
| 23 |
+
{
|
| 24 |
+
case west:
|
| 25 |
+
{
|
| 26 |
+
KILLED_CIV_COUNTER set [1,(KILLED_CIV_COUNTER select 1) + 1];
|
| 27 |
+
UPSMON_WEST_HM = UPSMON_WEST_HM - UPSMON_Ammountofhostility;
|
| 28 |
+
};
|
| 29 |
+
|
| 30 |
+
case east:
|
| 31 |
+
{
|
| 32 |
+
KILLED_CIV_COUNTER set [2,(KILLED_CIV_COUNTER select 2) + 1];
|
| 33 |
+
UPSMON_EAST_HM = UPSMON_EAST_HM - UPSMON_Ammountofhostility;
|
| 34 |
+
};
|
| 35 |
+
|
| 36 |
+
case resistance:
|
| 37 |
+
{
|
| 38 |
+
KILLED_CIV_COUNTER set [3,(KILLED_CIV_COUNTER select 3) + 1];
|
| 39 |
+
UPSMON_GUER_HM = UPSMON_GUER_HM - UPSMON_Ammountofhostility;
|
| 40 |
+
};
|
| 41 |
+
};
|
| 42 |
+
|
| 43 |
+
KILLED_CIV_COUNTER set [4,_killer];
|
| 44 |
+
|
| 45 |
+
//if (UPSMON_Debug > 0) then {player globalchat format["KILLER: %1", side _killer ]};
|
| 46 |
+
if (UPSMON_Debug > 0) then {player globalchat format["KILLED_CIV_COUNTER: %1",KILLED_CIV_COUNTER]};
|
| 47 |
+
if (R_WHO_IS_CIV_KILLER_INFO > 0) then
|
| 48 |
+
{
|
| 49 |
+
call compile format ["[{UPSMON_Logic_civkill globalChat ""A CIVILIAN WAS KILLED BY %1"";},""BIS_fnc_spawn""] call BIS_fnc_MP;",name _killer];
|
| 50 |
+
};
|
| 51 |
+
};
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_StrInStr.sqf
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/****************************************************************
|
| 2 |
+
File: UPSMON_StrInStr.sqf
|
| 3 |
+
Author: KRONZKY
|
| 4 |
+
|
| 5 |
+
Description:
|
| 6 |
+
|
| 7 |
+
Parameter(s):
|
| 8 |
+
|
| 9 |
+
Returns:
|
| 10 |
+
|
| 11 |
+
****************************************************************/
|
| 12 |
+
private["_out"];
|
| 13 |
+
|
| 14 |
+
_in=_this select 0;
|
| 15 |
+
_out=if (([_this select 0,_this select 1] call UPSMON_StrIndex)==-1) then {false} else {true};
|
| 16 |
+
_out
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_StrIndex.sqf
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/****************************************************************
|
| 2 |
+
File: UPSMON_StrIndex.sqf
|
| 3 |
+
Author: KRONZKY
|
| 4 |
+
|
| 5 |
+
Description:
|
| 6 |
+
|
| 7 |
+
Parameter(s):
|
| 8 |
+
|
| 9 |
+
Returns:
|
| 10 |
+
|
| 11 |
+
****************************************************************/
|
| 12 |
+
private["_hay","_ndl","_lh","_ln","_arr","_tmp","_i","_j","_out"];
|
| 13 |
+
|
| 14 |
+
_hay=_this select 0;
|
| 15 |
+
_ndl=_this select 1;
|
| 16 |
+
_out=-1;
|
| 17 |
+
_i=0;
|
| 18 |
+
if (_hay == _ndl) exitWith {0};
|
| 19 |
+
_lh=[_hay] call UPSMON_StrLen;
|
| 20 |
+
_ln=[_ndl] call UPSMON_StrLen;
|
| 21 |
+
if (_lh < _ln) exitWith {-1};
|
| 22 |
+
_arr=[_hay] call UPSMON_StrToArray;
|
| 23 |
+
for "_i" from 0 to (_lh-_ln) do
|
| 24 |
+
{
|
| 25 |
+
_tmp="";
|
| 26 |
+
for "_j" from _i to (_i+_ln-1) do {
|
| 27 |
+
_tmp=_tmp + (_arr select _j);
|
| 28 |
+
};
|
| 29 |
+
if (_tmp==_ndl) exitWith {_out=_i};
|
| 30 |
+
};
|
| 31 |
+
_out
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_StrLen.sqf
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/****************************************************************
|
| 2 |
+
File: UPSMON_StrLen.sqf
|
| 3 |
+
Author: KRONZKY
|
| 4 |
+
|
| 5 |
+
Description:
|
| 6 |
+
|
| 7 |
+
Parameter(s):
|
| 8 |
+
|
| 9 |
+
Returns:
|
| 10 |
+
|
| 11 |
+
****************************************************************/
|
| 12 |
+
private["_in","_arr","_len"];
|
| 13 |
+
|
| 14 |
+
_in=_this select 0;
|
| 15 |
+
_arr=[_in] call UPSMON_StrToArray;
|
| 16 |
+
_len=count (_arr);
|
| 17 |
+
_len
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_StrToArray.sqf
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/****************************************************************
|
| 2 |
+
File: UPSMON_StrToArray.sqf
|
| 3 |
+
Author: KRONZKY
|
| 4 |
+
|
| 5 |
+
Description:
|
| 6 |
+
|
| 7 |
+
Parameter(s):
|
| 8 |
+
|
| 9 |
+
Returns:
|
| 10 |
+
|
| 11 |
+
****************************************************************/
|
| 12 |
+
private["_in","_i","_arr","_out"];
|
| 13 |
+
|
| 14 |
+
_in=_this select 0;
|
| 15 |
+
_arr = toArray(_in);
|
| 16 |
+
_out=[];
|
| 17 |
+
for "_i" from 0 to (count _arr)-1 do {
|
| 18 |
+
_out=_out+[toString([_arr select _i])];
|
| 19 |
+
};
|
| 20 |
+
_out
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_TRACK.sqf
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/****************************************************************
|
| 2 |
+
File: UPSMON_TRACK.sqf
|
| 3 |
+
Author: Azroul13
|
| 4 |
+
|
| 5 |
+
Description:
|
| 6 |
+
|
| 7 |
+
Parameter(s):
|
| 8 |
+
|
| 9 |
+
Returns:
|
| 10 |
+
|
| 11 |
+
****************************************************************/
|
| 12 |
+
private ["_grpid","_leader","_pos","_rankshort","_lastname","_wppos","_markercolor","_grptype","_drawicon","_text","_trackername","_destname"];
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
While {true} do
|
| 16 |
+
{
|
| 17 |
+
{
|
| 18 |
+
If (!IsNull _x) then
|
| 19 |
+
{
|
| 20 |
+
If (alive (leader _x)) then
|
| 21 |
+
{
|
| 22 |
+
_grpid = _x getvariable ["UPSMON_grpid",0];
|
| 23 |
+
_leader = leader _x;
|
| 24 |
+
_pos = getposATL _leader;
|
| 25 |
+
_rankshort = [rank _leader,"displayNameShort"] call BIS_fnc_rankparams;
|
| 26 |
+
_lastname = name _leader;
|
| 27 |
+
_units = (units _x) - [_leader];
|
| 28 |
+
|
| 29 |
+
_wppos = waypointPosition [_x,count(waypoints _x)-1];
|
| 30 |
+
|
| 31 |
+
_markercolor = switch (side _leader) do {
|
| 32 |
+
case west: {"ColorBlue"};
|
| 33 |
+
case east: {"ColorRed"};
|
| 34 |
+
case resistance: {"ColorGreen"};
|
| 35 |
+
default {"ColorBlack"};
|
| 36 |
+
};
|
| 37 |
+
|
| 38 |
+
_grptype = [_leader] call UPSMON_grptype;
|
| 39 |
+
_drawicon = "b_inf";
|
| 40 |
+
If (_grptype == "Iscar") then {_drawicon = "b_motor_inf"};
|
| 41 |
+
If (_grptype == "IsAir") then {_drawicon = "b_plane";};
|
| 42 |
+
If (_grptype == "Isboat") then {_drawicon = "b_naval";};
|
| 43 |
+
|
| 44 |
+
_text = format ["%1. %2 - Grpcount: %3 - Mission: %4 Status: %5 - Target: %6",_rankshort, _lastname,count units _x,_x getvariable ["UPSMON_Grpmission","PATROL"],_x getvariable ["UPSMON_Grpstatus","GREEN"],_x getvariable ["UPSMON_GrpTarget",ObjNull]];
|
| 45 |
+
|
| 46 |
+
_trackername = format["trk_%1",_grpid];
|
| 47 |
+
|
| 48 |
+
if (getMarkerColor _trackername == "") then
|
| 49 |
+
{
|
| 50 |
+
_markerlead = createMarker [_trackername,[0,0]];
|
| 51 |
+
};
|
| 52 |
+
_trackername setMarkerShape "ICON";
|
| 53 |
+
_trackername setMarkerType _drawicon;
|
| 54 |
+
_trackername setmarkerpos _pos;
|
| 55 |
+
_trackername setmarkercolor _markercolor;
|
| 56 |
+
_trackername setMarkerText _text;
|
| 57 |
+
|
| 58 |
+
If (count(waypoints _x) != 0) then
|
| 59 |
+
{
|
| 60 |
+
_destname = format["dest_%1",_grpid];
|
| 61 |
+
_wptext = format ["%1. %2",_rankshort, _lastname];
|
| 62 |
+
if (getMarkerColor _destname == "") then
|
| 63 |
+
{
|
| 64 |
+
_markerobj = createMarker[_destname,[0,0]];
|
| 65 |
+
};
|
| 66 |
+
_destname setMarkerShape "ICON";
|
| 67 |
+
_destname setMarkerType "mil_objective";
|
| 68 |
+
_destname setmarkerpos _wppos;
|
| 69 |
+
_destname setmarkercolor _markercolor;
|
| 70 |
+
_destname setMarkerText _wptext;
|
| 71 |
+
};
|
| 72 |
+
|
| 73 |
+
If (count _units > 0) then
|
| 74 |
+
{
|
| 75 |
+
_i = 0;
|
| 76 |
+
{
|
| 77 |
+
_i = _i + 1;
|
| 78 |
+
_trackerunit = format["trk_%1_%2",_grpid,_i];
|
| 79 |
+
_unit = _x;
|
| 80 |
+
If (alive _unit) then
|
| 81 |
+
{
|
| 82 |
+
_pos2 = getposATL _unit;
|
| 83 |
+
if (getMarkerColor _trackerunit == "") then
|
| 84 |
+
{
|
| 85 |
+
_markerunit = createMarker [_trackerunit,[0,0]];
|
| 86 |
+
};
|
| 87 |
+
_trackerunit setMarkerShape "ICON";
|
| 88 |
+
_trackerunit setMarkerType "mil_triangle";
|
| 89 |
+
_trackerunit setmarkerpos _pos2;
|
| 90 |
+
_trackerunit setmarkercolor _markercolor;
|
| 91 |
+
_trackerunit setmarkerdir (getdir _unit);
|
| 92 |
+
}
|
| 93 |
+
else
|
| 94 |
+
{
|
| 95 |
+
if (getMarkerColor _trackerunit == "") then
|
| 96 |
+
{
|
| 97 |
+
Deletemarker _trackerunit;
|
| 98 |
+
};
|
| 99 |
+
};
|
| 100 |
+
} foreach _units;
|
| 101 |
+
};
|
| 102 |
+
};
|
| 103 |
+
};
|
| 104 |
+
} foreach UPSMON_Trackednpcs;
|
| 105 |
+
|
| 106 |
+
sleep 0.5;
|
| 107 |
+
};
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_TRACK2.sqf
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/****************************************************************
|
| 2 |
+
File: UPSMON_TRACK.sqf
|
| 3 |
+
Author: Azroul13
|
| 4 |
+
|
| 5 |
+
Description:
|
| 6 |
+
|
| 7 |
+
Parameter(s):
|
| 8 |
+
|
| 9 |
+
Returns:
|
| 10 |
+
|
| 11 |
+
****************************************************************/
|
| 12 |
+
private ["_grp"];
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
_grp = _this select 0;
|
| 16 |
+
If !(_grp in UPSMON_Trackednpcs) then {UPSMON_Trackednpcs set [count UPSMON_Trackednpcs,_grp];};
|
| 17 |
+
_eh = ((findDisplay 12) displayCtrl 51) ctrlAddEventHandler
|
| 18 |
+
["Draw",
|
| 19 |
+
'
|
| 20 |
+
{
|
| 21 |
+
If (!IsNull _x) then
|
| 22 |
+
{
|
| 23 |
+
if (count units _x > 0) then
|
| 24 |
+
{
|
| 25 |
+
_leader = leader _x;
|
| 26 |
+
_rankshort = [rank _leader,"displayNameShort"] call BIS_fnc_rankparams;
|
| 27 |
+
_lastname = name _leader;
|
| 28 |
+
_scale = (sizeof typeof _leader) / 30;
|
| 29 |
+
_units = (units _x) - [_leader];
|
| 30 |
+
_colorblufor = [(profilenamespace getvariable ["Map_BLUFOR_R",0]),(profilenamespace getvariable ["Map_BLUFOR_G",1]),(profilenamespace getvariable ["Map_BLUFOR_B",1]),(profilenamespace getvariable ["Map_BLUFOR_A",0.8])];
|
| 31 |
+
_coloropfor = [(profilenamespace getvariable ["Map_OPFOR_R",0]),(profilenamespace getvariable ["Map_OPFOR_G",1]),(profilenamespace getvariable ["Map_OPFOR_B",1]),(profilenamespace getvariable ["Map_OPFOR_A",0.8])];
|
| 32 |
+
_colorindfor = [(profilenamespace getvariable ["Map_Independent_R",0]),(profilenamespace getvariable ["Map_Independent_G",1]),(profilenamespace getvariable ["Map_Independent_B",1]),(profilenamespace getvariable ["Map_Independent_A",0.8])];
|
| 33 |
+
_colorciv = [(profilenamespace getvariable ["Map_Civilian_R",0]),(profilenamespace getvariable ["Map_Civilian_G",1]),(profilenamespace getvariable ["Map_Civilian_B",1]),(profilenamespace getvariable ["Map_Civilian_A",0.8])];
|
| 34 |
+
_color = [];
|
| 35 |
+
if (side _leader == west) then {_color = _colorblufor;};
|
| 36 |
+
if (side _leader == east) then {_color = _coloropfor;};
|
| 37 |
+
if (side _leader == resistance) then {_color = _colorindfor;};
|
| 38 |
+
if (side _leader == civilian) then {_color = _colorciv;};
|
| 39 |
+
|
| 40 |
+
_align = "right";
|
| 41 |
+
_fontsize = 0.04;
|
| 42 |
+
|
| 43 |
+
_grptype = [_leader] call UPSMON_grptype;
|
| 44 |
+
_drawicon = configfile >> "CfgMarkers" >> "b_inf" >> "icon";
|
| 45 |
+
_drawwpicon = configfile >> "CfgMarkers" >> "mil_objective" >> "icon";
|
| 46 |
+
If (_grptype == "Iscar") then {_drawicon = configfile >> "CfgMarkers" >> "b_motor_inf" >> "icon";};
|
| 47 |
+
If (_grptype == "IsAir") then {_drawicon = configfile >> "CfgMarkers" >> "b_plane" >> "icon";};
|
| 48 |
+
If (_grptype == "Isboat") then {_drawicon = configfile >> "CfgMarkers" >> "b_naval" >> "icon";};
|
| 49 |
+
|
| 50 |
+
_align = "left";
|
| 51 |
+
_textwp = "";
|
| 52 |
+
_text = format ["%1. %2 - Grpcount: %3 - Mission: %4 Status: %5 - Target: %6",_rankshort, _lastname,count units _x,_x getvariable ["UPSMON_Grpmission","PATROL"],_x getvariable ["UPSMON_Grpstatus","GREEN"],_x getvariable ["UPSMON_GrpTarget",ObjNull]];
|
| 53 |
+
|
| 54 |
+
(_this select 0) drawIcon [
|
| 55 |
+
getText _drawicon,
|
| 56 |
+
_color,
|
| 57 |
+
visiblePosition _leader,
|
| 58 |
+
0.5/ctrlMapScale (_this select 0),
|
| 59 |
+
0.5/ctrlMapScale (_this select 0),
|
| 60 |
+
direction _leader,
|
| 61 |
+
--,
|
| 62 |
+
1,
|
| 63 |
+
_fontsize,
|
| 64 |
+
"TahomaB",
|
| 65 |
+
_align
|
| 66 |
+
];
|
| 67 |
+
If (count(waypoints _x) != 0) then
|
| 68 |
+
{
|
| 69 |
+
_wppos = waypointPosition [_x,count(waypoints _x)-1];
|
| 70 |
+
(_this select 0) drawIcon [getText (_drawwpicon), _color,_wppos, 0.5/ctrlMapScale (_this select 0), 0.5/ctrlMapScale (_this select 0), direction _leader, _textwp, 1, _fontsize, "TahomaB", _align];
|
| 71 |
+
};
|
| 72 |
+
_behcolor = [1,1,1,1];
|
| 73 |
+
if (behaviour _leader == "SAFE") then {_behcolor = [0,0.8,0,1]};
|
| 74 |
+
if (behaviour _leader == "AWARE") then {_behcolor = [0.85,0.85,0,1]};
|
| 75 |
+
if (behaviour _leader == "COMBAT") then {_behcolor = [0.9,0,0,1]};
|
| 76 |
+
if (behaviour _leader == "STEALTH") then {_behcolor = [0,0,1,1]};
|
| 77 |
+
if !(((expectedDestination _leader) select 0) select 0 < 1 AND ((expectedDestination _leader) select 0) select 1 < 1) then
|
| 78 |
+
{
|
| 79 |
+
(_this select 0) drawArrow [
|
| 80 |
+
visiblePosition _leader,
|
| 81 |
+
((expectedDestination _leader) select 0),
|
| 82 |
+
_behcolor
|
| 83 |
+
];
|
| 84 |
+
};
|
| 85 |
+
};
|
| 86 |
+
};
|
| 87 |
+
} foreach UPSMON_Trackednpcs
|
| 88 |
+
'
|
| 89 |
+
];
|
| 90 |
+
|
| 91 |
+
/****************************************************************
|
| 92 |
+
_eh = ((findDisplay 12) displayCtrl 51) ctrlAddEventHandler
|
| 93 |
+
[
|
| 94 |
+
"Draw"
|
| 95 |
+
,'
|
| 96 |
+
_leader = leader _grp;
|
| 97 |
+
_rankshort = [rank _leader,"displayNameShort"] call BIS_fnc_rankparams;
|
| 98 |
+
_lastname = name _leader;
|
| 99 |
+
_scale = (sizeof typeof _leader) / 30;
|
| 100 |
+
_colorblufor = [(profilenamespace getvariable ["Map_BLUFOR_R",0]),(profilenamespace getvariable ["Map_BLUFOR_G",1]),(profilenamespace getvariable ["Map_BLUFOR_B",1]),(profilenamespace getvariable ["Map_BLUFOR_A",0.8])];
|
| 101 |
+
_coloropfor = [(profilenamespace getvariable ["Map_OPFOR_R",0]),(profilenamespace getvariable ["Map_OPFOR_G",1]),(profilenamespace getvariable ["Map_OPFOR_B",1]),(profilenamespace getvariable ["Map_OPFOR_A",0.8])];
|
| 102 |
+
_colorindfor = [(profilenamespace getvariable ["Map_Independent_R",0]),(profilenamespace getvariable ["Map_Independent_G",1]),(profilenamespace getvariable ["Map_Independent_B",1]),(profilenamespace getvariable ["Map_Independent_A",0.8])];
|
| 103 |
+
_colorciv = [(profilenamespace getvariable ["Map_Civilian_R",0]),(profilenamespace getvariable ["Map_Civilian_G",1]),(profilenamespace getvariable ["Map_Civilian_B",1]),(profilenamespace getvariable ["Map_Civilian_A",0.8])];
|
| 104 |
+
_color = [];
|
| 105 |
+
if (side _leader == west) then {_color = _colorblufor;};
|
| 106 |
+
if (side _leader == east) then {_color = _coloropfor;};
|
| 107 |
+
if (side _leader == resistance) then {_color = _colorindfor;};
|
| 108 |
+
if (side _leader == civilian) then {_color = _colorciv;};
|
| 109 |
+
|
| 110 |
+
_align = "right";
|
| 111 |
+
_fontsize = 0.04;
|
| 112 |
+
|
| 113 |
+
_grptype = [_leader] call UPSMON_grptype;
|
| 114 |
+
_drawicon = configfile >> "CfgMarkers" >> "b_inf" >> "icon";
|
| 115 |
+
If (_grptype == "Iscar") then {_drawicon = configfile >> "CfgMarkers" >> "b_motor_inf" >> "icon";};
|
| 116 |
+
If (_grptype == "IsAir") then {_drawicon = configfile >> "CfgMarkers" >> "b_plane" >> "icon";};
|
| 117 |
+
If (_grptype == "Isboat") then {_drawicon = configfile >> "CfgMarkers" >> "b_naval" >> "icon";};
|
| 118 |
+
|
| 119 |
+
_align = "left";
|
| 120 |
+
_unitshit = [];
|
| 121 |
+
{if (damage _x >= 0.65) then {_unitshit set [count _unitshit,_x];}}foreach units _leader;
|
| 122 |
+
_text = format ["%1. %2 - Grpcount: %3 - Wounding units: %4",_rankshort, _lastname,count units group _leader,count _unitshit];
|
| 123 |
+
|
| 124 |
+
(_this select 0) drawIcon [getText (_drawicon), _color, visiblePosition _leader, 0.5/ctrlMapScale (_this select 0), 0.5/ctrlMapScale (_this select 0), direction _leader, _text, 1, _fontsize, "TahomaB", _align];
|
| 125 |
+
_behcolor = [1,1,1,1];
|
| 126 |
+
if (behaviour _leader == "SAFE") then {_behcolor = [0.85,0.85,0,1]};
|
| 127 |
+
if (behaviour _leader == "AWARE") then {_behcolor = [0,0.8,0,1]};
|
| 128 |
+
if (behaviour _leader == "COMBAT") then {_behcolor = [0.9,0,0,1]};
|
| 129 |
+
if (behaviour _leader == "STEALTH") then {_behcolor = [0,0,1,1]};
|
| 130 |
+
if !(((expectedDestination _leader) select 0) select 0 < 1 AND ((expectedDestination _leader) select 0) select 1 < 1) then { (_this select 0) drawArrow [visiblePosition _leader, ((expectedDestination _leader) select 0), _behcolor];};'
|
| 131 |
+
];
|
| 132 |
+
****************************************************************/
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_arrayShufflePlus.sqf
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/****************************************************************
|
| 2 |
+
File: UPSMON_arrayShufflePlus.sqf
|
| 3 |
+
Author: KillZoneKid
|
| 4 |
+
|
| 5 |
+
Description:
|
| 6 |
+
|
| 7 |
+
Parameter(s):
|
| 8 |
+
<--- Array
|
| 9 |
+
Returns:
|
| 10 |
+
Array
|
| 11 |
+
****************************************************************/
|
| 12 |
+
|
| 13 |
+
private ["_cnt","_el1","_rnd","_indx","_el2"];
|
| 14 |
+
|
| 15 |
+
_cnt = count _this - 1;
|
| 16 |
+
_el1 = _this select _cnt;
|
| 17 |
+
_this resize _cnt;
|
| 18 |
+
_rnd = random diag_tickTime * _cnt;
|
| 19 |
+
for "_i" from 0 to _cnt do {
|
| 20 |
+
_indx = floor random _rnd % _cnt;
|
| 21 |
+
_el2 = _this select _indx;
|
| 22 |
+
_this set [_indx, _el1];
|
| 23 |
+
_el1 = _el2;
|
| 24 |
+
};
|
| 25 |
+
_this set [_cnt, _el1];
|
| 26 |
+
_this
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_checkbackpack.sqf
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/****************************************************************
|
| 2 |
+
File: UPSMON_checkbackpack.sqf
|
| 3 |
+
Author: Azroul13
|
| 4 |
+
|
| 5 |
+
Description:
|
| 6 |
+
|
| 7 |
+
Parameter(s):
|
| 8 |
+
<--- bagpack
|
| 9 |
+
Returns:
|
| 10 |
+
---> Gun type classname
|
| 11 |
+
---> tripod type classname
|
| 12 |
+
****************************************************************/
|
| 13 |
+
private ["_bagpack","_cfg","_parents","_result","_gun","_tripod","_gun"];
|
| 14 |
+
|
| 15 |
+
_bagpack = _this select 0;
|
| 16 |
+
_cfg = (configFile >> "cfgVehicles" >> _bagpack);
|
| 17 |
+
_parents = [_cfg,true] call BIS_fnc_returnParents;
|
| 18 |
+
|
| 19 |
+
_result = [];
|
| 20 |
+
_gun = "";
|
| 21 |
+
_tripod = [];
|
| 22 |
+
|
| 23 |
+
if ("Weapon_Bag_Base" in _parents) then
|
| 24 |
+
{
|
| 25 |
+
_gun = gettext (configFile >> "cfgVehicles" >> _bagpack >> "assembleInfo" >> "assembleTo");
|
| 26 |
+
_tripod = getarray (configFile >> "cfgVehicles" >> _bagpack >> "assembleInfo" >> "base");
|
| 27 |
+
_result = [_gun,_tripod];
|
| 28 |
+
};
|
| 29 |
+
|
| 30 |
+
_result
|
A3-Antistasi-master/A3-Antistasi-master/A3-Antistasi/Scripts/UPSMON/COMMON/Core/fnc/UPSMON_createmarker.sqf
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/****************************************************************
|
| 2 |
+
File: UPSMON_createmarker.sqf
|
| 3 |
+
Author: Azroul13
|
| 4 |
+
|
| 5 |
+
Description:
|
| 6 |
+
|
| 7 |
+
Parameter(s):
|
| 8 |
+
|
| 9 |
+
Returns:
|
| 10 |
+
|
| 11 |
+
****************************************************************/
|
| 12 |
+
private["_pos","_m","_shape","_type","_color","_size"];
|
| 13 |
+
|
| 14 |
+
_pos = _this select 0;
|
| 15 |
+
_shape = _this select 1;
|
| 16 |
+
_type = _this select 2;
|
| 17 |
+
_color = _this select 3;
|
| 18 |
+
_size = 1;
|
| 19 |
+
If (count _this > 4) then {_size = _this select 4;};
|
| 20 |
+
|
| 21 |
+
_m = createMarker [format["mPos%1%2",(floor(_pos select 0)),(floor(_pos select 1))],_pos];
|
| 22 |
+
_m setmarkerColor _color;
|
| 23 |
+
_m setMarkerShape _shape;
|
| 24 |
+
If (_shape != "ICON") then
|
| 25 |
+
{
|
| 26 |
+
_m setMarkerSize _size;
|
| 27 |
+
_m setMarkerBrush _type
|
| 28 |
+
}
|
| 29 |
+
else
|
| 30 |
+
{
|
| 31 |
+
_m setMarkerType _type;
|
| 32 |
+
If (count _this > 4) then {_m setMarkerText (_this select 4);};
|
| 33 |
+
};
|