Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
PPEffects Class Reference

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

Static Private Member Functions

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

Static Private Attributes

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

Detailed Description

Deprecated; 'PPEManager' used instead.

Definition at line 2 of file ppeffects.c.

Member Function Documentation

◆ AddPPMask()

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

Definition at line 508 of file ppeffects.c.

References g_Game.

◆ DisableBurlapSackBlindness()

void DisableBurlapSackBlindness ( )
inlinestaticprivate

Definition at line 577 of file ppeffects.c.

References g_Game, m_BurlapBlindness, SetColorValue(), and UpdateColor().

◆ EnableBurlapSackBlindness()

void EnableBurlapSackBlindness ( )
inlinestaticprivate

Definition at line 570 of file ppeffects.c.

References g_Game, m_BurlapBlindness, SetColorValue(), and UpdateColor().

◆ FlashbangEffect()

void FlashbangEffect ( float value)
inlinestaticprivate

Definition at line 558 of file ppeffects.c.

References Math::Clamp(), Math::Lerp(), m_ColorValueTotal, and m_MatColors.

◆ HitEffect()

void HitEffect ( float value)
inlinestaticprivate

Definition at line 528 of file ppeffects.c.

References Math::Clamp(), Math::Lerp(), m_ColorValueTotal, and m_MatColors.

◆ Init()

◆ OverrideDOF()

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

Definition at line 503 of file ppeffects.c.

References g_Game.

Referenced by ResetDOFOverride().

◆ PerformSetLensEffect()

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

added for convenience

Definition at line 419 of file ppeffects.c.

References m_MatColors, and SetChromAbbOptic().

Referenced by SetLensEffect().

◆ RegisterBlurEffect()

int RegisterBlurEffect ( )
inlinestaticprivate

Definition at line 149 of file ppeffects.c.

References m_BlurValues.

Referenced by Init().

◆ RegisterChromAbbEffect()

int RegisterChromAbbEffect ( )
inlinestaticprivate

Definition at line 255 of file ppeffects.c.

References m_ChromAbbValues.

Referenced by Init().

◆ RegisterColorEffect()

int RegisterColorEffect ( )
inlinestaticprivate

Definition at line 370 of file ppeffects.c.

References m_ColorEffect.

Referenced by Init().

◆ RegisterVignetteEffect()

int RegisterVignetteEffect ( )
inlinestaticprivate

Definition at line 460 of file ppeffects.c.

References m_VignetteEffects.

Referenced by Init().

◆ ResetAll()

void ResetAll ( )
inlinestaticprivate

◆ ResetBlurEffects()

void ResetBlurEffects ( )
inlinestaticprivate

Definition at line 120 of file ppeffects.c.

References m_BlurValues, and UpdateBlur().

Referenced by ResetAll().

◆ ResetChromAbbEffects()

void ResetChromAbbEffects ( )
inlinestaticprivate

Definition at line 260 of file ppeffects.c.

References m_ChromAbbValues, and UpdateChromAbb().

◆ ResetColorEffects()

void ResetColorEffects ( )
inlinestaticprivate

Definition at line 343 of file ppeffects.c.

References m_ColorEffect, m_ColorValues, and UpdateColor().

Referenced by ResetAll().

◆ ResetColorize()

void ResetColorize ( )
inlinestaticprivate

Definition at line 706 of file ppeffects.c.

References m_MatColors.

Referenced by ResetAll(), and UpdateColorize().

◆ ResetDOFOverride()

void ResetDOFOverride ( )
inlinestaticprivate

Definition at line 518 of file ppeffects.c.

References OverrideDOF().

Referenced by ResetAll().

◆ ResetLensEffect()

void ResetLensEffect ( )
inlinestaticprivate

Definition at line 523 of file ppeffects.c.

References SetLensEffect().

Referenced by ResetAll().

◆ ResetPPMask()

void ResetPPMask ( )
inlinestaticprivate

Definition at line 513 of file ppeffects.c.

References g_Game.

Referenced by ResetAll().

◆ ResetRadialBlur()

void ResetRadialBlur ( )
inlinestaticprivate

Definition at line 132 of file ppeffects.c.

References SetRadialBlur().

◆ ResetVignettes()

void ResetVignettes ( )
inlinestaticprivate

Definition at line 489 of file ppeffects.c.

References m_VignetteValues, and UpdateVignette().

Referenced by ResetAll().

◆ SetBloodSaturation()

void SetBloodSaturation ( float value)
inlinestaticprivate

Definition at line 640 of file ppeffects.c.

References m_BloodSaturation, and UpdateSaturation().

Referenced by ResetAll().

◆ SetBloom()

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

Definition at line 737 of file ppeffects.c.

References m_MatColors.

◆ SetBlur()

void SetBlur ( float value)
inlinestaticprivate

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

Definition at line 168 of file ppeffects.c.

References g_Game, and Material::SetParam().

Referenced by UpdateBlur().

◆ SetBlurDrunk()

void SetBlurDrunk ( float value)
inlinestaticprivate

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

Definition at line 204 of file ppeffects.c.

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

◆ SetBlurFever()

void SetBlurFever ( float value)
inlinestaticprivate

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

Definition at line 212 of file ppeffects.c.

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

◆ SetBlurFlashbang()

void SetBlurFlashbang ( float value)
inlinestaticprivate

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

Definition at line 236 of file ppeffects.c.

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

◆ SetBlurInventory()

void SetBlurInventory ( float value)
inlinestaticprivate

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

Definition at line 197 of file ppeffects.c.

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

◆ SetBlurMenu()

void SetBlurMenu ( float value)
inlinestaticprivate

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

Definition at line 220 of file ppeffects.c.

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

◆ SetBlurOptics()

void SetBlurOptics ( float value)
inlinestaticprivate

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

Definition at line 228 of file ppeffects.c.

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

◆ SetBlurShock()

void SetBlurShock ( float value)
inlinestaticprivate

Definition at line 242 of file ppeffects.c.

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

◆ SetBlurValue()

void SetBlurValue ( int index,
float value )
inlinestaticprivate

◆ SetChromAbb()

void SetChromAbb ( float value)
inlinestaticprivate

Definition at line 284 of file ppeffects.c.

References g_Game, and m_MatColors.

Referenced by UpdateChromAbb().

◆ SetChromAbbOptic()

void SetChromAbbOptic ( float value)
inlinestaticprivate

Definition at line 312 of file ppeffects.c.

References m_ChromAbbOptic, SetChromAbbValue(), and UpdateChromAbb().

Referenced by PerformSetLensEffect().

◆ SetChromAbbValue()

void SetChromAbbValue ( int index,
float value )
inlinestaticprivate

Definition at line 272 of file ppeffects.c.

References m_ChromAbbValues, and Print().

Referenced by SetChromAbbOptic().

◆ SetColorizationNV()

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

Definition at line 659 of file ppeffects.c.

References COLORIZE_NV, m_ColorizeEffects, and UpdateColorize().

◆ SetColorValue()

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

◆ SetDeathDarkening()

void SetDeathDarkening ( float value)
inlinestaticprivate

Definition at line 584 of file ppeffects.c.

References Math::Clamp(), m_DyingEffect, SetColorValue(), SetEVValuePP(), and UpdateColor().

◆ SetEVValuePP()

void SetEVValuePP ( float value)
inlinestaticprivate

Definition at line 717 of file ppeffects.c.

References g_Game.

Referenced by SetDeathDarkening().

◆ SetLensEffect()

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

Definition at line 413 of file ppeffects.c.

References PerformSetLensEffect().

Referenced by ResetLensEffect().

◆ SetMenuVignette()

void SetMenuVignette ( float value)
inlinestaticprivate

Definition at line 483 of file ppeffects.c.

References m_VignetteMenu, SetVignetteEffectValue(), and UpdateVignette().

◆ SetNVParams()

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

Definition at line 724 of file ppeffects.c.

References g_Game, and Material::SetParam().

◆ SetRadialBlur()

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

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

Definition at line 156 of file ppeffects.c.

References g_Game, and m_RadialBlur.

Referenced by ResetRadialBlur().

◆ SetShockEffectColor()

void SetShockEffectColor ( float value)
inlinestaticprivate

Definition at line 549 of file ppeffects.c.

References COLOR_SHOCK, m_ShockEffect, SetColorValue(), and UpdateColor().

◆ SetShockVignette()

void SetShockVignette ( float value)
inlinestaticprivate

Definition at line 471 of file ppeffects.c.

References m_VignetteShock, SetVignetteEffectValue(), and UpdateVignette().

◆ SetTunnelVignette()

void SetTunnelVignette ( float value)
inlinestaticprivate

Definition at line 477 of file ppeffects.c.

References m_VignetteTunnel, SetVignetteEffectValue(), and UpdateVignette().

◆ SetUnconsciousnessVignette()

void SetUnconsciousnessVignette ( float value)
inlinestaticprivate

Definition at line 465 of file ppeffects.c.

References m_VignetteUnconscious, SetVignetteEffectValue(), and UpdateVignette().

◆ SetVignette()

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

Definition at line 434 of file ppeffects.c.

References A, B, m_MatColors, and R.

Referenced by UpdateVignette().

◆ SetVignetteEffectValue()

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

◆ UpdateBlur()

void UpdateBlur ( )
inlinestaticprivate

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

Definition at line 182 of file ppeffects.c.

References m_BlurValues, and SetBlur().

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

◆ UpdateChromAbb()

void UpdateChromAbb ( )
inlinestaticprivate

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

Definition at line 298 of file ppeffects.c.

References m_ChromAbbValues, and SetChromAbb().

Referenced by ResetChromAbbEffects(), and SetChromAbbOptic().

◆ UpdateColor()

◆ UpdateColorize()

void UpdateColorize ( )
inlinestaticprivate

Definition at line 666 of file ppeffects.c.

References m_ColorizeEffects, m_MatColors, and ResetColorize().

Referenced by SetColorizationNV().

◆ UpdateSaturation()

void UpdateSaturation ( )
inlinestaticprivate

Definition at line 595 of file ppeffects.c.

References m_BloodSaturation, and m_MatColors.

Referenced by SetBloodSaturation().

◆ UpdateVignette()

void UpdateVignette ( )
inlinestaticprivate

Field Documentation

◆ COLOR_SHOCK

const float COLOR_SHOCK = 0.1
staticprivate

Definition at line 8 of file ppeffects.c.

Referenced by SetShockEffectColor().

◆ COLORIZE_NV

const int COLORIZE_NV = 100
staticprivate

Definition at line 5 of file ppeffects.c.

Referenced by Init(), and SetColorizationNV().

◆ m_BloodSaturation

float m_BloodSaturation
staticprivate

Definition at line 33 of file ppeffects.c.

Referenced by SetBloodSaturation(), and UpdateSaturation().

◆ m_BlurDrunk

int m_BlurDrunk
staticprivate

Definition at line 14 of file ppeffects.c.

Referenced by Init(), and SetBlurDrunk().

◆ m_BlurFever

int m_BlurFever
staticprivate

Definition at line 15 of file ppeffects.c.

Referenced by Init(), and SetBlurFever().

◆ m_BlurFlashbang

int m_BlurFlashbang
staticprivate

Definition at line 18 of file ppeffects.c.

Referenced by Init(), and SetBlurFlashbang().

◆ m_BlurInventory

int m_BlurInventory
staticprivate

Definition at line 13 of file ppeffects.c.

Referenced by Init(), and SetBlurInventory().

◆ m_BlurMenu

int m_BlurMenu
staticprivate

Definition at line 16 of file ppeffects.c.

Referenced by Init(), and SetBlurMenu().

◆ m_BlurOptics

int m_BlurOptics
staticprivate

Definition at line 17 of file ppeffects.c.

Referenced by Init(), and SetBlurOptics().

◆ m_BlurShock

int m_BlurShock
staticprivate

Definition at line 19 of file ppeffects.c.

Referenced by SetBlurShock().

◆ m_BlurValues

ref array<float> m_BlurValues
staticprivate

Definition at line 35 of file ppeffects.c.

Referenced by Init(), RegisterBlurEffect(), ResetBlurEffects(), SetBlurValue(), and UpdateBlur().

◆ m_BurlapBlindness

int m_BurlapBlindness
staticprivate

Definition at line 21 of file ppeffects.c.

Referenced by DisableBurlapSackBlindness(), EnableBurlapSackBlindness(), and Init().

◆ m_ChromAbbOptic

int m_ChromAbbOptic
staticprivate

Definition at line 25 of file ppeffects.c.

Referenced by Init(), and SetChromAbbOptic().

◆ m_ChromAbbValues

ref array<float> m_ChromAbbValues
staticprivate

◆ m_ColorEffect

ref array<float> m_ColorEffect
staticprivate

Definition at line 40 of file ppeffects.c.

Referenced by Init(), RegisterColorEffect(), ResetColorEffects(), and SetColorValue().

◆ m_ColorizeEffects

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

Definition at line 41 of file ppeffects.c.

Referenced by Init(), SetColorizationNV(), and UpdateColorize().

◆ m_ColorOverlayTotal

float m_ColorOverlayTotal
staticprivate

Definition at line 47 of file ppeffects.c.

Referenced by UpdateColor().

◆ m_ColorValues

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

Definition at line 39 of file ppeffects.c.

Referenced by Init(), ResetColorEffects(), SetColorValue(), and UpdateColor().

◆ m_ColorValueTotal

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

Definition at line 46 of file ppeffects.c.

Referenced by FlashbangEffect(), HitEffect(), and UpdateColor().

◆ m_DyingEffect

int m_DyingEffect
staticprivate

Definition at line 22 of file ppeffects.c.

Referenced by Init(), and SetDeathDarkening().

◆ m_MatColors

◆ m_RadialBlur

Material m_RadialBlur
staticprivate

Definition at line 50 of file ppeffects.c.

Referenced by Init(), and SetRadialBlur().

◆ m_ShockEffect

int m_ShockEffect
staticprivate

Definition at line 23 of file ppeffects.c.

Referenced by Init(), and SetShockEffectColor().

◆ m_VignetteEffects

ref array<int> m_VignetteEffects
staticprivate

Definition at line 37 of file ppeffects.c.

Referenced by Init(), RegisterVignetteEffect(), SetVignetteEffectValue(), and UpdateVignette().

◆ m_VignetteMenu

int m_VignetteMenu
staticprivate

Definition at line 31 of file ppeffects.c.

Referenced by Init(), and SetMenuVignette().

◆ m_VignetteShock

int m_VignetteShock
staticprivate

Definition at line 29 of file ppeffects.c.

Referenced by Init(), and SetShockVignette().

◆ m_VignetteTunnel

int m_VignetteTunnel
staticprivate

Definition at line 30 of file ppeffects.c.

Referenced by Init(), and SetTunnelVignette().

◆ m_VignetteUnconscious

int m_VignetteUnconscious
staticprivate

Definition at line 28 of file ppeffects.c.

Referenced by Init(), and SetUnconsciousnessVignette().

◆ m_VignetteValues

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

Definition at line 38 of file ppeffects.c.

Referenced by Init(), ResetVignettes(), SetVignetteEffectValue(), and UpdateVignette().


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