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

◆ OnFinishProgressServer()

override void ActionDigWorms::OnFinishProgressServer ( ActionData action_data)
inlineprivate

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

62 {
63 int count = action_data.m_MainItem.GetOnDigWormsAmount();
64 for (int i = 0; i < count; i++)
65 {
66 /*
67 vector posHead;
68 MiscGameplayFunctions.GetHeadBonePos(action_data.m_Player,posHead);
69 vector posRandom = MiscGameplayFunctions.GetRandomizedPositionVerified(posHead,action_data.m_Target.GetCursorHitPos(),UAItemsSpreadRadius.NARROW,action_data.m_Player);
70
71 GetGame().CreateObjectEx("Worm", posRandom, ECE_PLACE_ON_SURFACE);
72 */
73 GetGame().CreateObjectEx("Worm", action_data.m_Target.GetCursorHitPos(), ECE_PLACE_ON_SURFACE);
74 }
75
76 MiscGameplayFunctions.DealEvinronmentAdjustedDmg(action_data.m_MainItem, action_data.m_Player, 4);
77 }
const int ECE_PLACE_ON_SURFACE
Определения CentralEconomy.c:37
proto native Object CreateObjectEx(string type, vector pos, int iFlags, int iRotation=RF_DEFAULT)
Creates object of certain type.
proto native CGame GetGame()

Перекрестные ссылки ActionData, CGame::CreateObjectEx(), ECE_PLACE_ON_SURFACE и GetGame().