RT。我的武直是修改苏军的武直,去掉其在地上展开成小巨炮的能力,然后用增加旋转炮塔的方式让其旋翼旋转,但是其运动方式却出现了问题。在直升机悬停和移动的时候,机身不断的以自身坐标轴中心左右剧烈摆动,而且鼠标光标移到直升机上的时候仍然有“展开”的样式,只是在命令其展开的时候直升机只是在原地上空盘旋了一圈就下降到地上,并没有展开。
; Soviet Siege Chopper
[SCHP]
UIName=Name:SiegeChopper
Name=Soviet Siege Chopper
;Image=SHAD
Prerequisite=NAWEAP,TECH
Primary=Machinecannon
Secondary=TVMissile
Strength=250
NavalTargeting=1
Sensors=yes
SensorsSight=8
Category=AirPower
JumpJet=yes
Armor=light
TechLevel=7
Sight=7
Speed=12
PitchSpeed=1.1
JumpjetSpeed=30 ;params not defined use defaults (old globals way up top)
JumpjetClimb=12
JumpjetCrash=40 ; Climb, but down
JumpJetAccel=12
JumpJetTurnRate=6
JumpjetHeight=600
JumpjetWobbles=.01
JumpjetDeviation=1
Owner=Russians,Confederation,Africans,Arabs
Cost=1750
Soylent=1500
Points=30
ROT=5
Crewed=no
ConsideredAircraft=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
MaxDebris=3
VoiceSelect=SeigeChopperSelect
VoiceMove=SeigeChopperMove
VoiceAttack=SeigeChopperAttackAir
VoiceSecondaryWeaponAttack=SeigeChopperAttackLand
VoiceCrashing=SeigeChopperVoiceDie
CrashingSound=SeigeChopperDie
DieSound=
ImpactLandSound=GenAircraftCrash
;Locomotor={4A582746-9839-11d1-B709-00A024DDAFD1} ;flying
Locomotor={92612C46-F71F-11d1-AC9F-006008055BB5} ;jumpjet
MovementZone=Fly
DamageParticleSystems=SparkSys,SmallGreySSys
;AuxSound1=BlackOpsTakeOff ;Taking off
;AuxSound2=BlackOpsLanding ;Landing
ThreatPosed=0
SpecialThreatValue=1
VeteranAbilities=STRONGER,FIREPOWER,SIGHT,FASTER,SELF_HEAL
EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF
Size=15
SizeLimit=2
HoverAttack=yes
AllowedToStartInMultiplayer=no
Crashable=yes
;CanPassiveAquire=no ; Won't try to pick up own targets
SpeedType=Hover
MoveSound=SeigeChopperMoveLoop
EnterTransportSound=EnterTransport
LeaveTransportSound=ExitTransport
ElitePrimary=MachinecannonE
EliteSecondary=TVMissileE
PreventAttackMove=yes
TooBigToFitUnderBridge=true
Trainable=yes
Bunkerable=no; Units default to yes, others default to no
IsSimpleDeployer=yes
AntiInfantryValue=15
AntiArmorValue=25
AntiAirValue=0
Turret=yes
TurretSpins=yes
IsSelectableCombatant=yes ; TR
BuildTimeMultiplier=0.7
BalloonHover=yes

我新增的AH-64阿帕奇的代码与其极其相似,只是武器不同和调用的模型不同而已,但阿帕奇的运动方式却一切正常。
[Militiary Chopper]
UIName=Name:Gunship
Name=Gunship
Prerequisite=GAWEAP,GATECH,RADAR
Primary=15mm
Secondary=TVMissile
Strength=250
Category=AirPower
JumpJet=yes
Armor=light
TechLevel=7
Sight=7
Speed=12
NavalTargeting=1
Sensors=yes
SensorsSight=8
PitchSpeed=1.1
JumpjetSpeed=30 ;params not defined use defaults (old globals way up top)
JumpjetClimb=12
JumpjetCrash=40 ; Climb, but down
JumpJetAccel=12
JumpJetTurnRate=6
JumpjetHeight=800
JumpjetWobbles=.01
JumpjetDeviation=1
Owner=British,French,Germans,Americans,Alliance
Cost=1750
Soylent=1500
Points=30
ROT=5
Crewed=no
ConsideredAircraft=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
MaxDebris=3
VoiceSelect=SeigeChopperSelect
VoiceMove=SeigeChopperMove
VoiceAttack=SeigeChopperAttackAir
VoiceSecondaryWeaponAttack=SeigeChopperAttackLand
VoiceCrashing=SeigeChopperVoiceDie
CrashingSound=SeigeChopperDie
DieSound=
ImpactLandSound=GenAircraftCrash
;Locomotor={4A582746-9839-11d1-B709-00A024DDAFD1} ;flying
Locomotor={92612C46-F71F-11d1-AC9F-006008055BB5} ;jumpjet
MovementZone=Fly
SpeedType=Hover
DamageParticleSystems=SparkSys,SmallGreySSys
;AuxSound1=BlackOpsTakeOff ;Taking off
;AuxSound2=BlackOpsLanding ;Landing
ThreatPosed=0
SpecialThreatValue=1
VeteranAbilities=STRONGER,FIREPOWER,SIGHT,FASTER,SELF_HEAL
EliteAbilities=STRONGER,FIREPOWER,ROF,SELF_HEAL
Size=15
SizeLimit=2
AntiInfantryValue=15
AntiArmorValue=25
AntiAirValue=0
HoverAttack=yes
AllowedToStartInMultiplayer=no
Crashable=yes
;CanPassiveAquire=no ; Won't try to pick up own targets
SpeedType=Hover
MoveSound=SeigeChopperMoveLoop
ElitePrimary=15mmE
EliteSecondary=TVMissileE
PreventAttackMove=yes
TooBigToFitUnderBridge=true
Trainable=yes
Bunkerable=no; Units default to yes, others default to no
Turret=yes
TurretSpins=yes
IsSelectableCombatant=yes ; TR
Image=APACHE
BuildTimeMultiplier=.7
BalloonHover=yes
; Soviet Siege Chopper
[SCHP]
UIName=Name:SiegeChopper
Name=Soviet Siege Chopper
;Image=SHAD
Prerequisite=NAWEAP,TECH
Primary=Machinecannon
Secondary=TVMissile
Strength=250
NavalTargeting=1
Sensors=yes
SensorsSight=8
Category=AirPower
JumpJet=yes
Armor=light
TechLevel=7
Sight=7
Speed=12
PitchSpeed=1.1
JumpjetSpeed=30 ;params not defined use defaults (old globals way up top)
JumpjetClimb=12
JumpjetCrash=40 ; Climb, but down
JumpJetAccel=12
JumpJetTurnRate=6
JumpjetHeight=600
JumpjetWobbles=.01
JumpjetDeviation=1
Owner=Russians,Confederation,Africans,Arabs
Cost=1750
Soylent=1500
Points=30
ROT=5
Crewed=no
ConsideredAircraft=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
MaxDebris=3
VoiceSelect=SeigeChopperSelect
VoiceMove=SeigeChopperMove
VoiceAttack=SeigeChopperAttackAir
VoiceSecondaryWeaponAttack=SeigeChopperAttackLand
VoiceCrashing=SeigeChopperVoiceDie
CrashingSound=SeigeChopperDie
DieSound=
ImpactLandSound=GenAircraftCrash
;Locomotor={4A582746-9839-11d1-B709-00A024DDAFD1} ;flying
Locomotor={92612C46-F71F-11d1-AC9F-006008055BB5} ;jumpjet
MovementZone=Fly
DamageParticleSystems=SparkSys,SmallGreySSys
;AuxSound1=BlackOpsTakeOff ;Taking off
;AuxSound2=BlackOpsLanding ;Landing
ThreatPosed=0
SpecialThreatValue=1
VeteranAbilities=STRONGER,FIREPOWER,SIGHT,FASTER,SELF_HEAL
EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF
Size=15
SizeLimit=2
HoverAttack=yes
AllowedToStartInMultiplayer=no
Crashable=yes
;CanPassiveAquire=no ; Won't try to pick up own targets
SpeedType=Hover
MoveSound=SeigeChopperMoveLoop
EnterTransportSound=EnterTransport
LeaveTransportSound=ExitTransport
ElitePrimary=MachinecannonE
EliteSecondary=TVMissileE
PreventAttackMove=yes
TooBigToFitUnderBridge=true
Trainable=yes
Bunkerable=no; Units default to yes, others default to no
IsSimpleDeployer=yes
AntiInfantryValue=15
AntiArmorValue=25
AntiAirValue=0
Turret=yes
TurretSpins=yes
IsSelectableCombatant=yes ; TR
BuildTimeMultiplier=0.7
BalloonHover=yes
我新增的AH-64阿帕奇的代码与其极其相似,只是武器不同和调用的模型不同而已,但阿帕奇的运动方式却一切正常。
[Militiary Chopper]
UIName=Name:Gunship
Name=Gunship
Prerequisite=GAWEAP,GATECH,RADAR
Primary=15mm
Secondary=TVMissile
Strength=250
Category=AirPower
JumpJet=yes
Armor=light
TechLevel=7
Sight=7
Speed=12
NavalTargeting=1
Sensors=yes
SensorsSight=8
PitchSpeed=1.1
JumpjetSpeed=30 ;params not defined use defaults (old globals way up top)
JumpjetClimb=12
JumpjetCrash=40 ; Climb, but down
JumpJetAccel=12
JumpJetTurnRate=6
JumpjetHeight=800
JumpjetWobbles=.01
JumpjetDeviation=1
Owner=British,French,Germans,Americans,Alliance
Cost=1750
Soylent=1500
Points=30
ROT=5
Crewed=no
ConsideredAircraft=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
MaxDebris=3
VoiceSelect=SeigeChopperSelect
VoiceMove=SeigeChopperMove
VoiceAttack=SeigeChopperAttackAir
VoiceSecondaryWeaponAttack=SeigeChopperAttackLand
VoiceCrashing=SeigeChopperVoiceDie
CrashingSound=SeigeChopperDie
DieSound=
ImpactLandSound=GenAircraftCrash
;Locomotor={4A582746-9839-11d1-B709-00A024DDAFD1} ;flying
Locomotor={92612C46-F71F-11d1-AC9F-006008055BB5} ;jumpjet
MovementZone=Fly
SpeedType=Hover
DamageParticleSystems=SparkSys,SmallGreySSys
;AuxSound1=BlackOpsTakeOff ;Taking off
;AuxSound2=BlackOpsLanding ;Landing
ThreatPosed=0
SpecialThreatValue=1
VeteranAbilities=STRONGER,FIREPOWER,SIGHT,FASTER,SELF_HEAL
EliteAbilities=STRONGER,FIREPOWER,ROF,SELF_HEAL
Size=15
SizeLimit=2
AntiInfantryValue=15
AntiArmorValue=25
AntiAirValue=0
HoverAttack=yes
AllowedToStartInMultiplayer=no
Crashable=yes
;CanPassiveAquire=no ; Won't try to pick up own targets
SpeedType=Hover
MoveSound=SeigeChopperMoveLoop
ElitePrimary=15mmE
EliteSecondary=TVMissileE
PreventAttackMove=yes
TooBigToFitUnderBridge=true
Trainable=yes
Bunkerable=no; Units default to yes, others default to no
Turret=yes
TurretSpins=yes
IsSelectableCombatant=yes ; TR
Image=APACHE
BuildTimeMultiplier=.7
BalloonHover=yes












