Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Fri Apr 19, 2024 9:57 am
All times are UTC + 0
how can make switch weapon, armor like mental omega units
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [5 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
kingoni909
Medic


Joined: 14 Dec 2012

PostPosted: 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
Reply with quote  Mark this post and the followings unread

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.

Back to top
View user's profile Send private message
maestro21
Soldier


Joined: 25 Feb 2008
Location: Philippines

PostPosted: Wed Aug 25, 2021 8:01 pm    Post subject: Reply with quote  Mark this post and the followings unread

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.  Very Happy

[PainterWeapon]
Damage=1 ; a small positive number, 1 is OK  Very Happy
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.

Back to top
View user's profile Send private message Send e-mail YouTube User URL Facebook Profile URL Twitter Channel URL AIM Address
kingoni909
Medic


Joined: 14 Dec 2012

PostPosted: Thu Aug 26, 2021 1:47 am    Post subject: Reply with quote  Mark this post and the followings unread

nice, bro !
Can you show how to switch Deploying ICON: I-->II or II---I

Back to top
View user's profile Send private message
Virgil
Stealth Laser Trooper


Joined: 22 Jul 2018

PostPosted: Thu Aug 26, 2021 1:50 am    Post subject: Reply with quote  Mark this post and the followings unread

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.

Back to top
View user's profile Send private message
kingoni909
Medic


Joined: 14 Dec 2012

PostPosted: Thu Aug 26, 2021 2:42 am    Post subject: Reply with quote  Mark this post and the followings unread

thanks bro !

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [5 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
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.1464s ][ Queries: 11 (0.0071s) ][ Debug on ]