19.06.2007, 23:42:49
Hello again!
This time the RA2 engine amazes me with some very wird PoweredUnit - bug.
And the INIs...
Building which powers the unit:
; Cabal Core
[CORE]
UIName=name:CORE
Name=Cabal Core
TechLevel=8
Prerequisite=TECH
Strength=1100
Adjacent=2
Cost=2800
BuildCat=Tech
Nominal=yes
RadarInvisible=no
Points=200
Power=-350
Powered=true
Armor=concrete
Owner=Russians,Africans,Confederation,Alliance,Ara bs,YuriCountry,British,French,Germans,Americans
MaxDebris=25
MinDebris=18
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUM U60
DamageParticleSystems=SparkSys,SmallGreySSys,BigGr eySmokeSys
DamageSmokeOffset=-60,60,200
ImmuneToPsionics=yes
AIBuildThis=yes
PowersUnit=DEFENDER
RevealToAll=yes
BuildLimit=1
Sight=6
Powered unit:
; Core Defender
[DEFENDER]
UIName=nameEFENDER
Name=Core Defender
Category=AFV
Strength=5500 ;10000
Armor=heavy
TechLevel=8
Prerequisite=CORE
Sight=9
Speed=3; 5
Owner=British,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
Cost=8000
Points=250
ROT=5
Crusher=yes
Crewed=no
Weight=3.5
VoiceSelect=ReaperSelect
VoiceSelectDeactivated=RobotTankSelectDeactivated
VoiceMove=ReaperMove
VoiceAttack=ReaperAttackCommand
VoiceFeedback=ReaperCrack
CreateSound=HSDroidMoveAttack
Locomotor={55D141B8-DB94-11d1-AC98-006008055BB5}
MovementZone=Destroyer
ThreatPosed=50
DamageParticleSystems=SparkSys,SmallGreySSys
MaxDebris=30
Explosion=DEFD_EXP
AllowedToStartInMultiplayer=no
WalkRate=5
Primary=DEFOB
EliteSecondary=DEFOBAA
DamageSmokeOffset=0,0,550
Trainable=yes
VeteranAbilities=ROF
EliteAbilities=FIREPOWER,ROF
ImmuneToVeins=yes
SelfHealing=yes
NoMovingFire=true
Warpable=no
ImmuneToPsionics=yes
ImmuneToRadiation=yes
NonVehicle=yes
AIBuildThis=yes ; so Crusher can crush Crushable, OmniCrusher trumps Crushable=no, and then OmniCrushResistant trumps OmniCrusher
OmniCrushResistant=yes
Sensors=yes
SensorsSight=5
TooBigToFitUnderBridge=true
Size=35
PoweredUnit=yes
;BuildLimit=1
Explodes=yes
---------------------------------
This is for one gamemode. Everybody can build it.
Problems are:
1) when power goes down and comes back again the unit does not come back online...
Now even if you build new unit when power is on. New unit will also stop functioning...
2) unit does not seems to give a **** about the building which powers it! Even the building is for example sold, the unit still fuctions.
Any idea people?
The other thing...
3) I have made the Cluster Missile weapon which uses the rockpatch's FireAtSpecial. When the building (which fires the missile) is on a different level than the targer of the missile, the missile blows up immediately after coming out from the "launcher" building.
Is there a way to fix this?
Thanks everyone.
This time the RA2 engine amazes me with some very wird PoweredUnit - bug.
And the INIs...
Building which powers the unit:
; Cabal Core
[CORE]
UIName=name:CORE
Name=Cabal Core
TechLevel=8
Prerequisite=TECH
Strength=1100
Adjacent=2
Cost=2800
BuildCat=Tech
Nominal=yes
RadarInvisible=no
Points=200
Power=-350
Powered=true
Armor=concrete
Owner=Russians,Africans,Confederation,Alliance,Ara bs,YuriCountry,British,French,Germans,Americans
MaxDebris=25
MinDebris=18
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUM U60
DamageParticleSystems=SparkSys,SmallGreySSys,BigGr eySmokeSys
DamageSmokeOffset=-60,60,200
ImmuneToPsionics=yes
AIBuildThis=yes
PowersUnit=DEFENDER
RevealToAll=yes
BuildLimit=1
Sight=6
Powered unit:
; Core Defender
[DEFENDER]
UIName=nameEFENDER
Name=Core Defender
Category=AFV
Strength=5500 ;10000
Armor=heavy
TechLevel=8
Prerequisite=CORE
Sight=9
Speed=3; 5
Owner=British,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
Cost=8000
Points=250
ROT=5
Crusher=yes
Crewed=no
Weight=3.5
VoiceSelect=ReaperSelect
VoiceSelectDeactivated=RobotTankSelectDeactivated
VoiceMove=ReaperMove
VoiceAttack=ReaperAttackCommand
VoiceFeedback=ReaperCrack
CreateSound=HSDroidMoveAttack
Locomotor={55D141B8-DB94-11d1-AC98-006008055BB5}
MovementZone=Destroyer
ThreatPosed=50
DamageParticleSystems=SparkSys,SmallGreySSys
MaxDebris=30
Explosion=DEFD_EXP
AllowedToStartInMultiplayer=no
WalkRate=5
Primary=DEFOB
EliteSecondary=DEFOBAA
DamageSmokeOffset=0,0,550
Trainable=yes
VeteranAbilities=ROF
EliteAbilities=FIREPOWER,ROF
ImmuneToVeins=yes
SelfHealing=yes
NoMovingFire=true
Warpable=no
ImmuneToPsionics=yes
ImmuneToRadiation=yes
NonVehicle=yes
AIBuildThis=yes ; so Crusher can crush Crushable, OmniCrusher trumps Crushable=no, and then OmniCrushResistant trumps OmniCrusher
OmniCrushResistant=yes
Sensors=yes
SensorsSight=5
TooBigToFitUnderBridge=true
Size=35
PoweredUnit=yes
;BuildLimit=1
Explodes=yes
---------------------------------
This is for one gamemode. Everybody can build it.
Problems are:
1) when power goes down and comes back again the unit does not come back online...
Now even if you build new unit when power is on. New unit will also stop functioning...
2) unit does not seems to give a **** about the building which powers it! Even the building is for example sold, the unit still fuctions.
Any idea people?
The other thing...
3) I have made the Cluster Missile weapon which uses the rockpatch's FireAtSpecial. When the building (which fires the missile) is on a different level than the targer of the missile, the missile blows up immediately after coming out from the "launcher" building.
Is there a way to fix this?
Thanks everyone.