Page 1 of 1

Realistic Damage OXP

Posted: Thu Aug 16, 2012 7:24 pm
by Thargoid
A small and simple script OXP, which makes equipment damage a little more realistic.

In the vanilla game, most equipment can become damaged but it will never be fully destroyed. This script modifies that, and gives a chance whenever an item is damaged that it will be broken beyond repair and completely destroyed. In such cases repair will not be possible and the item will need to be purchased again from scratch.

The base chance of a damaged piece of equipment being totally destroyed is between 5-10%, and is also weighted by the items complexity (it's tech level).

For OXP makers, if an item is destroyed the event this.equipmentDestroyed is sent to all other loaded world scripts, with the equipment entity as the parameter (in the same way as this.equipmentDamaged). The script also has a 0.25s delay after the equipmentDamaged trigger, so immediately self-repairing OXP equipment will be immune to destruction.

With thanks to Eric Walch for some useful discussion about timers, and to Ironfist for beta testing.

Download from the wiki or box.com, via the links below.

Re: Realistic Damage OXP

Posted: Thu Aug 16, 2012 8:40 pm
by Smivs
I like this idea, but I could see life getting quite expensive!

Re: Realistic Damage OXP

Posted: Fri Aug 17, 2012 10:09 am
by Gimi
Nice idea, and it fits nicely into my perception of a "realistic" Ooniverse. Now, a quick question/challenge. How about an oxp that allows you to carry spares at the cost of cargo space. Spares could be made available at (required_tech_level)+3. Time to install in space could be (time_to_install_at_station) * 2.
Of course, not all equipment is available as spares, but I imagine fuel scoops, injectors maybe, docking computer, etc. I would imagine that the cost in cargo space to carry spares would be quite hefty, and the cost to buy the spares would of course be high owing to the complexity of preparing and storing the equipment for a semi automated install procedure.
This might need some thought to make it balanced though.

Re: Realistic Damage OXP

Posted: Fri Aug 17, 2012 11:19 am
by Thargoid
Maybe in 1.77, where we can properly take up cargo space ;)

Re: Realistic Damage OXP

Posted: Tue Feb 05, 2013 5:53 pm
by UK_Eliter
This is a nice OXP. However, it destroyed my ship's cloaking device and then I could not buy one anywhere. I had to edit the save file. A problem?

Re: Realistic Damage OXP

Posted: Tue Feb 05, 2013 6:55 pm
by Thargoid
UK_Eliter wrote:
This is a nice OXP. However, it destroyed my ship's cloaking device and then I could not buy one anywhere. I had to edit the save file. A problem?
Why is this a problem, other than for you? The item is never available for sale (at least without an OXP offering it). It's supposed to be a one-off, hence when it's gone, it's gone. So if it gets totally destroyed, then it's gone.

Life's hard sometimes, and then you die cheat...

Re: Realistic Damage OXP

Posted: Tue Feb 05, 2013 7:18 pm
by UK_Eliter
Thargoid wrote:
UK_Eliter wrote:
This is a nice OXP. However, it destroyed my ship's cloaking device and then I could not buy one anywhere. I had to edit the save file. A problem?
Why is this a problem, other than for you? The item is never available for sale (at least without an OXP offering it). It's supposed to be a one-off, hence when it's gone, it's gone. So if it gets totally destroyed, then it's gone.

Life's hard sometimes, and then you die cheat...
OK; I may have been a bit blunt there. For, yes: fair enough! (Also:) I suppose it is up to makers of OXP stations and the like to decide whether they want them ever to sell cloaking devices.

Re: Realistic Damage OXP

Posted: Tue Feb 05, 2013 9:35 pm
by GGShinobi
UK_Eliter wrote:
Thargoid wrote:
UK_Eliter wrote:
This is a nice OXP. However, it destroyed my ship's cloaking device and then I could not buy one anywhere. I had to edit the save file. A problem?
Why is this a problem, other than for you? The item is never available for sale (at least without an OXP offering it). It's supposed to be a one-off, hence when it's gone, it's gone. So if it gets totally destroyed, then it's gone.

Life's hard sometimes, and then you die cheat...
OK; I may have been a bit blunt there. For, yes: fair enough! (Also:) I suppose it is up to makers of OXP stations and the like to decide whether they want them ever to sell cloaking devices.
:lol: lol
Hmm, I'm still in Galaxy 1, with all those OXP I got installed there is so much to discover. But this means I don't have a cloaking device yet (although I already know how to get it because seemingly the colors of the bulletin board changed so I was able to read the supposedly hidden spoilers here). But often, other ships seem to have something like a cloaking device: some are invisible on the scanner, others "flicker"/become invisible. Where did these guys get that equipment? :roll:

Re: Realistic Damage OXP

Posted: Tue Feb 05, 2013 9:41 pm
by Thargoid
It's really a multi player game and we just didn't tell you. Those are other players who have done the eight :wink: :twisted:

Re: Realistic Damage OXP

Posted: Tue Feb 05, 2013 10:23 pm
by GGShinobi
Thargoid wrote:
It's really a multi player game and we just didn't tell you. Those are other players who have done the eight :wink: :twisted:
:lol:

Re: Realistic Damage OXP

Posted: Tue Feb 05, 2013 10:40 pm
by UK_Eliter
GGShinobi wrote:
Hmm, I'm still in Galaxy 1, with all those OXP I got installed there is so much to discover. But this means I don't have a cloaking device yet (although I already know how to get it because seemingly the colors of the bulletin board changed so I was able to read the supposedly hidden spoilers here). But often, other ships seem to have something like a cloaking device: some are invisible on the scanner, others "flicker"/become invisible. Where did these guys get that equipment? :roll:
Hi GGShinobi (not sure I've said hello yet).

Invisible on scanner = has M.A.S.C. = Military Anti-Scanner Countermeasures. I think that MASC is built into the game, but I'm not sure one can (i.e. that players can) buy it anywhere (or can do so anymore; some players and OXP creators think it worsens the game . . try searching the boards for 'MASC' for more information).


The flickering indicates, in fact, a cloaking device. A cloaking device doesn't fully hide its ship (although non-player characters tend to act as if it did).

Re: Realistic Damage OXP

Posted: Tue Feb 05, 2013 10:44 pm
by GGShinobi
UK_Eliter wrote:
GGShinobi wrote:
Hmm, I'm still in Galaxy 1, with all those OXP I got installed there is so much to discover. But this means I don't have a cloaking device yet (although I already know how to get it because seemingly the colors of the bulletin board changed so I was able to read the supposedly hidden spoilers here). But often, other ships seem to have something like a cloaking device: some are invisible on the scanner, others "flicker"/become invisible. Where did these guys get that equipment? :roll:
Hi GGShinobi (not sure I've said hello yet).

Invisible on scanner = has M.A.S.C. = Military Anti-Scanner Countermeasures. I think that MASC is built into the game, but I'm not sure one can (i.e. that players can) buy it anywhere (or can do so anymore; some players and OXP creators think it worsens the game . . try searching the boards for 'MASC' for more information).

The flickering indicates, in fact, a cloaking device. A cloaking device doesn't fully hide its ship (although non-player characters tend to act as if it did).
Interesting... thanks for the info! And hello UK_Eliter! :D