|
本帖最后由 FFUR2007SLX2_5 于 2010-11-29 09:37 编辑
使用方法见原帖:A10+Su25火箭炮覆盖指定区域[11月26日更新,3楼SU25]
http://www.chinavme.com/forum-vi ... 7-fromuid-9320.html
12月1日将放出自杀式袭击脚本V1.0
A10 WCRffsx_70mmCoverage.sqs V1.3
下载
Su25 WCRffsx_S8TCoverage.sqs V1.3
下载
A10源码- ;////Let a fixed wing aircraft use 70mm FFAR cover an area \\\\
- ;////Author: WCR_ffsx \\\\
- ;////Usage [aircraft,BombingArea,frequency between each Rockets] exec "WCRffsx_70mmCoverage.sqs" \\\\
- ;////Example: Create a fixed wing aircraft like A10, init is flying. Then use logic to locate \\\\
- ;////your bombing area. Finally, use number to fill in the third position in the arrary as launching frequency. \\\\
- ;////My mailbox:ffur2007slx2_5@126.com \\\\
- ;////======================================================================================================================\\\\
- private ["_AmmoNum"]
- WCR_A10=_this select 0
- WCR_BombArea=_this select 1
- WCR_frequency=_this select 2
- _AmmoNum=14
- WCR_A10G=group WCR_A10
- WCR_A10GA=units WCR_A10G
- WCR_A10GNum=count WCR_A10GA
- if (local player && alive player && player distance WCR_BombArea <=2500 && (damage WCR_A10<0.1) && (WCR_A10 Ammo "FFARLauncher_14">=12) && WCR_A10GNum==1) then {goto "Start"} else {hintSilent "Rockets coverage support is not available at present";goto "exit"}
- #start
- if (alive WCR_A10 && (damage WCR_A10<0.1) && (WCR_A10GNum==1)) then {goto "start0"} else {goto "exit"}
- #start0
- WCR_A10Init=[] spawn {WCR_A10 disableAI "AutoTarget";WCR_A10 disableAI "Target";WCR_A10 flyInHeight 500;WCR_A10 setpos [getpos WCR_BombArea select 0,(getpos WCR_BombArea select 1)-3000,getpos WCR_A10 select 2];removeAllWeapons WCR_A10;"US_Soldier_EP1" createUnit [[getpos WCR_BombArea select 0,(getpos WCR_BombArea select 1)-500,0],WCR_BombArea,"WCR_observer=this;removeallweapons this;dostop this;this setcaptive true;this disableai 'autotarget';this disableai 'target';hideObject this",0]}
- ~0.1
- #start1
- if (alive WCR_A10 &&(damage WCR_A10<0.1)&&(WCR_A10GNum==1)) then {WCR_A10 move getpos WCR_observer} else {goto "exit"}
- if ((WCR_A10 distance WCR_BombArea <=2500) && (alive WCR_A10) && (damage WCR_A10<0.1) && (WCR_A10GNum==1)) then {goto "AngleAdjust"} else {goto "Start1"}
- #AngleAdjust
- WCR_A10 flyInHeight 550
- ~18
- if (alive WCR_A10 && (damage WCR_A10<0.1) && (WCR_A10GNum==1)) then {WCR_A10 setVectorDirAndUp [[0,10,-17],[0,10,0]]} else {goto "exit"}
- if (alive WCR_A10 && (damage WCR_A10<0.1) && (WCR_A10GNum==1)) then {WCR_A10 move getpos WCR_BombArea} else {goto "exit"}
- if (alive WCR_A10 && (damage WCR_A10<0.1) && (WCR_A10GNum==1)) then {WCR_A10 flyinheight 100} else {goto "exit"}
- ~0.25
- #Fire
- if (alive WCR_A10 && (damage WCR_A10<0.1) && (WCR_A10GNum==1)) then {Launcher="R_Hydra_HE" createVehicle [(getpos WCR_A10 select 0)-7,(getpos WCR_A10 select 1)+3,(getpos WCR_A10 select 2)-9]} else {goto "exit"}
- if (alive WCR_A10 && (damage WCR_A10<0.1) && (WCR_A10GNum==1)) then {Launcher setDir getDir WCR_A10} else {goto "exit"}
- if (alive WCR_A10 && (damage WCR_A10<0.1) && (WCR_A10GNum==1)) then {Launcher setVectorDirAndUp [[0,10,-11],[0,10,0]]} else {goto "exit"}
- if (alive WCR_A10 && (damage WCR_A10<0.1) && (WCR_A10GNum==1)) then {Launcher0="R_Hydra_HE" createVehicle [(getpos WCR_A10 select 0)+7,(getpos WCR_A10 select 1)+3,(getpos WCR_A10 select 2)-9]} else {goto "exit"}
- if (alive WCR_A10 && (damage WCR_A10<0.1) && (WCR_A10GNum==1)) then {Launcher0 setDir getDir WCR_A10} else {goto "exit"}
- if (alive WCR_A10 && (damage WCR_A10<0.1) && (WCR_A10GNum==1)) then {Launcher0 setVectorDirAndUp [[0,10,-11],[0,10,0]]} else {goto "exit"}
- ~WCR_frequency
- _AmmoNum=_AmmoNum-2
- if (_AmmoNum>0 && (alive WCR_A10) && (WCR_A10GNum==1)) then {goto "Fire"} else {goto "exit"}
- if (_AmmoNum==0 && (alive WCR_A10) && (WCR_A10GNum==1)) then {WCR_A10 flyinheight 500; deleteVehicle WCR_observer; WCR_A10 setCaptive false; WCR_A10 enableAI "AUTOTARGET"; WCR_A10 enableAI "TARGET"; WCR_A10 setVehicleAmmo 0.5} else {goto "exit"}
- #exit
- exit
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?加入VME
x
评分
-
查看全部评分
|