Jump to content

CnCNet Forums

Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Maslo

How to make a building sellable?

Recommended Posts

I made both Light post [GALITE] and Solar panel [CA0018] buildable, and now I am trying to make them sellable. How can I do that? I dont see any flag related to selling under buildings that can be sold, and setting Unsellable=false does not work either.

Share this post


Link to post
Share on other sites

I don't know about TS or later C&C, but in TD and RA a building needs a build-up animation to be sellable, so the game can play that in reverse.

Share this post


Link to post
Share on other sites

Yeah, a single-frame SHP will probably do fine. It just needs that SHP file.

 

An actual build-up animation is much nicer, though :P

Share this post


Link to post
Share on other sites

Yeah they don't have a selling animation :P

 

What you can do, is create a new building like a clone from laser, and just add (or change) 'Image=GALITE'

 

If you don't know how to add/clone new buildings (I use the software TibEd), just add this to your map:

[buildingTypes]

273=YourBuildingName1

274=YourBuildingName2

 

[YourBuildingName1]

Image=GALITE

 

[YourBuildingName2]

Image=CA0018

Just copy the other stuff from laser or something in there and edit from there. I'll put laser's codes without turret here for ya:

Name=Laser

Strength=500

Armor=wood

Prerequisite=NAHAND

TechLevel=2

Adjacent=4

ROT=10

Sight=7

Owner=Nod

Cost=300

BaseNormal=no

Points=30

Power=-40

Crewed=no

Capturable=false

Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60

MaxDebris=2

Primary=LaserFire2

ThreatPosed=30 ; This value MUST be 0 for all building addons

DamageParticleSystems=SparkSys,LGSparkSys

IsBaseDefense=yes

HasStupidGuardMode=false

 

Sorry dont know how skilled you are with modding :P

 

The easier thing it, to just use existing building that does have a build up/selling animation, like Light Tower Or sandbags, lol. just edit them to not to be a wall. It might look weird in game tho, but i don't think so.

Share this post


Link to post
Share on other sites

Um. Not sure how that is relevant; adding a build-up animation is just a matter of adding a "????make.shp" file.

Share this post


Link to post
Share on other sites

In TS/RA2 you have to define the buildup in the art.ini with the rest of the building.

 

; Firestorm Gen

[GAFIRE]

Cameo=FSDICON ; Icon

Image=GAFIRE ; No idea why WW did this

Remapable=yes ; Changes to owners color

Foundation=3x2 ; Building foundation

Buildup=GAFIREMK ; Buildup file

DemandLoadBuildup=true ;http://modenc.renegadeprojects.com/DemandLoadBuildup

FreeBuildup=true ; Unknow

NewTheater=yes ; Tell game to load shp from theater mix files

ActiveAnim=GAFIRE_C ; Active Animation file

ActiveAnimZAdjust=-100 ;up/down Adjust for Animation

ActiveAnimTwo=GAFIRE_B ; Active Animation file

ActiveAnimTwoZAdjust=-100 ;up/down Adjust for Animation

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...