mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
basic fuel pump, brake reservoirs air leaks, support for combined axle clatter sounds, dedicated loud buffer clash and coupler stretch sounds
This commit is contained in:
@@ -412,6 +412,17 @@ void TBrake::ForceEmptiness()
|
||||
BrakeRes->Act();
|
||||
}
|
||||
|
||||
// removes specified amount of air from the reservoirs
|
||||
// NOTE: experimental feature, for now limited only to brake reservoir
|
||||
void TBrake::ForceLeak( double const Amount ) {
|
||||
|
||||
BrakeRes->Flow( -Amount * BrakeRes->P() );
|
||||
ValveRes->Flow( -Amount * ValveRes->P() * 0.01 ); // this reservoir has hard coded, tiny capacity compared to other parts
|
||||
|
||||
BrakeRes->Act();
|
||||
ValveRes->Act();
|
||||
}
|
||||
|
||||
//---WESTINGHOUSE---
|
||||
|
||||
void TWest::Init( double const PP, double const HPP, double const LPP, double const BP, int const BDF )
|
||||
|
||||
Reference in New Issue
Block a user