DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ MotorbikeScript()

void MotorbikeScript ( )
private

См. определение в файле MotorbikeScript.c строка 105

106 {
107 #ifdef DIAG_DEVELOPER
108 _motorbike = this;
109 #endif
110
111 SetEventMask(EntityEvent.POSTSIMULATE|EntityEvent.POSTFRAME);
112
114 m_LightsComponent.RegisterSelection("FrontOn", {new VehicleLightSelectionData(0, "frontReflectorMatOn")});
115 m_LightsComponent.RegisterSelection("FrontOff", {new VehicleLightSelectionData(0, "frontReflectorMatOff")});
116 m_LightsComponent.RegisterSelection("BrakeOn", {new VehicleLightSelectionData(1, "brakeReflectorMatOn")});
117 m_LightsComponent.RegisterSelection("BrakeOff", {new VehicleLightSelectionData(1, "brakeReflectorMatOff")});
118 m_LightsComponent.RegisterSelection("TailOn", {new VehicleLightSelectionData(2, "TailReflectorMatOn")});
119 m_LightsComponent.RegisterSelection("TailOff", {new VehicleLightSelectionData(2, "TailReflectorMatOff")});
120
121 m_LightsComponent.RegisterSelection("DashboardOn", {new VehicleLightSelectionData(3, "dashboardMatOn")});
122 m_LightsComponent.RegisterSelection("DashboardOff", {new VehicleLightSelectionData(3, "dashboardMatOff")});
123
124 m_LightsComponent.RegisterLight("Front", new VehicleLightData(new VehicleLightProfileFront()));
125 m_LightsComponent.RegisterLight("Rear", new VehicleLightData(new VehicleLightProfileRear()));
126
129
130 m_EngineHealth = 1;
132 m_BatteryHealth = -1;
133 m_PlugHealth = -1;
134
136
138
140
141 SetKickstand(1);
142
143 RegisterNetSyncVariableBool("m_BrakesArePressed");
144 RegisterNetSyncVariableBoolSignal("m_PlayCrashSoundLight");
145 RegisterNetSyncVariableBoolSignal("m_PlayCrashSoundHeavy");
146
147 RegisterNetSyncVariableInt("m_HornComponent.m_Mode", VehicleHornMode.OFF, VehicleHornMode.COUNT);
148 }
proto native void SetKickstand(float value)
Sets the future kickstand value.
void InitializeParticles()
Определения MotorbikeScript.c:174
float m_FuelTankHealth
Определения MotorbikeScript.c:65
float m_BatteryHealth
Определения MotorbikeScript.c:66
float m_EngineHealth
Определения MotorbikeScript.c:64
MotorbikeEngineSoundState m_EngineSoundState
Определения MotorbikeScript.c:84
MotorbikeEngineSoundState
Определения MotorbikeScript.c:43
ref VehicleHornComponent m_HornComponent
Определения MotorbikeScript.c:75
float m_HeatComfortOverride
Определения MotorbikeScript.c:82
ref VehicleLightsComponent m_LightsComponent
Определения MotorbikeScript.c:74
float m_PlugHealth
Определения MotorbikeScript.c:67
void VehicleHornComponent(notnull EntityAI parent)
Определения VehicleHornComponent.c:24
void VehicleLightProfileRear()
Определения VehicleLightProfileBase.c:77
class VehicleLightProfileBase VehicleLightProfileFront()
Определения VehicleLightProfileBase.c:34
void VehicleLightData(VehicleLightProfileBase profile)
Определения VehicleLightsComponent.c:21
const int OFF
Определения VehicleHornComponent.c:3
const int COUNT
Определения VehicleHornComponent.c:7
EntityEvent
Entity events for event-mask, or throwing event from code.
Определения EnEntity.c:45

Перекрестные ссылки VehicleHornMode::COUNT, InitializeParticles(), m_BatteryHealth, m_EngineHealth, m_EngineSoundState, m_FuelTankHealth, m_HeatComfortOverride, m_HornComponent, m_LightsComponent, m_PlugHealth, VehicleHornMode::OFF, SetKickstand(), VehicleHornComponent(), VehicleLightData(), VehicleLightProfileFront() и VehicleLightProfileRear().

Используется в ActionAnimateMotorbikeSeat::ActionCondition(), ActionCondition(), ActionRepairMotorbikeEngine::ActionCondition(), ActionStopEngineMotorbike::ActionCondition(), CanDetachAttachment(), ActionStopEngineMotorbike::OnExecute(), OnExecute(), OnFinishProgress(), Motorbike_02_ShieldLeft_ColorBase::OnWasAttached(), Motorbike_02_ShieldRight_ColorBase::OnWasAttached(), Motorbike_02_ShieldLeft_ColorBase::OnWasDetached(), Motorbike_02_ShieldRight_ColorBase::OnWasDetached() и MotorbikeHud::ShowVehicleInfo().