PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
BoatScript Class Reference

Private Member Functions

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 dt)
 
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 ()
 
protected override bool DetectFlipped (VehicleFlippedContext ctx)
 
override float OnSound (BoatSoundCtrl ctrl, float oldValue)
 
override void HandleByCrewMemberState (ECrewMemberState state)
 
protected void DecayHealthTick ()
 
protected bool IsInFlagRange ()
 
bool CheckOperationalState ()
 
void OnVehicleJumpOutServer (GetOutTransportActionData data)
 
protected void HandleEngineSound (EBoatEngineSoundState state)
 
protected void PlaySound (string soundset, inout EffectSound sound, vector position=vector.Zero)
 
protected void HandleBoatSplashSound ()
 
protected void SyncSoundImpactLight ()
 
protected void SyncSoundImpactHeavy ()
 
void SyncSoundPushBoat (bool play)
 
protected void FadeEngineSound (bool fadeIn)
 
protected void FlipVehicle ()
 
protected void CheckContactCache ()
 
protected void SetActions ()
 
void AddAction (typename actionName)
 
void RemoveAction (typename actionName)
 
protected void UpdateParticles (float timeSlice=0)
 
protected void StopParticleUpdate ()
 
protected void ClearWaterEffects ()
 
protected void CleanupEffects ()
 
override void GetDebugActions (out TSelectableActionInfoArrayEx outputList)
 
override bool OnAction (int action_id, Man player, ParamsReadContext ctx)
 
protected override event GetOwnerStateType ()
 
protected override event GetMoveType ()
 

Private Attributes

protected const int DECAY_PLAYER_RANGE = 300
 
protected const int DECAY_FLAG_RANGE = 100
 
protected const float DECAY_TICK_FREQUENCY = 10
 
protected const float DECAY_DAMAGE = 0.017
 
protected const float DECAY_FLIPPED_MULT = 4
 
protected const float SOUND_ENGINE_FADE = 0.2
 
protected const float SPLASH_THRESHOLD_CONDITION = 0.08
 
protected const float SPLASH_THRESHOLD = 0.18
 
private TInputActionMap m_InputActionMap
 
private bool m_ActionsInitialized
 
protected vector m_VelocityPrevTick
 
protected float m_MomentumPrevTick
 
protected ref VehicleContactData m_ContactData
 
protected ref Timer m_DecayTimer
 
protected bool m_UpdateParticles
 
protected ref EffectBoatWaterBase m_WaterEffects [4]
 
protected bool m_SplashIncoming
 
protected bool m_PlaySoundEngineStopNoFuel
 
protected bool m_PlaySoundImpactLight
 
protected bool m_PlaySoundImpactHeavy
 
protected bool m_PlaySoundPushBoat
 
protected bool m_IsEngineSoundFading
 
protected bool m_EngineFadeDirection
 
protected float m_EngineFadeTime
 
protected string m_SoundImpactLight
 
protected string m_SoundImpactHeavy
 
protected string m_SoundPushBoat
 
protected string m_SoundWaterSplash
 
protected string m_SoundEngineStart
 
protected string m_SoundEngineStop
 
protected string m_SoundEngineStartNoFuel
 
protected string m_SoundEngineStopNoFuel
 
protected ref EffectSound m_SoundPushBoatEffect
 
protected ref EffectSound m_SoundWaterSplashEffect
 
protected ref EffectSound m_SoundEngineEffect
 
protected ref EffectSound m_SoundEngineEffectDeletion
 

Static Private Attributes

static private ref map< typename, ref TInputActionMapm_BoatTypeActionsMap = new map<typename, ref TInputActionMap>()
 

Constructor & Destructor Documentation

◆ BoatScript()

◆ ~BoatScript()

void ~BoatScript ( )
inlineprivate

Member Function Documentation

◆ AddAction()

◆ CanReachDoorsFromSeat()

override bool CanReachDoorsFromSeat ( string  pDoorsSelection,
int  pCurrentSeat 
)
inlineprivate

◆ CanReachSeatFromDoors()

override bool CanReachSeatFromDoors ( string  pSeatSelection,
vector  pFromPos,
float  pDistance = 1.0 
)
inlineprivate

◆ CanReachSeatFromSeat()

override bool CanReachSeatFromSeat ( int  currentSeat,
int  nextSeat 
)
inlineprivate

◆ CheckContactCache()

◆ CheckOperationalState()

bool CheckOperationalState ( )
inlineprivate

References GameConstants::STATE_RUINED.

Referenced by EEHitBy(), and EOnContact().

◆ CleanupEffects()

◆ ClearWaterEffects()

◆ CrewCanGetThrough()

override bool CrewCanGetThrough ( int  posIdx)
inlineprivate

◆ DecayHealthTick()

◆ DetectFlipped()

protected override bool DetectFlipped ( VehicleFlippedContext  ctx)
inlineprivate

◆ DisableVicinityIcon()

override bool DisableVicinityIcon ( )
inlineprivate

◆ EEDelete()

override void EEDelete ( EntityAI  parent)
inlineprivate

References CleanupEffects(), and GetGame().

◆ EEHitBy()

override void EEHitBy ( TotalDamageResult  damageResult,
int  damageType,
EntityAI  source,
int  component,
string  dmgZone,
string  ammo,
vector  modelPos,
float  speedCoef 
)
inlineprivate

◆ EEOnCECreate()

override void EEOnCECreate ( )
inlineprivate

References Math::RandomFloat().

◆ EOnContact()

◆ EOnFrame()

override void EOnFrame ( IEntity  other,
float  timeSlice 
)
inlineprivate

◆ EOnPostSimulate()

◆ EOnSimulate()

override void EOnSimulate ( IEntity  other,
float  dt 
)
inlineprivate

◆ FadeEngineSound()

protected void FadeEngineSound ( bool  fadeIn)
inlineprivate

◆ FlipVehicle()

protected void FlipVehicle ( )
inlineprivate

References GetOrientation(), GetPosition, and SetPosition().

Referenced by OnAction().

◆ Get3rdPersonCameraType()

override int Get3rdPersonCameraType ( )
inlineprivate

◆ GetActions()

override void GetActions ( typename action_input_type  ,
out array< ActionBase_Basic actions 
)
inlineprivate

◆ GetAnimInstance()

override int GetAnimInstance ( )
inlineprivate

◆ GetDebugActions()

override void GetDebugActions ( out TSelectableActionInfoArrayEx  outputList)
inlineprivate

References SAT_DEBUG_ACTION.

◆ GetMoveType()

protected override event GetMoveType ( )
inlineprivate

◆ GetOwnerStateType()

protected override event GetOwnerStateType ( )
inlineprivate

◆ GetTransportCameraDistance()

override float GetTransportCameraDistance ( )
inlineprivate

◆ GetTransportCameraOffset()

override vector GetTransportCameraOffset ( )
inlineprivate

◆ GetVehicleType()

override string GetVehicleType ( )
inlineprivate

◆ HandleBoatSplashSound()

◆ HandleByCrewMemberState()

override void HandleByCrewMemberState ( ECrewMemberState  state)
inlineprivate

Referenced by EOnPostSimulate().

◆ HandleEngineSound()

◆ InitializeActions()

void InitializeActions ( )
inlineprivate

◆ IsAreaAtDoorFree()

override bool IsAreaAtDoorFree ( int  currentSeat,
float  maxAllowedObjHeight,
inout vector  extents,
out vector  transform[4] 
)
inlineprivate

◆ IsInFlagRange()

protected bool IsInFlagRange ( )
inlineprivate

◆ IsInventoryVisible()

override bool IsInventoryVisible ( )
inlineprivate

References GetGame(), and GetPlayer().

◆ OnAction()

override bool OnAction ( int  action_id,
Man  player,
ParamsReadContext  ctx 
)
inlineprivate

References FlipVehicle(), and GetGame().

◆ OnBeforeEngineStart()

override bool OnBeforeEngineStart ( )
inlineprivate

References HandleEngineSound().

◆ OnEngineStart()

override void OnEngineStart ( )
inlineprivate

◆ OnEngineStop()

◆ OnSound()

override float OnSound ( BoatSoundCtrl  ctrl,
float  oldValue 
)
inlineprivate

◆ OnVariablesSynchronized()

◆ OnVehicleJumpOutServer()

◆ PlaySound()

protected void PlaySound ( string  soundset,
inout EffectSound  sound,
vector  position = vector.Zero 
)
inlineprivate

◆ RemoveAction()

void RemoveAction ( typename actionName  )
inlineprivate

◆ SetActions()

protected void SetActions ( )
inlineprivate

References AddAction().

Referenced by InitializeActions().

◆ StopParticleUpdate()

protected void StopParticleUpdate ( )
inlineprivate

◆ SyncSoundImpactHeavy()

protected void SyncSoundImpactHeavy ( )
inlineprivate

References m_PlaySoundImpactHeavy.

Referenced by CheckContactCache().

◆ SyncSoundImpactLight()

protected void SyncSoundImpactLight ( )
inlineprivate

References m_PlaySoundImpactLight.

Referenced by CheckContactCache().

◆ SyncSoundPushBoat()

void SyncSoundPushBoat ( bool  play)
inlineprivate

◆ UpdateParticles()

protected void UpdateParticles ( float  timeSlice = 0)
inlineprivate

References m_WaterEffects, and EffectBoatWaterBase::Update().

Referenced by EOnFrame().

Field Documentation

◆ DECAY_DAMAGE

protected const float DECAY_DAMAGE = 0.017
private

Referenced by DecayHealthTick().

◆ DECAY_FLAG_RANGE

protected const int DECAY_FLAG_RANGE = 100
private

Referenced by IsInFlagRange().

◆ DECAY_FLIPPED_MULT

protected const float DECAY_FLIPPED_MULT = 4
private

Referenced by DecayHealthTick().

◆ DECAY_PLAYER_RANGE

protected const int DECAY_PLAYER_RANGE = 300
private

Referenced by DecayHealthTick().

◆ DECAY_TICK_FREQUENCY

protected const float DECAY_TICK_FREQUENCY = 10
private

Referenced by BoatScript().

◆ m_ActionsInitialized

private bool m_ActionsInitialized
private

Referenced by AddAction(), and GetActions().

◆ m_BoatTypeActionsMap

private ref map<typename, ref TInputActionMap> m_BoatTypeActionsMap = new map<typename, ref TInputActionMap>()
staticprivate

Referenced by InitializeActions().

◆ m_ContactData

protected ref VehicleContactData m_ContactData
private

Referenced by CheckContactCache(), and EOnContact().

◆ m_DecayTimer

protected ref Timer m_DecayTimer
private

Referenced by BoatScript(), and ~BoatScript().

◆ m_EngineFadeDirection

protected bool m_EngineFadeDirection
private

Referenced by FadeEngineSound(), and OnSound().

◆ m_EngineFadeTime

protected float m_EngineFadeTime
private

Referenced by EOnFrame(), FadeEngineSound(), and OnSound().

◆ m_InputActionMap

private TInputActionMap m_InputActionMap
private

◆ m_IsEngineSoundFading

protected bool m_IsEngineSoundFading
private

Referenced by EOnFrame(), FadeEngineSound(), and OnSound().

◆ m_MomentumPrevTick

protected float m_MomentumPrevTick
private

Referenced by EOnContact(), and EOnPostSimulate().

◆ m_PlaySoundEngineStopNoFuel

protected bool m_PlaySoundEngineStopNoFuel
private

◆ m_PlaySoundImpactHeavy

protected bool m_PlaySoundImpactHeavy
private

◆ m_PlaySoundImpactLight

protected bool m_PlaySoundImpactLight
private

◆ m_PlaySoundPushBoat

protected bool m_PlaySoundPushBoat
private

◆ m_SoundEngineEffect

protected ref EffectSound m_SoundEngineEffect
private

Referenced by HandleEngineSound().

◆ m_SoundEngineEffectDeletion

protected ref EffectSound m_SoundEngineEffectDeletion
private

Referenced by HandleEngineSound().

◆ m_SoundEngineStart

protected string m_SoundEngineStart
private

Referenced by BoatScript(), and HandleEngineSound().

◆ m_SoundEngineStartNoFuel

protected string m_SoundEngineStartNoFuel
private

Referenced by BoatScript(), and HandleEngineSound().

◆ m_SoundEngineStop

protected string m_SoundEngineStop
private

Referenced by BoatScript(), and HandleEngineSound().

◆ m_SoundEngineStopNoFuel

protected string m_SoundEngineStopNoFuel
private

Referenced by BoatScript(), and HandleEngineSound().

◆ m_SoundImpactHeavy

protected string m_SoundImpactHeavy
private

◆ m_SoundImpactLight

protected string m_SoundImpactLight
private

◆ m_SoundPushBoat

protected string m_SoundPushBoat
private

◆ m_SoundPushBoatEffect

protected ref EffectSound m_SoundPushBoatEffect
private

◆ m_SoundWaterSplash

protected string m_SoundWaterSplash
private

◆ m_SoundWaterSplashEffect

protected ref EffectSound m_SoundWaterSplashEffect
private

◆ m_SplashIncoming

protected bool m_SplashIncoming
private

Referenced by HandleBoatSplashSound().

◆ m_UpdateParticles

protected bool m_UpdateParticles
private

◆ m_VelocityPrevTick

protected vector m_VelocityPrevTick
private

Referenced by EOnContact(), and EOnPostSimulate().

◆ m_WaterEffects

protected ref EffectBoatWaterBase m_WaterEffects[4]
private

◆ SOUND_ENGINE_FADE

protected const float SOUND_ENGINE_FADE = 0.2
private

Referenced by FadeEngineSound(), and OnSound().

◆ SPLASH_THRESHOLD

protected const float SPLASH_THRESHOLD = 0.18
private

Referenced by HandleBoatSplashSound().

◆ SPLASH_THRESHOLD_CONDITION

protected const float SPLASH_THRESHOLD_CONDITION = 0.08
private

Referenced by HandleBoatSplashSound().


The documentation for this class was generated from the following file: