5 m_VehicleContactDamageCoef = 0.035;
6 m_CrewContactDamageCoef = 0.012;
63 if (directionIndex == 0)
84 MotorbikePart part = MotorbikePart.Cast(item);
87 float addOrRemove = 1;
93 case "Motorbike_02_ShieldFront":
94 case "Motorbike_02_ShieldLeft":
95 case "Motorbike_02_ShieldRight":
101 #ifdef DIAG_DEVELOPER
103 ErrorEx(
"m_HeatComfortOverride value is higher than GameConstants.ENVIRO_HEATCOMFORT_MOTORBIKE_TARGET_MAX, check config");
113 PlaySoundEx(
"Motorbike_02_hit_character_SoundSet", m_CrashSoundLight, m_PlayCrashSoundLight);
120 PlaySoundEx(
"Motorbike_02_hit_heavy_SoundSet", m_CrashSoundHeavy, m_PlayCrashSoundHeavy);
133 GetInventory().CreateInInventory(
"Motorbike_02_Wheel_1");
134 GetInventory().CreateInInventory(
"Motorbike_02_Wheel_2");
136 GetInventory().CreateInInventory(
"Motorbike_02_ShieldFront_Red");
137 GetInventory().CreateInInventory(
"Motorbike_02_ShieldLeft_Red");
138 GetInventory().CreateInInventory(
"Motorbike_02_ShieldRight_Red");
PlayerSpawnPreset slotName
MotorbikeFluid
Type of vehicle's fluid. (native, do not change or extend)
proto native void Fill(MotorbikeFluid fluid, float amount)
Adds to the specified fluid the specified amount.
proto native void SetEnginePos(vector pos)
Override the position of engine (model space)
proto native float GetFluidCapacity(MotorbikeFluid fluid)
void SpawnUniversalParts()
string m_EngineStartBattery
string m_EngineStarting
Sounds.
ref VehicleHornComponent m_HornComponent
float m_HeatComfortOverride
ref VehicleLightsComponent m_LightsComponent
Motorbike_02LightProfileFront VehicleLightProfileFront Motorbike_02LightProfileRear()
void Motorbike_02LightProfileFront()
void VehicleLightData(VehicleLightProfileBase profile)
override float GetTransportCameraDistance()
override void OnDebugSpawn()
override bool NeedElectricitySourceDevice()
override int GetSeatAnimationTypeDirectional(int posIdx, int directionIndex)
override bool IsVitalGlowPlug()
override vector GetTransportCameraOffset()
override int GetAnimInstance()
void PlayCrashLightSound()
void PlayCrashHeavySound()
override bool HasDirectionalInOutAction()
override float GetWeightCoef()
override bool HasGangedTailAndBrakeLights()
void HandleHeatComfortOverrides(string slotName, notnull EntityAI item, bool detach=false)
void Motorbike_02_ColorBase()
const float ENVIRO_HEATCOMFORT_MOTORBIKE_TARGET_MAX
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.