См. определение в файле TrapSpawnBase.c строка 463
464 {
465 #ifdef DEVELOPER
466 m_dbgAttemptCount++;
467 #endif
468
471
472 #ifdef DEVELOPER
474 {
476 }
477 #endif
478
479 bool success = false;
482 {
484 {
485 success = true;
486
487 #ifdef DEVELOPER
489 {
490 Print(
"dbgTrapz | success!!!");
491 Print(
"---------------------");
492 }
493 #endif
494 }
495 }
496
498
500 {
502 return;
503 }
504
505 if (success)
506 {
510 }
511 else
512 {
514 }
515 }
ref CatchingContextTrapsBase m_CatchingContext
bool SetCanCatch(out EntityAI bait)
int m_ElapsedTime
Adjusted by init wait time, when appropriate.
void IncreaseElapsedTime()
int m_AdjustedMaxActiveTime
After this time after deployment, the trap is activated.
void RunTrappingTimer(float duration, string fnName)
generic trapping launcher for traps, use this to store delta info
int m_MaxActiveTime
Catch spawn and player check interval (expensive-ish)
float m_CurrentlyUsedDelta
EntityAI m_Bait
DEPRECATED.
proto void Print(void var)
Prints content of variable to console/log.
proto native bool IsCLIParam(string param)
Returns if command line argument is present.
Перекрестные ссылки IncreaseElapsedTime(), IsCLIParam(), m_AdjustedMaxActiveTime, m_Bait, m_CanCatch, m_CatchingContext, m_CurrentlyUsedDelta, m_ElapsedTime, m_IsPastWaitingTime, m_MaxActiveTime, m_RollSuccessTime, m_Timer, m_UpdateWaitTime, Print(), RunTrappingTimer(), SetCanCatch(), SetUsed() и TrySpawnCatch().