Posted: Wed Aug 25, 2021 5:14 pm Post subject:
how can make switch weapon, armor like mental omega units
Subject description: with a deploy command
Bulldog Light Tank: Can switch between cannon/target painter with a deploy command
Siren Frigate: Can switch between Blaster/Negation Shield mode with a deploy command. When in Negation Shield mode, any damage dealt to it will repair instead. QUICK_EDIT
I don't know if this is place to give an answer this question,but I do.Ares' convert deploy is required.
[UNITA]
IsSimpleDeployer=yes
Convert.Deploy=UNITB
Primary=whatever it is
Secondary=different from primary
[UNITB]
IsSimpleDeployer=yes
Convert.Deploy=UNITA
Primary=PainterWeapon
Secondary=different from primary ,if you wish
;Gatling logic works the best with this laser painter unit , if you can manage to code it.
[PainterWeapon]
Damage=1 ; a small positive number, 1 is OK
Range= as you wish
ROF=as small as you can
IsLaser=yes ; more common
LaserInnerColor=255,0,0 ;red
LaserOuterColor=255,0,0 ;as above, red
LaserThickness=2 ;is enough ,another ARES tag.
Warhead=PainterWH
Projectile=InvisibleLow ; for example
[PainterWH] ;do not forget to add this at the end of Warheads list !
Verses=%3,%3,%3,%3,%3,%3,%3,%3,%3,%3,%0 ; for example
CellSpread=.5; is enough
ProneDamage=% as you wish
AttachEffect.Duration= ;up to you
AttachEffect.Armor= ;less than 1, 0.6 for example
AttachEffect.FirePower= ; all these up to you if you wish
AttachEffect.Speed=;all these up to you if you wish
AttachEffect.ROF=; all these up to you if you wish
AffectsAllies=no
For MO's Siren ship, a special armor type must be declared
[ArmorTypes]
magic=%-50 (-50 is an example, but must be negative, that means all positive damage weapons WHs collide with this armor type,will heal it,instead of damaging it.
[SHIPA]
Armor=light
IsSimpleDeployer=yes
Convert.Deploy=SHIPB
Primary=whatever it is
Secondary=different from primary
[SHIPB]
Armor=magic
IsSimpleDeployer=yes
Convert.Deploy=SHIPA
Primary=maybe none for game balance
Secondary=none,same as above
Speed=0 ; this maybe arranged by AttachEffects also...
;I don't write here more about AEs , this is an another branch....
I don't know if I forget to write additional necessary tags.But it is OK,I think. QUICK_EDIT
Unit conversion, as the code already given above. Basically you get a completely new unit after deployment that inherates the old unit's health percentage and owner. Certain weapon and tags won't work on converted units, i.e. chrono, mind control, spawner etc, remember. 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