MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / StartEngine

Method StartEngine

ogsr_engine/xrGame/Car.cpp:1022–1032  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1020}
1021
1022void CCar::StartEngine()
1023{
1024 if (m_fuel < EPS || b_engine_on)
1025 return;
1026 PlayExhausts();
1027 m_car_sound->Start();
1028 b_engine_on = true;
1029 m_current_rpm = 0.f;
1030 m_current_engine_power = 0.f;
1031 b_starting = true;
1032}
1033void CCar::StopEngine()
1034{
1035 if (!b_engine_on)

Callers

nothing calls this directly

Calls 1

StartMethod · 0.45

Tested by

no test coverage detected