Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: TrashMan on July 20, 2005, 04:44:28 pm

Title: Auto-Repair?
Post by: TrashMan on July 20, 2005, 04:44:28 pm
How about a SCP feature like this

In the Ship.tbl file you can specify the following field:

$AutorepairRate:  0.1

and it can mean either the number of HP to rpair each secopnd Or the number of seconds it takes to repair 1 HP (i kinda like the second one better)

you could allso specify the $RepairCeling: 50 that tell the game up to what hull percentage to repair the ship by.

This would be rather cool, as you could make ships with nano-repair systems and even bigger ships could slowly repair themselves.

Of course, you could have a AutoRepair on/off box in FRED under ship properties somewhere.
Title: Auto-Repair?
Post by: redsniper on July 20, 2005, 08:52:16 pm
Can't this already be done, sort of, with SEXPs? I seem to remember the Nyarlathotep regenerating in Derelict.
Title: Auto-Repair?
Post by: FireCrack on July 20, 2005, 09:57:23 pm
already exists

$Hull Repair Rate

Underneath

$Hitpoints
Title: Auto-Repair?
Post by: Trivial Psychic on July 20, 2005, 10:02:02 pm
If you're doing something like TBP, then that becomes too inefficient.  You could be playing a mission with quite a number of ships, each requiring their own sexp to control self-repair, cause some ships might be able to do it better than others.  Table entries would be better, or make it part of the armor.tbl system, but thats still too complex for most people (sorry WMC).  We need a subsystem repair rate, hull repair rate, a possible delay before the repair engages, a yes or no as to whether a subsystem should be able to regenerate from 0%, perhaps a curve figure so the repair rate is dependant on the degree of overall dammage, and it needs to work on any AI class, capships included.

[Edit]
Oops.  Didin't see the posts in the other thread.  I guess this is mostly implimented after-all.
[/Edit]
Title: Auto-Repair?
Post by: WMCoolmon on July 21, 2005, 02:50:39 am
If armor.tbl is too complex, then doing all that would definitely be too complex as well.
Title: Auto-Repair?
Post by: Fury on July 21, 2005, 03:07:54 am
See http://www.hard-light.net/forums/index.php/topic,32796.0.html
Title: Auto-Repair?
Post by: TrashMan on July 21, 2005, 07:32:40 pm
Oh...cool..disn't know that..

Does it have a ceeling (percentage up to which it repairs)?
Title: Auto-Repair?
Post by: WMCoolmon on July 21, 2005, 08:27:25 pm
100%? :p