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

Защищенные члены

void Boat_01 ()
 
override void EEInit ()
 
override void EOnPostSimulate (IEntity other, float timeSlice)
 
override int GetAnimInstance ()
 
override int GetSeatAnimationType (int posIdx)
 
override bool CanReleaseAttachment (EntityAI attachment)
 
override bool CanDisplayAttachmentCategory (string category_name)
 
override bool CanDisplayCargo ()
 
override bool CanReachSeatFromSeat (int currentSeat, int nextSeat)
 
override void OnDamageDestroyed (int oldLevel)
 
override void OnDebugSpawn ()
 

Защищенные данные

ref UniversalTemperatureSource m_UTSource
 
ref UniversalTemperatureSourceSettings m_UTSSettings
 
ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
 

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

- Закрытые члены унаследованные от BoatScript
void BoatScript ()
 
void ~BoatScript ()
 
override void EEDelete (EntityAI parent)
 
void InitializeActions ()
 
override void GetActions (typename action_input_type, out array< ActionBase_Basic > actions)
 
override bool DisableVicinityIcon ()
 
override string GetVehicleType ()
 
override bool IsInventoryVisible ()
 
override float GetTransportCameraDistance ()
 
override vector GetTransportCameraOffset ()
 
override int GetAnimInstance ()
 
override int Get3rdPersonCameraType ()
 
override bool CrewCanGetThrough (int posIdx)
 
override bool CanReachSeatFromSeat (int currentSeat, int nextSeat)
 
override bool CanReachSeatFromDoors (string pSeatSelection, vector pFromPos, float pDistance=1.0)
 
override bool CanReachDoorsFromSeat (string pDoorsSelection, int pCurrentSeat)
 
override bool IsAreaAtDoorFree (int currentSeat, float maxAllowedObjHeight, inout vector extents, out vector transform[4])
 
override bool OnBeforeEngineStart ()
 
override void OnEngineStart ()
 
override void OnEngineStop ()
 
override void EEOnCECreate ()
 
override void EOnPostSimulate (IEntity other, float timeSlice)
 
override void EOnSimulate (IEntity other, float timeSlice)
 
override void EOnFrame (IEntity other, float timeSlice)
 
override void EOnContact (IEntity other, Contact extra)
 
override void EEHitBy (TotalDamageResult damageResult, int damageType, EntityAI source, int component, string dmgZone, string ammo, vector modelPos, float speedCoef)
 
override void OnVariablesSynchronized ()
 
override float OnSound (BoatSoundCtrl ctrl, float oldValue)
 
override void HandleByCrewMemberState (ECrewMemberState state)
 
bool CheckOperationalState ()
 
void OnVehicleJumpOutServer (GetOutTransportActionData data)
 
void HandleEngineSound (EBoatEngineSoundState state)
 
void PlaySound (string soundset, inout EffectSound sound)
 
void HandleBoatSplashSound ()
 
void SyncSoundImpactLight ()
 
void SyncSoundImpactHeavy ()
 
void SyncSoundPushBoat (bool play)
 
void FadeEngineSound (bool fadeIn)
 
void CheckContactCache ()
 
void SetActions ()
 
void AddAction (typename actionName)
 
void RemoveAction (typename actionName)
 
void UpdateParticles ()
 
void StopParticleUpdate ()
 
void ClearWaterEffects ()
 
void CleanupEffects ()
 
override void GetDebugActions (out TSelectableActionInfoArrayEx outputList)
 
override bool OnAction (int action_id, Man player, ParamsReadContext ctx)
 
override event GetOwnerStateType ()
 
override event GetMoveType ()
 
- Закрытые данные унаследованные от BoatScript
const float SOUND_ENGINE_FADE = 0.2
 
const float SPLASH_THRESHOLD_CONDITION = 0.08
 
const float SPLASH_THRESHOLD = 0.18
 
vector m_VelocityPrevTick
 
float m_MomentumPrevTick
 
ref VehicleContactData m_ContactData
 
bool m_UpdateParticles
 
ref EffectBoatWaterBase m_WaterEffects [4]
 
bool m_SplashIncoming
 
bool m_PlaySoundEngineStopNoFuel
 
bool m_PlaySoundImpactLight
 
bool m_PlaySoundImpactHeavy
 
bool m_PlaySoundPushBoat
 
bool m_IsEngineSoundFading
 
bool m_EngineFadeDirection
 
float m_EngineFadeTime
 
string m_SoundImpactLight
 
string m_SoundImpactHeavy
 
string m_SoundPushBoat
 
string m_SoundWaterSplash
 
ref EffectSound m_SoundImpactLightEffect
 
ref EffectSound m_SoundImpactHeavyEffect
 
ref EffectSound m_SoundPushBoatEffect
 
ref EffectSound m_SoundWaterSplashEffect
 

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

Методы

◆ Boat_01()

void Boat_01 ( )
inlineprotected
8 {
9 //m_dmgContactCoef = 0.0790;
10
11 //m_EngineStartOK = "Boat_01_engine_start_SoundSet";
12 //m_EngineStartBattery = "";
13 //m_EngineStartPlug = "Boat_01_engine_failed_start_sparkplugs_SoundSet";
14 //m_EngineStartFuel = "Boat_01_engine_failed_start_fuel_SoundSet";
15 //m_EngineStopFuel = "Boat_01_engine_stop_fuel_SoundSet";
16
17 //SetEnginePos("0 0.7 -1.7");
18 }

◆ CanDisplayAttachmentCategory()

override bool CanDisplayAttachmentCategory ( string category_name)
inlineprotected
111 {
112 if ( !super.CanDisplayAttachmentCategory(category_name))
113 {
114 return false;
115 }
116
117 return true;
118 }
Definition EntityAI.c:95

◆ CanDisplayCargo()

override bool CanDisplayCargo ( )
inlineprotected
121 {
122 if ( !super.CanDisplayCargo() )
123 return false;
124
125 return true;
126 }

◆ CanReachSeatFromSeat()

override bool CanReachSeatFromSeat ( int currentSeat,
int nextSeat )
inlineprotected
134 {
135 return true;
136 }

◆ CanReleaseAttachment()

override bool CanReleaseAttachment ( EntityAI attachment)
inlineprotected
98 {
99 if (!super.CanReleaseAttachment(attachment))
100 return false;
101
102 string attType = attachment.GetType();
103
104 if (EngineIsOn() && attType == "SparkPlug")
105 return false;
106
107 return true;
108 }

◆ EEInit()

override void EEInit ( )
inlineprotected
21 {
22 super.EEInit();
23
24 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
25 {
27 m_UTSSettings.m_ManualUpdate = true;
28 m_UTSSettings.m_TemperatureMin = 0;
29 m_UTSSettings.m_TemperatureMax = 30;
31 m_UTSSettings.m_TemperatureCap = 0;
32 m_UTSSettings.m_RangeFull = 0.5;
33 m_UTSSettings.m_RangeMax = 2;
34
37 }
38
39 SetAnimationPhase("ShowDamage",0);
40 SetAnimationPhase("HideDamage",1);
41 }
UniversalTemperatureSourceLambdaBaseImpl UniversalTemperatureSourceLambdaBase UniversalTemperatureSourceLambdaEngine()
Definition UniversalTemperatureSourceLambdaBaseImpl.c:175
ref UniversalTemperatureSourceSettings m_UTSSettings
Definition Boat_01.c:4
ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
Definition Boat_01.c:5
ref UniversalTemperatureSource m_UTSource
Definition Boat_01.c:3
Definition constants.c:638
original Timer deletes m_params which is unwanted
Definition UniversalTemperatureSource.c:28
Definition UniversalTemperatureSource.c:2
proto native CGame GetGame()
static const float ITEM_TEMPERATURE_NEUTRAL_ZONE_MIDDLE
Definition constants.c:777

Перекрестные ссылки GetGame(), GameConstants::ITEM_TEMPERATURE_NEUTRAL_ZONE_MIDDLE, m_UTSLEngine, m_UTSource, m_UTSSettings и UniversalTemperatureSourceLambdaEngine().

◆ EOnPostSimulate()

override void EOnPostSimulate ( IEntity other,
float timeSlice )
inlineprotected
64 {
65 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
66 {
67 if (m_UTSource.IsActive())
68 {
70 }
71 }
72 }

Перекрестные ссылки GetGame(), m_UTSLEngine, m_UTSource и m_UTSSettings.

◆ GetAnimInstance()

override int GetAnimInstance ( )
inlineprotected
75 {
76 return VehicleAnimInstances.ZODIAC;
77 }
VehicleAnimInstances
Definition VehicleAnimInstances.c:2

◆ GetSeatAnimationType()

override int GetSeatAnimationType ( int posIdx)
inlineprotected
80 {
81 switch (posIdx)
82 {
83 case 0:
84 return DayZPlayerConstants.VEHICLESEAT_DRIVER;
85 case 1:
86 return DayZPlayerConstants.VEHICLESEAT_CODRIVER;
87 case 2:
88 return DayZPlayerConstants.VEHICLESEAT_PASSENGER_L;
89 case 3:
90 return DayZPlayerConstants.VEHICLESEAT_PASSENGER_R;
91 }
92
93 return 0;
94 }
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

◆ OnDamageDestroyed()

override void OnDamageDestroyed ( int oldLevel)
inlineprotected
139 {
140 SetAnimationPhase("HideAntiwater",1);
141 }

◆ OnDebugSpawn()

override void OnDebugSpawn ( )
inlineprotected
144 {
145 float amount = GetFluidCapacity(BoatFluid.FUEL);
146 Fill(BoatFluid.FUEL, amount);
147
148 //-----ATTACHMENTS
149 GetInventory().CreateInInventory("Sparkplug");
150
151 }
BoatFluid
Type of vehicle's fluid. (native, do not change or extend)
Definition Boat.c:14

Поля

◆ m_UTSLEngine

Используется в EEInit() и EOnPostSimulate().

◆ m_UTSource

ref UniversalTemperatureSource m_UTSource
protected

Используется в EEInit() и EOnPostSimulate().

◆ m_UTSSettings

ref UniversalTemperatureSourceSettings m_UTSSettings
protected

Используется в EEInit() и EOnPostSimulate().


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