Returns a typename from a requester ID.
418{
421
423
457
463
465
467 {
469
472
474 }
475
477 {
479 {
482 }
483 }
484
492 {
493 if (!type)
494 {
495 Error(
"Requested type is NULL!");
496 return null;
497 }
498
502 {
504 if (temp.Type() == type)
505 {
507 break;
508 }
509 }
510
511 if (!ret)
512 {
513 Debug.
Log(
"'" + type.ToString() +
"' not found in bank! Register first in 'RegisterRequester' method.");
514 }
515 return ret;
516 }
517
525 {
527
528 if (!ret)
529 {
530 Debug.
Log(
"Requester idx '" + index +
"' not found in bank! Register first in 'RegisterRequester' method.");
531 }
532 return ret;
533 }
534
542 {
543 int ret = -1;
545
547 {
549 if (temp.Type() == type)
550 {
552 }
553 }
554
555 if ( ret == -1 )
556 {
557 Debug.
Log(
"Requester instance of the '" + type.ToString() +
"' type not found in bank! Register first in 'RegisterRequester' method.");
558 }
559 return ret;
560 }
561
568 {
569 typename ret;
571 if ( !temp )
572 {
573 Debug.
Log(
"No requester exists under idx '" + index +
"' in bank! Register first in 'RegisterRequester' method.");
574 }
575 else
576 {
577 ret = temp.Type();
578 }
579
580 return ret;
581 }
582
588 {
591
593 {
594
595 Debug.
Log(
"Trying to register an already existing requester type: " + type);
596 return -1;
597 }
598
600
605
607 }
608
611 {
613 {
614 return true;
615 }
616
619 {
621 if (temp == req)
622 {
623 return true;
624 }
625 }
626
627
628 Debug.
Log(
"Requester instance '" + req +
"' not valid! Please use registered instances from PPERequesterBank.");
629 return false;
630 }
631
634 {
636 if (req)
637 {
639 }
640 else
641 {
642 Debug.
Log(
"'" + type.ToString() +
"' not found in bank! Register first in 'RegisterRequester' method.");
643 }
644
645 return false;
646 }
647
650 {
652 if (req)
653 {
655 }
656 else
657 {
658 Debug.
Log(
"Requester idx '" + index +
"' not found in bank! Register first in 'RegisterRequester' method.");
659 }
660
661 return false;
662 }
663
664
665
666
667
668
669
670
671
672
673}
674
677{
679 {
681 }
682
684 {
685
686 }
687}
688
689
690
691
692
693
694
695
static const int REQ_HEALTHHITEFFECTS
static const int REQ_GLASSESTACTICAL
static const int REQ_CONTROLLERDISCONNECT
static const int REQ_LATENCYBLUR
static const int REQ_GLASSESSPORTBLACK
void RegisterAdditionalRequesters()
static ref map< int, ref PPERequesterBase > m_Instances
static const int REQ_FEEDBACKBLUR
static const int REQ_INTROCHROMABB
static const int REQ_CONTROLLERBLUR
static const int REQ_GLASSESDESIGNER
class PPERequesterBank extends Managed PPERequesterRegistrations()
Mod this, if you wish to register custom requesters inside 'RegisterAdditionalRequesters' override.
static const int REQ_BURLAPSACK
static const int REQ_INVENTORYBLUR
static const int REQ_CONTAMINATEDAREA
static const int REQ_GLASSESAVIATOR
static const int REQ_MOTOHELMETBLACK
static bool VerifyRequester(PPERequesterBase req)
Verifies the instance.
static const int REQ_GLASSESSPORTORANGE
static const int REQ_CAMERANV
static const int REQ_SHOCKHITEFFECTS
static const int REQ_FEVEREFFECTS
static int RegisterRequester(typename type)
Registers new requester type.
static const int REQ_DROWNING
static int GetRequesterID(typename type)
Returns an ID of a requester type.
static const int REQ_TUTORIALEFFECTS
static ref PPERequesterRegistrations m_Registrations
static const int REQ_DEATHEFFECTS
static GetRequesterTypename(int index)
Returns a typename from a requester ID.
static const int REQ_SQUINT
static const int REQ_UNCONEFFECTS
static const int REQ_SANDSTORMEFFECT
static const int REQ_TUNELVISSION
static const int REQ_BLOODLOSS
static const int REQ_HMP_GHOST
static const int REQ_GLASSESWELDING
static const int REQ_PAINBLUR
static const int REQ_FLASHBANGEFFECTS
static const int REQ_CAMERAADS
static const int REQ_MENUEFFECTS
static const int REQ_UNDERGROUND
static const int REQ_GLASSESSPORTBLUE
static const int REQ_SERVERBROWSEREFFECTS
static const int REQ_GLASSESSPORTGREEN
static const int REQ_SPOOKYAREA
PPERUndergroundAcco GetRequester()
Super root of all classes in Enforce script.
static void Log(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message with normal prio.
bool IsRequesterRunning()
void SetRequesterIDX(int idx)
automatically assigned by PPERequesterBank
void Error(string err)
Messagebox with error message.
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.