Skip to content

Commit

Permalink
1.2.4 public
Browse files Browse the repository at this point in the history
  • Loading branch information
Barbolani77 committed Jul 30, 2018
1 parent e0ad65d commit 9c23269
Show file tree
Hide file tree
Showing 11 changed files with 183 additions and 210 deletions.
53 changes: 26 additions & 27 deletions A3-Antistasi/CREATE/AAFroadPatrol.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,27 @@ _grupos = [];
_base = "";
_roads = [];

//_tipos = ["I_MRAP_03_F","I_MRAP_03_hmg_F","I_MRAP_03_gmg_F","I_Heli_light_03_unarmed_F","I_Boat_Armed_01_minigun_F"];
_tipos = vehNATOLight + [vehNATOPatrolHeli,vehNATOBoat];

_arrayAeropuertos = (puertos + aeropuertos + puestos) select {(getMarkerPos _x distance getMarkerPos respawnBuenos < 3000) and ((spawner getVariable _x != 0)) and (lados getVariable [_x,sideUnknown] != buenos)};

if (count _arrayAeropuertos == 0) exitWith {};
_arrayAeropuertos = (puertos + aeropuertos + puestos) select {((spawner getVariable _x != 0)) and (lados getVariable [_x,sideUnknown] != buenos)};
_arrayAeropuertos1 = [];
if !(isMultiplayer) then
{
{
_aeropuerto = _x;
_pos = getMarkerPos _aeropuerto;
if (allUnits findIf {(_x getVariable ["GREENFORSpawn",false]) and (_x distance2d _pos < distanceForLandAttack)} != -1) then {_arrayAeropuertos1 pushBack _aeropuerto};
} forEach _arrayAeropuertos;
}
else
{
{
_aeropuerto = _x;
_pos = getMarkerPos _aeropuerto;
if (playableUnits findIf {(side (group _x) == buenos) and (_x distance2d _pos < distanceForLandAttack)} != -1) then {_arrayAeropuertos1 pushBack _aeropuerto};
} forEach _arrayAeropuertos;
};
if (_arrayAeropuertos1 isEqualTo []) exitWith {};

_base = selectRandom _arrayAeropuertos;
_base = selectRandom _arrayAeropuertos1;
_tipoCoche = "";
_lado = malos;
_tipoPatrol = "LAND";
Expand Down Expand Up @@ -70,7 +83,7 @@ else
else
{
_arrayDestinos = marcadores select {lados getVariable [_x,sideUnknown] == _lado};
_arraydestinos = [_arrayDestinos] call patrolDestinos;
_arraydestinos = [_arrayDestinos,_posBase] call patrolDestinos;
_distancia = 50;
};
};
Expand All @@ -97,17 +110,6 @@ if (_tipoPatrol != "AIR") then
{
_posbase = position ([_posbase] call findNearestGoodRoad);
};
/*
_tam = 10;
while {true} do
{
_roads = _posbase nearRoads _tam;
if (count _roads > 0) exitWith {};
_tam = _tam + 10;
};
_road = _roads select 0;
_posbase = position _road;
*/
};
};

Expand Down Expand Up @@ -158,7 +160,7 @@ while {alive _veh} do
_veh setFuel 1;

waitUntil {sleep 60; (_veh distance _posdestino < _distancia) or ({[_x] call canFight} count _soldados == 0) or (!canMove _veh)};
if (({[_x] call canFight} count _soldados == 0) or (!canMove _veh)) exitWith {};
if !(_veh distance _posdestino < _distancia) exitWith {};
if (_tipoPatrol == "AIR") then
{
_arrayDestinos = marcadores select {lados getVariable [_x,sideUnknown] == _lado};
Expand All @@ -172,20 +174,17 @@ while {alive _veh} do
else
{
_arrayDestinos = marcadores select {lados getVariable [_x,sideUnknown] == _lado};
_arraydestinos = [_arraydestinos] call patrolDestinos;
_arraydestinos = [_arraydestinos,position _veh] call patrolDestinos;
};
};
};

_enemigos = if (_lado == malos) then {"OPFORSpawn"} else {"BLUFORSpawn"};

AAFpatrols = AAFpatrols - 1;

_enemigos = "OPFORSpawn";

if (_lado == malos) then {_enemigos = "BLUFORSpawn"};
{_unit = _x;
waitUntil {sleep 1;!([distanciaSPWN,1,_unit,"GREENFORSpawn"] call distanceUnits) and !([distanciaSPWN,1,_unit,_enemigos] call distanceUnits)};deleteVehicle _unit} forEach _soldados;

{_veh = _x;
if (!([distanciaSPWN,1,_veh,"GREENFORSpawn"] call distanceUnits) and !([distanciaSPWN,1,_veh,_enemigos] call distanceUnits)) then {deleteVehicle _veh}} forEach _vehiculos;
{deleteGroup _x} forEach _grupos;
{deleteGroup _x} forEach _grupos;
AAFpatrols = AAFpatrols - 1;
1 change: 1 addition & 0 deletions A3-Antistasi/REINF/dismissPlayerGroup.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ _units = _this select 0;
_units = _units - [player];
_units = _units select {!(isPlayer _x)};
if (_units isEqualTo []) exitWith {};
if (_units findIf {[_x] call canFight} != -1) exitWith {hint "You cannot disband supressed, undercover or unconscious units"};
player globalChat "Get out of my sight you useless scum!";

_nuevoGrp = createGroup buenos;
Expand Down
64 changes: 28 additions & 36 deletions A3-Antistasi/Templates/A3-AA-BLUFORTemplate.Altis/mission.sqm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class EditorData
angleGridStep=0.2617994;
scaleGridStep=1;
autoGroupingDist=10;
toggles=1666;
toggles=1538;
class ItemIDProvider
{
nextID=1638;
Expand All @@ -20,10 +20,10 @@ class EditorData
};
class Camera
{
pos[]={3617.5967,30.477724,10246.399};
dir[]={-0.21806161,-0.41482627,0.88339162};
up[]={-0.099414624,0.90989721,0.40274021};
aside[]={0.97086322,7.1013346e-008,0.23965408};
pos[]={8420.4658,154.61513,25053.641};
dir[]={0.07429193,-0.59449989,0.80066264};
up[]={0.054926567,0.80409461,0.59195727};
aside[]={0.99572641,6.8401278e-008,-0.092391409};
};
};
binarizationWanted=0;
Expand Down Expand Up @@ -3340,7 +3340,7 @@ class Mission
position[]={8780.8975,35.592316,12043.754};
name="road_1";
type="hd_arrow";
angle=223.50801;
angle=223.508;
id=1441;
};
class Item244
Expand Down Expand Up @@ -3695,7 +3695,7 @@ class Mission
position[]={26493.066,20.179955,21324.83};
name="road_40";
type="hd_arrow";
angle=113.11621;
angle=113.1162;
id=1483;
};
class Item283
Expand Down Expand Up @@ -6916,18 +6916,17 @@ class Mission
dataType="Object";
class PositionInfo
{
position[]={8430.2979,115.69852,25110.719};
position[]={8430.2979,111.02235,25110.719};
};
side="East";
flags=3;
flags=7;
class Attributes
{
init="grupoPlayersCSAT = group this;this setVariable [""pvp"",true]";
isPlayable=1;
};
id=1573;
type="O_T_Recon_TL_F";
atlOffset=4.6761627;
class CustomAttributes
{
class Attribute0
Expand Down Expand Up @@ -6976,149 +6975,142 @@ class Mission
dataType="Object";
class PositionInfo
{
position[]={8425.4854,113.86494,25106.207};
position[]={8425.4854,110.56212,25106.207};
};
side="East";
flags=1;
flags=5;
class Attributes
{
init="this setVariable [""pvp"",true]";
isPlayable=1;
};
id=1574;
type="O_T_Recon_Medic_F";
atlOffset=3.3028183;
};
class Item2
{
dataType="Object";
class PositionInfo
{
position[]={8434.96,117.18531,25106.357};
position[]={8434.96,109.85142,25106.357};
};
side="East";
flags=1;
flags=5;
class Attributes
{
init="this setVariable [""pvp"",true]";
isPlayable=1;
};
id=1575;
type="O_T_Recon_M_F";
atlOffset=7.3338928;
};
class Item3
{
dataType="Object";
class PositionInfo
{
position[]={8421.1982,112.66537,25101.018};
position[]={8421.1982,110.12844,25101.018};
};
side="East";
flags=1;
flags=5;
class Attributes
{
init="this setVariable [""pvp"",true]";
isPlayable=1;
};
id=1576;
type="O_T_Recon_LAT_F";
atlOffset=2.5369263;
};
class Item4
{
dataType="Object";
class PositionInfo
{
position[]={8438.5693,118.64498,25101.168};
position[]={8438.5693,108.72075,25101.168};
};
side="East";
flags=1;
flags=5;
class Attributes
{
init="this setVariable [""pvp"",true]";
isPlayable=1;
};
id=1577;
type="O_T_Recon_F";
atlOffset=9.9242325;
};
class Item5
{
dataType="Object";
class PositionInfo
{
position[]={8416.7627,111.48867,25096.656};
position[]={8416.7627,109.83904,25096.656};
};
side="East";
flags=1;
flags=5;
class Attributes
{
init="this setVariable [""pvp"",true]";
isPlayable=1;
};
id=1578;
type="O_T_Recon_Exp_F";
atlOffset=1.6496277;
};
class Item6
{
dataType="Object";
class PositionInfo
{
position[]={8441.2764,120.19041,25097.332};
position[]={8441.2764,108.02316,25097.332};
};
side="East";
flags=1;
flags=5;
class Attributes
{
init="this setVariable [""pvp"",true]";
isPlayable=1;
};
id=1579;
type="O_T_Recon_JTAC_F";
atlOffset=12.167252;
};
class Item7
{
dataType="Object";
class PositionInfo
{
position[]={8444.0596,121.97874,25094.1};
position[]={8444.0596,107.40377,25094.1};
};
side="East";
flags=1;
flags=5;
class Attributes
{
init="this setVariable [""pvp"",true]";
isPlayable=1;
};
id=1580;
type="O_T_Soldier_UAV_F";
atlOffset=14.574966;
};
};
class Attributes
{
};
id=1572;
atlOffset=4.6761627;
};
class Item326
{
dataType="Object";
class PositionInfo
{
position[]={8422.2021,117.4845,25112.369};
position[]={8422.2021,115.51098,25112.369};
angles[]={6.2711902,0,0.04796192};
};
side="Empty";
flags=4;
class Attributes
{
init="if !(isMultiplayer) then {deleteVehicle this}";
};
id=1581;
type="Flag_Viper_F";
atlOffset=1.9735184;
};
class Item327
{
Expand Down Expand Up @@ -8946,7 +8938,7 @@ class Mission
isPlayable=1;
id=1636;
type="HeadlessClient_F";
atlOffset=3.0517578e-005;
atlOffset=3.9100647e-005;
};
class Item355
{
Expand All @@ -8960,7 +8952,7 @@ class Mission
isPlayable=1;
id=1637;
type="HeadlessClient_F";
atlOffset=2.6702881e-005;
atlOffset=3.528595e-005;
};
};
class Connections
Expand Down
Loading

0 comments on commit 9c23269

Please sign in to comment.