21 {
23 if (!motorbike || motorbike.EngineIsOn())
24 return false;
25
26 if (
g_Game.IsDedicatedServer())
27 return true;
28
30 {
31 array<string> selections = new array<string>();
32 motorbike.GetActionComponentNameList(target.GetComponentIndex(), selections, LOD.NAME_VIEW);
33
34 foreach (string selection : selections)
35 {
36 string damageZone = "";
37 if (motorbike && DamageSystem.GetDamageZoneFromComponentName(motorbike, selection, damageZone))
38 {
39 int zoneHP = motorbike.GetHealthLevel(damageZone);
40 if (zoneHP > GameConstants.STATE_WORN && zoneHP < GameConstants.STATE_RUINED)
41 {
44
45 return true;
46 }
47 }
48 }
49 }
50
51 return false;
52 }
int m_LastValidComponentIndex
string m_CurrentDamageZone