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

◆ SpawnCatch()

void ItemBase::SpawnCatch ( )
inlineprotected

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

545 {
546 // Only server side, let's make sure
547 if (GetGame().IsMultiplayer() && GetGame().IsClient())
548 return;
549
551
552 ItemBase catch;
553 if (m_CanCatch)
554 {
555 catch = ItemBase.Cast(m_CatchingContext.SpawnAndSetupCatch(m_YieldItemIdx,m_PreyPos));
556
558 SetCatchSuccessful(catch != null);
559 // We change the trap state and visuals
560 SetUsed();
561 }
562
563 SetSynchDirty();
564 }
class GP5GasMask extends MaskBase ItemBase
ref CatchingContextTrapsBase m_CatchingContext
Определения TrapSpawnBase.c:45
void UpdatePreyPos()
Определения TrapSpawnBase.c:240
void OnCatchSpawnServer()
Определения TrapSpawnBase.c:571
int m_YieldItemIdx
Определения TrapSpawnBase.c:28
void SetCatchSuccessful(bool successful)
Определения TrapSpawnBase.c:566
void SetUsed()
Определения TrapSpawnBase.c:394
vector m_PreyPos
Определения TrapSpawnBase.c:31
bool m_CanCatch
Определения TrapSpawnBase.c:4
proto native CGame GetGame()

Перекрестные ссылки GetGame(), m_CanCatch, m_CatchingContext, m_PreyPos, m_YieldItemIdx, OnCatchSpawnServer(), SetCatchSuccessful(), SetUsed() и UpdatePreyPos().

Используется в TrySpawnCatch().