Realistic damage

An area for discussing new ideas and additions to Oolite.

Moderators: another_commander, winston

User avatar
Norby
---- E L I T E ----
---- E L I T E ----
Posts: 2577
Joined: Mon May 20, 2013 9:53 pm
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Contact:

Re: Realistic damage

Post by Norby »

Layne wrote:
Norby wrote:
Image
Note the Hull bar left from the clock. This need CombatMFD and Large or XL HUD in HUDSelector, but you can make it into any HUD using the same tricks.
This property can be added to any HUD? Can you give a brief rundown on the script involved in that? I use a modified Chupacabra HUD with a single added MFD display, and I wouldn't mind having a hull-integrity status on it if it's not too hard to add in.
Put this into the dials section of the .plist file of your HUD:

Code: Select all

		{	data_source = "combatSLBar"; selector = "drawCustomBar:"; draw_surround = yes;
			alert_conditions= 14; //do not show in the dock
			alpha = 1.0; height = 2; width = 35; x = -125; y = 23; y_origin = -1; },
The hull label can be created in the legends section:

Code: Select all

		{	text = "Hull"; align = 1; x = -93; y = 18; y_origin = -1; height=7; width=7;
				alert_conditions= 14; //do not show in the dock
				alpha=0.5;},
If you have CombatMFD OXP then you are done (works without the MFD equipment also), else you must put this into a timer in a worldScript:

Code: Select all

player.ship.setCustomHUDDial("combatSLBar", (player.ship.serviceLevel-75)/25);
There are more Custom HUD dials filled by CombatMFD, for example combatSpeed is very useful imho.
Layne
---- E L I T E ----
---- E L I T E ----
Posts: 355
Joined: Sat Mar 28, 2015 11:14 pm

Re: Realistic damage

Post by Layne »

Norby wrote:
There are more Custom HUD dials filled by CombatMFD, for example combatSpeed is very useful imho.
I've tried CombatMFD, but during a battle, I find I do worse when tempted to peek at the MFD instead of just keeping my eyes on the crosshairs! Simplify, simplify, simplify!
Reports of my death have been greatly underestimated.
Fritz
---- E L I T E ----
---- E L I T E ----
Posts: 591
Joined: Sun Jul 12, 2015 2:30 pm
Location: Bavaria, Germany
Contact:

Re: Realistic damage

Post by Fritz »

Norby wrote:
Fritz wrote:
What ship are you flying? :shock:
A really big one: [wiki]Andromeda[/wiki].
Oh. I would have expected a more fancy HUD in this one! :lol:
"You wouldn't kill me just for a few credits, would you?" – "No, I'll do it just for the fun!"
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6310
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Realistic damage

Post by Diziet Sma »

<subtle hint mode>

Norby, that would make a nice post for the Tweaking Thread, even though it's not OXP specific!

</subtle hint mode>
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
Norby
---- E L I T E ----
---- E L I T E ----
Posts: 2577
Joined: Mon May 20, 2013 9:53 pm
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Contact:

Re: Realistic damage

Post by Norby »

Layne wrote:
I do worse when tempted to peek at the MFD
This is why I was happy when custom dials arrived: these can help to read the values near the bars, even without bringing up the MFD.
Diziet Sma wrote:
that would make a nice post for the Tweaking Thread
Done, thanks!
Post Reply