Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!isServer) exitWith {};
- west setFriend [east, 0];
- east setFriend [west, 0];
- west setFriend [independent, 0];
- independent setFriend [west, 0];
- east setFriend [independent, 1];
- independent setFriend [east, 1];
- _enemyClass = ["LOP_ISTS_OPF_Infantry_TL", "LOP_ISTS_OPF_Infantry_AR", "LOP_ISTS_OPF_Infantry_GL", "LOP_ISTS_OPF_Infantry_Rifleman_5"];
- _enemyGroups = [
- (configfile >> "CfgGroups" >> "East" >> "LOP_ISTS_OPF" >> "Infantry" >> "PO_ISTS_OPF_inf_WEAP_SQ"),
- (configfile >> "CfgGroups" >> "East" >> "LOP_ISTS_OPF" >> "Armored" >> "PO_ISTS_OPF_Combined_Platoon"),
- (configfile >> "CfgGroups" >> "East" >> "LOP_ISTS_OPF" >> "Motorized" >> "PO_ISTS_OPF_MotInf_Team")
- ];
- _zargabad = [4139.904, 4092.213, 0];
- _distance = 400;
- _enemyStaticCount = 100;
- _groupCount = 6;
- _waypointCount = 4;
- _vipClass = "LOP_CHR_Civ_Functionary_01";
- _vipPos = [4249.14,4078.31,3.681];
- _vipName = ["Hugo Chávez","Hugo","Chávez"];
- _houses = _zargabad nearObjects ["House", _distance];
- _roads = _zargabad nearRoads _distance;
- _vipGroup = createGroup civilian;
- _vip = _vipGroup createUnit [_vipClass, _vipPos, [], 0, "NONE"];
- _vip disableAi "PATH";
- _vip setName _vipName;
- _staticGroup = createGroup EAST;
- for "_i" from 0 to _enemyStaticCount do {
- _house = getPos (selectRandom _houses);
- _class = selectRandom _enemyClass;
- _u = _staticGroup createUnit [_class, _house, [], 0, "NONE"];
- _u disableAi "PATH";
- if ((random 1) < 0.2) then {
- _null = [_u] spawn {
- params ["_u"];
- while {alive _u} do {
- sleep random [1, 20, 50];
- _u forceWeaponFire [(currentWeapon _u), (currentWeaponMode _u)];
- };
- };
- };
- };
- for "_i" from 0 to _groupCount do {
- _road = getPos (selectRandom _roads);
- _class = selectRandom _enemyGroups;
- _group = [_road, EAST, _class] call BIS_fnc_spawnGroup;
- for "_j" from 0 to _waypointCount do {
- _road = getPos (selectRandom _roads);
- _wp =_group addWaypoint [_road, _j];
- };
- };
- ###########################################
- _null = [] spawn {
- [player, -1, 0.8, true] call BIS_fnc_sandstorm;
- if (hasInterface) then {
- _hndlCc = ppEffectCreate ["ColorCorrections", 1550];
- _hndlCc ppEffectEnable true;
- _hndlCc ppEffectAdjust [1, 1, 0, [0, 0, 0, 0], [0.8, 0.4, 0.05, 0.3], [0.33, 0.33, 0.33, 0]];
- _hndlCc ppEffectCommit 20;
- waitUntil {ppEffectCommitted _hndlCc};
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement