self-repairing armor on NPCs query

Freeform discussion about anything related to modding Transcendence.
Post Reply
relanat
Militia Captain
Militia Captain
Posts: 608
Joined: Tue Nov 05, 2013 9:56 am

Mon Jul 31, 2017 6:48 am

While working on a freighter wingman/auton mod I noticed the armor repairing itself when the freighter was docked at a station.
I'm assuming this is a game function that repairs NPC ships over time.

However it's not needed in this mod but I don't know how to shut it off.

Does anyone know where the auto-repair code is or if there is an attribute or data that can be set to cancel this?

User avatar
0xABCDEF
Militia Lieutenant
Militia Lieutenant
Posts: 119
Joined: Thu May 19, 2016 12:58 am
Location: Was destroyed by a Phobos-class dreadnought in the Eridani system

Tue Aug 01, 2017 2:04 am

Station dock auto-repair is defined by one of two attributes on the StationType: shipRegen or shipRepairRate. The ship repair seems to ignore all armor attributes except maxHP.

It appears that the only way to disable these attributes is to override the StationType.

relanat
Militia Captain
Militia Captain
Posts: 608
Joined: Tue Nov 05, 2013 9:56 am

Tue Aug 01, 2017 6:50 am

Thanks for the speedy reply. I might have to do something different then.

Post Reply