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

◆ OnEndServer()

override void OnEndServer ( ActionData action_data)

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

204 {
205 super.OnEndServer(action_data);
206
207 if (!action_data || !action_data.m_MainItem)
208 return;
209
210 PlaceObjectActionData poActionData = PlaceObjectActionData.Cast(action_data);
211 if (!poActionData.m_AlreadyPlaced)
212 {
213 GetGame().ClearJunctureEx(action_data.m_Player, action_data.m_MainItem);
214 action_data.m_MainItem.SetIsBeingPlaced(false);
215
216 if (GetGame().IsMultiplayer())
217 {
218 action_data.m_Player.PlacingCancelServer();
219 }
220 else
221 {
222 //local singleplayer
223 action_data.m_Player.PlacingCancelLocal();
224 action_data.m_Player.PlacingCancelServer();
225 }
226 }
227 else
228 {
229 if (action_data.m_MainItem.IsBasebuildingKit())
230 {
231 action_data.m_MainItem.Delete();
232 }
233 else
234 {
235 GetGame().ClearJunctureEx(action_data.m_Player, action_data.m_MainItem);
236 }
237 }
238
239 ItemBase item = ItemBase.Cast(action_data.m_MainItem);
240 if (item.GetLoopDeploySoundset() != string.Empty)
241 item.StopItemSoundServer(SoundConstants.ITEM_DEPLOY_LOOP);
242 }
bool ClearJunctureEx(Man player, notnull EntityAI item)
Определения Game.c:762
override string GetLoopDeploySoundset()
Определения BarbedWire.c:397
Определения InventoryItem.c:731
bool m_AlreadyPlaced
Определения ActionDeployBase.c:5
proto native CGame GetGame()
static const string Empty
Определения EnString.c:7

Перекрестные ссылки ActionData, CGame::ClearJunctureEx(), string::Empty, GetGame(), ItemBase::GetLoopDeploySoundset() и PlaceObjectActionData::m_AlreadyPlaced.