23 SetEnginePos(
"0 0.7 1.4");
47 super.OnEngineStart();
112 if (!super.CanReleaseAttachment(attachment))
119 string attType = attachment.GetType();
120 if (attType ==
"CarRadiator" || attType ==
"CarBattery" || attType ==
"SparkPlug")
137 if ( !super.CanDisplayAttachmentCategory( category_name ) )
141 category_name.ToLower();
142 if ( category_name.Contains(
"engine") )
153 if ( !super.CanDisplayCargo() )
166 Class.CastTo(carDoor, FindAttachmentBySlotName(slotType));
174 case "Hatchback_02_Door_1_1":
177 case "Hatchback_02_Door_2_1":
180 case "Hatchback_02_Door_1_2":
183 case "Hatchback_02_Door_2_2":
186 case "Hatchback_02_Hood":
189 case "Hatchback_02_Trunk":
242 return "doors_driver";
245 return "doors_codriver";
248 return "doors_cargo1";
251 return "doors_cargo2";
255 return super.GetDoorSelectionNameFromSeatPos(posIdx);
263 return "Hatchback_02_Door_1_1";
266 return "Hatchback_02_Door_2_1";
269 return "Hatchback_02_Door_1_2";
272 return "Hatchback_02_Door_2_2";
276 return super.GetDoorInvSlotNameFromSeatPos(posIdx);
305 return Math.Clamp(newValue, 0, 1);
309 return super.OnSound(ctrl, oldValue);
317 return "DoorsDriver";
318 case "doors_codriver":
319 return "DoorsCoDriver";
321 return "DoorsCargo1";
323 return "DoorsCargo2";
349 return nextSeat == 1;
351 return nextSeat == 0;
353 return nextSeat == 3;
355 return nextSeat == 2;
363 switch (pCurrentSeat)
366 return pDoorsSelection ==
"DoorsDriver";
368 return pDoorsSelection ==
"DoorsCoDriver";
370 return pDoorsSelection ==
"DoorsCargo1";
372 return pDoorsSelection ==
"DoorsCargo2";
378 override void OnDebugSpawn()
384 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
385 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
386 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
387 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
389 GetInventory().CreateInInventory(
"Hatchback_02_Door_1_1");
390 GetInventory().CreateInInventory(
"Hatchback_02_Door_1_2");
391 GetInventory().CreateInInventory(
"Hatchback_02_Door_2_1");
392 GetInventory().CreateInInventory(
"Hatchback_02_Door_2_2");
393 GetInventory().CreateInInventory(
"Hatchback_02_Hood");
394 GetInventory().CreateInInventory(
"Hatchback_02_Trunk");
397 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
398 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
410 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
411 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
412 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
413 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
415 GetInventory().CreateInInventory(
"Hatchback_02_Door_1_1_Black");
416 GetInventory().CreateInInventory(
"Hatchback_02_Door_1_2_Black");
417 GetInventory().CreateInInventory(
"Hatchback_02_Door_2_1_Black");
418 GetInventory().CreateInInventory(
"Hatchback_02_Door_2_2_Black");
419 GetInventory().CreateInInventory(
"Hatchback_02_Hood_Black");
420 GetInventory().CreateInInventory(
"Hatchback_02_Trunk_Black");
423 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
424 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
436 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
437 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
438 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
439 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
441 GetInventory().CreateInInventory(
"Hatchback_02_Door_1_1_Blue");
442 GetInventory().CreateInInventory(
"Hatchback_02_Door_1_2_Blue");
443 GetInventory().CreateInInventory(
"Hatchback_02_Door_2_1_Blue");
444 GetInventory().CreateInInventory(
"Hatchback_02_Door_2_2_Blue");
445 GetInventory().CreateInInventory(
"Hatchback_02_Hood_Blue");
446 GetInventory().CreateInInventory(
"Hatchback_02_Trunk_Blue");
449 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
450 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");