DayZ 1.24
Loading...
Searching...
No Matches
BuildingSuper Class Reference
Inheritance diagram for BuildingSuper:
[legend]
Collaboration diagram for BuildingSuper:
[legend]

Protected Member Functions

override void EEInit ()
 
override void EEDelete (EntityAI parent)
 
void BonfireHeating ()
 DEPRECATED.
 

Protected Attributes

BonfireLight m_Light
 
Particle m_ParticleFire
 
Particle m_ParticleSmoke
 
EffectSound m_SoundFireLoop
 
ref Timer m_BonfireHeatingTimer
 
ref UniversalTemperatureSource m_UTSource
 DEPRECATED.
 
ref UniversalTemperatureSourceSettings m_UTSSettings
 
ref UniversalTemperatureSourceLambdaConstant m_UTSLBonfire
 

Private Member Functions

void BuildingWithFireplace ()
 
override bool IsBuilding ()
 
override bool IsFuelStation ()
 
override float GetLiquidThroughputCoef ()
 
void Land_Misc_Greenhouse ()
 
override bool IsBuilding ()
 
override bool IsWell ()
 
override EWaterSourceObjectType GetWaterSourceObjectType ()
 
override float GetLiquidThroughputCoef ()
 
override void SetActions ()
 

Private Attributes

const float TIMER_HEATING_UPDATE_INTERVAL = 2
 
const float PARAM_HEAT_RADIUS = 15
 
const float PARAM_FULL_HEAT_RADIUS = 5
 
const float PARAM_MAX_TRANSFERED_TEMPERATURE = 25
 
const float CONST_FIRE_TEMP = 1000
 maximum value for temperature that will be transfered to player (environment)
 

Detailed Description

Definition at line 1 of file BuildingWithFireplace.c.

Member Function Documentation

◆ BonfireHeating()

void BuildingSuper::BonfireHeating ( )
inlineprotected

DEPRECATED.

Definition at line 95 of file Bonfire.c.

95{};

◆ BuildingWithFireplace()

void BuildingSuper::BuildingWithFireplace ( )
inlineprivate

Definition at line 3 of file BuildingWithFireplace.c.

4 {
5 }

◆ EEDelete()

override void BuildingSuper::EEDelete ( EntityAI parent)
inlineprotected

Definition at line 67 of file Bonfire.c.

68 {
69 super.EEDelete(parent);
70
71#ifndef SERVER
72 // outside of bubble - do effects cleanup (light, particles, sound)
73
74 // light
75 if (m_Light)
76 m_Light.FadeOut();
77
78 // particles
81
84
85 // sounds
88#endif
89
90 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
91 m_UTSource.SetActive(false);
92 }
Particle m_ParticleSmoke
Definition Bonfire.c:11
BonfireLight m_Light
Definition Bonfire.c:9
ref UniversalTemperatureSource m_UTSource
DEPRECATED.
Definition Bonfire.c:18
Particle m_ParticleFire
Definition Bonfire.c:10
EffectSound m_SoundFireLoop
Definition Bonfire.c:12
void SoundStop()
Stops sound.
void Stop()
Legacy function for backwards compatibility with 1.14 and below.
Definition Particle.c:262
proto native CGame GetGame()

References GetGame(), m_Light, m_ParticleSmoke, m_SoundFireLoop, m_UTSource, EffectSound::SoundStop(), and Particle::Stop().

◆ EEInit()

override void BuildingSuper::EEInit ( )
inlineprotected

Definition at line 22 of file Bonfire.c.

23 {
24 super.EEInit();
25
26#ifndef SERVER
27 // object creation - create effects (light, particles, sound)
28
29 // light
30 if (!m_Light)
31 {
32 m_Light = BonfireLight.Cast(ScriptedLightBase.CreateLight(BonfireLight, Vector(0, 0, 0), 1));
33 m_Light.AttachOnMemoryPoint(this, m_Light.m_MemoryPoint);
34 m_Light.FadeBrightnessTo(m_Light.m_FireBrightness, 0);
35 m_Light.FadeRadiusTo(m_Light.m_FireRadius, 0);
36 }
37
38 // particles
39 if (!m_ParticleSmoke)
40 m_ParticleSmoke = ParticleManager.GetInstance().PlayOnObject(ParticleList.BONFIRE_SMOKE, this, GetMemoryPointPos("bonfire_smoke"), Vector(0, 0, 0), true);
41
42 if (!m_ParticleFire)
43 m_ParticleFire = ParticleManager.GetInstance().PlayOnObject(ParticleList.BONFIRE_FIRE, this, GetMemoryPointPos("bonfire_fire"), Vector(0, 0, 0), true);
44
45 // sounds
46 if (!m_SoundFireLoop)
47 PlaySoundSetLoop(m_SoundFireLoop, "HeavyFire_SoundSet", 1.0, 2.0);
48#endif
49
50 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
51 {
54 m_UTSSettings.m_Updateable = true;
55 m_UTSSettings.m_TemperatureMin = 0;
56 m_UTSSettings.m_TemperatureMax = CONST_FIRE_TEMP;
60
63 m_UTSource.SetActive(true);
64 }
65 }
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
const float CONST_FIRE_TEMP
maximum value for temperature that will be transfered to player (environment)
Definition Bonfire.c:7
const float PARAM_MAX_TRANSFERED_TEMPERATURE
Definition Bonfire.c:6
const float TIMER_HEATING_UPDATE_INTERVAL
Definition Bonfire.c:3
ref UniversalTemperatureSourceLambdaConstant m_UTSLBonfire
Definition Bonfire.c:20
const float PARAM_HEAT_RADIUS
Definition Bonfire.c:4
const float PARAM_FULL_HEAT_RADIUS
Definition Bonfire.c:5
ref UniversalTemperatureSourceSettings m_UTSSettings
Definition Bonfire.c:19
static const int BONFIRE_SMOKE
static const int BONFIRE_FIRE
original Timer deletes m_params which is unwanted
proto native vector Vector(float x, float y, float z)
Vector constructor from components.

References ParticleList::BONFIRE_FIRE, ParticleList::BONFIRE_SMOKE, GetGame(), PointLightBase::m_FireBrightness, PointLightBase::m_FireRadius, m_Light, PointLightBase::m_MemoryPoint, m_ParticleSmoke, m_SoundFireLoop, m_UTSource, m_UTSSettings, PARAM_FULL_HEAT_RADIUS, PARAM_HEAT_RADIUS, PARAM_MAX_TRANSFERED_TEMPERATURE, ParticleManager(), TIMER_HEATING_UPDATE_INTERVAL, and Vector().

◆ GetLiquidThroughputCoef() [1/2]

override float BuildingSuper::GetLiquidThroughputCoef ( )
inlineprivate

Definition at line 13 of file FuelStation.c.

14 {
16 }
const float LIQUID_THROUGHPUT_FUELSTATION
Definition constants.c:528

References LIQUID_THROUGHPUT_FUELSTATION.

◆ GetLiquidThroughputCoef() [2/2]

override float BuildingSuper::GetLiquidThroughputCoef ( )
inlineprivate

Definition at line 18 of file Well.c.

19 {
21 }
const float LIQUID_THROUGHPUT_WELL
Definition constants.c:529

References LIQUID_THROUGHPUT_WELL.

◆ GetWaterSourceObjectType()

override EWaterSourceObjectType BuildingSuper::GetWaterSourceObjectType ( )
inlineprivate

Definition at line 13 of file Well.c.

14 {
15 return EWaterSourceObjectType.WELL;
16 }
EWaterSourceObjectType

◆ IsBuilding() [1/2]

override bool BuildingSuper::IsBuilding ( )
inlineprivate

Definition at line 3 of file FuelStation.c.

4 {
5 return false;
6 }

◆ IsBuilding() [2/2]

override bool BuildingSuper::IsBuilding ( )
inlineprivate

Definition at line 3 of file Well.c.

4 {
5 return false;
6 }

◆ IsFuelStation()

override bool BuildingSuper::IsFuelStation ( )
inlineprivate

Definition at line 8 of file FuelStation.c.

9 {
10 return true;
11 }

◆ IsWell()

override bool BuildingSuper::IsWell ( )
inlineprivate

Definition at line 8 of file Well.c.

9 {
11 }
override EWaterSourceObjectType GetWaterSourceObjectType()
Definition Well.c:13

◆ Land_Misc_Greenhouse()

void BuildingSuper::Land_Misc_Greenhouse ( )
inlineprivate

Definition at line 3 of file Land_Misc_Greenhouse.c.

4 {
5
6 }

◆ SetActions()

override void BuildingSuper::SetActions ( )
inlineprivate

Definition at line 23 of file Well.c.

24 {
25 super.SetActions();
26
29 }
ActionDrinkWellContinuousCB ActionContinuousBaseCB ActionDrinkWellContinuous()
ActionWashHandsWellCB ActionContinuousBaseCB ActionWashHandsWell()
void AddAction(typename actionName)

References ActionDrinkWellContinuous(), ActionWashHandsWell(), and AddAction().

Member Data Documentation

◆ CONST_FIRE_TEMP

const float BuildingSuper::CONST_FIRE_TEMP = 1000
private

maximum value for temperature that will be transfered to player (environment)

Definition at line 7 of file Bonfire.c.

◆ m_BonfireHeatingTimer

ref Timer BuildingSuper::m_BonfireHeatingTimer
protected

Definition at line 15 of file Bonfire.c.

◆ m_Light

BonfireLight BuildingSuper::m_Light
protected

Definition at line 9 of file Bonfire.c.

◆ m_ParticleFire

Particle BuildingSuper::m_ParticleFire
protected

Definition at line 10 of file Bonfire.c.

◆ m_ParticleSmoke

Particle BuildingSuper::m_ParticleSmoke
protected

Definition at line 11 of file Bonfire.c.

◆ m_SoundFireLoop

EffectSound BuildingSuper::m_SoundFireLoop
protected

Definition at line 12 of file Bonfire.c.

◆ m_UTSLBonfire

ref UniversalTemperatureSourceLambdaConstant BuildingSuper::m_UTSLBonfire
protected

Definition at line 20 of file Bonfire.c.

◆ m_UTSource

ref UniversalTemperatureSource BuildingSuper::m_UTSource
protected

DEPRECATED.

Definition at line 18 of file Bonfire.c.

◆ m_UTSSettings

ref UniversalTemperatureSourceSettings BuildingSuper::m_UTSSettings
protected

Definition at line 19 of file Bonfire.c.

◆ PARAM_FULL_HEAT_RADIUS

const float BuildingSuper::PARAM_FULL_HEAT_RADIUS = 5
private

Definition at line 5 of file Bonfire.c.

◆ PARAM_HEAT_RADIUS

const float BuildingSuper::PARAM_HEAT_RADIUS = 15
private

Definition at line 4 of file Bonfire.c.

◆ PARAM_MAX_TRANSFERED_TEMPERATURE

const float BuildingSuper::PARAM_MAX_TRANSFERED_TEMPERATURE = 25
private

Definition at line 6 of file Bonfire.c.

◆ TIMER_HEATING_UPDATE_INTERVAL

const float BuildingSuper::TIMER_HEATING_UPDATE_INTERVAL = 2
private

Definition at line 3 of file Bonfire.c.


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