281{
  284    
  286    
  320    
  324    
  326    
  328    {
  330        
  333        
  335    }
  336    
  338    {
  340        {
  343        }
  344    }
  345    
  353    {
  354        if (!type)
  355        {
  356            Error(
"Requested type is NULL!");
 
  357            return null;
  358        }
  359        
  363        {
  365            if (temp.Type() == type)
  366            {
  368                break;
  369            }
  370        }
  371        
  372        if (!ret)
  373        {
  374            Debug.
Log(
"'" + type.ToString() + 
"' not found in bank! Register first in 'RegisterRequester' method.");
 
  375        }
  376        return ret;
  377    }
  378    
  386    {
  388        
  389        if (!ret)
  390        {
  391            Debug.
Log(
"Requester idx '" + index + 
"' not found in bank! Register first in 'RegisterRequester' method.");
 
  392        }
  393        return ret;
  394    }
  395    
  403    {
  404        int ret = -1;
  406        
  408        {
  410            if (temp.Type() == type)
  411            {
  413            }
  414        }
  415        
  416        if ( ret == -1 )
  417        {
  418            Debug.
Log(
"Requester instance of the '" + type.ToString() + 
"' type not found in bank! Register first in 'RegisterRequester' method.");
 
  419        }
  420        return ret;
  421    }
  422    
  429    {
  430        typename ret;
  432        if ( !temp )
  433        {
  434            Debug.
Log(
"No requester exists under idx '" + index + 
"' in bank! Register first in 'RegisterRequester' method.");
 
  435        }
  436        else
  437        {
  438            ret = temp.Type();
  439        }
  440        
  441        return ret;
  442    }
  443    
  449    {
  452        
  454        {
  455            
  456            Debug.
Log(
"Trying to register an already existing requester type: " + type);
 
  457            return -1;
  458        }
  459        
  461        
  466        
  468    }
  469    
  472    {
  474        {
  475            return true;
  476        }
  477        
  480        {
  482            if (temp == req)
  483            {
  484                return true;
  485            }
  486        }
  487        
  488        
  489        Debug.
Log(
"Requester instance '" + req + 
"' not valid! Please use registered instances from PPERequesterBank.");
 
  490        return false;
  491    }
  492    
  493    
  494
  495
  496
  497
  498
  499
  500
  501
  502}
  503
  506{
  508    {
  510    }
  511    
  513    {
  514        
  515    }
  516}
  517 
  518
  519
  520
  521
  522
  523
  524
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_UNCONEFFECTS
 
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.
 
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.