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

◆ OnEndServer()

override void OnEndServer ( ActionData action_data)

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

49 {
51 if (!cb) return;
52
53 float partial = cb.m_WetGainPerStep * action_data.m_ActionComponent.GetProgress();
54 if (partial <= 0) return;
55
56 ItemBase clothing = action_data.m_MainItem;
57 if (!clothing) return;
58
59 clothing.SetWet(Math.Clamp(clothing.GetWet() + partial, 0.0, clothing.GetWetMax()));
60 action_data.m_Player.GetThermalBiasHandler().Add(-PlayerConstants.THERMAL_BIAS_WASH_HEAD_DECREMENT * partial);
61 }
PlayerBase m_Player
Определения ActionBase.c:40
ActionBaseCB m_Callback
Определения ActionBase.c:36
ref CABase m_ActionComponent
Определения ActionBase.c:37
ItemBase m_MainItem
Определения ActionBase.c:35
float GetProgress()
Определения CABase.c:62
Определения EnMath.c:7
static const float THERMAL_BIAS_WASH_HEAD_DECREMENT
Определения PlayerConstants.c:203
Определения PlayerConstants.c:2
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.

Перекрестные ссылки Math::Clamp(), CABase::GetProgress(), ActionData::m_ActionComponent, ActionData::m_Callback, ActionData::m_MainItem, ActionData::m_Player, ActionWetClothingInHandsBaseCB::m_WetGainPerStep и PlayerConstants::THERMAL_BIAS_WASH_HEAD_DECREMENT.