Posted: Sun Jul 26, 2015 8:05 pm Post subject:
Building Upgrade w/ Turret help
I've been trying to get the Pill Box to have an AA upgrade via adding a new turret to it. Works well with the weapon, the pill box will attack both ground and air units but there's only 1 problem, when you build the upgrade it will play out as a full animation from start to finish including shadow frames then it disappears.
I've tried copying the code straight from TS but same thing happens. Any thoughts?
RULES
Code:
[Animations]
745=GAPILLAA
746=GAPILL_B
Code:
[BuildingTypes]
423=GAPILLAA
Code:
; PillBox
[GAPILL]
Upgrades=1
UIName=Name:GAPILL
Name=Allied Pill Box
BuildCat=Combat
Strength=600
Armor=steel
Prerequisite=GAPILE,GACNST
TechLevel=1
Adjacent=8
AirRangeBonus=4
ROT=12
Sight=7
HasRadialIndicator=yes
CloakRadiusInCells=5
DetectDisguise=no
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
AIBasePlanningSide=0 ;gs 0 for Good, 1 for Evil
Cost=500
BaseNormal=no
Points=30
Power=0
Crewed=no
Capturable=false
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
DebrisAnims=Dbris1sm,Dbris1lg,Dbris4sm,Dbris5sm,Dbris4lg,Dbris7sm,Dbris8sm,Dbris5lg,Dbris4lg
MaxDebris=15
MinDebris=5
Primary=Vulcan2
ElitePrimary=Vulcan2E
Turret=yes
;TurretAnim=GAPILL_B
;TurretAnimIsVoxel=false
TurretAnimX=0
TurretAnimY=12
TurretAnimZAdjust=-80
ThreatPosed=30 ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,LGSparkSys
IsBaseDefense=yes
HasStupidGuardMode=false
ImmuneToPsionics=no ; defaults to yes for buildings, no for others
AntiInfantryValue=25
AntiArmorValue=10
AntiAirValue=0
Trainable=yes
VeteranAbilities=STRONGER,FIREPOWER,SIGHT,FASTER
EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF
;gs these three are in abstract units and just help the AI pick the right base defense. (see AIForcePredictionFudge)
Code:
; Vulcan cannon add-on for component tower
[GAPILLAA]
UIName=NOSTR:Pill Box AA Upgrade
Name=Pill Box AA upgrade
BuildCat=Combat
Image=GAPILLAA
Prerequisite=GAPILE,GAPILL
TechLevel=2
Armor=wood
Sight=7
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
Cost=200
Points=30
Power=-30
Crewed=no
Capturable=no
AirRangeBonus=4
HasRadialIndicator=yes
CloakRadiusInCells=10
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
;TurretAnim=GAPILL_B
[b]PowersUpBuilding=GAPILL
PowersUpToLevel=1[/b]
Primary=PillBoxUpgradeWeap
ElitePrimary=PillBoxUpgradeWeapE
Secondary=PillBoxUpgradeWeap
EliteSecondary=PillBoxUpgradeWeapE
Turret=yes
ThreatPosed=0 ; This value MUST be 0 for all building addons
IsBaseDefense=yes
AIBuildThis=yes
Trainable=yes
AntiInfantryValue=25
AntiArmorValue=10
AntiAirValue=20
VeteranAbilities=STRONGER,FIREPOWER,SIGHT,FASTER
EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF
Joined: 22 Nov 2010 Location: Iszkaszentgyorgy, Hungary
Posted: Tue Jul 28, 2015 9:14 am Post subject:
The tags at Image won't be read if you specify the override at art. Move LoopStart and co. tags to GAPILLAA. _________________ "If you didn't get angry and mad and frustrated, that means you don't care about the end result, and are doing something wrong." - Greg Kroah-Hartman
=======================
Past C&C projects: Attacque Supérior (2010-2019); Valiant Shades (2019-2021)
=======================
WeiDU mods: Random Graion Tweaks | Graion's Soundsets
Maintainance: Extra Expanded Enhanced Encounters! | BGEESpawn
Contributions: EE Fixpack | Enhanced Edition Trilogy | DSotSC (Trilogy) | UB_IWD | SotSC & a lot more... QUICK_EDIT
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