class TrapSpawnBaseSource
TrapSpawnBase › ItemBase › InventoryItem › EntityAI › Entity › ObjectTyped › Object › IEntity › Managed
All members, including inherited
Constructors 2
void TrapSpawnBase()Show 3 more
, m_CatchesGroundAnimal, m_CatchesPond, and m_CatchesSeavoid ~TrapSpawnBase()Constants 1
const string m_PlaceableWaterTypeMembers 50
bool m_IsFoldableShow 2 more
, InitTrapValues(), and OnItemLocationChanged()bool m_CanCatch = falsebool m_NeedInstalationint m_InitWaitTimeMinShow 2 more
, InitTrapValues(), and SetActive()int m_InitWaitTimeMaxShow 2 more
, InitTrapValues(), and SetActive()int m_UpdateWaitTimeCatch evaluation interval
int m_SpawnUpdateWaitTimeCatch spawn and player check interval (expensive-ish)
Show 2 more
, InitTrapValues(), and TrySpawnCatch()int m_MaxActiveTimeMax time of trap activity (seconds)
float m_BaitLossFractionNormalized bait qty reduction on unsuccessful catch
float m_DefectRateAbsolute damage dealt to trap when used
Show 2 more
, AddDefect(), and InitTrapValues()float m_MinimalDistanceFromPlayersToCatchduh
Show 3 more
, AdjustDetectionRange(), InitTrapValues(), and ResetActiveProgress()private int m_InitWaitTimeAfter this time after deployment, the trap is activated
private int m_AdjustedMaxActiveTimeAdjusted by init wait time, when appropriate
Show 3 more
, ResetRunningTimerProgress(), SetActive(), and TrySpawnCatch()private int m_ElapsedTimeShow 2 more
, ResetActiveProgress(), and TrySpawnCatch()private int m_ActivationTimeprivate int m_RollSuccessTimeprivate float m_CurrentMinimalDistanceShow 1 more
, TrySpawnCatch()private float m_CurrentlyUsedDeltaprivate bool m_IsCatchSuccessfulprivate int m_CatchEnviroMask = 0private int m_YieldItemIdxLocal = -1private int m_YieldItemIdx = -1Show 3 more
, PlayCatchEffectsServer(), SetActive(), and SpawnCatch()private int m_CatchParticleEffecterId = -1vector m_PreyPosThe position where prey will be spawned -> Will be overriden later
Show 2 more
, SpawnCatch(), and UpdatePreyPos()protected bool m_IsActiveprotected bool m_IsPastWaitingTimeShow 2 more
, SetInactive(), and SetUsed()protected bool m_IsDeployedref Timer m_TimerShow 2 more
, SetInactive(), and SetUsed()string m_AnimationPhaseSetShow 4 more
, InitTrapValues(), SetActive(), SetDeployed(), and SetUsed()string m_AnimationPhaseTriggeredShow 4 more
, InitTrapValues(), SetActive(), SetDeployed(), and SetUsed()string m_AnimationPhaseUsedShow 4 more
, InitTrapValues(), SetActive(), SetDeployed(), and SetUsed()protected ref CatchingContextTrapsBase m_CatchingContextref Timer m_PrevTimerDEPRECATED
bool m_BaitNeededDEPRECATED
bool m_IsUsableDEPRECATED
private ItemBase m_CatchDEPRECATED, no reason to keep the information as member
ref Timer m_AlignCatchTimerDEPRECATED
string m_InfoSetupDEPRECATED
protected bool m_IsInProgressDEPRECATED
protected ref EffectSound m_DeployLoopSoundDEPRECATED
protected EntityAI m_Baitfloat m_BaitCatchProbDEPRECATED
float m_NoBaitCatchProbDEPRECATED
float m_FinalCatchProbDEPRECATED
bool m_WaterSurfaceForSetupDEPRECATED
Methods 60
void InitTrapValues()Show 15 more
, m_AnimationPhaseTriggered, m_AnimationPhaseUsed, m_BaitLossFraction, m_DefectRate, m_InitWaitTimeMax, m_InitWaitTimeMin, m_IsCatchSuccessful, m_IsFoldable, m_MaxActiveTime, m_MinimalDistanceFromPlayersToCatch, m_NeedInstalation, m_PlaceableWaterSurfaceList, m_SpawnUpdateWaitTime, m_UpdateWaitTime, and UAWaterType.SEAShow 1 more
, TrapSpawnBase()override void OnStoreSave(ParamsWriteContext ctx)Show 2 more
, m_IsActive, and m_IsDeployedoverride bool OnStoreLoad(ParamsReadContext ctx, int version)Show 4 more
, SetActive(), SetDeployed(), m_CatchEnviroMask, and ItemBase.m_IsStoreLoadoverride void OnVariablesSynchronized()this event is called all variables are synchronized on client
Show 1 more
, m_YieldItemIdxLocalbool IsActive()Show 2 more
, EEItemDetached(), and SetActive()bool IsDeployed()Show 1 more
, CanReceiveAttachment()void SetDeployed(bool newState)Show 3 more
, m_AnimationPhaseTriggered, m_AnimationPhaseUsed, and m_IsDeployedoverride bool IsTakeable()Show 1 more
, IsPlaceable()void SetupTrap()Show 2 more
, CGame.IsServer(), and SetupTrapPlayer()void SetupTrapPlayer(PlayerBase player, bool set_position = true)Show 3 more
, SetDeployed(), Object.SetPosition(), and CGame.SurfaceRoadY()void UpdatePreyPos()Show 2 more
, Object.ModelToWorld(), and m_PreyPosvoid Fold()void AddDefect()void StartActivate(PlayerBase player)bool CanBeTaken()void ResetActiveProgress()Show 3 more
, m_dbgAttemptCount, m_ElapsedTime, and m_MinimalDistanceFromPlayersToCatchvoid ResetRunningTimerProgress()Show 3 more
, m_IsPastWaitingTime, m_MaxActiveTime, and m_UpdateWaitTimegeneric trapping launcher for traps, use this to store delta info
Show 3 more
, new Timer(), m_CurrentlyUsedDelta, and m_TimerShow 1 more
, TrySpawnCatch()void SetActive()Show 25 more
, CGame.IsServer(), Math.RandomFloatInclusive(), ResetActiveProgress(), RunTrappingTimer(), Entity.SetAnimationPhase(), SetCatchSuccessful(), EntityAI.SetSynchDirty(), SetTrapEnviroMask(), UpdatePreyPos(), UpdateTrapEnviroMask(), m_AdjustedMaxActiveTime, m_AnimationPhaseSet, m_AnimationPhaseTriggered, m_AnimationPhaseUsed, m_CatchEnviroMask, m_CatchParticleEffecterId, m_InitWaitTime, m_InitWaitTimeMax, m_InitWaitTimeMin, m_IsActive, m_IsPastWaitingTime, ItemBase.m_IsStoreLoad, m_MaxActiveTime, m_UpdateWaitTime, and m_YieldItemIdxShow 1 more
, OnStoreLoad()void SetInactive()Show 5 more
, EntityAI.SetSynchDirty(), Timer.Stop(), m_IsActive, m_IsPastWaitingTime, and m_Timervoid SetUsed()void IncreaseElapsedTime()Show 2 more
, m_CurrentlyUsedDelta, and m_ElapsedTimevoid AdjustDetectionRange()void EvaluateCatch()Show 20 more
, Print(), CatchingContextBase.RollCatch(), RunTrappingTimer(), SetCanCatch(), SetUsed(), Timer.Stop(), string.ToInt(), TrySpawnCatch(), m_AdjustedMaxActiveTime, m_Bait, m_CanCatch, m_CatchingContext, m_CurrentlyUsedDelta, m_dbgAttemptCount, m_ElapsedTime, m_IsPastWaitingTime, m_MaxActiveTime, m_RollSuccessTime, m_Timer, and m_UpdateWaitTimebool IsPlayerInVicinity()Show 2 more
, Debug.Log(), and m_CurrentMinimalDistancevoid TrySpawnCatch()void SpawnCatch()void SetCatchSuccessful(bool successful)void OnCatchSpawnClient()protected void PlayCatchEffectsServer()Show 4 more
, CatchYieldBank.GetYieldItemByIdx(), PlayCatchNoise(), PlayCatchParticleSynced(), and m_YieldItemIdxprotected void PlayCatchEffectsClient()Show 3 more
, CatchYieldBank.GetYieldItemByIdx(), PlayCatchSound(), and m_YieldItemIdxprotected void PlayCatchSound(YieldItemBase yItem)protected void PlayCatchNoise(YieldItemBase yItem)protected void PlayCatchParticleSynced(YieldItemBase yItem)Show 6 more
, SetActive(), SetInactive(), EntityAI.SetSynchDirty(), m_IsFoldable, m_NeedInstalation, and m_YieldItemIdxvoid InitCatchingComponent()Show 3 more
, OnPlacementComplete(), OnStoreLoad(), and SetActive()void ClearCatchingComponent()void UpdateTrapEnviroMask()void SetTrapEnviroMask(int value)void HandleBaitLoss()Show 2 more
, m_CatchingContext, and m_IsCatchSuccessfulvoid DetachAllAttachments()detaches everything on catching end (some slots may not be accessible when folded)
Show 1 more
, EntityAI.GetInventory()override void OnPlacementComplete(Man player, vector position = "0 0 0", vector orientation = "0 0 0")Show 15 more
, GameInventory.GetCurrentInventoryLocation(), DayZPlayerImplement.GetDayZPlayerInventory(), EntityAI.GetInventory(), InitCatchingComponent(), CGame.IsMultiplayer(), CGame.IsServer(), Math3D.MatrixToQuat(), ItemBase.OnPlacementComplete(), HumanInventory.RedirectToHandEvent(), Man.ServerTakeToDst(), SetActive(), InventoryLocation.SetGroundEx(), SetupTrapPlayer(), UpdateTrapEnviroMask(), and Math3D.YawPitchRollMatrix()bool IsPlaceable()override void SetActions()void CatchSetQuant(ItemBase catch)!DEPRECATED
void PlayDeployLoopSound()DEPRECATED
void StopDeployLoopSound()DEPRECATED