![]() |
Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
|
Base script class for boats. More...
Protected Member Functions | |
| void | BoatScript () |
| void | ~BoatScript () |
| void | AddAction (typename actionName) |
| override bool | CanReachDoorsFromSeat (string pDoorsSelection, int pCurrentSeat) |
| override bool | CanReachSeatFromDoors (string pSeatSelection, vector pFromPos, float pDistance=1.0) |
| override bool | CanReachSeatFromSeat (int currentSeat, int nextSeat) |
| void | CheckContactCache () |
| int | CheckOperationalRequirements () |
| bool | CheckOperationalState () |
| void | CleanupEffects () |
| void | ClearWaterEffects () |
| override bool | CrewCanGetThrough (int posIdx) |
| void | DecayHealthTick () |
| override bool | DetectFlipped (VehicleFlippedContext ctx) |
| override bool | DisableVicinityIcon () |
| override void | EEDelete (EntityAI parent) |
| override void | EEHitBy (TotalDamageResult damageResult, int damageType, EntityAI source, int component, string dmgZone, string ammo, vector modelPos, float speedCoef) |
| override void | EEOnCECreate () |
| override void | EOnFrame (IEntity other, float timeSlice) |
| override void | EOnPostSimulate (IEntity other, float timeSlice) |
| override void | EOnSimulate (IEntity other, float dt) |
| void | FadeEngineSound (bool fadeIn) |
| void | FlipVehicle () |
| override int | Get3rdPersonCameraType () |
| override void | GetActions (typename action_input_type, out array< ActionBase_Basic > actions) |
| override int | GetAnimInstance () |
| override void | GetDebugActions (out TSelectableActionInfoArrayEx outputList) |
| override event | GetMoveType () |
| override event | GetOwnerStateType () |
| override float | GetTransportCameraDistance () |
| override vector | GetTransportCameraOffset () |
| override string | GetVehicleType () |
| void | HandleBoatSplashSound () |
| void | HandleEngineSound (EBoatEngineSoundState state) |
| void | InitializeActions () |
| override bool | IsAreaAtDoorFree (int currentSeat, float maxAllowedObjHeight, inout vector extents, out vector transform[4]) |
| bool | IsInFlagRange () |
| override bool | IsInventoryVisible () |
| override void | MarkCrewMemberDead (int crewMemberIndex) |
| override void | MarkCrewMemberUnconscious (int crewMemberIndex) |
| override bool | OnAction (int action_id, Man player, ParamsReadContext ctx) |
| override bool | OnBeforeEngineStart () |
| Gets called everytime the game wants to start the engine. | |
| override void | OnContact (string zoneName, vector localPos, IEntity other, Contact data) |
| WARNING: Can be called very frequently in one frame, use with caution. | |
| override void | OnDriverExit (Human player) |
| override void | OnEngineStart () |
| override void | OnEngineStop () |
| void | OnIgnition () |
| override void | OnInput (float dt) |
| override float | OnSound (BoatSoundCtrl ctrl, float oldValue) |
| override void | OnVariablesSynchronized () |
| void | OnVehicleJumpOutServer (GetOutTransportActionData data) |
| void | PlaySound (string soundset, inout EffectSound sound, vector position=vector.Zero) |
| void | RemoveAction (typename actionName) |
| void | SetActions () |
| void | StopParticleUpdate () |
| void | SyncSoundImpactHeavy () |
| void | SyncSoundImpactLight () |
| void | SyncSoundPushBoat (bool play) |
| void | UpdateParticles (float timeSlice=0) |
Private Attributes | |
| bool | m_ActionsInitialized |
| TInputActionMap | m_InputActionMap |
Static Private Attributes | |
| static ref map< typename, ref TInputActionMap > | m_BoatTypeActionsMap = new map<typename, ref TInputActionMap>() |
Base script class for boats.
Definition at line 41 of file boatscript.c.
|
inlineprotected |
Definition at line 90 of file boatscript.c.
References CALL_CATEGORY_SYSTEM, DECAY_TICK_FREQUENCY, EffectBoatWaterFront(), EffectBoatWaterSide(), g_Game, m_DecayTimer, m_PlaySoundImpactHeavy, m_PlaySoundImpactLight, m_SoundEngineStart, m_SoundEngineStartNoFuel, m_SoundEngineStop, m_SoundEngineStopNoFuel, m_SoundImpactHeavy, m_SoundImpactLight, m_SoundPushBoat, m_SoundWaterSplash, and m_WaterEffects.
|
inlineprotected |
Definition at line 143 of file boatscript.c.
References CleanupEffects(), and m_DecayTimer.
|
inlineprotected |
Definition at line 754 of file boatscript.c.
References Debug::ActionLog(), ActionManagerBase(), ActionBase::GetInputType(), LogManager::IsActionLogEnable(), Debug::LogError(), m_ActionsInitialized, and m_InputActionMap.
Referenced by SetActions().
Definition at line 232 of file boatscript.c.
|
inlineprotected |
Definition at line 227 of file boatscript.c.
Definition at line 222 of file boatscript.c.
|
inlineprotected |
Definition at line 732 of file boatscript.c.
References Math::AbsInt(), GameConstants::CARS_CONTACT_DMG_MIN, GameConstants::CARS_CONTACT_DMG_THRESHOLD, m_ContactData, SyncSoundImpactHeavy(), and SyncSoundImpactLight().
Referenced by EOnPostSimulate().
|
inlineprotected |
Definition at line 254 of file boatscript.c.
References GameConstants::STATE_RUINED.
Referenced by OnBeforeEngineStart(), and OnIgnition().
|
inlineprotected |
Definition at line 564 of file boatscript.c.
References GameConstants::STATE_RUINED.
Referenced by EEHitBy(), and OnContact().
|
inlineprotected |
Definition at line 833 of file boatscript.c.
References SEffectManager::DestroyEffect(), SEffectManager::EffectUnregisterEx(), IsRegistered(), m_SoundPushBoatEffect, m_SoundWaterSplashEffect, and m_WaterEffects.
Referenced by ~BoatScript(), and EEDelete().
|
inlineprotected |
Definition at line 814 of file boatscript.c.
References CALL_CATEGORY_SYSTEM, g_Game, GetParticle(), IsPlaying(), m_WaterEffects, and StopParticleUpdate().
Referenced by OnEngineStart(), and StopParticleUpdate().
Definition at line 217 of file boatscript.c.
|
inlineprotected |
Definition at line 526 of file boatscript.c.
References AvoidPlayer(), DECAY_DAMAGE, DECAY_FLIPPED_MULT, DECAY_PLAYER_RANGE, CfgGameplayHandler::GetBoatDecayMultiplier(), GetCEApi(), GetPosition(), and IsInFlagRange().
|
inlineprotected |
Definition at line 482 of file boatscript.c.
References GameConstants::VEHICLE_FLIP_ANGLE_TOLERANCE.
|
inlineprotected |
Definition at line 182 of file boatscript.c.
|
inlineprotected |
Definition at line 153 of file boatscript.c.
References CleanupEffects(), and g_Game.
|
inlineprotected |
Definition at line 441 of file boatscript.c.
References CheckOperationalState(), component, and IsProxy().
|
inlineprotected |
Definition at line 334 of file boatscript.c.
References Math::RandomFloat().
Definition at line 401 of file boatscript.c.
References g_Game, m_EngineFadeTime, m_IsEngineSoundFading, m_UpdateParticles, and UpdateParticles().
Definition at line 347 of file boatscript.c.
References CheckContactCache(), g_Game, GetVelocity(), HandleBoatSplashSound(), IsProxy(), m_MomentumPrevTick, m_PlaySoundEngineStopNoFuel, m_UpdateParticles, and m_VelocityPrevTick.
Definition at line 385 of file boatscript.c.
References dBodyGetWorldTransform(), g_Game, and IsProxy().
|
inlineprotected |
Definition at line 714 of file boatscript.c.
References m_EngineFadeDirection, m_EngineFadeTime, m_IsEngineSoundFading, and SOUND_ENGINE_FADE.
Referenced by OnEngineStart(), and OnEngineStop().
|
inlineprotected |
Definition at line 721 of file boatscript.c.
References GetOrientation(), GetPosition(), and SetPosition().
Referenced by OnAction().
|
inlineprotected |
Definition at line 212 of file boatscript.c.
References DayZPlayerCameras::DAYZCAMERA_3RD_VEHICLE.
|
inlineprotected |
Definition at line 171 of file boatscript.c.
References InitializeActions(), m_ActionsInitialized, and m_InputActionMap.
|
inlineprotected |
Definition at line 207 of file boatscript.c.
|
inlineprotected |
Definition at line 848 of file boatscript.c.
References SAT_DEBUG_ACTION.
|
inlineprotected |
Definition at line 880 of file boatscript.c.
|
inlineprotected |
Definition at line 875 of file boatscript.c.
|
inlineprotected |
Definition at line 197 of file boatscript.c.
|
inlineprotected |
Definition at line 202 of file boatscript.c.
|
inlineprotected |
Definition at line 187 of file boatscript.c.
|
inlineprotected |
Definition at line 662 of file boatscript.c.
References SEffectManager::CreateSound(), dBodyGetVelocityAt(), g_Game, GetPosition(), Math::InverseLerp(), m_SoundWaterSplash, m_SoundWaterSplashEffect, m_SplashIncoming, vector::Normalize(), SPLASH_THRESHOLD, and SPLASH_THRESHOLD_CONDITION.
Referenced by EOnPostSimulate().
|
inlineprotected |
Definition at line 598 of file boatscript.c.
References g_Game, m_SoundEngineEffect, m_SoundEngineEffectDeletion, m_SoundEngineStart, m_SoundEngineStartNoFuel, m_SoundEngineStop, m_SoundEngineStopNoFuel, and PlaySound().
Referenced by OnEngineStart(), OnEngineStop(), OnIgnition(), and OnVariablesSynchronized().
|
inlineprotected |
Definition at line 159 of file boatscript.c.
References m_BoatTypeActionsMap, m_InputActionMap, SetActions(), and Type.
Referenced by GetActions().
|
inlineprotected |
Definition at line 237 of file boatscript.c.
|
inlineprotected |
Definition at line 542 of file boatscript.c.
References DECAY_FLAG_RANGE, vector::Distance(), and g_Game.
Referenced by DecayHealthTick().
|
inlineprotected |
Definition at line 192 of file boatscript.c.
References g_Game.
|
inlineprotected |
Definition at line 515 of file boatscript.c.
|
inlineprotected |
Definition at line 504 of file boatscript.c.
|
inlineprotected |
Definition at line 855 of file boatscript.c.
References FlipVehicle(), and g_Game.
|
inlineprotected |
Gets called everytime the game wants to start the engine.
Definition at line 247 of file boatscript.c.
References CheckOperationalRequirements().
|
inlineprotected |
WARNING: Can be called very frequently in one frame, use with caution.
Definition at line 418 of file boatscript.c.
References CheckOperationalState(), vector::Dot(), g_Game, GetVelocity(), IsProxy(), m_ContactData, m_MomentumPrevTick, and m_VelocityPrevTick.
|
inlineprotected |
Definition at line 579 of file boatscript.c.
|
inlineprotected |
Definition at line 302 of file boatscript.c.
References ClearWaterEffects(), FadeEngineSound(), g_Game, and HandleEngineSound().
|
inlineprotected |
Definition at line 314 of file boatscript.c.
References CALL_CATEGORY_SYSTEM, dBodyGetWorldTransform(), FadeEngineSound(), g_Game, HandleEngineSound(), and StopParticleUpdate().
|
inlineprotected |
Definition at line 280 of file boatscript.c.
References CheckOperationalRequirements(), and HandleEngineSound().
Referenced by OnExecute().
|
inlineprotected |
Definition at line 342 of file boatscript.c.
|
inlineprotected |
Definition at line 489 of file boatscript.c.
References Math::InverseLerp(), m_EngineFadeDirection, m_EngineFadeTime, m_IsEngineSoundFading, and SOUND_ENGINE_FADE.
|
inlineprotected |
Definition at line 452 of file boatscript.c.
References GetPosition(), HandleEngineSound(), m_PlaySoundEngineStopNoFuel, m_PlaySoundImpactHeavy, m_PlaySoundImpactLight, m_PlaySoundPushBoat, m_SoundImpactHeavy, m_SoundImpactLight, m_SoundPushBoat, m_SoundPushBoatEffect, and PlaySound().
|
inlineprotected |
Definition at line 590 of file boatscript.c.
References Math::Clamp(), ActionGetOutTransport::HEALTH_HIGH_SPEED_VALUE, ActionGetOutTransport::HEALTH_LOW_SPEED_VALUE, Math::InverseLerp(), and GetOutTransportActionData::m_Speed.
Referenced by ActionGetOutTransport::ApplyJumpOutDmg().
|
inlineprotected |
Definition at line 639 of file boatscript.c.
References GetPosition(), SEffectManager::PlaySoundCachedParams(), EffectSound::SetAutodestroy(), and vector::Zero.
|
inlineprotected |
Definition at line 787 of file boatscript.c.
References g_Game, ActionBase::GetInputType(), and m_InputActionMap.
|
inlineprotected |
Definition at line 748 of file boatscript.c.
References AddAction().
Referenced by InitializeActions().
|
inlineprotected |
Definition at line 808 of file boatscript.c.
References ClearWaterEffects(), and m_UpdateParticles.
Referenced by ClearWaterEffects(), and OnEngineStop().
|
inlineprotected |
Definition at line 695 of file boatscript.c.
References m_PlaySoundImpactHeavy.
Referenced by CheckContactCache().
|
inlineprotected |
Definition at line 686 of file boatscript.c.
References m_PlaySoundImpactLight.
Referenced by CheckContactCache().
|
inlineprotected |
Definition at line 704 of file boatscript.c.
References m_PlaySoundPushBoat.
Referenced by ActionPushBoat::OnEndServer(), and ActionPushBoat::OnStartServer().
|
inlineprotected |
|
protected |
Definition at line 46 of file boatscript.c.
Referenced by DecayHealthTick().
|
protected |
Definition at line 44 of file boatscript.c.
Referenced by IsInFlagRange().
|
protected |
Definition at line 47 of file boatscript.c.
Referenced by DecayHealthTick().
|
protected |
Definition at line 43 of file boatscript.c.
Referenced by DecayHealthTick().
|
protected |
Definition at line 45 of file boatscript.c.
Referenced by BoatScript().
|
private |
Definition at line 55 of file boatscript.c.
Referenced by AddAction(), and GetActions().
|
staticprivate |
Definition at line 53 of file boatscript.c.
Referenced by InitializeActions().
|
protected |
Definition at line 59 of file boatscript.c.
Referenced by CheckContactCache(), and OnContact().
|
protected |
Definition at line 60 of file boatscript.c.
Referenced by BoatScript(), and ~BoatScript().
|
protected |
Definition at line 73 of file boatscript.c.
Referenced by FadeEngineSound(), and OnSound().
|
protected |
Definition at line 74 of file boatscript.c.
Referenced by EOnFrame(), FadeEngineSound(), and OnSound().
|
private |
Definition at line 54 of file boatscript.c.
Referenced by AddAction(), GetActions(), InitializeActions(), and RemoveAction().
|
protected |
Definition at line 72 of file boatscript.c.
Referenced by EOnFrame(), FadeEngineSound(), and OnSound().
|
protected |
Definition at line 58 of file boatscript.c.
Referenced by EOnPostSimulate(), and OnContact().
|
protected |
Definition at line 68 of file boatscript.c.
Referenced by EOnPostSimulate(), and OnVariablesSynchronized().
|
protected |
Definition at line 70 of file boatscript.c.
Referenced by BoatScript(), OnVariablesSynchronized(), and SyncSoundImpactHeavy().
|
protected |
Definition at line 69 of file boatscript.c.
Referenced by BoatScript(), OnVariablesSynchronized(), and SyncSoundImpactLight().
|
protected |
Definition at line 71 of file boatscript.c.
Referenced by OnVariablesSynchronized(), and SyncSoundPushBoat().
|
protected |
Definition at line 87 of file boatscript.c.
Referenced by HandleEngineSound().
|
protected |
Definition at line 88 of file boatscript.c.
Referenced by HandleEngineSound().
|
protected |
Definition at line 79 of file boatscript.c.
Referenced by BoatScript(), and HandleEngineSound().
|
protected |
Definition at line 81 of file boatscript.c.
Referenced by BoatScript(), and HandleEngineSound().
|
protected |
Definition at line 80 of file boatscript.c.
Referenced by BoatScript(), and HandleEngineSound().
|
protected |
Definition at line 82 of file boatscript.c.
Referenced by BoatScript(), and HandleEngineSound().
|
protected |
Definition at line 76 of file boatscript.c.
Referenced by BoatScript(), and OnVariablesSynchronized().
|
protected |
Definition at line 75 of file boatscript.c.
Referenced by BoatScript(), and OnVariablesSynchronized().
|
protected |
Definition at line 77 of file boatscript.c.
Referenced by BoatScript(), and OnVariablesSynchronized().
|
protected |
Definition at line 85 of file boatscript.c.
Referenced by CleanupEffects(), and OnVariablesSynchronized().
|
protected |
Definition at line 78 of file boatscript.c.
Referenced by BoatScript(), and HandleBoatSplashSound().
|
protected |
Definition at line 86 of file boatscript.c.
Referenced by CleanupEffects(), and HandleBoatSplashSound().
|
protected |
Definition at line 67 of file boatscript.c.
Referenced by HandleBoatSplashSound().
|
protected |
Definition at line 63 of file boatscript.c.
Referenced by EOnFrame(), EOnPostSimulate(), and StopParticleUpdate().
|
protected |
Definition at line 57 of file boatscript.c.
Referenced by EOnPostSimulate(), and OnContact().
|
protected |
Definition at line 64 of file boatscript.c.
Referenced by BoatScript(), CleanupEffects(), ClearWaterEffects(), and UpdateParticles().
|
protected |
Definition at line 49 of file boatscript.c.
Referenced by FadeEngineSound(), and OnSound().
|
protected |
Definition at line 51 of file boatscript.c.
Referenced by HandleBoatSplashSound().
|
protected |
Definition at line 50 of file boatscript.c.
Referenced by HandleBoatSplashSound().