Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upFuel Leaks #7104
Conversation
OvenBaker
added some commits
Apr 8, 2014
This comment has been minimized.
This comment has been minimized.
|
We've never actually had luck with that sort of fire-line sort of thing, but maybe yours will be the trick. ;-) |
Wishbringer
referenced this pull request
Apr 8, 2014
Closed
Wrecks (and vehicles with destroyed batteries) can show a charge when examined. #7117
This comment has been minimized.
This comment has been minimized.
|
This should apply to batteries as well, since they are liquid based. |
This comment has been minimized.
This comment has been minimized.
No, because batteries don't work like that? |
This comment has been minimized.
This comment has been minimized.
IIRC a breached battery might leak acid, but that wouldn't leak the electric all over. More likely to mess up your engine compartment, I'd guess, and probably wouldn't do the battery's capacity any good. That opined, Rivet's the automotive engineer here so she'd be the one to know what happens when a vehicle battery gets smashed up. |
This comment has been minimized.
This comment has been minimized.
|
As soon as the dielectric leaks out, the battery is dead. |
This comment has been minimized.
This comment has been minimized.
|
Two nits. Please use 1tbs* consistently (looks like the following):
And please use brackets around all conditionals and loops. The
thing has a rather high chance of introducing bugs somewhere down the line. *"one true bracket style" yes the name is terrible, it's not a religious thing, it's just waaay better to settle on one style, and that's the one we ended up with. |
This comment has been minimized.
This comment has been minimized.
|
50% is a bit harsh? |
This comment has been minimized.
This comment has been minimized.
|
The speed of the leak scales with the amount of damage. When you're at 45% or so tank health, it's a VERY slow leak. If you drive you'll definitely notice it (from the trail of gasoline) well before it becomes a problem. It also scales with remaining fuel amount, so the rate will naturally drop. 50% seems like as good a start value as any, but trivial to change if balance feedback indicates it's too low / high. |
This comment has been minimized.
This comment has been minimized.
|
Granted that it's a slow leak, but I'll still feel driven to run around checking all the vehicles lying around for tank damage. |
This comment has been minimized.
This comment has been minimized.
ghost
commented
Apr 9, 2014
|
Good change, and I think it can be applied to batteries as well (without leaking anything) if it's thought of as increased self-discharge due to physical damage. |
This comment has been minimized.
This comment has been minimized.
vs.
You might be able to craft a new battery or seal and add fresh acid, but Rivet was pretty clear there. Maybe have it breach at 25% or whatever, but breached battery is Empty. |
This comment has been minimized.
This comment has been minimized.
ghost
commented
Apr 10, 2014
|
I believe what Rivet was saying was that you can't recharge a battery once the dielectric leaks out. That is, a dielectric leakage results in a loss of storage capacity, whereas a tank leakage just results in a loss of stored fuel. A damaged tank still has full capacity - you can refill it (though it will still leak), wheres a battery without a dialectric can no longer hold any charge. (Short of repairing it by restoring the dialectric). What I'm suggesting is that we ignore the dialectric (which we do currently anyway) and/or pretend it is not a liquid (and for many batteries, including some lead-acid batteries, it is not a liquid). Instead, we treat damaged batteries as having a high self-discharge rate which causes them to lose charge with time - though they can still be fully recharged. (i.e. they act like a damaged fuel tank, but don't actually leak any liquid.) |
This comment has been minimized.
This comment has been minimized.
|
the battery thing seems rather complicated considering the results. |
This comment has been minimized.
This comment has been minimized.
ghost
commented
Apr 10, 2014
|
I'm probably making it sound more complicated than it really is. The implementation could be as simple as: Damaged batteries work exactly the same as fuel tanks (slow drain of charge), but don't leak anything on the ground. That's it. From a realism point of view, we can rationalize damaged batteries losing charge via self-discharge, which gets us around the objection that Rivet raised. Anyway, not a big deal - I just thought it might add some fun challenges, like to get your car back to base because your solar panels can't keep up with the self-discharge of a damaged battery. |
This comment has been minimized.
This comment has been minimized.
|
Oh, that's actually pretty reasonable. I keep thinking of a car battery that I let run dry once that exploded on me, but I have to keep reminding myself "effort vs reward". |
This comment has been minimized.
This comment has been minimized.
|
Exploded you say, that sounds interesting/dangerous, did it do much damage? |
This comment has been minimized.
This comment has been minimized.
|
I'm not a stickler for 100% realism in cases where it's more bother than it's worth.
This works fine. |
kevingranade
merged commit 42b0225
into
CleverRaven:master
Apr 10, 2014
This comment has been minimized.
This comment has been minimized.
|
Not much damage, it could have been dangerous if someone had been right |
This comment has been minimized.
This comment has been minimized.
|
I played around with blowing up capacitors, as a kid, by overloading them. :) |
OvenBaker commentedApr 8, 2014
This adds a slow gasoline (or water) leak to badly damaged tanks on vehicles. Once the tank is below 50% health, it begins to drip fuel out. Initially it's very slow, but it speeds up as the tank gets closer to being destroyed.
I'm sure some enterprising players will find a way to use it to drive through town, leaving a ready-to-ignite trail of accelerant behind themselves.