225 {
226 switch (ctrl)
227 {
229 float newValue = 0;
230
231
233 {
234 newValue += 0.4;
235 }
236
238 {
239 newValue += 0.4;
240 }
241
242 return Math.Clamp(newValue, 0, 1);
243 break;
244 }
245
246 return super.OnSound(ctrl, oldValue);
247 }
CarSoundCtrl
Car's sound controller list. (native, do not change or extend)
override int GetCarDoorsState(string slotType)