2104 {
2105 int gear;
2106
2107 if (newGear == -1)
2108 {
2109 gear = GetGear();
2110 }
2111 else
2112 {
2113 gear = newGear;
2114 }
2115
2116 if (LightIsOn())
2117 {
2119 {
2121 }
2122
2124 {
2126 {
2127 case CarHeadlightBulbsState.LEFT:
2130 break;
2131 case CarHeadlightBulbsState.RIGHT:
2134 break;
2135 case CarHeadlightBulbsState.BOTH:
2138
2139 vector local_pos_middle = (local_pos_left + local_pos_right) * 0.5;
2140 m_Headlight.AttachOnObject(
this, local_pos_middle);
2142 break;
2143 default:
2146 }
2147 }
2148 }
2149 else
2150 {
2152 {
2155 }
2156 }
2157
2158
2159 switch (gear)
2160 {
2161 case CarGear.REVERSE:
2165 else
2167 break;
2168 default:
2171 else
2173 }
2174
2175
2176
2178 {
2180 {
2183 m_RearLight.AttachOnObject(
this, localPos,
"180 0 0");
2184 }
2185 }
2186
2187
2189 {
2191 {
2192 case CarRearLightType.BRAKES_ONLY:
2194 break;
2195 case CarRearLightType.REVERSE_ONLY:
2196 if (EngineIsOn())
2198 else
2200
2201 break;
2202 case CarRearLightType.BRAKES_AND_REVERSE:
2203 if (EngineIsOn())
2205 else
2207
2208 break;
2209 default:
2211 }
2212 }
2213 else
2214 {
2216 {
2218 }
2219 }
2220 }
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()