找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3962|回复: 2

新手求助,空中的单位怎么发射子机?

[复制链接]
发表于 2023-2-11 04:15:39 | 显示全部楼层 |阅读模式
想用基洛夫发射导弹,按照导弹车写的,但是进游戏攻击没反应,求助。
这是代码:
[AIRCENTER]
UIName=Name:ZEP
Name=Kirov Airship
Prerequisite=NAWEAP
Primary=SmallMissileLauncher
Spawns=SmallMissile
SpawnsNumber=8
SpawnRegenRate=140
SpawnReloadRate=0 ; missile spawn don't come back
NoSpawnAlt=no ; alternate voxel for out of spawns: xxxxWO (DREDWO)
FireAngle=32
Strength=2000
Category=AirPower
Armor=medium
TechLevel=10
Sight=8
RadarInvisible=no
MoveToShroud=yes
BalloonHover=yes ; ie never land
;OmniFire=yes ;GEF moving to weapon
Speed=5
JumpjetSpeed=5 ;params not defined use defaults (old globals way up top called Jumpjet controls)
JumpjetClimb=6 ; SJM increased from 2 so Kirov can get out of factory before doors close
JumpjetCrash=12 ; Climb, but down
JumpJetAccel=10
JumpJetTurnRate=2
JumpjetHeight=750
;JumpjetWobbles=.01 ; ! value of zero stop wobbles?  NO!  Wobbles of zero means div by 0 crash.  "How many wobbles would you like?"  "0"  "You must have wobbles!!!  I kill you!"
;JumpjetDeviation=1
JumpjetNoWobbles=yes ; Really small numbers on two lines above don't actually slow down the wobbling since it is the amplitude of a sinusoidal curve
Crashable=yes ; JJ plummets down like aircraft
PitchSpeed=.9
PitchAngle=0
Owner=Russians,Confederation,Africans,Arabs
Cost=2000
Soylent=2000
Points=100
ROT=10
SpeedType=Hover
Crewed=no
ConsideredAircraft=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
MaxDebris=14
IsSelectableCombatant=yes
VoiceSelect=KirovSelect
VoiceMove=KirovMove
VoiceAttack=KirovAttackCommand
VoiceFeedback=
VoiceCrashing=KirovVoiceDie
DieSound=
CreateSound=KirovCreated
CrashingSound=KirovDie
ImpactLandSound=KirovCrash
Locomotor={92612C46-F71F-11d1-AC9F-006008055BB5} ;Jumpjet
MovementZone=Fly
ThreatPosed=30        ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,SmallGreySSys
AuxSound1=Dummy ;Taking off
AuxSound2=Dummy ;Landing
AllowedToStartInMultiplayer=no
VeteranAbilities=STRONGER,FIREPOWER,SIGHT,FASTER
EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF
SelfHealing=Yes
MoveSound=KirovMoveLoop
Parasiteable=no
Size=50
Bunkerable=no; Units default to yes, others default to no

[SmallMissileLauncher]
Damage=25  ;35
ROF=90
Burst=1
Range=25
MinimumRange=6; the missiles need time to align
Spawner=yes
Projectile=InvisibleAG
Speed=25
Warhead=Special
OmniFire=yes
Report=BoomerAttack1

[InvisibleAG]
Inviso=yes
Image=none
ROT=3
AA=no
AG=yes
SubjectToElevation=yes

[SmallMissile]
UIName=NameMISL
Name=Dread Missile
Image=SMALLMISSILE
FireAngle=0
Strength=50
Category=AirPower
Armor=special_2
Spawned=yes
MissileSpawn=yes
TechLevel=-1
Sight=0
RadarInvisible=no
Landable=yes
MoveToShroud=yes
Ammo=1 ;Aircraft are hard wired to require ammo
Speed=16;20
Owner=Russians,Confederation,Africans,Arabs
Cost=50
Points=20
ROT=4
Crewed=no
Explodes=no
GuardRange=45
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
MaxDebris=2
Locomotor={B7B49766-E576-11d3-9BD9-00104B972FE8}
MovementZone=Fly
ThreatPosed=10        ; This value MUST be 0 for all building addons
DamageParticleSystems=SmallGreySSys        ; Sparks don't work well here.  SJM
AuxSound1=DreadnoughtAttack ;Taking off
;AuxSound2=DROPDWN1 ;Landing
ImmuneToPsionics=yes
;VeteranAbilities=STRONGER,FIREPOWER,SIGHT,FASTER
;EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF
NoShadow=no
Selectable=no
Trainable=no
FlyBack=true
DontScore=yes
Missile.Custom=yes
Missile.PauseFrames=0
Missile.TiltFrames=0
Missile.PitchInitial=1
Missile.PitchFinal=1
Missile.TurnRate=0.35
Missile.RaiseRate=1
Missile.Acceleration=1.0
Missile.Altitude=900
Missile.Damage=100
Missile.EliteDamage=200
Missile.BodyLength=128
Missile.LazyCurve=no
Missile.Weapon=Missle-Nuke
Missile.EliteWeapon=Missle-NukeE
Missile.Homing=yes
发表于 2023-2-11 19:52:25 来自手机 | 显示全部楼层
嗯…你的子机单位名称与自定义子机名称不一致,(应写为SmallMissile.XXX)所以无法正常发射。
回复

使用道具 举报

发表于 2023-2-13 22:04:39 | 显示全部楼层
JJ本来就不能射子机导弹,去用奎图斯的替身,或者往JJ里塞一个能射子机导弹的两栖单位。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|Archiver|手机版|管理员邮箱|红警DIY论坛 |网站地图

GMT+8, 2026-9-1 11:41 , Processed in 0.054647 second(s), 17 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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