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

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)

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

132 {
133 super.OnFinishProgressServer(action_data);
134
135 ItemBase targetObject = ItemBase.Cast(action_data.m_Target.GetObject());
136 if (targetObject != null)
137 {
138 vector orientation = action_data.m_Player.GetOrientation();
139 vector position = targetObject.GetPosition();
140
141 if (targetObject.IsInherited(TrapBase))
142 {
143 TrapBase trap = TrapBase.Cast(targetObject);
144 trap.OnPlacementComplete(action_data.m_Player, position, orientation);
145 trap.StartActivate(action_data.m_Player);
146 }
147 else if (targetObject.IsInherited(TrapSpawnBase))
148 {
149 TrapSpawnBase spawnTrap = TrapSpawnBase.Cast( targetObject );
150 spawnTrap.OnPlacementComplete(action_data.m_Player, position, orientation);
151 }
152
153 if (targetObject.GetDeploySoundset() != string.Empty)
154 targetObject.StartItemSoundServer(SoundConstants.ITEM_DEPLOY);
155
156 if (targetObject.GetLoopDeploySoundset() != string.Empty)
157 targetObject.StopItemSoundServer(SoundConstants.ITEM_DEPLOY_LOOP);
158 }
159 }
override string GetDeploySoundset()
Определения BarbedWire.c:392
override string GetLoopDeploySoundset()
Определения BarbedWire.c:397
override void OnPlacementComplete(Man player, vector position="0 0 0", vector orientation="0 0 0")
Определения Trap_Bear.c:228
Определения Trap_Bear.c:2
override void OnPlacementComplete(Man player, vector position="0 0 0", vector orientation="0 0 0")
Определения Trap_RabbitSnare.c:77
Определения Trap_FishNet.c:2
Определения EnConvert.c:119
static const string Empty
Определения EnString.c:7

Перекрестные ссылки ActionData, string::Empty, ItemBase::GetDeploySoundset(), ItemBase::GetLoopDeploySoundset(), TrapBase::OnPlacementComplete() и TrapSpawnBase::OnPlacementComplete().