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

Do you want to advertise at Project Perfect Mod. Find out how to do it HERE.

The time now is Fri Oct 22, 2021 10:16 pm
All times are UTC + 0
 Forum index » Modding Central » Red Alert 2 Editing Forum » Ares (Unofficial Forum)
Upgrading building using SuperWeapon Deliver.Types on itself
Moderators: Ares Support Team at PPM, 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
Fryone
Cyborg Soldier


Joined: 30 Mar 2015
Location: Mother Russia

PostPosted: Fri Aug 27, 2021 5:11 pm    Post subject:  Upgrading building using SuperWeapon Deliver.Types on itself
Subject description: so it's impossible?
Reply with quote  Mark this post and the followings unread

Tried to create SuperWeapon for building upgrade similar to Dune2000 using Deliver.Types to place on itself but it tries to place "upgrade building" around.
Maybe I'm missing something that will ignore placed building. Just thoughts...

Back to top
View user's profile Send private message Send e-mail Visit poster's website ModDB Profile ID
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Mon Aug 30, 2021 10:17 am    Post subject: Reply with quote  Mark this post and the followings unread

You cant spawn objects on top of each other, if there is something in the way the Deliver SW will place it next to it instead.

The only way to do what you want is to make the superweapon first destroy the building & then place the new "upgraded" one in the same spot.
_________________



Last edited by Mig Eater on Mon Aug 30, 2021 1:08 pm; edited 1 time in total

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
Fryone
Cyborg Soldier


Joined: 30 Mar 2015
Location: Mother Russia

PostPosted: Mon Aug 30, 2021 12:59 pm    Post subject: Reply with quote  Mark this post and the followings unread

I wish there will be some SW for upgrading or simple "Deliver.Upgrade=yes" to do that(would be cool to have a boolean that will skip parts of code about checking building on its way). But, then I think that when human player do building upgrade, is it same process as AI doing it and how SW will do that too.

About destroying the building first, I think it will move this upgraded building, unless it has 1x1 size.
Thanks for answer.

Back to top
View user's profile Send private message Send e-mail Visit poster's website ModDB Profile ID
maestro21
Cyborg Engineer


Joined: 25 Feb 2008

PostPosted: Mon Aug 30, 2021 2:15 pm    Post subject:   Reply with quote  Mark this post and the followings unread

Can GenericAlternatePrerequsite=" help ?

Make an unbuildable  dummy building (TechLevel=-1) that gives the same prerequsites that your upgrade gives.

Then prepare [GenericPrerequsites]

UPGRADEONE=your dummy  building ID ; URGRADEONE is an example only.
You can give a different name.

Then;

PrerequisiteUpgradeoneAlternate=a delivery, baloonhover preferable unit

(Upgradeone's only "U" vowel capital,others lower case ...)

If you wish, it can give NEG.Prerequsites, also...

[SW] ;add to upper SWs list...and give this to  at least one building


Type=UnitDelivery
Deliver.Types=a delivery, baloonhover preferable unit
SW.Shots=1
SW.AlwaysGranted=yes;since given to any building, it will work by below tag
SW.AuxBuildings=whatever you wish  
SW.UseAITargeting=yes, better
SW.ManualFire=no ; so when you click the Ready cameo once, it will fire
SW.AITargeting=self ; near base somewhere  


You can give AI "self" fireable  immediately after clicking the SW cameo,or even without the cameo, (see Ares' Documentations)
 
Recharge time  is up to you.

[a delivery, baloonhover preferable unit]
TechLevel=-1 ; not buildable
ImmuneToEMP=yes ; required for global 255 CellSpread EMP TimeStop SWs
Selectable=no
PixelSelectionBraceletDelta=-99999  ;for  no health bar
LegalTarget=no
Image=none ; invisible
Immune=yes
Warpable=no
BuildLimit=-1 ; not necessary,but anyway

Prerequsite=Including UPGRADEONE are buildable when you use your SW
Prerequsite.Negative=Including UPGRADEONE are NOT  buildable when you use your SW



I know this is not what you exactly wish, but so similar.    Rolling Eyes

Back to top
View user's profile Send private message
McPwny
Missile Trooper


Joined: 29 Jan 2018

PostPosted: Mon Aug 30, 2021 4:04 pm    Post subject: Reply with quote  Mark this post and the followings unread

the native building upgrade system from TS still works just fine. the caveats being the instant-repair bug and that the node logic only
supports superweapons and power values.
_________________
visit my moddb profile for .shp downloads and stuff

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
 Forum index » Modding Central » Red Alert 2 Editing Forum » Ares (Unofficial Forum)
Jump to:  
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.1541s ][ Queries: 11 (0.0080s) ][ Debug on ]