474 {
475 #ifdef DEVELOPER
476 m_dbgAttemptCount++;
477 #endif
478
481
482 #ifdef DEVELOPER
484 {
486 }
487 #endif
488
489 bool success = false;
491
493 {
495 {
496 success = true;
497
498 #ifdef DEVELOPER
500 {
501 Print(
"dbgTrapz | success!!!");
502 Print(
"---------------------");
503 }
504 #endif
505 }
506 }
507
508 #ifdef DEVELOPER
509 string dbgSuccessOverride;
510 if (
GetCLIParam(
"trapsSuccessOverride",dbgSuccessOverride))
511 {
512 if (dbgSuccessOverride ==
"true" || dbgSuccessOverride.
ToInt() == 1)
513 success = true;
514 else if (dbgSuccessOverride ==
"false" || dbgSuccessOverride.
ToInt() == 0)
515 success = false;
516 }
517 #endif
518
520
521 #ifdef DEVELOPER
523 #else
525 #endif
526 {
528 return;
529 }
530
531 if (success)
532 {
536 }
537 else
538 {
540 }
541 }
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 int ToInt()
Converts string to integer.
proto native bool IsCLIParam(string param)
Returns if command line argument is present.
proto bool GetCLIParam(string param, out string val)
Returns command line argument.