Posted: Thu Dec 24, 2020 10:40 am Post subject:
Grand Cannon Upgrade ?
I'm trying to get the Grand Cannon to be promoted by having a grater range but its doesn't work.
What am I doing wrong ?
Code:
[GTGCAN]
UIName=Name:GTGCAN
Name=Allied Grand Cannon
BuildCat=Combat
Strength=900
Armor=steel
TechLevel=7
Prerequisite=RADAR,GACNST
Adjacent=2
Sight=10
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
Cost=2000
RequiredHouses=French ; Can't limit Owner without it showing up as a greyed out button on the sidebar since Prereqs would be met. This is new system
Points=30 ; Basically, Owner was meant for Side, not House. (x Houses, 2 Sides)
Power=-100
Crewed=no
ROT=1
Primary=GrandCannonWeapon
Capturable=false
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
DebrisAnims=DBRIS1LG,DBRIS1SM,DBRIS4LG,DBRIS4SM,DBRIS5LG,DBRIS5SM
MaxDebris=8
MinDebris=4
;DamageParticleSystems=SparkSys,LGSparkSys
Powered=yes
Turret=yes
TurretAnim=GTGCANTUR
TurretAnimIsVoxel=true
TurretAnimX=3
TurretAnimY=28
TurretAnimZAdjust=-60
TurretRecoil=yes
TurretTravel=0
BarrelTravel=8
BarrelCompressFrames=3
BarrelHoldFrames=3
BarrelRecoverFrames=40
TurretRotateSound=GrandCannonRotate
WorkingSound=PowerOn
NotWorkingSound=PowerOff
BaseNormal=no
AIBuildThis=yes
ImmuneToPsionics=no ; defaults to yes for buildings, no for others
Drainable=yes
ThreatPosed=50
VeteranAbilities=STRONGER,FIREPOWER
EliteAbilities=STRONGER,FIREPOWER,ROF
ElitePrimary=GrandCannonArtillery-EL
;[WARHEAD]
[GrandArtilleryWH]
Verses=150%,100%,100%,90%,70%,50%,200%,200%,200%,100%,100%
Sparky=yes
Fire=yes
Rocker=yes
InfDeath=4
CellSpread=4
PercentAtMax=.5
AnimList=XGRYSML1,XGRYSML2,EXPLOSML,XGRYMED1,XGRYMED2,EXPLOMED,EXPLOLRG,TWLT070
CausesDelayKill=yes ;Hooks up with EligibleForDelayKill to do timer death instead of instant death
DelayKillFrames=5 ; Frame delay if hits Eligible building directly
DelayKillAtMax=7.0 ; multiply this by above to get delay at CellSpread. This is an upward sloping line, not like damage's fade
Wood=yes
Wall=yes
You're missing Trainable=yes.
Seems the default is actually yes for non-BuildingTypes, but no for BuildingTypes, if the lack of Trainable=no and armed structures still not promoting is anything to go by.
Also, that - in the weapon's name might be problematic. QUICK_EDIT
Okay, I shorten the weapon's name and made it trainable but once it went veteran and fired, it froze the game.
Do you see anything in the code that would do this ?
Code:
[GTGCAN]
UIName=Name:GTGCAN
Name=Allied Grand Cannon
BuildCat=Combat
Strength=900
Armor=steel
TechLevel=7
Prerequisite=RADAR,GACNST
Adjacent=2
Sight=10
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
Cost=2000
RequiredHouses=French ; Can't limit Owner without it showing up as a greyed out button on the sidebar since Prereqs would be met. This is new system
Points=30 ; Basically, Owner was meant for Side, not House. (x Houses, 2 Sides)
Power=-100
Crewed=no
ROT=1
Primary=GrandCannonWeapon
Capturable=false
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
DebrisAnims=DBRIS1LG,DBRIS1SM,DBRIS4LG,DBRIS4SM,DBRIS5LG,DBRIS5SM
MaxDebris=8
MinDebris=4
;DamageParticleSystems=SparkSys,LGSparkSys
Powered=yes
Turret=yes
TurretAnim=GTGCANTUR
TurretAnimIsVoxel=true
TurretAnimX=3
TurretAnimY=28
TurretAnimZAdjust=-60
TurretRecoil=yes
TurretTravel=0
BarrelTravel=8
BarrelCompressFrames=3
BarrelHoldFrames=3
BarrelRecoverFrames=40
TurretRotateSound=GrandCannonRotate
WorkingSound=PowerOn
NotWorkingSound=PowerOff
BaseNormal=no
AIBuildThis=yes
ImmuneToPsionics=no ; defaults to yes for buildings, no for others
Drainable=yes
ThreatPosed=50
Trainable=yes
VeteranAbilities=STRONGER,FIREPOWER
EliteAbilities=STRONGER,FIREPOWER,ROF
ElitePrimary=GrandArtillery
[GrandArtilleryWH]
Verses=150%,100%,100%,90%,70%,50%,200%,200%,200%,100%,100%
Sparky=yes
Fire=yes
Rocker=yes
InfDeath=4
CellSpread=4
PercentAtMax=.5
AnimList=XGRYSML1,XGRYSML2,EXPLOSML,XGRYMED1,XGRYMED2,EXPLOMED,EXPLOLRG,TWLT070
CausesDelayKill=yes ;Hooks up with EligibleForDelayKill to do timer death instead of instant death
DelayKillFrames=5 ; Frame delay if hits Eligible building directly
DelayKillAtMax=7.0 ; multiply this by above to get delay at CellSpread. This is an upward sloping line, not like damage's fade
Wood=yes
Wall=yes
who knows. Remake it from scratch one line at a time
try removing
Code:
CausesDelayKill=yes ;Hooks up with EligibleForDelayKill to do timer death instead of instant death
DelayKillFrames=5 ; Frame delay if hits Eligible building directly
DelayKillAtMax=7.0 ; multiply this by above to get delay at CellSpread. This is an upward sloping line, not like damage's fade
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