Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkWeatherCondition.c
Go to the documentation of this file.
1
[
BaseContainerProps
()]
2
class
SCR_ScenarioFrameworkWeatherCondition
:
SCR_ScenarioFrameworkActivationConditionBase
3
{
4
[
Attribute
(defvalue:
"0"
,
desc
:
"Minimal wind speed in meters per second"
,
params
:
"0 100 0.001"
,
precision
: 3,
category
:
"Wind"
)]
5
float
m_fMinWindSpeed;
6
7
[
Attribute
(defvalue:
"20"
,
desc
:
"Maximal wind speed in meters per second"
,
params
:
"0 100 0.001"
,
precision
: 3,
category
:
"Wind"
)]
8
float
m_fMaxWindSpeed;
9
10
[
Attribute
(defvalue:
"0"
,
desc
:
"Minimal rain intensity"
,
params
:
"0 1 0.001"
,
precision
: 3,
category
:
"Rain"
)]
11
float
m_fMinRainIntensity;
12
13
[
Attribute
(defvalue:
"1"
,
desc
:
"Maximal rain intensity"
,
params
:
"0 1 0.001"
,
precision
: 3,
category
:
"Rain"
)]
14
float
m_fMaxRainIntensity;
15
16
//------------------------------------------------------------------------------------------------
17
override
bool
Init
(
IEntity
entity)
18
{
19
// Here you can debug specific Condition instance.
20
// This can be also adjusted during runtime via Debug Menu > ScenarioFramework > Condition Inspector
21
if
(m_bDebug)
22
Print
(
"[SCR_ScenarioFrameworkWeatherCondition.Init] debug line ("
+ __FILE__ +
" L"
+ __LINE__ +
")"
,
LogLevel
.WARNING);
23
24
ChimeraWorld
world =
ChimeraWorld
.CastFrom(entity.
GetWorld
());
25
if
(!world)
26
return
true
;
27
28
TimeAndWeatherManagerEntity
manager = world.GetTimeAndWeatherManager();
29
if
(!manager)
30
return
true
;
31
32
float
currentWindSpeed = manager.GetWindSpeed();
33
if
(currentWindSpeed < m_fMinWindSpeed || currentWindSpeed > m_fMaxWindSpeed)
34
return
false
;
35
36
float
currentRainIntensity = manager.GetRainIntensity();
37
if
(currentRainIntensity < m_fMinRainIntensity || currentRainIntensity > m_fMaxRainIntensity)
38
return
false
;
39
40
return
true
;
41
}
42
}
Init
override void Init()
Definition
CharacterCameraHandlerComponent.c:40
precision
params precision
Definition
SCR_2DOpticsComponent.c:20
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
params
category params
Definition
SCR_SpherePointGeneratorPreviewComponent.c:21
category
params category
Definition
SCR_VehicleDamageManagerComponent.c:302
ChimeraWorld
Definition
ChimeraWorld.c:13
IEntity
Definition
IEntity.c:13
IEntity::GetWorld
proto external BaseWorld GetWorld()
SCR_ScenarioFrameworkActivationConditionBase
Definition
SCR_ScenarioFrameworkActivationConditionBase.c:3
SCR_ScenarioFrameworkWeatherCondition
Definition
SCR_ScenarioFrameworkWeatherCondition.c:3
TimeAndWeatherManagerEntity
Definition
TimeAndWeatherManagerEntity.c:26
Print
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
LogLevel
Enum with severity of the logging message.
Definition
LogLevel.c:14
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
ScenarioFramework
Conditions
SCR_ScenarioFrameworkWeatherCondition.c
Generated by
1.17.0