找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 8110|回复: 4

【求助】空中单位发射子机的bug问题

[复制链接]
发表于 2020-12-6 21:38:13 | 显示全部楼层 |阅读模式
ppm上找到个sc2航母的素材,心血来潮便做了一个玩,但却发现了一些bug
1.使用飞行运动方式(航空母舰的子机的Locomotor=)会有极大概率ie,原因不明,因此改外了jumpjet运动方式
2.jumpjet运动方式仍旧有极小概率ie,且有时候拦截机发出后不会攻击目标而是莫名其妙往前猛冲,飞他个半张地图再折返。。。。。。。。。。依旧原因不明
求解答

以下是航母代码
[PAircraftCarrier]
Image=PAIRCRAFTCARRIER
UIName=Name:CAarrier
Name=Kirov Airship
Prerequisite=NAWEAP,NATECH
Strength=2000
Category=AirPower
Armor=medium
Primary=PAircraftCarrierLead
TechLevel=9
Sight=8
RadarInvisible=no
MoveToShroud=yes
BalloonHover=yes ; ie never land
;OmniFire=yes ;GEF moving to weapon
Speed=8.5
JumpjetSpeed=10 ;params not defined use defaults (old globals way up top called Jumpjet controls)
JumpjetClimb=12 ; 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,YuriCountry,British,French,Germans,Americans,Alliance
Cost=5000
Soylent=2000
Points=100
ROT=1
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=80        ; 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
SelfHealing.Amount=3
;SelfHealing.Max=50%
SelfHealing.CombatDelay=60
MoveSound=KirovMoveLoop
Parasiteable=no
Size=50
Bunkerable=no; Units default to yes, others default to no
PixelSelectionBracketDelta=-100
GuardRange=30
DefaultToGuardArea=yes

InitialPayload.Types=InterceptorLaunchUnite
InitialPayload.Nums=5
NoManualUnload=yes
Survivor.RookiePassengerChance=0
Passengers=20
OpenTopped=yes

[PAircraftCarrierLead];控制航母载员攻击的武器
Damage=0
Projectile=InvisibleAll
Warhead=special
Range=10

[InterceptorLaunchUnite];航母载员
Category=Soldier
Size=1
;VHPScan=Strong
;RadialFireSegments=3
DistributedFire=yes
;DefaultToGuardArea=yes
;GuardRange=10

Primary=InterceptorLauncher
Spawns=Interceptor
SpawnsNumber=2
SpawnRegenRate=1000

[InterceptorLauncher]
Damage=1
ROF=150
Range=10
Spawner=yes
Projectile=InvisibleAll
Speed=10
Warhead=Special
OmniFire=yes

[Interceptor];拦截机
Image=INTERCEPTOR
UIName=Name:HORNET
Name=Hornet
Primary=InterceptorWeapon
Strength=50
Category=AirPower
Armor=light
Spawned=yes
Sight=2
RadarInvisible=no
Landable=yes
MoveToShroud=yes
Speed=26
PitchSpeed=0.5
PitchAngle=20
Owner=Russians,Confederation,Africans,Arabs,YuriCountry,British,French,Germans,Americans,Alliance
Cost=50
Points=20
ROT=3
RollAngle=35
Ammo=99999
Crewed=no
Survivor.Pilots=0
Survivor.RookiePilotChance=0
Survivor.RookiePassengerChance=0
GuardRange=30
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
ImpactLandSound=GenAircraftCrash
Locomotor={92612C46-F71F-11d1-AC9F-006008055BB5} ;Jumpjet
MovementZone=Hover
JumpjetSpeed=80 ;params not defined use defaults (old globals way up top called Jumpjet controls)
JumpjetClimb=18 ; SJM increased from 2 so Kirov can get out of factory before doors close
JumpjetCrash=12 ; Climb, but down
JumpJetAccel=10
JumpJetTurnRate=30
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 ;

ThreatPosed=10        ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,SmallGreySSys
AuxSound1=HornetTakeoff ;Taking off
AuxSound2=HornetLanding ;Landing
ImmuneToPsionics=yes
Selectable=no        ; SJM: this should be here but is commented out because bug prevents aircraft from landing
Fighter=yes
Trainable=no
Crashable=no
HoverAttack=yes
FlyBy=yes
OpportunityFire=yes
OmniFire=yes

[InterceptorWeapon]
Damage=40
ROF=40
Range=4.5
Burst=2
Projectile=PrismSeeker
Speed=100
Warhead=InterceptorWH
Report=GuardianGIDeployedAttack
CellRangefinding=yes
OmniFire=yes
TurboBoost =yes
CellRangefinding=yes

[PrismSeeker]
Arm=0
Shadow=no
Proximity=no
Ranged=no
AA=yes
AG=yes
Image=InterceptorPrism
ROT=60
SubjectToCliffs=no
SubjectToElevation=no
SubjectToWalls=no
CourseLockDuration=20

[InterceptorWH]
CellSpread=.3
PercentAtMax=.5
Wall=no
Wood=yes
Verses=90%,65%,45%,75%,50%,30%,50%,45%,55%,60%,100%
ProneDamage=50%
Conventional=yes
InfDeath=2
AnimList=XGRYSML1,XGRYSML2,EXPLOSML,XGRYMED1,XGRYMED2,EXPLOMED,EXPLOLRG
Tiberium=yes
Bright=yes
发表于 2020-12-7 16:02:28 | 显示全部楼层
1、子机飞出地图就会IE
2、离地的单位不能发射子机,就是不能做航母,会导致子机找不到自己的老巢在哪里而乱飞,空中航母需要Ares2.0以上版本和运气。

回复

使用道具 举报

 楼主| 发表于 2020-12-7 22:51:24 | 显示全部楼层
双杀步枪 发表于 2020-12-7 16:02
1、子机飞出地图就会IE
2、离地的单位不能发射子机,就是不能做航母,会导致子机找不到自己的老巢在哪里而 ...

就是使用的ares2.0版本,但依旧有问题,小飞机有小概率会不攻击目标而是直线往前飞,飞了半张图再回航母里,是由于初始载员发射子机的关系么。
还有一个问题就是即使子机有Crashable=no,在航母坠落时依旧会坠落而且无论jumpjet坠落速度调的多少这拦截机的尸体都不会消失。求大佬解答
回复

使用道具 举报

发表于 2020-12-8 11:07:45 | 显示全部楼层
1、运气。
2、子机是飞机Aircraft又不是Jumpjet,你觉得Jumpjet的设置会有用么。母舰死亡,就会强制子机死亡,直接复制一个黄蜂就完事了。
回复

使用道具 举报

发表于 2020-12-10 23:14:22 | 显示全部楼层
先做个基洛夫空艇+黄蜂,再一步一步改
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-8-31 05:42 , Processed in 0.056224 second(s), 17 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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