DayZ 1.24
Loading...
Searching...
No Matches
PPEExposureNative Class Reference

EV postprocess, does not directly use materials. More...

Inheritance diagram for PPEExposureNative:
[legend]
Collaboration diagram for PPEExposureNative:
[legend]

Private Member Functions

override int GetPostProcessEffectID ()
 
override void RegisterMaterialParameters ()
 
override void SetFinalParameterValue (int parameter_idx)
 Overriden to handle the specific exception.
 
- Private Member Functions inherited from PPEClassBase
void PPEClassBase (string mat_path_override="")
 
void Init (string mat_path_override="")
 
void CreateMaterial ()
 
Material GetMaterial ()
 
void CreateDataStructure ()
 
void RegisterMaterialParameters ()
 inserted into associative array by parameter int value, parameter registration order does not matter (still ordered, though)
 
void RegisterParameterScalarBool (int idx, string parameter_name, bool default_value)
 
void RegisterParameterScalarInt (int idx, string parameter_name, int default_value, int min, int max)
 
void RegisterParameterScalarFloat (int idx, string parameter_name, float default_value, float min, float max)
 WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values the renderer can handle! When in doubt, try some higher/lower values...
 
void RegisterParameterScalarFloatEx (int idx, string parameter_name, float default_value, float min, float max, typename type)
 WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values the renderer can handle! When in doubt, try some higher/lower values...
 
void RegisterParameterColor (int idx, string parameter_name, float r, float g, float b, float a)
 WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values the renderer can handle! When in doubt, try some higher/lower values...
 
void RegisterParameterColorEx (int idx, string parameter_name, float r, float g, float b, float a, typename type)
 WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values the renderer can handle! When in doubt, try some higher/lower values...
 
void RegisterParameterVector (int idx, string parameter_name, array< float > default_values)
 
void RegisterParameterTexture (int idx, string parameter_name, string default_path)
 
void RegisterParameterResource (int idx, string parameter_name, string default_path)
 
void InsertParamValueData (PPERequestParamDataBase request_data)
 Distributes requester data to the material class structure and links them to appropriate parameter.
 
void RemoveRequest (int req_idx)
 unused, see 'RemoveActiveRequestFromMaterials' for more info
 
void OnUpdate (float timeslice, int order)
 generic update method, take care when overriding!
 
void SetFinalParameterValue (int parameter_idx)
 Clamps the values being set to defaults, if there is no request setting non-zero values on the parameter.
 
void ApplyValueChanges ()
 
void InsertUpdatedParameter (int mat_id)
 
void ParamUpdateRemove (int parameter_idx)
 Queue selected parameter for removal from the update queue.
 
void SetParameterUpdating (int order, int parameter_id)
 Queue specific parameter of this material to update.
 
void ParamUpdateQueueCleanup (int order)
 
string GetDefaultMaterialPath ()
 override this if you want to use different path by default; '.emat' is appended automatically
 
void ChangeMaterialPathUsed (string path)
 
string GetCurrentMaterialPath ()
 
int GetPostProcessEffectID ()
 Overriden in all material classes!
 
PPEMatClassParameterCommandData GetParameterCommandData (int parameter_idx)
 Some PP effects are handled as hard-coded exceptions, outside of material system. Default == PPEExceptions.NONE (systemic behaviour)
 
void DbgPrnt (string text)
 

Static Private Attributes

static const int PARAM_INTENSITY = 0
 
static const int L_0_NVG_OPTIC = 100
 
static const int L_0_NVG_GOGGLES = 200
 
static const int L_0_NVG_OFF = 300
 
static const int L_0_FLASHBANG = 400
 
static const int L_0_BURLAP = 500
 
static const int L_0_DEATH = 1000
 

Additional Inherited Members

- Private Attributes inherited from PPEClassBase
PPEManager m_Manager
 
string m_MaterialPath = ""
 
Material m_Material
 
ref map< int, ref array< int > > m_ParameterUpdateQueueMap
 
ref array< intm_ParameterRemovalQueue
 
ref array< intm_UpdatedParameters
 
ref map< int, ref PPEMatClassParameterCommandDatam_MaterialParamMapStructure
 

Detailed Description

EV postprocess, does not directly use materials.

Definition at line 5 of file PPEExposureNative.c.

Member Function Documentation

◆ GetPostProcessEffectID()

override int PPEExposureNative::GetPostProcessEffectID ( )
inlineprivate

Definition at line 17 of file PPEExposureNative.c.

18 {
19 return PPEExceptions.EXPOSURE;
20 }
PPEExceptions

◆ RegisterMaterialParameters()

override void PPEExposureNative::RegisterMaterialParameters ( )
inlineprivate

Definition at line 22 of file PPEExposureNative.c.

23 {
24 RegisterParameterScalarFloat(PARAM_INTENSITY, "Intensity", 0.0, -100.0, 100.0); //no real range, it seems. -100..100 used
25 }
void RegisterParameterScalarFloat(int idx, string parameter_name, float default_value, float min, float max)
WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values ...
static const int PARAM_INTENSITY

References PARAM_INTENSITY, and PPEClassBase::RegisterParameterScalarFloat().

◆ SetFinalParameterValue()

override void PPEExposureNative::SetFinalParameterValue ( int parameter_idx)
inlineprivate

Overriden to handle the specific exception.

Definition at line 28 of file PPEExposureNative.c.

29 {
31 float value_var_float = Param1<float>.Cast(values).param1;
32
33 g_Game.SetEVValue(value_var_float);
34 //DbgPrnt("PPEDebug | SetFinalParameterValue | PPEExposureNative | float val: " + value_var_float);
35 }
DayZGame g_Game
Definition DayZGame.c:3528
PPEMatClassParameterCommandData GetParameterCommandData(int parameter_idx)
Some PP effects are handled as hard-coded exceptions, outside of material system. Default == PPEExcep...
Param GetCurrentValues()
Careful, only actual values, WITHOUT string.
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Definition param.c:12

References g_Game, PPEMatClassParameterCommandData::GetCurrentValues(), and PPEClassBase::GetParameterCommandData().

Member Data Documentation

◆ L_0_BURLAP

const int PPEExposureNative::L_0_BURLAP = 500
staticprivate

Definition at line 14 of file PPEExposureNative.c.

Referenced by PPERequester_GameplayBase::OnStart().

◆ L_0_DEATH

const int PPEExposureNative::L_0_DEATH = 1000
staticprivate

Definition at line 15 of file PPEExposureNative.c.

Referenced by PPERequester_GameplayBase::OnStart().

◆ L_0_FLASHBANG

const int PPEExposureNative::L_0_FLASHBANG = 400
staticprivate

◆ L_0_NVG_GOGGLES

const int PPEExposureNative::L_0_NVG_GOGGLES = 200
staticprivate

Definition at line 11 of file PPEExposureNative.c.

Referenced by PPERequester_GameplayBase::SetNVMode().

◆ L_0_NVG_OFF

const int PPEExposureNative::L_0_NVG_OFF = 300
staticprivate

Definition at line 12 of file PPEExposureNative.c.

◆ L_0_NVG_OPTIC

const int PPEExposureNative::L_0_NVG_OPTIC = 100
staticprivate

Definition at line 10 of file PPEExposureNative.c.

Referenced by PPERequester_GameplayBase::SetNVMode().

◆ PARAM_INTENSITY


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