920 {
921 Human driver = CrewDriver();
923 {
924
925 if (driver.IsAlive())
926 {
928 }
929 }
930
932 {
934 {
936 if (battery)
937 {
938
939
940
941
942
943
944
945 }
946 }
947 }
948
950 if (waterDepth > 0.0)
951 {
953 if (IsAnyCrewPresent(crewPresenceIndices))
954 {
956 {
957 int crewCount = crewPresenceIndices.Count();
958 for (int crewPositionIndex = 0; crewPositionIndex < crewCount; ++crewPositionIndex)
959 CrewMember(crewPositionIndex).GetCommand_Vehicle().GetOutVehicle();
960 }
961 }
962
964 {
967 {
969 SetEngineZoneReceivedHit(true);
970 }
971 }
972 }
973 else
974 {
977
978 }
979
980
982 if (brakeCoef > 0)
983 {
985 {
987 SetSynchDirty();
989 }
990 }
991 else
992 {
994 {
996 SetSynchDirty();
998 }
999 }
1000 }
proto native void SetBrake(float value)
Sets the future rear brake value.
proto native float GetBrake()
Returns the current rear brake value in range <0, 1>.
static float DROWN_ENGINE_DAMAGE
enum MotorbikeEngineSoundState DROWN_ENGINE_THRESHOLD
static float WATER_DEPTH_PLAYER_EJECT
override EntityAI GetElectricitySourceDevice()
override bool NeedElectricitySourceDevice()
proto native bool IsControllingVehicle()