1962 {
1963 int gear;
1964
1965 if (newGear == -1)
1966 {
1967 gear = GetGear();
1968 }
1969 else
1970 {
1971 gear = newGear;
1972 }
1973
1975 {
1977 {
1979 }
1980
1982 {
1984 {
1985 case CarHeadlightBulbsState.LEFT:
1988 break;
1989 case CarHeadlightBulbsState.RIGHT:
1992 break;
1993 case CarHeadlightBulbsState.BOTH:
1996
1997 vector local_pos_middle = (local_pos_left + local_pos_right) * 0.5;
1998 m_Headlight.AttachOnObject(
this, local_pos_middle);
2000 break;
2001 default:
2004 }
2005 }
2006 }
2007 else
2008 {
2010 {
2013 }
2014 }
2015
2016
2017 switch (gear)
2018 {
2019 case CarGear.REVERSE:
2023 else
2025 break;
2026 default:
2029 else
2031 }
2032
2033
2034
2036 {
2038 {
2041 m_RearLight.AttachOnObject(
this, localPos,
"180 0 0");
2042 }
2043 }
2044
2045
2047 {
2049 {
2050 case CarRearLightType.BRAKES_ONLY:
2052 break;
2053 case CarRearLightType.REVERSE_ONLY:
2054 if (EngineIsOn())
2056 else
2058
2059 break;
2060 case CarRearLightType.BRAKES_AND_REVERSE:
2061 if (EngineIsOn())
2063 else
2065
2066 break;
2067 default:
2069 }
2070 }
2071 else
2072 {
2074 {
2076 }
2077 }
2078 }
CarAutomaticGearboxMode
Enumerated automatic gearbox modes. (native, do not change or extend)
void BrakeAndReverseRearLight()
static string m_LeftHeadlightPoint
static string m_ReverseLightPoint
static string m_LeftHeadlightTargetPoint
static string m_RightHeadlightTargetPoint
CarRearLightBase m_RearLight
CarLightBase CreateFrontLight()
static string m_RightHeadlightPoint
CarRearLightBase CreateRearLight()