23 SetEnginePos(
"0 0.7 -1.7");
47 super.OnEngineStart();
112 if (!super.CanReleaseAttachment(attachment))
117 string attType = attachment.GetType();
152 if ( !super.CanDisplayAttachmentCategory(category_name))
157 category_name.ToLower();
158 if (category_name.Contains(
"engine"))
166 if (category_name.Contains(
"trunk"))
179 if ( !super.CanDisplayCargo() )
192 Class.CastTo( carDoor, FindAttachmentBySlotName( slotType ) );
200 case "Sedan_02_Door_1_1":
203 case "Sedan_02_Door_2_1":
206 case "Sedan_02_Door_1_2":
209 case "Sedan_02_Door_2_2":
212 case "Sedan_02_Hood":
215 case "Sedan_02_Trunk":
264 return "doors_driver";
267 return "doors_codriver";
270 return "doors_cargo1";
273 return "doors_cargo2";
277 return super.GetDoorSelectionNameFromSeatPos(posIdx);
285 return "Sedan_02_Door_1_1";
288 return "Sedan_02_Door_2_1";
291 return "Sedan_02_Door_1_2";
294 return "Sedan_02_Door_2_2";
298 return super.GetDoorInvSlotNameFromSeatPos(posIdx);
327 return Math.Clamp(newValue, 0, 1);
331 return super.OnSound(ctrl, oldValue);
339 return "DoorsDriver";
340 case "doors_codriver":
341 return "DoorsCoDriver";
343 return "DoorsCargo1";
345 return "DoorsCargo2";
371 return nextSeat == 1;
374 return nextSeat == 0;
377 return nextSeat == 3;
380 return nextSeat == 2;
388 switch (pCurrentSeat)
391 return pDoorsSelection ==
"DoorsDriver";
394 return pDoorsSelection ==
"DoorsCoDriver";
397 return pDoorsSelection ==
"DoorsCargo1";
400 return pDoorsSelection ==
"DoorsCargo2";
406 override void OnDebugSpawn()
412 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
413 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
414 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
415 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
416 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
418 GetInventory().CreateInInventory(
"Sedan_02_Door_1_1");
419 GetInventory().CreateInInventory(
"Sedan_02_Door_1_2");
420 GetInventory().CreateInInventory(
"Sedan_02_Door_2_1");
421 GetInventory().CreateInInventory(
"Sedan_02_Door_2_2");
422 GetInventory().CreateInInventory(
"Sedan_02_Hood");
423 GetInventory().CreateInInventory(
"Sedan_02_Trunk");
426 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
427 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
439 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
440 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
441 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
442 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
444 GetInventory().CreateInInventory(
"Sedan_02_Door_1_1_Red");
445 GetInventory().CreateInInventory(
"Sedan_02_Door_1_2_Red");
446 GetInventory().CreateInInventory(
"Sedan_02_Door_2_1_Red");
447 GetInventory().CreateInInventory(
"Sedan_02_Door_2_2_Red");
448 GetInventory().CreateInInventory(
"Sedan_02_Hood_Red");
449 GetInventory().CreateInInventory(
"Sedan_02_Trunk_Red");
452 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
453 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
465 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
466 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
467 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
468 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
470 GetInventory().CreateInInventory(
"Sedan_02_Door_1_1_Grey");
471 GetInventory().CreateInInventory(
"Sedan_02_Door_1_2_Grey");
472 GetInventory().CreateInInventory(
"Sedan_02_Door_2_1_Grey");
473 GetInventory().CreateInInventory(
"Sedan_02_Door_2_2_Grey");
474 GetInventory().CreateInInventory(
"Sedan_02_Hood_Grey");
475 GetInventory().CreateInInventory(
"Sedan_02_Trunk_Grey");
478 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
479 GetInventory().CreateInInventory(
"Sedan_02_Wheel");