红警DIY论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 299|回复: 4

直升机加了副武攻击问题

[复制链接]
发表于 2019-3-5 19:34:10 | 显示全部楼层 |阅读模式

直升机加了副武后,发射完导弹后,飞到敌人头上后就不攻击了,请教一下哪里改的有问题,代码如下
; Hind Transport
[HIND]
UIName=Name:HIND
Name=Hind Transport
Prerequisite=NAWEAP
Primary=BlackHawkCannon2
Secondary=MissileLauncher2
Strength=300
Category=AirPower
JumpJet=yes
Armor=light
TechLevel=7
Sight=7
Speed=15
PitchSpeed=1.1
JumpjetSpeed=35 ;params not defined use defaults (old globals way up top)
JumpjetClimb=10
JumpjetCrash=40 ; Climb, but down
JumpJetAccel=12
JumpJetTurnRate=6
JumpjetHeight=500
JumpjetWobbles=.01
JumpjetDeviation=1
Owner=Russians,Confederation,Africans,Arabs
Cost=1200
Points=15
ROT=10
RadarInvisible=yes
WalkRate=3
IdleRate=3
BalloonHover=yes
Crewed=yes
ConsideredAircraft=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
Maxdebris=3
VoiceSelect=GenSovVehicleSelect
VoiceMove=GenSovVehicleMove
VoiceAttack=GenSovVehicleAttackCommand
DieSound=CrashingSound=GenVehicleDie
ImpactLandSound=GenAircraftCrash
Locomotor={92612C46-F71F-11d1-AC9F-006008055BB5} ;jumpjet
MovementZone=Fly
DamageParticleSystems=SparkSys,SmallGreySSys
AuxSound1=Dummy        ;Taking off
AuxSound2=Dummy        ;Landing
ThreatPosed=0
SpecialThreatValue=1
VeteranAbilities=STRONGER,FIREPOWER,SIGHT,FASTER
EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF
Size=15
HoverAttack=yes
AllowedToStartInMultiplayer=no
ElitePrimary=BlackHawkCannon2E
EliteSecondary=MissileLauncher2E
TooBigToFitUnderBridge=true
Fighter=yes
Crashable=yes
SpeedType=Hover
PreventAttackMove=yes


主武器代码
; Blackhawks gun (from QuadCannon)
[BlackHawkCannon2]
Damage=50
ROF=26
Range=7
Projectile=QuadShell
Speed=100
Warhead=SA2
Report=BlackOpsAttack
Anim=MGUN-N,MGUN-NE,MGUN-E,MGUN-SE,MGUN-S,MGUN-SW,MGUN-W,MGUN-NW
OmniFire=yes


; Nighthawks gun
[BlackHawkCannon2E]
Damage=40
ROF=13
Range=7
Projectile=QuadShell
Speed=100
Warhead=SA2
Report=BlackOpsAttack
Anim=MGUN-N,MGUN-NE,MGUN-E,MGUN-SE,MGUN-S,MGUN-SW,MGUN-W,MGUN-NW
OmniFire=yes

; general multiple small arms fire

[SA2]
Verses=100%,80%,70%,0%,0%,0%,0%,0%,0%,100%,100%
InfDeath=1
AnimList=PIFFPIFF,PIFFPIFF
Bullets=yes
ProneDamage=70%


副武器代码
;GI Missile Launcher
[MissileLauncher2]
Damage=40
ROF=30
Range=16
Burst=2
Projectile=AAHeatSeeker2        ;AirToGroundMissile
Speed=60
Warhead=GUARDWH2
Report=GuardianGIDeployedAttack
MinimumRange=7


;GI Missile Launcher
[MissileLauncher2E]
Damage=50
ROF=20
Range=16
Burst=4
Projectile=AAHeatSeeker2        ;AirToGroundMissile
Speed=60
Warhead=GUARDWH2
Report=GuardianGIDeployedAttack
MinimumRange=7


; Guardian GI warhead
[GUARDWH2]
Wall=yes
Wood=yes
Verses=0%,0%,0%,100%,50%,100%,100%,100%,100%,0%,0%
Conventional=yes
InfDeath=3
AnimList=XGRYSML1,XGRYSML2,EXPLOSML,XGRYMED1,XGRYMED2,EXPLOMED,EXPLOLRG,TWLT070
ProneDamage=50%


发表于 2019-3-6 00:24:16 | 显示全部楼层
jumpjet类单位的武器必须有OmniFire否则会经常卡住无法攻击 你的副武器没有
发表于 2019-3-6 11:14:51 | 显示全部楼层
速度为0+Vertical弹体就能自动转向啦!
 楼主| 发表于 2019-3-6 14:48:21 | 显示全部楼层
改完后好了,为什么直升机攻击时还要飞到敌人头上去,能不能进入到射程里就开火但飞机不再往前飞了,请问下如何修改
发表于 2019-3-6 22:27:41 | 显示全部楼层
Vertical抛射体就有飞到头顶的特性
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|Archiver|手机版|管理员邮箱|红警DIY官方论坛

GMT+8, 2019-6-21 05:53 , Processed in 0.092703 second(s), 14 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表