23 {
24 Motorbike motorbike = Motorbike.Cast(target.GetObject());
25 if (!motorbike)
26 return false;
27
29 return true;
30
32 {
33 array<string> selections = new array<string>();
34 motorbike.GetActionComponentNameList(target.GetComponentIndex(), selections);
35
36 foreach (string selection : selections)
37 {
38 string damageZone = "";
39 if (motorbike && DamageSystem.GetDamageZoneFromComponentName(motorbike, selection, damageZone))
40 {
41 int zoneHP = motorbike.GetHealthLevel(damageZone);
42 if (zoneHP > GameConstants.STATE_WORN && zoneHP < GameConstants.STATE_RUINED)
43 {
46
47 return true;
48 }
49 }
50 }
51 }
52
53 return false;
54 }
int m_LastValidComponentIndex
string m_CurrentDamageZone