PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
PPEffects Class Reference

Deprecated; 'PPEManager' used instead. More...

Static Private Member Functions

static void Init ()
 
static void ResetBlurEffects ()
 
static void ResetRadialBlur ()
 
static void SetBlurValue (int index, float value)
 
static int RegisterBlurEffect ()
 
static void SetRadialBlur (float powerX, float powerY, float offsetX, float offsetY)
 sets blur effect to an absolute value between 0..1
 
static void SetBlur (float value)
 sets blur effect to an absolute value between 0..1
 
static void UpdateBlur ()
 updates the blur post process effect where the resulting blur is an aggregate of all individual blur effect values
 
static void SetBlurInventory (float value)
 Set blur inventory effect to a specified 'value' between 0..1.
 
static void SetBlurDrunk (float value)
 Set blur drunk effect to a specified 'value' between 0..1.
 
static void SetBlurFever (float value)
 Set blur drunk effect to a specified 'value' between 0..1.
 
static void SetBlurMenu (float value)
 Set menu blur to a specified 'value' between 0..1.
 
static void SetBlurOptics (float value)
 Set optics and ironsights blur to a specified 'value' between 0..1.
 
static void SetBlurFlashbang (float value)
 Set blur flashbang hit effect to a specified 'value' between 0..1.
 
static void SetBlurShock (float value)
 
static int RegisterChromAbbEffect ()
 
static void ResetChromAbbEffects ()
 
static void SetChromAbbValue (int index, float value)
 
static void SetChromAbb (float value)
 
static void UpdateChromAbb ()
 updates the chromatic abberation post process effect where the resulting chromabb is an aggregate of all individual chromabb effect values
 
static void SetChromAbbOptic (float value)
 
static void ResetColorEffects ()
 
static void SetColorValue (int index, float r, float g, float b, float a, float overlay)
 
static int RegisterColorEffect ()
 
static void UpdateColor ()
 
static void SetLensEffect (float lens, float chromAbb, float centerX, float centerY)
 
static void PerformSetLensEffect (float lens, float chromAbb, float centerX, float centerY)
 added for convenience
 
static void SetVignette (float intensity, float R, float G, float B, float A)
 
static void SetVignetteEffectValue (int index, float intensity, float r, float g, float b, float a)
 
static int RegisterVignetteEffect ()
 
static void SetUnconsciousnessVignette (float value)
 
static void SetShockVignette (float value)
 
static void SetTunnelVignette (float value)
 
static void SetMenuVignette (float value)
 
static void ResetVignettes ()
 
static void OverrideDOF (bool enable, float focusDistance, float focusLength, float focusLengthNear, float blur, float focusDepthOffset)
 
static void AddPPMask (float ndcX, float ndcY, float ndcRadius, float ndcBlur)
 
static void ResetPPMask ()
 
static void ResetDOFOverride ()
 
static void ResetLensEffect ()
 
static void HitEffect (float value)
 
static void SetShockEffectColor (float value)
 
static void FlashbangEffect (float value)
 
static void EnableBurlapSackBlindness ()
 
static void DisableBurlapSackBlindness ()
 
static void SetDeathDarkening (float value)
 
static void UpdateSaturation ()
 
static void UpdateVignette ()
 
static void SetBloodSaturation (float value)
 
static void SetColorizationNV (float r, float g, float b)
 
static void UpdateColorize ()
 
static void ResetColorize ()
 
static void SetEVValuePP (float value)
 
static void SetNVParams (float light_mult, float noise_intensity, float sharpness, float grain_size)
 
static void SetBloom (float thres, float steep, float inten)
 
static void ResetAll ()
 

Static Private Attributes

static const int COLORIZE_NV = 100
 
static const float COLOR_SHOCK = 0.1
 
static int m_BlurInventory
 
static int m_BlurDrunk
 
static int m_BlurFever
 
static int m_BlurMenu
 
static int m_BlurOptics
 
static int m_BlurFlashbang
 
static int m_BlurShock
 
static int m_BurlapBlindness
 
static int m_DyingEffect
 
static int m_ShockEffect
 
static int m_ChromAbbOptic
 
static int m_VignetteUnconscious
 
static int m_VignetteShock
 
static int m_VignetteTunnel
 
static int m_VignetteMenu
 
static float m_BloodSaturation
 
static ref array< floatm_BlurValues
 
static ref array< floatm_ChromAbbValues
 
static ref array< intm_VignetteEffects
 
static ref map< int, ref array< float > > m_VignetteValues
 
static ref map< int, ref array< float > > m_ColorValues
 
static ref array< floatm_ColorEffect
 
static ref map< int, ref array< float > > m_ColorizeEffects
 
static float m_ColorValueTotal [4] = {0,0,0,0}
 
static float m_ColorOverlayTotal
 
static Material m_MatColors
 
static Material m_RadialBlur
 

Detailed Description

Deprecated; 'PPEManager' used instead.

Member Function Documentation

◆ AddPPMask()

static void AddPPMask ( float  ndcX,
float  ndcY,
float  ndcRadius,
float  ndcBlur 
)
inlinestaticprivate

References CGame::AddPPMask(), and GetGame().

◆ DisableBurlapSackBlindness()

static void DisableBurlapSackBlindness ( )
inlinestaticprivate

◆ EnableBurlapSackBlindness()

static void EnableBurlapSackBlindness ( )
inlinestaticprivate

◆ FlashbangEffect()

static void FlashbangEffect ( float  value)
inlinestaticprivate

◆ HitEffect()

static void HitEffect ( float  value)
inlinestaticprivate

◆ Init()

◆ OverrideDOF()

static void OverrideDOF ( bool  enable,
float  focusDistance,
float  focusLength,
float  focusLengthNear,
float  blur,
float  focusDepthOffset 
)
inlinestaticprivate

References GetGame(), and CGame::OverrideDOF().

Referenced by ResetDOFOverride().

◆ PerformSetLensEffect()

static void PerformSetLensEffect ( float  lens,
float  chromAbb,
float  centerX,
float  centerY 
)
inlinestaticprivate

added for convenience

References m_MatColors, SetChromAbbOptic(), and Material::SetParam().

Referenced by SetLensEffect().

◆ RegisterBlurEffect()

static int RegisterBlurEffect ( )
inlinestaticprivate

References m_BlurValues.

Referenced by Init().

◆ RegisterChromAbbEffect()

static int RegisterChromAbbEffect ( )
inlinestaticprivate

References m_ChromAbbValues.

Referenced by Init().

◆ RegisterColorEffect()

static int RegisterColorEffect ( )
inlinestaticprivate

References m_ColorEffect.

Referenced by Init().

◆ RegisterVignetteEffect()

static int RegisterVignetteEffect ( )
inlinestaticprivate

References m_VignetteEffects.

Referenced by Init().

◆ ResetAll()

◆ ResetBlurEffects()

static void ResetBlurEffects ( )
inlinestaticprivate

References m_BlurValues, and UpdateBlur().

Referenced by ResetAll().

◆ ResetChromAbbEffects()

static void ResetChromAbbEffects ( )
inlinestaticprivate

◆ ResetColorEffects()

static void ResetColorEffects ( )
inlinestaticprivate

References m_ColorEffect, m_ColorValues, and UpdateColor().

Referenced by ResetAll().

◆ ResetColorize()

static void ResetColorize ( )
inlinestaticprivate

References m_MatColors, and Material::SetParam().

Referenced by ResetAll(), and UpdateColorize().

◆ ResetDOFOverride()

static void ResetDOFOverride ( )
inlinestaticprivate

References OverrideDOF().

Referenced by ResetAll().

◆ ResetLensEffect()

static void ResetLensEffect ( )
inlinestaticprivate

References SetLensEffect().

Referenced by ResetAll().

◆ ResetPPMask()

static void ResetPPMask ( )
inlinestaticprivate

References GetGame(), and CGame::ResetPPMask().

Referenced by ResetAll().

◆ ResetRadialBlur()

static void ResetRadialBlur ( )
inlinestaticprivate

References SetRadialBlur().

◆ ResetVignettes()

static void ResetVignettes ( )
inlinestaticprivate

References m_VignetteValues, and UpdateVignette().

Referenced by ResetAll().

◆ SetBloodSaturation()

static void SetBloodSaturation ( float  value)
inlinestaticprivate

References m_BloodSaturation, and UpdateSaturation().

Referenced by ResetAll().

◆ SetBloom()

static void SetBloom ( float  thres,
float  steep,
float  inten 
)
inlinestaticprivate

◆ SetBlur()

static void SetBlur ( float  value)
inlinestaticprivate

sets blur effect to an absolute value between 0..1

References GetGame(), World::GetMaterial(), CGame::GetWorld(), and Material::SetParam().

Referenced by UpdateBlur().

◆ SetBlurDrunk()

static void SetBlurDrunk ( float  value)
inlinestaticprivate

Set blur drunk effect to a specified 'value' between 0..1.

References m_BlurDrunk, SetBlurValue(), and UpdateBlur().

◆ SetBlurFever()

static void SetBlurFever ( float  value)
inlinestaticprivate

Set blur drunk effect to a specified 'value' between 0..1.

References m_BlurFever, SetBlurValue(), and UpdateBlur().

◆ SetBlurFlashbang()

static void SetBlurFlashbang ( float  value)
inlinestaticprivate

Set blur flashbang hit effect to a specified 'value' between 0..1.

References m_BlurFlashbang, SetBlurValue(), and UpdateBlur().

◆ SetBlurInventory()

static void SetBlurInventory ( float  value)
inlinestaticprivate

Set blur inventory effect to a specified 'value' between 0..1.

References m_BlurInventory, SetBlurValue(), and UpdateBlur().

◆ SetBlurMenu()

static void SetBlurMenu ( float  value)
inlinestaticprivate

Set menu blur to a specified 'value' between 0..1.

References m_BlurMenu, SetBlurValue(), and UpdateBlur().

◆ SetBlurOptics()

static void SetBlurOptics ( float  value)
inlinestaticprivate

Set optics and ironsights blur to a specified 'value' between 0..1.

References m_BlurOptics, SetBlurValue(), and UpdateBlur().

◆ SetBlurShock()

static void SetBlurShock ( float  value)
inlinestaticprivate

◆ SetBlurValue()

static void SetBlurValue ( int  index,
float  value 
)
inlinestaticprivate

◆ SetChromAbb()

static void SetChromAbb ( float  value)
inlinestaticprivate

References GetGame(), m_MatColors, and Material::SetParam().

Referenced by UpdateChromAbb().

◆ SetChromAbbOptic()

static void SetChromAbbOptic ( float  value)
inlinestaticprivate

◆ SetChromAbbValue()

static void SetChromAbbValue ( int  index,
float  value 
)
inlinestaticprivate

References m_ChromAbbValues, and Print().

Referenced by SetChromAbbOptic().

◆ SetColorizationNV()

static void SetColorizationNV ( float  r,
float  g,
float  b 
)
inlinestaticprivate

◆ SetColorValue()

static void SetColorValue ( int  index,
float  r,
float  g,
float  b,
float  a,
float  overlay 
)
inlinestaticprivate

◆ SetDeathDarkening()

static void SetDeathDarkening ( float  value)
inlinestaticprivate

◆ SetEVValuePP()

static void SetEVValuePP ( float  value)
inlinestaticprivate

References g_Game.

Referenced by SetDeathDarkening().

◆ SetLensEffect()

static void SetLensEffect ( float  lens,
float  chromAbb,
float  centerX,
float  centerY 
)
inlinestaticprivate

set lens effect

Parameters
lens<-5, 5>, 0 = disable (performance plus), > 0 = outside effect, < 0 inside effect
chromAbb<0, 1>, chromaticity, 1 = max, 0 disable (performance plus)
centerX<-1, 1>, center of effect, 0 = screen center in X
centerY<-1, 1>, center of effect, 0 = screen center in Y

References PerformSetLensEffect().

Referenced by ResetLensEffect().

◆ SetMenuVignette()

static void SetMenuVignette ( float  value)
inlinestaticprivate

◆ SetNVParams()

static void SetNVParams ( float  light_mult,
float  noise_intensity,
float  sharpness,
float  grain_size 
)
inlinestaticprivate

◆ SetRadialBlur()

static void SetRadialBlur ( float  powerX,
float  powerY,
float  offsetX,
float  offsetY 
)
inlinestaticprivate

sets blur effect to an absolute value between 0..1

References GetGame(), m_RadialBlur, and Material::SetParam().

Referenced by ResetRadialBlur().

◆ SetShockEffectColor()

static void SetShockEffectColor ( float  value)
inlinestaticprivate

◆ SetShockVignette()

static void SetShockVignette ( float  value)
inlinestaticprivate

◆ SetTunnelVignette()

static void SetTunnelVignette ( float  value)
inlinestaticprivate

◆ SetUnconsciousnessVignette()

static void SetUnconsciousnessVignette ( float  value)
inlinestaticprivate

◆ SetVignette()

static void SetVignette ( float  intensity,
float  R,
float  G,
float  B,
float  A 
)
inlinestaticprivate

set vignette

Parameters
intensity<0, 1>, intensity of effect, 0 = disable
R
G
B

References A, B, m_MatColors, R, and Material::SetParam().

Referenced by UpdateVignette().

◆ SetVignetteEffectValue()

static void SetVignetteEffectValue ( int  index,
float  intensity,
float  r,
float  g,
float  b,
float  a 
)
inlinestaticprivate

◆ UpdateBlur()

static void UpdateBlur ( )
inlinestaticprivate

updates the blur post process effect where the resulting blur is an aggregate of all individual blur effect values

References m_BlurValues, and SetBlur().

Referenced by ResetBlurEffects(), SetBlurDrunk(), SetBlurFever(), SetBlurFlashbang(), SetBlurInventory(), SetBlurMenu(), SetBlurOptics(), and SetBlurShock().

◆ UpdateChromAbb()

static void UpdateChromAbb ( )
inlinestaticprivate

updates the chromatic abberation post process effect where the resulting chromabb is an aggregate of all individual chromabb effect values

References m_ChromAbbValues, and SetChromAbb().

Referenced by ResetChromAbbEffects(), and SetChromAbbOptic().

◆ UpdateColor()

◆ UpdateColorize()

static void UpdateColorize ( )
inlinestaticprivate

◆ UpdateSaturation()

static void UpdateSaturation ( )
inlinestaticprivate

◆ UpdateVignette()

static void UpdateVignette ( )
inlinestaticprivate

Field Documentation

◆ COLOR_SHOCK

const float COLOR_SHOCK = 0.1
staticprivate

Referenced by SetShockEffectColor().

◆ COLORIZE_NV

const int COLORIZE_NV = 100
staticprivate

Referenced by Init(), and SetColorizationNV().

◆ m_BloodSaturation

float m_BloodSaturation
staticprivate

◆ m_BlurDrunk

int m_BlurDrunk
staticprivate

Referenced by Init(), and SetBlurDrunk().

◆ m_BlurFever

int m_BlurFever
staticprivate

Referenced by Init(), and SetBlurFever().

◆ m_BlurFlashbang

int m_BlurFlashbang
staticprivate

Referenced by Init(), and SetBlurFlashbang().

◆ m_BlurInventory

int m_BlurInventory
staticprivate

Referenced by Init(), and SetBlurInventory().

◆ m_BlurMenu

int m_BlurMenu
staticprivate

Referenced by Init(), and SetBlurMenu().

◆ m_BlurOptics

int m_BlurOptics
staticprivate

Referenced by Init(), and SetBlurOptics().

◆ m_BlurShock

int m_BlurShock
staticprivate

Referenced by SetBlurShock().

◆ m_BlurValues

ref array<float> m_BlurValues
staticprivate

◆ m_BurlapBlindness

int m_BurlapBlindness
staticprivate

◆ m_ChromAbbOptic

int m_ChromAbbOptic
staticprivate

Referenced by Init(), and SetChromAbbOptic().

◆ m_ChromAbbValues

ref array<float> m_ChromAbbValues
staticprivate

◆ m_ColorEffect

ref array<float> m_ColorEffect
staticprivate

◆ m_ColorizeEffects

ref map<int, ref array<float> > m_ColorizeEffects
staticprivate

◆ m_ColorOverlayTotal

float m_ColorOverlayTotal
staticprivate

Referenced by UpdateColor().

◆ m_ColorValues

ref map<int, ref array<float> > m_ColorValues
staticprivate

◆ m_ColorValueTotal

float m_ColorValueTotal[4] = {0,0,0,0}
staticprivate

◆ m_DyingEffect

int m_DyingEffect
staticprivate

Referenced by Init(), and SetDeathDarkening().

◆ m_MatColors

◆ m_RadialBlur

Material m_RadialBlur
staticprivate

Referenced by Init(), and SetRadialBlur().

◆ m_ShockEffect

int m_ShockEffect
staticprivate

Referenced by Init(), and SetShockEffectColor().

◆ m_VignetteEffects

ref array<int> m_VignetteEffects
staticprivate

◆ m_VignetteMenu

int m_VignetteMenu
staticprivate

Referenced by Init(), and SetMenuVignette().

◆ m_VignetteShock

int m_VignetteShock
staticprivate

Referenced by Init(), and SetShockVignette().

◆ m_VignetteTunnel

int m_VignetteTunnel
staticprivate

Referenced by Init(), and SetTunnelVignette().

◆ m_VignetteUnconscious

int m_VignetteUnconscious
staticprivate

Referenced by Init(), and SetUnconsciousnessVignette().

◆ m_VignetteValues

ref map<int, ref array<float> > m_VignetteValues
staticprivate

The documentation for this class was generated from the following file: