328 {
329 switch ( ctrl )
330 {
332 float newValue = 0;
334 {
335 newValue += 0.25;
336 }
337
339 {
340 newValue += 0.25;
341 }
342
344 {
345 newValue += 0.25;
346 }
347
349 {
350 newValue += 0.25;
351 }
352
353 return Math.Clamp(newValue, 0, 1);
354 break;
355 }
356
357 return super.OnSound(ctrl, oldValue);
358 }
CarSoundCtrl
Car's sound controller list. (native, do not change or extend)
override int GetCarDoorsState(string slotType)