Posted: Mon Jul 31, 2023 6:16 am Post subject:
VeteranAbilities on Aircraft Not Working ?
I have an Allied Airforce Command that spawns 4 fighters when it detects an enemy within range but the problem is once one of these jets hit veterancy, they no longer will attack.
[GADC]
UIName=Name:DRONE COMMAND
Name=DRONE COMMAND
BuildCat=Tech
Image=GAAIRC
Prerequisite=GAAIRC,GATECH
Primary=HornetLauncher
Spawns=AFDRON
SpawnsNumber=4
SpawnRegenRate=600
SpawnReloadRate=150
CanPassiveAquire=yes
Strength=1200
Armor=steel
Adjacent=4
TechLevel=4
Sight=100
;UnitReload=yes
;UnitRepair=yes;gs this is part of reloading + being an aircraft (Repair code is oogly, only Reload got rewritten for four ports.)
;Helipad=yes
Owner=British,French,Germans
ForbiddenHouses=Russians,Confederation,Africans,Arabs,YuriCountry,Americans
AIBasePlanningSide=0 ;gs 0 for Good, 1 for Evil
Cost=2750
Points=70
Power=-50
;Factory=AircraftType
Capturable=true
Crewed=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
DebrisAnims=DBRIS1LG,DBRIS1SM,DBRIS2LG,DBRIS4LG,DBRIS4SM,DBRIS5LG,DBRIS5SM,DBRIS6LG,DBRIS6SM,DBRIS7LG
MaxDebris=28
;MinDebris=14
ThreatPosed=0 ; This value MUST be 0 for all building addons
DamageParticleSystems=LGSparkSys,BigGreySmokeSys
DamageSmokeOffset=75, 270, 140
NumberOfDocks=4
HasStupidGuardMode=false
Radar=yes
Spyable=yes
ImmuneToPsionics=no ; defaults to yes for buildings, no for others
AIBuildThis=yes
Even after commenting out the veteran ability*they still become vets and then won't attack. They just stack up on top of each other going up & down hovering like Bees
; DRONE COMMAND AIRCRAFT
[AFDRON]
UIName=Name:INTRUDER
Name=Intruder
;Image=AMIG
Image=AFDRON
Prerequisite=RADAR
Primary=Maverick
Secondary=AARedEye
;ElitePrimary=Bomb
ElitePrimary=MaverickE
CanPassiveAquire=yes ; Won't try to pick up own targets
CanRetaliate=no; Won't fire back when hit
Strength=200
Spawned=yes
Category=AirPower
Armor=light
TechLevel=-1
Sight=8
RadarInvisible=no
Landable=yes
MoveToShroud=yes
Dock=GADC
PipScale=Ammo
Speed=14
;PitchSpeed=0.9
;PitchAngle=0
JumpjetCrash=20 ; Climb, but down
JumpjetHeight=1750
PitchSpeed=0.9
PitchAngle=2
OmniFire=yes
Owner=Germans,Americans
ForbiddenHouses=Alliance,French,British
Cost=50
Points=20
ROT=6
Ammo=4
Crewed=yes
ConsideredAircraft=yes
AirportBound=no ; If I ever need to land and there are no airports I crash because I can only land on them
GuardRange=110
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
DeathWeapon=JetCrashExplosion
MaxDebris=28
IsSelectableCombatant=no
VoiceSelect=IntruderSelect
VoiceMove=IntruderMove
VoiceAttack=IntruderAttackCommand
VoiceCrashing=IntruderVoiceDie
DieSound=
MoveSound=IntruderMoveLoop
CrashingSound=IntruderDie
ImpactLandSound=GenAircraftCrash
Locomotor={4A582746-9839-11d1-B709-00A024DDAFD1}
MovementZone=Fly
ThreatPosed=20 ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,SmallGreySSys
AuxSound1=IntruderTakeOff ;Taking off
AuxSound2=IntruderLanding ;Landing
;VeteranAbilities=STRONGER,FIREPOWER,SIGHT,FASTER
;EliteAbilities=STRONGER,FIREPOWER,ROF
Fighter=yes
AllowedToStartInMultiplayer=no
ImmuneToPsionics=yes
PreventAttackMove=yes
RollAngle=50
Its not a problem with VeteranAbilities. If you make a building spawn aircraft it has to have a foundation of 1x1 otherwise the aircraft wont be able to land after they are done attacking. This happens because the center of the building's foundation needs to also be the center of a terrain cell in order for the aircraft to land.
A 3x3 or 5x5 foundation might also work but I haven't tested them. _________________
I'd like to try something like this with the tiberian sun engine. Sorry, I don't know enough about the code to be any help. But, I did see this : https://www.moddb.com/mods/retro-generals
Whoever is in charge of that mod definitely knows what they are doing, maybe they can help us. QUICK_EDIT
Spawned aircraft dont work in Tiberium Sun, I think there is a workaround/hack using hunter seeker drones (or something similar) tho.
Dock= is used on units to tell the game what building(s) the unit can dock with to load/unload. Its not used by spawned aircraft as they are already linked to the unit/building spawning them. _________________
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