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

◆ OnFinishProgressServer()

override void ActionWringClothes::OnFinishProgressServer ( ActionData action_data)
inlineprivate

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

58 {
59 /*Param1<float> nacdata = Param1<float>.Cast( action_data.m_ActionComponent.GetACData() );
60 float delta = nacdata.param1;
61 action_data.m_MainItem.AddWet( -delta );*/
62 float wetness = action_data.m_MainItem.GetWet();
63 float wet_change;
64
65 if (wetness >= GameConstants.STATE_DRENCHED)
66 {
67 wet_change = Math.RandomFloat(GameConstants.STATE_SOAKING_WET,GameConstants.STATE_DRENCHED);
68 }
69 else if (wetness >= GameConstants.STATE_SOAKING_WET)
70 {
71 wet_change = Math.RandomFloat(GameConstants.STATE_WET,GameConstants.STATE_SOAKING_WET);
72 }
73 else if (wetness >= GameConstants.STATE_WET)
74 {
75 wet_change = Math.RandomFloat(GameConstants.STATE_DAMP,GameConstants.STATE_WET);
76 }
77
78 //Print(wet_change);
79 action_data.m_MainItem.SetWet(wet_change);
80 }

Перекрестные ссылки ActionData, Math::RandomFloat(), GameConstants::STATE_DAMP, GameConstants::STATE_DRENCHED, GameConstants::STATE_SOAKING_WET и GameConstants::STATE_WET.