DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
PPERCameraNV.c
См. документацию.
1class PPERequester_CameraNV extends PPERequester_GameplayBase
2{
3 static const int NV_NO_BATTERY= 0; //darkness
4 static const int NV_DEFAULT_OPTICS = 1;
5 static const int NV_DEFAULT_GLASSES = 2;
6 static const int NV_PUMPKIN = 3;
7 static const int NV_TRANSITIVE = 4; //resets EV during camera transitions
8 static const int NV_DAYTIME_OPTICS = 5;
9
10 protected int m_CurrentMode;
11 protected float m_UGExposureCoef = 1.0;
12
13 protected void SetNVMode(int mode)
14 {
16
17 switch (mode)
18 {
19 case NV_NO_BATTERY: //battery off
26 break;
27
28 case NV_DEFAULT_OPTICS: //NV optic on
35 break;
36
37 case NV_DAYTIME_OPTICS: //NV optic in daytime mode
44 break;
45
46 case NV_DEFAULT_GLASSES: //goggles on
53 break;
54
55 case NV_PUMPKIN: //pumpkin-o-vision
62 break;
63
64 case NV_TRANSITIVE: //camera transition
65 //SetTargetValueFloat(PPEExceptions.EXPOSURE,PPEExposureNative.PARAM_INTENSITY,false,0,PPEExposureNative.L_0_NVG_OFF,PPOperators.SET);
67 break;
68 }
69
70 m_CurrentMode = mode;
71 }
72
73 override protected void OnStart(Param par = null)
74 {
75 super.OnStart();
76
77 SetNVMode(Param1<int>.Cast(par).param1);
78 }
79
80 //other values reset automatically on stop
81 override protected void OnStop(Param par = null)
82 {
83 super.OnStop(par);
84 }
85
87 {
88 m_UGExposureCoef = coef;
89
90 if (m_IsRunning)
91 SetNVMode(m_CurrentMode); //TODO: improve (oof...)
92 }
93}
PPOperators
PP operators, specify operation between subsequent layers.
Определения PPEConstants.c:53
PPEExceptions
Определения PPEConstants.c:43
bool m_IsRunning
Определения PPERequestPlatformsBase.c:437
void SetTargetValueFloatDefault(int mat_id, int param_idx)
Определения PPERequestPlatformsBase.c:611
void SetTargetValueFloat(int mat_id, int param_idx, bool relative, float val, int priority_layer, int operator=PPOperators.ADD_RELATIVE)
Определения PPERequestPlatformsBase.c:588
void SetTargetValueColor(int mat_id, int param_idx, array< float > val, int priority_layer, int operator=PPOperators.ADD_RELATIVE)
Определения PPERequestPlatformsBase.c:630
static const int L_0_NVG_GOGGLES
Определения PPEExposureNative.c:11
static const int PARAM_INTENSITY
Определения PPEExposureNative.c:8
static const int L_0_NVG_OPTIC
Определения PPEExposureNative.c:10
EV postprocess, does not directly use materials.
Определения PPEExposureNative.c:6
static const int L_0_NVG_GENERIC
Определения PPEEyeAccomodationNative.c:11
static const int PARAM_INTENSITY
Определения PPEEyeAccomodationNative.c:8
Eye Accomodation postprocess, does not directly use materials.
Определения PPEEyeAccomodationNative.c:6
static const int PARAM_SHARPNESS
Определения PPEFilmGrain.c:9
static const int L_2_NVG
Определения PPEFilmGrain.c:21
static const int L_1_NVG
Определения PPEFilmGrain.c:19
static const int PARAM_GRAINSIZE
Определения PPEFilmGrain.c:10
FilmGrain - PostProcessEffectType.FilmGrain.
Определения PPEFilmGrain.c:7
static const int L_23_NVG
Определения PPEGlow.c:55
static const int PARAM_COLORIZATIONCOLOR
Определения PPEGlow.c:32
Glow - PostProcessEffectType.Glow.
Определения PPEGlow.c:8
static const int PARAM_NOISE_MULT
Определения PPELightIntensityParamsNative.c:9
static const int PARAM_LIGHT_MULT
Определения PPELightIntensityParamsNative.c:8
g_Game.NightVissionLightParams, does not directly use materials. Controls light multiplication and fi...
Определения PPELightIntensityParamsNative.c:6
void SetUndergroundExposureCoef(float coef)
Определения PPERCameraNV.c:86
void SetNVMode(int mode)
Определения PPERCameraNV.c:13
void OnStart(Param par=null)
Определения PPERCameraNV.c:73
float m_UGExposureCoef
Определения PPERCameraNV.c:11
static const int NV_NO_BATTERY
Определения PPERCameraNV.c:3
static const int NV_DEFAULT_GLASSES
Определения PPERCameraNV.c:5
int m_CurrentMode
Определения PPERCameraNV.c:10
static const int NV_DAYTIME_OPTICS
Определения PPERCameraNV.c:8
static const int NV_PUMPKIN
Определения PPERCameraNV.c:6
static const int NV_DEFAULT_OPTICS
Определения PPERCameraNV.c:4
void OnStop(Param par=null)
Определения PPERCameraNV.c:81
static const int NV_TRANSITIVE
Определения PPERCameraNV.c:7
base, not to be used directly, would lead to layering collisions!
Определения PPERBloodLoss.c:2
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Определения param.c:12
PostProcessEffectType
Post-process effect type.
Определения EnWorld.c:72