Definition at line 277 of file InventoryItem.c.
◆ CanPutAsAttachment()
Definition at line 279 of file InventoryItem.c.
280 {
281
282 if (parent.IsInherited(
Transport) && parent.IsRuined())
283 {
285 if (GetInventory().GetCurrentInventoryLocation(
loc))
287
288 return false;
289 }
290
291 if (!
super.CanPutAsAttachment(parent))
292 return false;
293
294 return true;
295 }
InventoryLocationType
types of Inventory Location
Base native class for all motorized wheeled vehicles.
◆ EEHealthLevelChanged()
Definition at line 297 of file InventoryItem.c.
298 {
300#ifdef DEVELOPER
301
303 {
306 {
307 case "HatchbackWheel_Ruined":
309 break;
310
311 case "CivSedanWheel_Ruined":
313 break;
314
315 case "Hatchback_02_Wheel_Ruined":
317 break;
318
319 case "Sedan_02_Wheel_Ruined":
321 break;
322
323 case "Truck_01_Wheel_Ruined":
325 break;
326
327 case "Truck_01_WheelDouble_Ruined":
329 break;
330
331 case "Offroad_02_Wheel_Ruined":
333 break;
334 }
335
337 {
338
339 if (IsLockedInSlot())
341
343 lambda.SetTransferParams(
true,
true,
true);
345 }
346 }
347#endif
348 }
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
eBleedingSourceType GetType()
void ReplaceWheelLambda(EntityAI old_item, string new_item_type, PlayerBase player)
void UnlockFromParent()
Unlocks this item from its attachment slot of its parent.
References GetType(), ReplaceWheelLambda(), GameConstants::STATE_PRISTINE, and UnlockFromParent().
The documentation for this class was generated from the following file: