91 {
92 Object targetObject = action_data.m_Target.GetObject();
93 Object targetParent = action_data.m_Target.GetParent();
94
95 string damageZone = RepairTentActionData.Cast(action_data).m_DamageZone;
98
99 if ( targetParent && targetParent.IsInherited(TentBase) && damageZone != "" )
100 {
101 TentBase tent = TentBase.Cast( targetParent );
102 PluginRepairing module_repairing;
103 Class.CastTo(module_repairing,
GetPlugin(PluginRepairing));
104
106 module_repairing.Repair(action_data.m_Player,action_data.m_MainItem,tent,
m_SpecialtyWeight,damageZone);
107 }
108 }
PluginBase GetPlugin(typename plugin_type)
void RepairDamageTransfer(PlayerBase player, ItemBase repair_kit, ItemBase item, float specialty_weight, string damage_zone="")
string m_CurrentDamageZone
proto native CGame GetGame()