Posted: Mon Oct 28, 2024 10:27 pm Post subject:
Guns for the Spy & Paradrop Planes ?
I tried to add a weapon to the Spyplane instead of the camera so that it would just fly over and spray the area but it does not work.
I also added guns to the Paradrop plane so that when dropping troops it is also firing at ground units to defend itself but that doesn't work.
How can I code this ?
; Soviet Spy Plane
[SPYP]
UIName=Name:SpyP
Name=Soviet Spy Plane
;Image=PDPLANE
Strength=600
Category=AirLift
Armor=light
TechLevel=-1
Primary=GunCam
;Primary=SpyCameraWeapon
Spawned=yes ; Created by another object and therefore not player controllable
LeadershipRating=10
Selectable=no
RadarInvisible=no
Sight=0
Landable=no
MoveToShroud=yes
PitchAngle=0 ; default is 20 degrees
Speed=15
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
Points=30
ROT=2
Crewed=yes
Ammo=100
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
MaxDebris=40
Locomotor={4A582746-9839-11d1-B709-00A024DDAFD1}
MovementZone=Fly
ThreatPosed=0 ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,SmallGreySSys
ImmuneToPsionics=yes
CanPassiveAquire=no ; Won't try to pick up own targets
CanRetaliate=no; Won't fire back when hit
MoveSound=SpyPlaneMoveLoop
DieSound=
CrashingSound=SpyPlaneDie
ImpactLandSound=GenAircraftCrash
DeathWeapon=BlimpBomb
DeathWeaponDamageModifier=.1;gs needs a death weapon or it will do nothing when it crashes since its weapon is a camera
FlyBy=true ;GEF Don't slow down over your target
; Paratrooper Drop Plane
[PDPLANE]
UIName=Name:PDPLANE
Name=Cargo Plane
Strength=400
Category=AirLift
Armor=light
TechLevel=-1
Primary=ParaDropWeapon ; Doesn't really fire it; dummy weapon
Secondary=GunCam
Spawned=yes ; Created by another object and therefore not player controllable
LeadershipRating=10
Selectable=no
RadarInvisible=no
Sight=0
Landable=no
JumpjetHeight=3000
MoveToShroud=yes
PitchAngle=0 ; default is 20 degrees
Speed=15
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
Points=30
ROT=2
Crewed=yes
Ammo=100
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
Explodes=yes
DeathWeapon=TransportcraftExplosion
MaxDebris=42
Locomotor={4A582746-9839-11d1-B709-00A024DDAFD1}
MovementZone=Fly
ThreatPosed=0 ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,SmallGreySSys
ImmuneToPsionics=yes
CanPassiveAquire=no ; Won't try to pick up own targets
CanRetaliate=no; Won't fire back when hit
MoveSound=PDPlaneMoveLoop
DieSound=
CrashingSound=PDPlaneDie
ImpactLandSound=GenAircraftCrash
[CARGOPLANE]
Image=PDPLANE
UIName=Name:PDPLANE
Name=Transport Plane
Strength=400
Category=AirPower
Primary=GunCam
Armor=light
TechLevel=-1
LeadershipRating=10
;Selectable=no
RadarInvisible=no
Sight=0
Landable=no
JumpjetHeight=3000
MoveToShroud=yes
PitchAngle=0 ; default is 20 degrees
Speed=15
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
Points=30
ROT=2
Crewed=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
Explodes=yes
DeathWeapon=TransportcraftExplosion
MaxDebris=42
Locomotor={4A582746-9839-11d1-B709-00A024DDAFD1}
MovementZone=Fly
ThreatPosed=0 ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,SmallGreySSys
ImmuneToPsionics=yes
CanPassiveAquire=no ; Won't try to pick up own targets
CanRetaliate=no; Won't fire back when hit
MoveSound=PDPlaneMoveLoop
DieSound=
CrashingSound=PDPlaneDie
ImpactLandSound=GenAircraftCrash QUICK_EDIT
To make the spy plane use its weapon you need to us Ares and add SpyPlane.Mission=Attack to the super weapon.
The paradrop plane cant use a weapon. If you use Kratos you could add a stand to the paradrop plane that will use an independent weapon, but it would shoot any targets along its flight path. _________________
If you use Kratos you could add a stand to the paradrop plane that will use an independent weapon, but it would shoot any targets along its flight path.
Sounds great if we could combine between Ares and Kratos, Is that doable or it would give many errors?! QUICK_EDIT
The Ares, Phobos and Kratos expansions can be used together.
Phobos is designed to work with Ares, some of its features requires you also have Ares for them to fully work.
Kratos can be used on its own or with Ares and Phobos, I only know of one Ares feature (UC.PassThrough=) that doesn't work with Kratos. _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum