Check if specific requester is active (started) based on type name.
484{
487
489
523
529
531
533 {
535
538
540 }
541
543 {
545 {
548 }
549 }
550
558 {
559 if (!type)
560 {
561 Error(
"Requested type is NULL!");
562 return null;
563 }
564
568 {
570 if (temp.Type() == type)
571 {
573 break;
574 }
575 }
576
577 if (!ret)
578 {
579 Debug.
Log(
"'" + type.ToString() +
"' not found in bank! Register first in 'RegisterRequester' method.");
580 }
581 return ret;
582 }
583
591 {
593
594 if (!ret)
595 {
596 Debug.
Log(
"Requester idx '" + index +
"' not found in bank! Register first in 'RegisterRequester' method.");
597 }
598 return ret;
599 }
600
608 {
609 int ret = -1;
611
613 {
615 if (temp.Type() == type)
616 {
618 }
619 }
620
621 if ( ret == -1 )
622 {
623 Debug.
Log(
"Requester instance of the '" + type.ToString() +
"' type not found in bank! Register first in 'RegisterRequester' method.");
624 }
625 return ret;
626 }
627
634 {
635 typename ret;
637 if ( !temp )
638 {
639 Debug.
Log(
"No requester exists under idx '" + index +
"' in bank! Register first in 'RegisterRequester' method.");
640 }
641 else
642 {
643 ret = temp.Type();
644 }
645
646 return ret;
647 }
648
654 {
657
659 {
660
661 Debug.
Log(
"Trying to register an already existing requester type: " + type);
662 return -1;
663 }
664
666
671
673 }
674
677 {
679 {
680 return true;
681 }
682
685 {
687 if (temp == req)
688 {
689 return true;
690 }
691 }
692
693
694 Debug.
Log(
"Requester instance '" + req +
"' not valid! Please use registered instances from PPERequesterBank.");
695 return false;
696 }
697
700 {
702 if (req)
703 {
705 }
706 else
707 {
708 Debug.
Log(
"'" + type.ToString() +
"' not found in bank! Register first in 'RegisterRequester' method.");
709 }
710
711 return false;
712 }
713
716 {
718 if (req)
719 {
721 }
722 else
723 {
724 Debug.
Log(
"Requester idx '" + index +
"' not found in bank! Register first in 'RegisterRequester' method.");
725 }
726
727 return false;
728 }
729
730
731
732
733
734
735
736
737
738
739}
740
743{
745 {
747 }
748
750 {
751
752 }
753}
754
755
756
757
758
759
760
761
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.