23 SetEnginePos(
"0 0.7 1.6");
47 super.OnEngineStart();
117 if( !super.CanReleaseAttachment( attachment ) )
120 string attType = attachment.GetType();
124 if ( attType ==
"CarRadiator" || attType ==
"CarBattery" || attType ==
"SparkPlug")
139 if (!super.CanDisplayAttachmentCategory(category_name))
143 category_name.ToLower();
144 if (category_name.Contains(
"engine"))
155 if ( !super.CanDisplayCargo() )
168 Class.CastTo( carDoor, FindAttachmentBySlotName( slotType ) );
176 case "CivSedanDriverDoors":
180 case "CivSedanCoDriverDoors":
184 case "CivSedanCargo1Doors":
188 case "CivSedanCargo2Doors":
192 case "CivSedanTrunk":
246 return "doors_driver";
249 return "doors_codriver";
252 return "doors_cargo1";
255 return "doors_cargo2";
259 return super.GetDoorSelectionNameFromSeatPos(posIdx);
267 return "CivSedanDriverDoors";
270 return "CivSedanCoDriverDoors";
273 return "CivSedanCargo1Doors";
276 return "CivSedanCargo2Doors";
280 return super.GetDoorInvSlotNameFromSeatPos(posIdx);
311 if (GetHealthLevel(
"WindowFront") ==
GameConstants.STATE_RUINED)
316 if (GetHealthLevel(
"WindowBack") ==
GameConstants.STATE_RUINED)
321 return Math.Clamp(newValue, 0, 1);
325 return super.OnSound(ctrl, oldValue);
333 return "DoorsDriver";
334 case "doors_codriver":
335 return "DoorsCoDriver";
337 return "DoorsCargo1";
339 return "DoorsCargo2";
364 return nextSeat == 1;
367 return nextSeat == 0;
370 return nextSeat == 3;
373 return nextSeat == 2;
381 switch (pCurrentSeat)
384 return pDoorsSelection ==
"DoorsDriver";
387 return pDoorsSelection ==
"DoorsCoDriver";
390 return pDoorsSelection ==
"DoorsCargo1";
393 return pDoorsSelection ==
"DoorsCargo2";
399 override void OnDebugSpawn()
405 GetInventory().CreateInInventory(
"CivSedanWheel");
406 GetInventory().CreateInInventory(
"CivSedanWheel");
407 GetInventory().CreateInInventory(
"CivSedanWheel");
408 GetInventory().CreateInInventory(
"CivSedanWheel");
410 GetInventory().CreateInInventory(
"CivSedanDoors_Driver");
411 GetInventory().CreateInInventory(
"CivSedanDoors_CoDriver");
412 GetInventory().CreateInInventory(
"CivSedanDoors_BackLeft");
413 GetInventory().CreateInInventory(
"CivSedanDoors_BackRight");
414 GetInventory().CreateInInventory(
"CivSedanHood");
415 GetInventory().CreateInInventory(
"CivSedanTrunk");
418 GetInventory().CreateInInventory(
"CivSedanWheel");
419 GetInventory().CreateInInventory(
"CivSedanWheel");
436 GetInventory().CreateInInventory(
"CivSedanWheel");
437 GetInventory().CreateInInventory(
"CivSedanWheel");
438 GetInventory().CreateInInventory(
"CivSedanWheel");
439 GetInventory().CreateInInventory(
"CivSedanWheel");
441 GetInventory().CreateInInventory(
"CivSedanDoors_Driver_Wine");
442 GetInventory().CreateInInventory(
"CivSedanDoors_CoDriver_Wine");
443 GetInventory().CreateInInventory(
"CivSedanDoors_BackLeft_Wine");
444 GetInventory().CreateInInventory(
"CivSedanDoors_BackRight_Wine");
445 GetInventory().CreateInInventory(
"CivSedanHood_Wine");
446 GetInventory().CreateInInventory(
"CivSedanTrunk_Wine");
449 GetInventory().CreateInInventory(
"CivSedanWheel");
450 GetInventory().CreateInInventory(
"CivSedanWheel");
462 GetInventory().CreateInInventory(
"CivSedanWheel");
463 GetInventory().CreateInInventory(
"CivSedanWheel");
464 GetInventory().CreateInInventory(
"CivSedanWheel");
465 GetInventory().CreateInInventory(
"CivSedanWheel");
467 GetInventory().CreateInInventory(
"CivSedanDoors_Driver_Black");
468 GetInventory().CreateInInventory(
"CivSedanDoors_CoDriver_Black");
469 GetInventory().CreateInInventory(
"CivSedanDoors_BackLeft_Black");
470 GetInventory().CreateInInventory(
"CivSedanDoors_BackRight_Black");
471 GetInventory().CreateInInventory(
"CivSedanHood_Black");
472 GetInventory().CreateInInventory(
"CivSedanTrunk_Black");
475 GetInventory().CreateInInventory(
"CivSedanWheel");
476 GetInventory().CreateInInventory(
"CivSedanWheel");