DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ OnFinishProgressServer()

override void ActionRepairTent::OnFinishProgressServer ( ActionData action_data)
inlineprivate

См. определение в файле ActionRepairTent.c строка 90

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;
96 if (!GetGame().IsMultiplayer())
97 damageZone = m_CurrentDamageZone;
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
105 RepairDamageTransfer(action_data.m_Player,action_data.m_MainItem,tent,m_SpecialtyWeight,damageZone);
106 module_repairing.Repair(action_data.m_Player,action_data.m_MainItem,tent,m_SpecialtyWeight,damageZone);
107 }
108 }
PluginBase GetPlugin(typename plugin_type)
Определения PluginManager.c:316
float m_SpecialtyWeight
Определения ActionBase.c:77
void RepairDamageTransfer(PlayerBase player, ItemBase repair_kit, ItemBase item, float specialty_weight, string damage_zone="")
Определения ActionRepairTent.c:156
string m_CurrentDamageZone
Определения ActionRepairTent.c:22
class LOD Object
proto native CGame GetGame()

Перекрестные ссылки ActionData, Class::CastTo(), GetGame(), GetPlugin(), m_CurrentDamageZone, ActionBase::m_SpecialtyWeight и RepairDamageTransfer().