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 Mar 29, 2024 2:30 pm
All times are UTC + 0
I want to make a new Paradrop Weapon
Moderators: Ares Support Team at PPM, Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [8 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Savoy
Vehicle Driver


Joined: 29 Jul 2020

PostPosted: Thu Jul 30, 2020 3:54 am    Post subject:  I want to make a new Paradrop Weapon Reply with quote  Mark this post and the followings unread

Yes just as the title says, I want to make a new Paradrop Superweapon besides Tech Airport & American HQ's.
What should I do?
Thanks in advance.

Back to top
View user's profile Send private message
TAK02
General


Joined: 28 Jun 2015
Location: It was Damascus.

PostPosted: Thu Jul 30, 2020 4:18 am    Post subject: Reply with quote  Mark this post and the followings unread

It's simple.
First thing's first: naming the SW, then adding it to the SuperWeaponTypes list. This list already exists in base rules. Just add the SW you want with the number you want.
Code:
[SuperWeaponTypes]
+=ParadropClone

Of course, don't forget to attach the SW to something (SuperWeapon, SuperWeapon2 (or something) or Ares' SuperWeapons), or at least use AuxBuilding.

Code:
[ParadropClone]
Type=AmerParaDrop ;;can also be ParaDrop.
Action=Custom ;;not sure if this has to be Custom or can be something else.
Money.Amount= ;;should be at least value of the payload (5 GIs being dropped here so this SW should cost 5 * E1>Cost)


Everything else should be in the docs: https://ares-developers.github.io/Ares-docs/new/superweapons/types/paradrop.html
Or it can be copied from existing SWs.

You can also set Designators and Inhibitors on the SW, if you want it. (note Designators can only be your own units, not your ally's)
SW.Designators=UNIT_ID, UNIT_ID2
Use the custom ranges on the units (InhibitorRange and DesignatorRange) if you don't want to be limited by the TechnoType's Sight.
If you want limited range SWs (SW.RangeMaximum and SW.RangeMinimum), remember you can only use them if the SW is actually attached to the building with the SuperWeapon(s)= flags, and not SW.PostDependent (or maybe also AuxBuilding), because in such a case the range requirements are never met and you can't ever fire the SW.

If you want three planes, each sending specific payload, use this:
Code:
ParaDrop.Count=3
ParaDrop.Types=ABE
ParaDrop.Num=4
ParaDrop.Plane2.Types=GGI
ParaDrop.Plane2.Num=3
ParaDrop.Plane3.Types=ABE
ParaDrop.Plane3.Num=4


Here is a DropSpecial template I'm using.
Spoiler (click here to read it):
Code:
;;DropSpecial template
[DropSpecial] ;;this drops
UIName=Name:DropSpecial
Name=Drop UNIT_NAME
ParaDrop.Types=UNIT_ID
ParaDrop.Num=
Money.Amount= ;;:UNIT_ID>Cost * ParaDrop.Num
RechargeTime= ;;:General>BuildSpeed * (UNIT_ID>Cost / 1000) * UNIT_ID>BuildTimeMultiplier * ParaDrop.Num
Type=ParaDrop
Action=Custom
ShowTimer=no
DisableableFromShell=no
Range=1.5
LineMultiplier=0
SW.AITargeting=ParaDrop
SW.CreateRadarEvent=no
Cursor=ParaDrop
IsPowered=no
SidebarImage=

_________________
One and only developer of the Command & Conquer Dune "C&C D" mod.
m7 wrote:
I tend to release things I create so that assets are never lost to hard drive problems, accidental deletion, or me having to pretend to care about rippers taking things from my project when it is done. #Tongue

Last edited by TAK02 on Thu Jul 30, 2020 5:35 am; edited 2 times in total

Back to top
View user's profile Send private message Send e-mail Visit poster's website ModDB Profile ID YouTube User URL Twitter Channel URL Skype Account
Savoy
Vehicle Driver


Joined: 29 Jul 2020

PostPosted: Thu Jul 30, 2020 4:38 am    Post subject: Reply with quote  Mark this post and the followings unread

The problem is here. I've done everything with the name & cameo. I've copied the code you gave me but when I clicked to use it, I can't "select target" like the other two Paradrops, and it automatically goes on cooldown and absolutely nothing happens.



Untitled.png
 Description:
 Filesize:  556.95 KB
 Viewed:  1536 Time(s)

Untitled.png



Back to top
View user's profile Send private message
TAK02
General


Joined: 28 Jun 2015
Location: It was Damascus.

PostPosted: Thu Jul 30, 2020 4:44 am    Post subject: Reply with quote  Mark this post and the followings unread

Did you just copy without stating which units and how many you wanted delivered?

What's the SW code?

Back to top
View user's profile Send private message Send e-mail Visit poster's website ModDB Profile ID YouTube User URL Twitter Channel URL Skype Account
Savoy
Vehicle Driver


Joined: 29 Jul 2020

PostPosted: Thu Jul 30, 2020 4:53 am    Post subject: Reply with quote  Mark this post and the followings unread

Here is it. I don't understand the Money.Amount part tho

[SecretLabParaDropSpecial]
UIName=Name:CPara
Name=Secret Lab Paratrooper Drop
ParaDrop.Types=GGI
ParaDrop.Num=8
Money.Amount= ;;:UNIT_ID>Cost * ParaDrop.Num
RechargeTime=2 ;;:General>BuildSpeed * (UNIT_ID>Cost / 1000) * UNIT_ID>BuildTimeMultiplier * ParaDrop.Num
Type=ParaDrop
Action=Custom
ShowTimer=no
DisableableFromShell=no
Range=1.5
LineMultiplier=0
SW.CreateRadarEvent=no
Cursor=ParaDrop
IsPowered=no
SidebarImage=CARAICON

_________________
Embrace the night sky above you... then go to sleep.

Back to top
View user's profile Send private message
TAK02
General


Joined: 28 Jun 2015
Location: It was Damascus.

PostPosted: Thu Jul 30, 2020 5:34 am    Post subject: Reply with quote  Mark this post and the followings unread

One thing I forgot was SW.AITargeting=ParaDrop so AIs can use this SW.

But I can't see why it doesn't work...
Spoiler (click here to read it):
Money.Amount should be 3200 at least if one GGI costs 400 and this drops 8 of them.

RechargeTime should be 2.56 if General>BuildSpeed is 0.8, GGI costs 400 and you have no BuildTimeMultiplier set on GGIs.

Back to top
View user's profile Send private message Send e-mail Visit poster's website ModDB Profile ID YouTube User URL Twitter Channel URL Skype Account
XxpeddyxX
Commander


Joined: 03 Sep 2004

PostPosted: Thu Jul 30, 2020 5:39 am    Post subject: Reply with quote  Mark this post and the followings unread

Savoy wrote:
Here is it. I don't understand the Money.Amount part tho

[SecretLabParaDropSpecial]
UIName=Name:CPara
Name=Secret Lab Paratrooper Drop
ParaDrop.Types=GGI
ParaDrop.Num=8
Money.Amount= ;;:UNIT_ID>Cost * ParaDrop.Num
RechargeTime=2 ;;:General>BuildSpeed * (UNIT_ID>Cost / 1000) * UNIT_ID>BuildTimeMultiplier * ParaDrop.Num
Type=ParaDrop
Action=Custom
ShowTimer=no
DisableableFromShell=no
Range=1.5
LineMultiplier=0
SW.CreateRadarEvent=no
Cursor=ParaDrop
IsPowered=no
SidebarImage=CARAICON

Money.Amount comment is his own methodology to how he prices SWs, if you go by that you won't understand it.

A simple search in the documentation will lead you to:

[SuperWeapon]?Money.Amount= (integer - credits)
This many credits are added to the firing player’s account when the super weapon is fired. Use a negative number to subtract credits. Defaults to 0.

_________________

ayylmao on Discord

Back to top
View user's profile Send private message
silverwind
Cyborg Firebomber


Joined: 11 Jun 2016

PostPosted: Fri Jul 31, 2020 8:31 pm    Post subject: Reply with quote  Mark this post and the followings unread

try removing Action=Custom from your SW code. I'm pretty sure Action='s function is replaced by Cursor= and the various Targetting tags. It may be interfering.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [8 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.1844s ][ Queries: 14 (0.0106s) ][ Debug on ]