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

◆ OnEndServer()

override void OnEndServer ( ActionData action_data)

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

206 {
207 super.OnEndServer(action_data);
208
209 PlaceObjectActionData poActionData = PlaceObjectActionData.Cast(action_data);
210 if (!poActionData || !poActionData.m_MainItem)
211 return;
212
213 if (!poActionData.m_AlreadyPlaced)
214 {
215 poActionData.m_MainItem.SetIsBeingPlaced(false);
216
217 if (g_Game.IsMultiplayer())
218 {
219 poActionData.m_Player.PlacingCancelServer();
220 }
221 else
222 {
223 //local singleplayer
224 poActionData.m_Player.PlacingCancelLocal();
225 poActionData.m_Player.PlacingCancelServer();
226 }
227 }
228 else
229 {
230 if (poActionData.m_MainItem.IsBasebuildingKit())
231 {
232 poActionData.m_MainItem.Delete();
233 }
234 }
235
236 if (poActionData.m_MainItem.GetLoopDeploySoundset() != string.Empty)
237 poActionData.m_MainItem.StopItemSoundServer(SoundConstants.ITEM_DEPLOY_LOOP);
238 }
DayZGame g_Game
Определения DayZGame.c:4074
PlayerBase m_Player
Определения ActionBase.c:40
ItemBase m_MainItem
Определения ActionBase.c:35
override bool IsBasebuildingKit()
Определения KitBase.c:5
override string GetLoopDeploySoundset()
Определения BarbedWire.c:397
bool m_AlreadyPlaced
Определения ActionDeployBase.c:5
static const string Empty
Определения EnString.c:7

Перекрестные ссылки string::Empty, g_Game, ItemBase::GetLoopDeploySoundset(), ItemBase::IsBasebuildingKit(), PlaceObjectActionData::m_AlreadyPlaced, ActionData::m_MainItem и ActionData::m_Player.