Posted: Sun Sep 13, 2015 8:17 am Post subject:
Superweapon Cloning
Hey guys, I just got back to finish one RA2 YR map i started years ago and I have encountered a problem! Since I feel this is more of a editing/modding question, i added the topic here, in this forum!
Basically, what I want is houses to have different countdown timers for the same superweapon. For instance, the America House to have it's WCD Timer 10 minutes and the French House to have it's WCD Timer 20 minutes. I posted this question some time ago on the mapping forums and the guys there told me i had to clone the superweapon in order to do it!
So I've made a prototype single player map with just 2 houses : Player and Enemy. The Enemy House has a WCD from the beginning. The player needs to build one. I opened all01umd.map with notepad, and at the end of it, I added this :
; ******* Building Type List *******
; This lists all the buildings types in the game. Each of these
; types will have a specific section in this file that gives the
; particulars about that building type.
[BuildingTypes]
1=GAPOWR
2=GAREFN
3=GACNST
4=GAPILE
5=GASAND
6=GADEPT
7=GATECH
8=GAWEAP
;9=GAHPAD
9=CALAB
10=NAPOWR
11=NATECH
12=NAHAND
13=GAWALL
14=NARADR
15=NAWEAP
16=NAREFN
17=NAWALL
;18=NATMPL
18=CAHSE07
19=NAPSIS
20=CASYDN01; NAWAST
21=NALASR
22=NASAM
23=CASYDN02; GARADR
24=GAYARD
25=NAIRON
26=NACNST
27=NADEPT ; GEF Moving the soviet repair depot here to make up for the gap left by french wall being taken out
;;27=GAFWLL ; French wall ;;-Taken out 7/3 by DB
28=GACSPH
29=GADUMY
30=GAWEAT
31=CABHUT
32=GALITE
33=REDLAMP
34=GRENLAMP
35=BLUELAMP
36=YELWLAMP
37=PURPLAMP
38=INORANLAMP
39=INGRNLMP
40=INREDLMP
41=INBLULMP
;;These might be RA2 buildings, not sure.
42=CITY01
43=CITY02
44=CITY03
45=CITY04
46=CITY05
47=CITY06
;;This is an old hospitol, not sure if it is used.
48=CAHOSP
49=INGALITE
50=INYELWLAMP
51=INPURPLAMP
52=NEGLAMP
53=NEGRED
54=TESLA
55=NAMISL
56=ATESLA
57=CAMACH
58=TSTLAMP
59=CASYDN03; NAHPAD
60=AMMOCRAT
61=GAGREEN
62=NAYARD
63=GASPYSAT
64=GAGAP
65=GTGCAN ; Grand Cannon
66=NANRCT ; Soviet Nuclear Reactor
67=GAPILL
68=NAFLAK ; Flak Cannon
69=CAOUTP ; Outpost
70=CATHOSP ; Tech Hospital
71=CAAIRP ; Civilian Airport
72=CAOILD ; Tech Oil Derrick
73=NACLON ; Soviet Cloning Vats
74=GAOREP ; Allied Ore Processor
305=YACNST
306=YAPOWR
307=YABRCK
308=YAWEAP
309=YAYARD
310=YADEPT
311=YATECH
312=GAFWLL;temp wall for yuri YAWALL
313=YAGGUN
314=YAPSYT
315=NAINDP
316=YAGRND
317=YAGNTC
318=CASLAB
319=CATIME
320=YAPPET
321=CALOND04
322=CALOND05
323=CALOND06
324=CAMOON01
325=CATRAN03
326=CAEAST01
327=CAEGYP01
328=CAEGYP02
329=CAEGYP03
330=CALA01
331=CALA02
332=CALA03
333=CALA04
334=CALA05
335=CALOND01
336=CALOND02
337=CALOND03
338=CAMORR01
339=CAMORR02
340=CAMORR03
341=CASANF01
342=CASANF02
343=CASANF03
344=CASANF04
345=CASANF05
346=CASEAT01
347=NATBNK
348=GAGATE_A ;gs This is a building. Not an Overlay!!!
349=CASANF09
350=CASANF10
351=CASANF11
352=CASANF12
353=CASANF13
354=CASANF14
355=CASANF06
356=CASANF07
357=CASANF08
358=CASEAT02
359=YACOMD
360=YAPPPT
361=GAROBO;this is the robot control center.
362=YAREFN;gs Mobile refinery is a building transformer
363=YAROCK
364=NABNKR
365=CASANF15
366=CASANF16
367=CASANF17
368=CASANF18
369=CASIN03E
370=CASIN03S
371=CAURB01
372=CAURB02
373=CAURB03
374=CAPOWR
375=CALA07
376=CAEGYP06
377=CALA08
378=CAEAST02
379=CABARR01
380=CABARR02
381=CAMORR04
382=CAMORR05
383=CALA09
384=CAEGYP04
385=CAEGYP05
386=CALA06
387=CAMORR06
388=CAMORR07
389=CAMORR08
390=CAMORR09
391=CAMORR10
392=CATIME01
393=CATIME02
394=CALA10
395=CALA11
396=CALA12
397=CALA13
398=CAPARK04
399=CAPARK05
400=CAPARK06
401=CALA14
402=CALA15
403=CABUNK03
404=CABUNK04
405=CALUNR01
406=CALUNR02
407=GAWEAT2
; *** Super Weapon List **
; This is a list of the various types of super weapons available in the game
[SuperWeaponTypes]
;1=MultiSpecial
;2=EMPulseSpecial
;3=FirestormSpecial
;4=IonCannonSpecial
;5=HuntSeekSpecial
;6=ChemicalSpecial
;7=IronCurtainSpecial
;8=LightningStormSpecial
;9=ChronoSphereSpecial
;10=ChronoWarpSpecial
;11=ParaDropSpecial
[GAWEAT]
UIName=Name:GAWEAT
Name=Allied Weather Controller
Image=GAWETH ;GEF we need to get this name straightened out
BuildCat=Combat
;Image=NTIRON
Prerequisite=GATECH,GACNST
TechLevel=10
Strength=1000
Powered=true
Adjacent=2
Armor=concrete
Sight=5
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
AIBasePlanningSide=0 ;gs 0 for Good, 1 for Evil
Cost=5000
Points=30
Power=-200
Crewed=yes
Capturable=false
RevealToAll=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
SuperWeapon=LightningStormSpecial
Nominal=yes
ThreatPosed=1 ; This value MUST be 0 for all building addons
AIBuildThis=yes
Spyable=yes
ChargedAnimTime=1 ;Number of minutes left at which weapon should switch to charged state
ProtectWithWall=yes
BuildLimit=1
DebrisAnims=DBRIS1LG,DBRIS1SM,DBRIS3SM,DBRIS4LG,DBRIS4SM,DBRIS5LG,DBRIS5SM
MaxDebris=14
MinDebris=7
ForbiddenHouses=Player
[GAWEAT2]
UIName=Name:GAWEAT
Name=Allied Weather Controller
Image=GAWETH ;GEF we need to get this name straightened out
BuildCat=Combat
;Image=NTIRON
Prerequisite=GATECH,GACNST
TechLevel=10
Strength=1000
Powered=true
Adjacent=2
Armor=concrete
Sight=5
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
AIBasePlanningSide=0 ;gs 0 for Good, 1 for Evil
Cost=5000
Points=30
Power=-200
Crewed=yes
Capturable=false
RevealToAll=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
SuperWeapon=NewLightningStormSpecial
Nominal=yes
ThreatPosed=1 ; This value MUST be 0 for all building addons
AIBuildThis=yes
Spyable=yes
ChargedAnimTime=1 ;Number of minutes left at which weapon should switch to charged state
ProtectWithWall=yes
BuildLimit=1
DebrisAnims=DBRIS1LG,DBRIS1SM,DBRIS3SM,DBRIS4LG,DBRIS4SM,DBRIS5LG,DBRIS5SM
MaxDebris=14
MinDebris=7
RequiredHouses=Player
[LightningStormSpecial]
UIName=Name:Storm
Name=Lightning Storm
IsPowered=true
RechargeVoice=00-I156
ChargingVoice=
ImpatientVoice=
SuspendVoice=
RechargeTime=20
Type=LightningStorm
Action=LightningStorm
SidebarImage=BOLTICON
ShowTimer=yes
DisableableFromShell=yes ; gs this determines which superweapons are turned off by the checkbox
AIDefendAgainst=yes;AI will use AISuperDefense system to decide to block this
Range=7
LineMultiplier=2
[NewLightningStormSpecial]
UIName=Name:Storm
Name=Lightning Storm
IsPowered=true
RechargeVoice=00-I156
ChargingVoice=
ImpatientVoice=
SuspendVoice=
RechargeTime=10
Type=LightningStorm
Action=LightningStorm
SidebarImage=BOLTICON
ShowTimer=yes
DisableableFromShell=no ; gs this determines which superweapons are turned off by the checkbox
AIDefendAgainst=yes;AI will use AISuperDefense system to decide to block this
Range=7
LineMultiplier=2
Long story short. Here is what I added/modified :
1)GAWEAT : Nothig modified. I just added ForbiddenHouses=Player
2)LighningStormSpecial : The only thing modified is RechargeTime=20
3)Made a new WCD Building called GAWEAT2. It's the same as the original one with 2 exceptions : RequiredHouses=Player and SuperWeapon=NewLightningStormSpecial.
4)Made a new Lightning storm special called NewLightningStormSpecial.
This is the exactly the same as the original one (RechargeTime=10)
5)Added 407=GAWEAT2 in [BuildingTypes].
6)Added 13=NewLightningStormSpecial in [SuperWeaponTypes].
When I start the game, 3 things don't work properly :
1) The Enemy House WCD (GAWEAT/LightningStormSpecial) has it's timer set to 20 minutes, but the building is constantly deploying and undeploying.
2)The Player House WCD (GAWEAT2/NewLightningStormSpecial) has it's timer set to 10 minutes, but when timer reaches 1 minute, the WCD building does not deploy.
3)The Player (GAWEAT2/NewLightningStormSpecial) is not able to use his superweapon. When the timer reaches 0, i just click on the Lighning Storm icon and spam click on the map. Nothing happens!
Thanks alot for reading my post and I hope you guys can help me out.
You can clone SW's but the clone needs to use an unused action. _________________ Grab my Map Logic Expansion Pack 5.2 here!
Adds random weather patterns into maps.
More disabled navalyards.
Preplaced Neutral buildings.
Additional new features.
You can't create a new action, you can only use an unused action that is already in the game. You can find a list of available actions here, I cant remember which ones can be safely used tho. _________________
Wow, can't belive it but it sort of works! Thanks alot guys!
I switched the NewLightningStormSpecial's action to NoTogglePower and the SW itself works flawless, however the 2 buildings don't...
Both GAWEAT and GAWEAT2 have ChargedAnimTime=1
Problem is that GAWEAT will constantly switch between it's normal Anim and SuperAnim, which constantly makes a very annoying sound!
GAWEAT2 on the other hand, even tho it's identical with GAWEAT (exception being RequiredHouses/ForbiddenHouses) does not change to it's SuperAnim when the timer reaches 1!
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