self-repairing armor on NPCs query

Freeform discussion about anything related to modding Transcendence.
Post Reply
relanat
Militia Commander
Militia Commander
Posts: 399
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
Commonwealth Pilot
Commonwealth Pilot
Posts: 89
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.

Code: Select all

<OnFireWeapon>
	(gamEnd Nil "encountered an unexpected error")
</OnFireWeapon>
-Command Screen Library: RTS in a dockscreen
-Extended Justice: A safer Commonwealth for all
-Playership Bones: Revisit your old ship wrecks!
-Please help out our official Documentarist (me) by editing the wiki

relanat
Militia Commander
Militia Commander
Posts: 399
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