[George] How do station hitpoints work?

Freeform discussion about anything related to modding Transcendence.
Post Reply
RPC
Fleet Admiral
Fleet Admiral
Posts: 2876
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

I have no idea, and I might just make all of my stations immobile ships since I don't know how they work.
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Image
Image
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
george moromisato
Developer
Developer
Posts: 2998
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

This is unfortunately complicated because they are designed to handle three different cases: immutable planets, populated (but indestructible) stations, and destructible wrecks. Here is how they work:

IMMUTABLE
Setting immutable="true" makes a station immune to all attacks and alterations.

POPULATED STATIONS
A populated station has non-zero hit points. It takes damage when hit in the normal way. When hit points reach 0, the station is considered "abandoned" (the image changes to have damage markings).

Use the following attributes (as described in: http://transcendence.kronosaur.com/wiki ... tationtype):

maxHitPoints=... This is the number of hit points the stations has initially.

armorID=... This is the UNID of an armor item type used to calculate damage resistance, etc. NOTE: In general stations do not yet honor most special armor properties (such as stealth, HP bonus, etc.)

multiHull="true": If set, this indicates that the station resists anything except WMD damage.

DESTRUCTIBLE STATIONS
A station may have structural hit points. When hit, we subtract from structural hit points in the normal way. When structural hit points reach 0, the station is destroyed (shattered and removed from the game). Wrecks generally have structural hit points. To set them use:

maxStructuralHitPoints=... This is the number of structural hit points to start. If this is omitted or set to 0, then the station cannot be destroyed.

NOTE 1: It is possible for a station to have both hit points and structural hit points (e.g., Sung defense towers). In that case, the station will be abandoned when hit points reach 0 and be destroyed when structural hit points reach 0.

NOTE 2: Stations get an OnDestroy event when abandoned AND when (if) destroyed.

Hope that helps, but if not, please follow up with specific questions.
Post Reply