22 {
23 if (player.GetBrokenLegs() ==
eBrokenLegs.BROKEN_LEGS)
24 return false;
25
26 Blowtorch bt = Blowtorch.Cast(item);
28 return false;
29
31 if (!boat || boat.EngineIsOn())
32 return false;
33
34 if (
GetGame().IsDedicatedServer())
35 return true;
36
37 string damageZone = "";
39 boat.GetActionComponentNameList(target.GetComponentIndex(), selections,
LOD.
NAME_VIEW);
40
41 foreach (string selection : selections)
42 {
43 if (boat && DamageSystem.GetDamageZoneFromComponentName(boat, selection, damageZone))
44 {
45 if (damageZone == "Engine")
46 {
47 int zoneHP = boat.GetHealthLevel(damageZone);
49 {
50 m_CurrentDamageZone = damageZone;
51 return true;
52 }
53 }
54 }
55 }
56
57 return false;
58 }
static const string NAME_VIEW
const float BASEBUILDING_REPAIR_MEDIUM
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native CGame GetGame()