Joined: 19 Aug 2009 Location: Moscow State University
Posted: Thu Jul 29, 2010 3:54 pm Post subject:
Unit deploys to another unit (just an illusion)
Subject description: Not suitable for all MODs
Make any vehicle deploy to this building:
And then change the UndeploysInto flag to make it undeploy to the unit you want
Code:
[MIDDLE]
UIName=Name:SMIN
Name=Yuri Ore Refinery
Image=AAA
BuildCat=Resource
;Bib=yes
Prerequisite=POWER,YACNST
Strength=2000
Adjacent=2
Armor=medium
Primary=SuperComet
ElitePrimary=20mmRapidE
Turret=yes
PlaceAnywhere=yes
TurretAnim=SMINTUR
TurretAnimIsVoxel=true
TurretAnimX=-25
TurretAnimY=15
TurretAnimZAdjust=-50
TechLevel=-1
Sight=6
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCo
untry
AIBasePlanningSide=2 ;gs 0 for Good, 1 for Evil
Cost=1
Soylent=1500
Points=80
Power=0;-50
Storage=200
Capturable=false;gs true
;Crewed=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
HalfDamageSmokeLocation1=0,0,0
DebrisAnims=DBRIS1LG,DBRIS1SM,DBRIS4LG,DBRIS4SM,DBRIS5LG,DBRIS5SM
MaxDebris=10
MinDebris=5
PipScale=Tiberium
ThreatPosed=0 ; This value MUST be 0 for all building addons
;DamageParticleSystems=SparkSys,SmallGreySSys,BigGreySmokeSys
DamageSmokeOffset=410, 100, 165
AIBuildThis=yes;no;yes
TogglePower=no
RefinerySmokeOffsetOne=-85,-85,220
RefinerySmokeOffsetTwo=-85,90,220
RefinerySmokeOffsetThree=95,-85,220
RefinerySmokeOffsetFour=95,90,220
RefinerySmokeFrames=30
RefinerySmokeParticleSystem=SmallGreySSys;
Enslaves=SLAV;gs The SMIN does not get an Enslaves listing because the Slave object will get
passed from unit to building upon deploy
SlavesNumber=0
SlaveRegenRate=500 ;225
SlaveReloadRate=25
Spyable=yes
ImmuneToPsionics=yes ; defaults to yes for buildings, no for others
BaseNormal=no
UndeploysInto=APOC
ClickRepairable=no
DeployFacing=0;0 = N, 7 = NW
ResourceGatherer=yes;gs for the AI to handle the slave miner, it has to understand what makes
money
ResourceDestination=yes
VoiceSelect=SlaveMinerSelect
VoiceMove=SlaveMinerMove
VoiceAttack=SlaveMinerAttackCommand
VoiceHarvest=SlaveMinerHarvest
DeploySound=Dummy
VoiceDeploy=Dummy
Unsellable=yes
Trainable=yes
This is a slave miner clone(Building Vision).The only important thing is that SlaveMiners will automaticly undeploy when there is no ore in range.
As there isnt any other uses of this building,a large part of it can be deleted.
AAA is any image.Just use an empty SHP file.Maybe you can use my build up anim to make an illusion of warping out and warping in.
However APOC undeployed from this building will search for ore APOC built from a factory behaves normally.
And if there is ore in range the building wont undeploy.It will send out slaves when slave number is not zero
So must edit the general rules to make it work better:
Why dont you leave the slave miner alone and just create a dummy building for the middle stage. Would save you a lot of effort and the slave miner would still work. QUICK_EDIT
Joined: 01 Feb 2007 Location: Las Vegas, Nevada, USA
Posted: Thu Jul 29, 2010 11:57 pm Post subject:
slave miner can be cloned fine. I did it for a mod map. Made it so a special kind of slave miner has a special kind of slave miner as a free unit, but when they undeploy, they turn into a normal slave miner. So the special miner you got as a free unit deploys into the special deployed slave miner and again, gets a free unit and blah blah blah.
By all means, you can clone the slave miner. QUICK_EDIT
Joined: 19 Aug 2009 Location: Moscow State University
Posted: Fri Jul 30, 2010 12:34 am Post subject:
Tratos wrote:
Why dont you leave the slave miner alone and just create a dummy building for the middle stage. Would save you a lot of effort and the slave miner would still work.
The point is this middle class will auto undeploy.
I know how a normal dummy building works.The reason I bother to make this is normal dummy buildings wont auto undeploy.You have to command it to make it work. 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