// a good place to store our 'global' variables
class Settings extends object
  config(HideMut);


// =============================================================================
var config bool bRemoveSmoke;               // remove smoke effects from most explosions
var config bool bHideZedFlames;             // remove burning effects from zeds
var config bool bHideFlamethrowerEffects;   // remove flamethrower bullshit
var config bool bHideZedTimeSounds;         // remove zed time notification sounds
var config bool bHidePortraits;             // remove player portraits from HUD when they chat
var config bool bHideNoPRImessages;         // remove messages from HUD when they have no player replication info
var config bool bRandomName;                // sets random name from your config collection
var config bool bShowStalkers;              // reveals stalkers
var config bool bRemoveBlur;                // remove all blur effects
var config bool bRemoveAmbientShake;        // remove ambient shake effects
var config bool bRemoveWeaponShakeView;     // remove weapon shaking
var config bool bRemoveShakeView;           // remove shake view effects
var config bool bDeduceAdvancedInfo;        // auto show stat net and fps
var config bool bRemoveOverlays;            // remove some bullshit TWI overlays
var config bool bRemoveShitAnimations;      // disable zapped / burning animations for zeds

var config array<string> BannedWords;       // spam protection

// =============================================================================

// maybe don't normalize (caps) text for comparison?
final static function bool bIsWordBanned(string Msg)
{
  local int i;

  for (i = 0; i < default.BannedWords.length; i++)
  {
    if (InStr(caps(Msg), caps(default.BannedWords[i])) != -1)
      return true;
  }

  return false;
}


// =============================================================================

defaultproperties
{
}
