The time now is Thu Apr 18, 2024 11:40 am
All times are UTC + 0
Author
Message
cxtian39
CommanderJoined : 11 Feb 2016
Posted: Wed May 02, 2018 6:16 am Post subject:
Robot Control Center Guarantees An Extra Drone for Tanks
VIDEO
For every robot control center you owned all your tanks get an extra drone. However, I'm getting random crashes. Both happen when a drone kills a oil barrel. And I can't reproduce the crashes after then. Here is my code, hope someone can help. Basically I stuff 3 dummy infantries that spawn drones into all tanks, and drones have PoweredBy= some robot control center. I made 3 copies of robot control center.
Spoiler (click here to read it):
Code:
[MTNK]
UIName=Name:MTNK
Name=Grizzly Battle Tank
Image=GTNK
Category=AFV
TechLevel=2
Prerequisite=GAWEAP
Primary=105mm
ElitePrimary=105mmE
Armor=heavy
Strength=300
Sight=8
Speed=7
ROT=5
Size=3
Cost=700
Soylent=700
Points=25
OpportunityFire=yes
IsTilter=yes
Turret=yes
Owner=British,French,Germans,Americans,Alliance
CrateGoodie=no
Crusher=yes
Locomotor={4A582741-9839-11d1-B709-00A024DDAFD1}
MovementZone=Normal
Accelerates=false
VoiceSelect=GenAllVehicleSelect
VoiceMove=GenAllVehicleMove
VoiceAttack=GenAllVehicleAttackCommand
VoiceFeedback=
MoveSound=GrizzlyTankMoveStart
CrushSound=TankCrush
DieSound=GenVehicleDie
ThreatPosed=15
VeteranAbilities=STRONGER,FIREPOWER,SIGHT,FASTER
EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF
DamageParticleSystems=SparkSys,SmallGreySSys
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
MaxDebris=2
TooBigToFitUnderBridge=true
IsSelectableCombatant=yes
ImmuneToVeins=yes
BuildTimeMultiplier=1.5
;new drone system
InitialPayload.Types=DRONE1,DRONE2,DRONE3;infantries that spawn drones
Passengers=3
SizeLimit=1
OpenTopped=yes
NoManualEnter=yes
NoManualUnload=yes
Survivor.RookiePassengerChance=0
Survivor.VeteranPassengerChance=0
Survivor.ElitePassengerChance=0
Promte.IncludePassengers=yes
[DRONE1]
UIName=Name:Hero3
Name=Hero
Image=ARND
Category=Civilian
TechLevel=-1
Primary=AllDronLauncher
ElitePrimary=AllDronLauncher
Armor=plate
Strength=200
Sight=2
Speed=6
Size=1
Cost=0
Soylent=100
Points=1
Insignificant=yes
Civilian=yes
IFVMode=0
Pip=yellow
Spawns=MGDRONE
SpawnsNumber=1
SpawnReloadRate=150
SpawnRegenRate=300
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
AllowedToStartInMultiplayer=no
Nominal=yes
UseOwnName=true
SpeedType=Amphibious
Locomotor={4A582744-9839-11d1-B709-00A024DDAFD1}
MovementZone=AmphibiousDestroyer
VoiceSelect=ArnoldSelect
VoiceMove=ArnoldMove
VoiceAttack=ArnoldAttackCommand
VoiceSpecialAttack=ArnoldMove
VoiceFeedback=ArnoldFear
CrushSound=InfantrySquish
DieSound=ArnoldDie
ThreatPosed=0
Trainable=yes
ImmuneToVeins=yes
Fraidycat=yes
PhysicalSize=1
Experience.SpawnOwnerModifier=100%
[DRONE2]
UIName=Name:Hero3
Name=Hero
Image=ARND
Category=Civilian
TechLevel=-1
Primary=AllDronLauncher
ElitePrimary=AllDronLauncher
Armor=plate
Strength=200
Sight=2
Speed=6
Size=1
Cost=0
Soylent=100
Points=1
Insignificant=yes
Civilian=yes
IFVMode=0
Pip=yellow
Spawns=MLDRONE
SpawnsNumber=1
SpawnReloadRate=150
SpawnRegenRate=300
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
AllowedToStartInMultiplayer=no
Nominal=yes
UseOwnName=true
SpeedType=Amphibious
Locomotor={4A582744-9839-11d1-B709-00A024DDAFD1}
MovementZone=AmphibiousDestroyer
VoiceSelect=ArnoldSelect
VoiceMove=ArnoldMove
VoiceAttack=ArnoldAttackCommand
VoiceSpecialAttack=ArnoldMove
VoiceFeedback=ArnoldFear
CrushSound=InfantrySquish
DieSound=ArnoldDie
ThreatPosed=0
Trainable=yes
ImmuneToVeins=yes
Fraidycat=yes
PhysicalSize=1
Experience.SpawnOwnerModifier=100%
[DRONE3]
UIName=Name:Hero3
Name=Hero
Image=ARND
Category=Civilian
TechLevel=-1
Primary=AllDronLauncher
ElitePrimary=AllDronLauncher
Armor=plate
Strength=200
Sight=2
Speed=6
Size=1
Cost=0
Soylent=100
Points=1
Insignificant=yes
Civilian=yes
IFVMode=0
Pip=yellow
Spawns=LSDRONE
SpawnsNumber=1
SpawnReloadRate=150
SpawnRegenRate=300
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
AllowedToStartInMultiplayer=no
Nominal=yes
UseOwnName=true
SpeedType=Amphibious
Locomotor={4A582744-9839-11d1-B709-00A024DDAFD1}
MovementZone=AmphibiousDestroyer
VoiceSelect=ArnoldSelect
VoiceMove=ArnoldMove
VoiceAttack=ArnoldAttackCommand
VoiceSpecialAttack=ArnoldMove
VoiceFeedback=ArnoldFear
CrushSound=InfantrySquish
DieSound=ArnoldDie
ThreatPosed=0
Trainable=yes
ImmuneToVeins=yes
Fraidycat=yes
PhysicalSize=1
Experience.SpawnOwnerModifier=100%
[AllDronLauncher]
Damage=1
ROF=0
Range=8
Spawner=yes
Projectile=InvisibleAll
Speed=10
Warhead=Special
OmniFire=yes
[MGDRONE]
UIName=NOSTR:Machine Gun Drone
Name=Allied Machine Gun Drone
Crewed=no
Prerequisite=CANULL
Primary=DroneMG
Strength=90
Category=AirPower
Armor=light
TechLevel=-1
Sight=8
RadarInvisible=no
Landable=no
MoveToShroud=yes
Speed=13
FlyBy=true
PitchAngle=0
OmniFire=yes
Owner=Americans
Cost=90
Points=20
ROT=3
Ammo=999
AirportBound=no
GuardRange=30
Explosion=NULLANIM
MaxDebris=0
IsSelectableCombatant=yes
DieSound=
MoveSound=
CrashingSound=IntruderDie
ImpactLandSound=GenAircraftCrash
Locomotor={4A582746-9839-11d1-B709-00A024DDAFD1}
MovementZone=Fly
ThreatPosed=10
AuxSound1=IntruderTakeOff
AuxSound2=IntruderLanding
VeteranAbilities=STRONGER,FIREPOWER,SIGHT,FASTER
EliteAbilities=STRONGER,FIREPOWER,ROF
Fighter=yes
Spawned=yes
Crashable=no
DeathWeapon=DummyWeapon
PoweredBy=GAROBO
Trainable=yes
FlightLevel=400
[DroneMG]
Damage=15
ROF=20
Range=4
Projectile=InvisibleAll
Speed=100
Warhead=SA
Report=GIAttack
Anim=MGUN-N,MGUN-NE,MGUN-E,MGUN-SE,MGUN-S,MGUN-SW,MGUN-W,MGUN-NW
OmniFire=yes
[MLDRONE]
UIName=NOSTR:Missile Drone
Name=Allied Missile Drone
Crewed=no
Prerequisite=CANULL
Primary=DroneMisl
Strength=90
Category=AirPower
Armor=light
TechLevel=-1
Sight=8
RadarInvisible=no
Landable=no
MoveToShroud=yes
Speed=13
FlyBy=true
PitchAngle=0
OmniFire=yes
Owner=Americans
Cost=90
Points=20
ROT=3
Ammo=999
AirportBound=no
GuardRange=30
Explosion=NULLANIM
MaxDebris=0
IsSelectableCombatant=yes
DieSound=
MoveSound=
CrashingSound=IntruderDie
ImpactLandSound=GenAircraftCrash
Locomotor={4A582746-9839-11d1-B709-00A024DDAFD1}
MovementZone=Fly
ThreatPosed=10
AuxSound1=IntruderTakeOff
AuxSound2=IntruderLanding
VeteranAbilities=STRONGER,FIREPOWER,SIGHT,FASTER
EliteAbilities=STRONGER,FIREPOWER,ROF
Fighter=yes
Spawned=yes
Crashable=no
DeathWeapon=DummyWeapon
PoweredBy=GAROBO2
Trainable=yes
FlightLevel=400
[DroneMisl]
Damage=30
ROF=40
Range=8
Burst=1
Projectile=AAHeatSeeker2
Speed=30
Warhead=MLDRONWH
Report=GuardianGIDeployedAttack
MinimumRange=1
IsLaser=true
LaserInnerColor=255,25,0
LaserDuration=45
OmniFire=yes
[MLDRONWH]
Wall=yes
Wood=yes
Verses=50%,50%,50%,100%,50%,100%,50%,50%,50%,100%,100%
Versus.react=50%
Conventional=yes
InfDeath=3
AnimList=XGRYSML1,XGRYSML2,EXPLOSML,XGRYMED1,XGRYMED2,EXPLOMED,EXPLOLRG,TWLT070
ProneDamage=50%
CellSpread=.5
PercentAtMax=.5
[LSDRONE]
UIName=NOSTR:Laser Drone
Name=Allied Laser Drone
Crewed=no
Prerequisite=CANULL
Primary=DroneLaser
Strength=90
Category=AirPower
Armor=light
TechLevel=-1
Sight=8
RadarInvisible=no
Landable=no
MoveToShroud=yes
Speed=13
FlyBy=true
PitchAngle=0
OmniFire=yes
Owner=Americans
Cost=90
Points=20
ROT=3
Ammo=999
AirportBound=no
GuardRange=30
Explosion=NULLANIM
MaxDebris=0
IsSelectableCombatant=yes
DieSound=
MoveSound=
CrashingSound=IntruderDie
ImpactLandSound=GenAircraftCrash
Locomotor={4A582746-9839-11d1-B709-00A024DDAFD1}
MovementZone=Fly
ThreatPosed=10
AuxSound1=IntruderTakeOff
AuxSound2=IntruderLanding
VeteranAbilities=STRONGER,FIREPOWER,SIGHT,FASTER
EliteAbilities=STRONGER,FIREPOWER,ROF
Fighter=yes
Spawned=yes
Crashable=no
DeathWeapon=DummyWeapon
PoweredBy=GAROBO3
Trainable=yes
FlightLevel=400
[DroneLaser]
Damage=25
ROF=20
Range=7
Projectile=InvisibleAll
Speed=40
Report=LaserCosmoAttack
Warhead=LUNARWH
Bright=yes
IsHouseColor=true
LaserOuterSpread= 0,0,0
LaserDuration = 15
IsLaser=true
OmniFire=yes
[GAROBO]
UIName=Name:Robocont
Name=Allied Robot Control Center
BuildCat=Resource
TechLevel=10
Prerequisite=;GAWEAP,GACNST
Prerequisite.Negative=GAROBO
Armor=wood2
Strength=600
Sight=6
Points=30
Cost=600
Power=-100
Powered=true
TogglePower=yes
Capturable=false;true
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
AIBasePlanningSide=0
AIBuildThis=yes
Adjacent=2
ThreatPosed=0
DamageSmokeOffset=410, 100, 165
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
DebrisAnims=DBRIS1LG,DBRIS1SM,DBRIS2LG,DBRIS4LG,DBRIS4SM,DBRIS5LG,DBRIS5SM,DBRIS6LG,DBRIS6SM,DBRIS7LG
MaxDebris=12
MinDebris=6
Crewed=yes
ImmuneToPsionics=yes;no
HalfDamageSmokeLocation1=0,0,0
[GAROBO2]
UIName=Name:Robocont
Name=Allied Robot Control Center
Image=GAROBO
BuildCat=Resource
TechLevel=10
Prerequisite=GAROBO,GACNST
Prerequisite.Negative=GAROBO2
Armor=wood2
Strength=600
Sight=6
Points=30
Cost=600
Power=-100
Powered=true
TogglePower=yes
Capturable=false;true
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
AIBasePlanningSide=0
AIBuildThis=yes
Adjacent=2
ThreatPosed=0
DamageSmokeOffset=410, 100, 165
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
DebrisAnims=DBRIS1LG,DBRIS1SM,DBRIS2LG,DBRIS4LG,DBRIS4SM,DBRIS5LG,DBRIS5SM,DBRIS6LG,DBRIS6SM,DBRIS7LG
MaxDebris=12
MinDebris=6
Crewed=yes
ImmuneToPsionics=yes;no
HalfDamageSmokeLocation1=0,0,0
[GAROBO3]
UIName=Name:Robocont
Name=Allied Robot Control Center
Image=GAROBO
BuildCat=Resource
TechLevel=10
Prerequisite=GAROBO,GAROBO2,GACNST
BuildLimit=1
Armor=wood2
Strength=600
Sight=6
Points=30
Cost=600
Power=-100
Powered=true
TogglePower=yes
Capturable=false;true
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
AIBasePlanningSide=0
AIBuildThis=yes
Adjacent=2
ThreatPosed=0
DamageSmokeOffset=410, 100, 165
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
DebrisAnims=DBRIS1LG,DBRIS1SM,DBRIS2LG,DBRIS4LG,DBRIS4SM,DBRIS5LG,DBRIS5SM,DBRIS6LG,DBRIS6SM,DBRIS7LG
MaxDebris=12
MinDebris=6
Crewed=yes
ImmuneToPsionics=yes;no
HalfDamageSmokeLocation1=0,0,0
Here are the dump files
https://drive.google.com/file/d/1KzpGCbK7h2E-NogZxeqxDCPBwzh62iVR/view?usp=sharing
https://drive.google.com/file/d/1pQzWPWGyt1brO2nNONFnbgQR1F2ZMY3G/view?usp=sharing _________________ QUICK_EDIT
Back to top
Millennium
CommanderJoined : 09 Mar 2008Location : Osaka (JP)/Hong Kong/Germany
Posted: Wed May 23, 2018 5:32 pm Post subject:
Although this was before the addition of InitialPayload and so the mechanism was different as far as the spawning vehicles are concerned, years ago, I implemented in my mod a feature of allowing vehicles to spawn drones when a certain structure was present.
It's interesting to see this concept crop up again, building on a method of spawning drones from vehicles via more recent Ares features, which probably achieves a greater customizability and perhaps also a greater resilience towards bugs.
The method you present here for spawning drones from vehicles cannot presently be combined with allowing the vehicle to function as a transport as well, except in connection with perhaps undesireable implications, and the simple solution of granting the unit a Spawner weapon via Primary or Secondary would of course sacrifice the unit's capability of using other armaments on the same targets. For applications where this is not desired, one may give the Spawner weapon to Weapon1 (or Weapon2 , if anti-air application is desired) in a gattling weapon setup with Stage1=0 . Other weapons may then be added to subsequent weapon stages. Of course, this places the limit of all spawned drones being of the same type, which the InitialPayload method is not under. _________________ Mao Zedong wrote:
Our mission, unfinished, may take a thousand years.
Last edited by Millennium on Thu May 24, 2018 4:31 pm; edited 1 time in total QUICK_EDIT
Back to top
cxtian39
CommanderJoined : 11 Feb 2016
Back to top
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.1824s ][ Queries: 11 (0.0090s) ][ Debug on ]