5 m_VehicleContactDamageCoef = 0.03;
6 m_CrewContactDamageCoef = 0.018;
62 if (directionIndex == 0)
79 return super.GetAnimSourceFromSelection(selection);
94 if (!super.CanGetIn())
97 return GetAnimationPhase(
"SeatDriver") == 0.0;
109 super.OnAnimationPhaseStarted(animSource, phase);
119 sound.
SetSoundSet(
"Motorbike_01_Seat_FlipUp_SoundSet");
123 sound.
SetSoundSet(
"Motorbike_01_Seat_FlipDown_SoundSet");
143 PlaySoundEx(
"Motorbike_01_hit_character_SoundSet", m_CrashSoundLight, m_PlayCrashSoundLight);
150 PlaySoundEx(
"Motorbike_01_hit_heavy_SoundSet", m_CrashSoundHeavy, m_PlayCrashSoundHeavy);
163 GetInventory().CreateInInventory(
"Motorbike_01_Wheel_1");
164 GetInventory().CreateInInventory(
"Motorbike_01_Wheel_2");
void AddAction(typename actionName)
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
EffectSound CreateSoundForAnimationSource(string animSource)
ref VehicleLightsComponent m_LightsComponent
Motorbike_01LightProfileFront VehicleLightProfileFront Motorbike_01LightProfileRear()
void Motorbike_01LightProfileFront()
void VehicleLightData(VehicleLightProfileBase profile)
void SetSoundSet(string snd)
Set soundset for the sound.
void SetSoundFadeIn(float fade_in)
Set the sound fade in duration.
void SetSoundFadeOut(float fade_out)
Set the sound fade out duration.
bool SoundPlay()
Plays sound.
Wrapper class for managing sound through SEffectManager.
override void OnDebugSpawn()
override vector GetTransportCameraOffset()
override string GetAnimSourceFromSelection(string selection)
override float GetWeightCoef()
override int GetSeatAnimationTypeDirectional(int posIdx, int directionIndex)
override bool HasGangedTailAndBrakeLights()
override void SetActions()
override void OnAnimationPhaseStarted(string animSource, float phase)
void PlayCrashHeavySound()
override int GetAnimInstance()
override float GetTransportCameraDistance()
void Motorbike_01_ColorBase()
override bool IsVitalGlowPlug()
override bool NeedElectricitySourceDevice()
void PlayCrashLightSound()
override bool HasDirectionalInOutAction()
static int EffectRegister(Effect effect)
Registers Effect in SEffectManager.
Manager class for managing Effect (EffectParticle, EffectSound)