Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс BroomBase
+ Граф наследования:BroomBase:

Закрытые члены

override void Init ()
 
override void SetActions ()
 
override bool CanReceiveUpgrade ()
 
override void OnWorkStart ()
 
override void ApplyResultModifications (ItemBase result)
 
override bool CanTransformIntoStick ()
 
override void EEHitBy (TotalDamageResult damageResult, int damageType, EntityAI source, int component, string dmgZone, string ammo, vector modelPos, float speedCoef)
 
override void CalculateQuantity ()
 
override void UpdateParticle ()
 
void DebugSetHealthAndEnergy (float time)
 
override void GetDebugActions (out TSelectableActionInfoArrayEx outputList)
 
override bool OnAction (int action_id, Man player, ParamsReadContext ctx)
 
- Закрытые члены унаследованные от FlammableBase
override void DeferredInit ()
 
void Init ()
 
override void EEInit ()
 
override vector GetUniversalTemperatureSourcePosition ()
 
override void EEDelete (EntityAI parent)
 
override bool CanReceiveAttachment (EntityAI attachment, int slotId)
 
override bool CanPutInCargo (EntityAI parent)
 
override bool CanReleaseAttachment (EntityAI attachment)
 
override bool CanRemoveFromCargo (EntityAI parent)
 
override bool CanPutAsAttachment (EntityAI parent)
 
bool CanBeTakenAsCargo ()
 
override bool IsIgnited ()
 
override bool CanIgniteItem (EntityAI ignite_target=NULL)
 
override bool HasFlammableMaterial ()
 
override bool CanBeIgnitedBy (EntityAI igniter=NULL)
 
bool IsRagDryEnough (ItemBase rag)
 
void UpdateCheckForReceivingUpgrade ()
 
override void OnIgnitedThis (EntityAI fire_source)
 
override void OnSwitchOn ()
 
override void OnSwitchOff ()
 
void SetTorchDecraftResult (string type)
 
bool ConsumeRag ()
 
void ConsumeLard (Lard lard)
 
void Upgrade (ItemBase source)
 
void ConsumeFuelFromBottle (ItemBase vessel)
 
void ConsumeFuelFromGasStation ()
 
void RuinRags ()
 
override void OnInventoryExit (Man player)
 
bool StandUp ()
 
void CalculateQuantity ()
 
bool CanReceiveUpgrade ()
 
void CraftingInit (float quantity)
 
override void EEItemAttached (EntityAI item, string slot_name)
 
override void EEItemDetached (EntityAI item, string slot_name)
 
bool CanTransformIntoStick ()
 
void TryTransformIntoStick ()
 
override void OnWorkStart ()
 
void StopAllParticles ()
 
Rag GetRag ()
 
void LockRags (bool do_lock)
 
void UpdateLight ()
 
override void OnItemInHandsPlayerSwimStart (PlayerBase player)
 
override void OnWork (float consumed_energy)
 
string GetSoundName ()
 
void UpdateParticle ()
 
override void OnWorkStop ()
 
override int GetMeleeMode ()
 
override int GetMeleeHeavyMode ()
 
override int GetMeleeSprintMode ()
 
override void SetActions ()
 
override void OnAttachmentQuantityChangedEx (ItemBase item, float delta)
 
override bool DisassembleOnLastDetach ()
 
override void OnDebugSpawn ()
 
int GetRagQuantity ()
 
string GetBurningMaterial ()
 
string GetBurntMaterial ()
 
void UpdateMaterial ()
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
void ApplyResultModifications (ItemBase result)
 

Дополнительные унаследованные члены

- Закрытые данные унаследованные от FlammableBase
ref UniversalTemperatureSource m_UTSource
 
ref UniversalTemperatureSourceSettings m_UTSSettings
 
ref UniversalTemperatureSourceLambdaConstant m_UTSLConstant
 

Подробное описание

Методы

◆ ApplyResultModifications()

override void ApplyResultModifications ( ItemBase result)
inlineprivate
30 {
31 result.SetHealth(result.GetHealthLevelValue(2,""));
32 result.SetQuantity(1);
33 }
Definition EntityAI.c:95

◆ CalculateQuantity()

override void CalculateQuantity ( )
inlineprivate
53 {
54 if (GetGame().IsServer())
55 {
56 float currentHealth01 = GetHealth01();
57 float currentEnergy01 = GetCompEM().GetEnergy0To1();
58
59 //Health needs to copy internal energy, but only if that means it will be going down from its current value(the item can't heal itself after obtaining damage just because it has full internal energy)
60 SetHealth01("","",Math.Min(currentHealth01,currentEnergy01));
61 //Energy needs to copy health, but only if it is higher(in 01 terms) than health, that means if an item with full energy gets damaged and lit, the internal energy needs to be adjusted to follow the health. Situations where internal energy is lower than health are handled on the line above
62 GetCompEM().SetEnergy0To1(GetHealth01());
63 }
64 }
Definition EnMath.c:7
proto native CGame GetGame()
static proto float Min(float x, float y)
Returns smaller of two given values.

Перекрестные ссылки GetGame() и Math::Min().

Используется в OnWorkStart().

◆ CanReceiveUpgrade()

override bool CanReceiveUpgrade ( )
inlineprivate
19 {
20 return false;
21 }

◆ CanTransformIntoStick()

override bool CanTransformIntoStick ( )
inlineprivate
36 {
37 if ( GetGame().IsServer() && !IsIgnited() && GetEnergy() < 1 && !IsSetForDeletion())
38 return true;
39 else
40 return false;
41 }
float GetEnergy()
Definition ItemBase.c:8187
override bool IsIgnited()
Definition Torch.c:135

Перекрестные ссылки GetEnergy(), GetGame() и FlammableBase::IsIgnited().

◆ DebugSetHealthAndEnergy()

void DebugSetHealthAndEnergy ( float time)
inlineprivate
86 {
87 float max_energy = GetCompEM().GetEnergyMaxPristine();
89 SetHealth01("","", health01);
90 GetCompEM().SetEnergy( time );
91 }
static proto float InverseLerp(float a, float b, float value)
Calculates the linear value that produces the interpolant value within the range [a,...

Перекрестные ссылки Math::InverseLerp().

Используется в OnAction().

◆ EEHitBy()

override void EEHitBy ( TotalDamageResult damageResult,
int damageType,
EntityAI source,
int component,
string dmgZone,
string ammo,
vector modelPos,
float speedCoef )
inlineprivate
45 {
47
48 GetCompEM().SetEnergy0To1(GetHealth01("",""));
49 }
class BoxCollidingParams component
ComponentInfo for BoxCollidingResult.

Перекрестные ссылки component.

◆ GetDebugActions()

override void GetDebugActions ( out TSelectableActionInfoArrayEx outputList)
inlineprivate
94 {
95 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.BROOM_BURN_VERY_SHORT, "SetBurnTimeTo15Secs", FadeColors.LIGHT_GREY));
96 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.BROOM_BURN_SHORT, "SetBurnTimeTo1Min", FadeColors.LIGHT_GREY));
97 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.BROOM_BURN_MEDIUM, "SetBurnTimeTo10Min", FadeColors.LIGHT_GREY));
98 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.BROOM_BURN_LONG, "SetBurnTimeToMax", FadeColors.LIGHT_GREY));
99 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.SEPARATOR, "___________________________", FadeColors.LIGHT_GREY));
100
101 super.GetDebugActions(outputList);
102 }
Param4< int, int, string, int > TSelectableActionInfoWithColor
Definition EntityAI.c:97
EActions
Definition EActions.c:2
const int SAT_DEBUG_ACTION
Definition constants.c:424

Перекрестные ссылки SAT_DEBUG_ACTION.

◆ Init()

override void Init ( )
inlineprivate
4 {
5 super.Init();
6 m_DecraftResult = "LongWoodenStick";
7 m_ParticleLocalPos = Vector(0, 1.2, 0);
8 }
vector m_ParticleLocalPos
Definition Torch.c:23
string m_DecraftResult
Definition Torch.c:25
proto native vector Vector(float x, float y, float z)
Vector constructor from components.

Перекрестные ссылки FlammableBase::m_DecraftResult, FlammableBase::m_ParticleLocalPos и Vector().

◆ OnAction()

override bool OnAction ( int action_id,
Man player,
ParamsReadContext ctx )
inlineprivate
105 {
106 if (super.OnAction(action_id, player, ctx))
107 return true;
108 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
109 {
110 if (action_id == EActions.BROOM_BURN_VERY_SHORT)
111 {
114 }
115 else if (action_id == EActions.BROOM_BURN_SHORT)
116 {
119 }
120 else if (action_id == EActions.BROOM_BURN_MEDIUM)
121 {
124 }
125 else if (action_id == EActions.BROOM_BURN_LONG)
126 {
127 DebugSetHealthAndEnergy(GetCompEM().GetEnergyMaxPristine());
129 }
130 }
131 return false;
132 }
void DebugSetHealthAndEnergy(float time)
Definition Broom.c:85
override void OnIgnitedThis(EntityAI fire_source)
Definition Torch.c:198

Перекрестные ссылки DebugSetHealthAndEnergy(), GetGame() и FlammableBase::OnIgnitedThis().

◆ OnWorkStart()

override void OnWorkStart ( )
inlineprivate
24 {
25 super.OnWorkStart();
27 }
override void CalculateQuantity()
Definition Broom.c:52

Перекрестные ссылки CalculateQuantity().

◆ SetActions()

override void SetActions ( )
inlineprivate
11 {
12 super.SetActions();
13
16 }
void AddAction(typename actionName)
Definition AdvancedCommunication.c:220
Definition ActionBreakLongWoodenStick.c:13
Definition ActionClapBearTrapWithThisItem.c:2

Перекрестные ссылки AddAction().

◆ UpdateParticle()

override void UpdateParticle ( )
inlineprivate
67 {
69
70 if (!m_FireParticle)
71 {
73 }
77 {
78 float scale = Math.Max(normalizedQuant * 2.4, 0.4);
79
81 }
82 }
override float GetQuantity()
Definition ItemBase.c:8042
override int GetQuantityMax()
Definition ItemBase.c:7988
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
Definition ParticleManager.c:84
Particle m_FireParticle
Definition Torch.c:9
void ScaleParticleParamFromOriginal(int parameter_id, float coef)
Scales the given parameter on all emitors relatively to their ORIGINAL value.
Definition Particle.c:668
Definition ParticleList.c:12
static const int BROOM_TORCH_T1
Definition ParticleList.c:77
static proto float Max(float x, float y)
Returns bigger of two given values.
EmitorParam
Definition EnVisual.c:114

Перекрестные ссылки ParticleList::BROOM_TORCH_T1, GetQuantity(), GetQuantityMax(), FlammableBase::m_FireParticle, FlammableBase::m_ParticleLocalPos, Math::Max(), ParticleManager() и Particle::ScaleParticleParamFromOriginal().


Объявления и описания членов класса находятся в файле: