openmap true;hint parseText format["<br/>--------------------------<br/> <br/><t size='2.4' color='#33CC00'>在地图上点击来确定你的目标点</t><br/><br/>--------------------------<br/>"]; click=0;["gongji","onmapsingleclick",{shengcheng = "Land_HelipadEmpty_F"createvehicle _pos;ATarget setpos _pos;click =1;["gongji","onmapsingleclick"] call BIS_fnc_removestackedeventhandler;
}] call BIS_fnc_addstackedeventhandler;waituntil {click ==1};"firepoint"setmarkerpos getpos ATarget;["GOGOGO","我们的航空母舰在哪里"] call bis_fnc_showsubtitle;sleep 3;
sleep 0.5;openmap false;_need=3;_countf=0;while{_countf<_need}do{_dropposition = getmarkerpos "firepoint";_len = round (random 1800) ;_dir = round (random 360) ;_height=4000;//_plane=["B_Plane_CAS_01_dynamicLoadout_F","B_Plane_Fighter_01_Stealth_F","O_Plane_Fighter_02_Stealth_F","O_Plane_CAS_02_dynamicLoadout_F","Su39","Su34","An2_TK_EP1","L39_TK_EP1","fantry_dynamicLoadout_F"," I_C_Plane_Civil_01_F","I_Plane_Fighter_03_dynamicLoadout_F","B_UAV_01_F","CUP_B_MV22_USMC_RAMPGUN","MQ9PredatorB","pook_MIG29_OPFOR","pook_IL76_IDAP","F16_B52","C130J","pook_SU30_BLUFOR","A10_US_EP1","AV8B","rhsusf_f22","F35B","ITC_F181E","pook_SU27_OPFOR","pook_tu95_OPFOR","I_Plane_Fighter_04_F"]call BIS_fnc_selectRandom;_tarpos=[(_dropPosition select 0)-(_len*sin(_dir)), (_dropPosition select 1)-(_len*cos(_dir)), (_dropPosition select 2)+(_height)];
//_veh = _plane createVehicle _tarpos;_veh = createVehicle ["B_Plane_CAS_01_dynamicLoadout_F", _tarpos, [], 0, "FLY"];//["a10",cket_04_HE_Plane_CAS_01_F","Missile_AGM_02_Plane_CAS_01_F","Bomb_04_Plane_CAS_01_F","Rocket_04_AP_Plane_CAS_01_F"]]//_veh = createVehicle [_plane, _tarpos, [], 0, "FLY"];_grp = createVehicleCrew _veh;//_unit = _grp createUnit [typeOf driver _veh, _grp, [], 0, "cargo"];_veh flyinheight 4000;_veh setVelocity [200,0,0];_veh setVelocityModelSpace [0, 200, 0];_veh setSpeedMode"full";
//_veh setVelocityModelSpace [0, 10, 0];sleep 1;[_grp,_veh] domove getpos player;[_grp, 2] setWaypointType "cycle";_veh selectweapon"Missile_AGM_02_Plane_CAS_01_F";sleep 20;while {_veh ammo "Missile_AGM_02_Plane_CAS_01_F" > 0;} do { [_veh, "Missile_AGM_02_Plane_CAS_01_F"] call BIS_fnc_fire; // sleep 0.1;};sleep 15;
waitUntil { _veh ammo "Missile_AGM_02_Plane_CAS_01_F" == 0; };if ((weapons _veh) find "Bomb_04_Plane_CAS_01_F" >= 0) then { for "_i" from 0 to 20 do { sleep 0.5; [_veh, "Bomb_04_Plane_CAS_01_F"] call BIS_fnc_fire; };};sleep 15;waitUntil { _veh ammo "Bomb_04_Plane_CAS_01_F" == 0; };if ((weapons _veh) find "Rocket_04_AP_Plane_CAS_01_F" >= 0) then { for "_i" from 0 to 20 do { sleep 0.5; [_veh, "Rocket_04_AP_Plane_CAS_01_F"] call BIS_fnc_fire; //t="CBA_O_InvisibleTarget" createVehicle [0,0,0];addMissionEventHandler ["MapSingleClick", { // params ["_units", "_pos", "_alt", "_shift"]; hint str _pos;t setpos _pos; {_x doWatch t;_x doTarget t;_x doSuppressiveFire t;}forEach allunits;}];};};sleep 15;waitUntil { _veh ammo "Rocket_04_AP_Plane_CAS_01_F" == 0; };if ((weapons _veh) find "Missile_AA_04_Plane_CAS_01_F" >= 0) then { for "_i" from 0 to 20 do { sleep 0.5; [_veh, "Missile_AA_04_Plane_CAS_01_F"] call BIS_fnc_fire; }; };sleep 15;waitUntil { _veh ammo "Missile_AA_04_Plane_CAS_01_F" == 0; };if ((weapons _veh) find "CMFlareLauncher" >= 0) then { for "_i" from 0 to 20 do { sleep 0.5; [_veh, "CMFlareLauncher"] call BIS_fnc_fire; }; };sleep 15;waitUntil { _veh ammo "CMFlareLauncher" == 0; };if ((weapons _veh) find "Gatling_30mm_Plane_CAS_01_F" > 1) then { for "_i" from 1 to 2000 do { sleep 0.5; [_veh, "Gatling_30mm_Plane_CAS_01_F"] call BIS_fnc_fire; }; };//[_veh, "cket_04_HE_Plane_CAS_01_F"] call BIS_fnc_fire; // fires HE muzzle of the main cannon//[_veh, "Rocket_04_AP_Plane_CAS_01_F"] call BIS_fnc_fire;
sleep 7;t="CBA_O_InvisibleTarget" createVehicle [0,0,0];addMissionEventHandler ["MapSingleClick", { params ["_units", "_pos", "_alt", "_shift"]; hint str _pos;t setpos _pos; {_x doWatch t;_x doTarget t;_x doSuppressiveFire t;}forEach allunits;}];
sleep 10;_veh setVehicleAmmo 1;};/*waitUntil { _BomberHeight = (getPosATL _veh) select 2; _DropVector = sqrt((2*_BomberHeight)/9.8); _BomberWithTargetDistance = _veh distance _dropPosition; _Speed = ((speed _veh) * 1000) / (60 * 60);
// 可以手动调整_BombFactor 以用于控制投弹的精度 _BombFactor = _BomberHeight; _dropBombDistance = (_DropVector * _Speed) + _BombFactor; // hint format ["目标距离:%1 \n 投弹距离:%2 \n 速度(m/s):%3 \n 高度:%4", _BomberWithTargetDistance, _dropBombDistance, _Speed, _BomberHeight]; _BomberWithTargetDistance <= (_dropBombDistance);};
_veh selectWeapon _Weapon;while {_veh ammo _Weapon > 0;} do { [_veh, _Weapon] call BIS_fnc_fire; // sleep 0.1;};*/
//[_grp,_veh] domove getpos player;/*sleep 7;while {true} do { if (player isIRLaserOn currentWeapon player) then { t="CBA_O_InvisibleTarget" createVehicle [0,0,0];addMissionEventHandler ["MapSingleClick", { params ["_units", "_pos", "_alt", "_shift"]; hint str _pos;t setpos _pos; {_x doWatch t;_x doTarget t;_x doSuppressiveFire t;}forEach allunits;}]; sleep 4; }; };*/
2021年05月22日 07点05分
15