Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Fri Apr 19, 2024 11:13 pm
All times are UTC + 0
Building Upgrade w/ Turret help
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [3 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
XxpeddyxX
Commander


Joined: 03 Sep 2004

PostPosted: Sun Jul 26, 2015 8:05 pm    Post subject:  Building Upgrade w/ Turret help Reply with quote  Mark this post and the followings unread

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


ART
Code:
[GAPILLAA]
Cameo=PILLUPGRADEICON1
Image=GAPILL_B
Remapable=yes
Foundation=1x1
;PrimaryFirePixelOffset=0,10
PrimaryFireFLH=90,0,40
;PrimaryFireDualOffset=true
;SecondaryFireFLH=162,0,300
NewTheater=yes

Code:
[GAPILL_B]
LoopStart=0
LoopEnd=32
LoopCount=-1
Rate=0
Shadow=yes
Surface=yes
NewTheater=no
Normalized=yes
Remappable=yes
Layer=ground
CanBeHidden=False

Back to top
View user's profile Send private message
Millennium
Commander


Joined: 09 Mar 2008
Location: Osaka (JP)/Hong Kong/Germany

PostPosted: Tue Jul 28, 2015 8:09 am    Post subject: Reply with quote  Mark this post and the followings unread

Upgrade turret logic only works properly with the structure defined as WallTower=. Your problems are perhaps related to that.

_________________
Mao Zedong wrote:

Our mission, unfinished, may take a thousand years.  

Back to top
View user's profile Send private message
Graion Dilach
Defense Minister


Joined: 22 Nov 2010
Location: Iszkaszentgyorgy, Hungary

PostPosted: Tue Jul 28, 2015 9:14 am    Post subject: Reply with quote  Mark this post and the followings unread

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...

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
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


Powered by phpBB © phpBB Group

[ Time: 0.1742s ][ Queries: 11 (0.0076s) ][ Debug on ]