1851 {
1852 int gear;
1853
1854 if (newGear == -1)
1855 {
1856 gear = GetGear();
1857 }
1858 else
1859 {
1860 gear = newGear;
1861 }
1862
1864 {
1866 {
1868 }
1869
1871 {
1873 {
1874 case CarHeadlightBulbsState.LEFT:
1877 break;
1878 case CarHeadlightBulbsState.RIGHT:
1881 break;
1882 case CarHeadlightBulbsState.BOTH:
1885
1886 vector local_pos_middle = (local_pos_left + local_pos_right) * 0.5;
1887 m_Headlight.AttachOnObject(
this, local_pos_middle);
1889 break;
1890 default:
1893 }
1894 }
1895 }
1896 else
1897 {
1899 {
1902 }
1903 }
1904
1905
1906 switch (gear)
1907 {
1908 case CarGear.REVERSE:
1912 else
1914 break;
1915 default:
1918 else
1920 }
1921
1922
1923
1925 {
1927 {
1930 m_RearLight.AttachOnObject(
this, localPos,
"180 0 0");
1931 }
1932 }
1933
1934
1936 {
1938 {
1939 case CarRearLightType.BRAKES_ONLY:
1941 break;
1942 case CarRearLightType.REVERSE_ONLY:
1943 if (EngineIsOn())
1945 else
1947
1948 break;
1949 case CarRearLightType.BRAKES_AND_REVERSE:
1950 if (EngineIsOn())
1952 else
1954
1955 break;
1956 default:
1958 }
1959 }
1960 else
1961 {
1963 {
1965 }
1966 }
1967 }
CarAutomaticGearboxMode
Enumerated automatic gearbox modes. (native, do not change or extend)
CarLightBase CreateFrontLight()
static string m_RightHeadlightPoint
static string m_LeftHeadlightPoint
static string m_ReverseLightPoint
CarRearLightBase CreateRearLight()
static string m_LeftHeadlightTargetPoint
void BrakeAndReverseRearLight()
static string m_RightHeadlightTargetPoint
CarRearLightBase m_RearLight