self-repairing armor on NPCs query

Freeform discussion about anything related to modding Transcendence.
Post Reply
relanat
Militia Captain
Militia Captain
Posts: 941
Joined: Tue Nov 05, 2013 9:56 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?
Stupid code. Do what I want, not what I typed in!
User avatar
0xABCDEF
Militia Lieutenant
Militia Lieutenant
Posts: 124
Joined: Thu May 19, 2016 12:58 am
Location: Was destroyed by a Phobos-class dreadnought in the Eridani system

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: 941
Joined: Tue Nov 05, 2013 9:56 am

Thanks for the speedy reply. I might have to do something different then.
Stupid code. Do what I want, not what I typed in!
Post Reply