317{
320
322
356
362
364
366 {
368
371
373 }
374
376 {
378 {
381 }
382 }
383
391 {
392 if (!type)
393 {
394 Error(
"Requested type is NULL!");
395 return null;
396 }
397
401 {
403 if (temp.Type() == type)
404 {
406 break;
407 }
408 }
409
410 if (!ret)
411 {
412 Debug.
Log(
"'" + type.ToString() +
"' not found in bank! Register first in 'RegisterRequester' method.");
413 }
414 return ret;
415 }
416
424 {
426
427 if (!ret)
428 {
429 Debug.
Log(
"Requester idx '" + index +
"' not found in bank! Register first in 'RegisterRequester' method.");
430 }
431 return ret;
432 }
433
441 {
442 int ret = -1;
444
446 {
448 if (temp.Type() == type)
449 {
451 }
452 }
453
454 if ( ret == -1 )
455 {
456 Debug.
Log(
"Requester instance of the '" + type.ToString() +
"' type not found in bank! Register first in 'RegisterRequester' method.");
457 }
458 return ret;
459 }
460
467 {
468 typename ret;
470 if ( !temp )
471 {
472 Debug.
Log(
"No requester exists under idx '" + index +
"' in bank! Register first in 'RegisterRequester' method.");
473 }
474 else
475 {
476 ret = temp.Type();
477 }
478
479 return ret;
480 }
481
487 {
490
492 {
493
494 Debug.
Log(
"Trying to register an already existing requester type: " + type);
495 return -1;
496 }
497
499
504
506 }
507
510 {
512 {
513 return true;
514 }
515
518 {
520 if (temp == req)
521 {
522 return true;
523 }
524 }
525
526
527 Debug.
Log(
"Requester instance '" + req +
"' not valid! Please use registered instances from PPERequesterBank.");
528 return false;
529 }
530
533 {
535 if (req)
536 {
538 }
539 else
540 {
541 Debug.
Log(
"'" + type.ToString() +
"' not found in bank! Register first in 'RegisterRequester' method.");
542 }
543
544 return false;
545 }
546
549 {
551 if (req)
552 {
554 }
555 else
556 {
557 Debug.
Log(
"Requester idx '" + index +
"' not found in bank! Register first in 'RegisterRequester' method.");
558 }
559
560 return false;
561 }
562
563
564
565
566
567
568
569
570
571
572}
573
576{
578 {
580 }
581
583 {
584
585 }
586}
587
588
589
590
591
592
593
594
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.