class BearTrapSource
BearTrap › TrapBase › ItemBase › InventoryItem › EntityAI › Entity › ObjectTyped › Object › IEntity › Managed
All members, including inherited
Constructors 1
void BearTrap()Constants 2
static const int RAYCAST_SOURCES_COUNT = 5static const vector m_RaycastSources[RAYCAST_SOURCES_COUNT] = { "0.0 0.1 0.0", // center "0.2 0.1 0.2", // north east "-.2 0.1 0.2", // north west "0.2 0.1 -0.2", // south east "-0.2 0.1 -0.2" // south west }Referenced by OnSteppedOn()
Methods 20
override bool CanBeDisarmed()Referenced by ActionClapBearTrapWithThisItem.ActionCondition()
References ItemBase.EEHealthLevelChanged(), CGame.IsServer(), TrapBase.SetInactive()
Show 1 more
, GameConstants.STATE_RUINEDoverride void CreateTrigger()References TrapBase.CreateTrigger(), Object.GetOrientation(), Trigger.SetExtents()
Show 3 more
, Object.SetOrientation(), TrapTrigger.SetParentObject(), and TrapBase.m_TrapTriggeroverride void OnUpdate(EntityAI victim)override void OnSteppedOn(EntityAI victim)References Object.GetAllowDamage(), Object.GetDamageZoneNameByComponentIndex(), Object.IsAnyInherited()
Show 19 more
, Object.IsDamageDestroyed(), CGame.IsDedicatedServer(), Class.IsInherited(), CGame.IsServer(), Object.ModelToWorld(), OnServerSteppedOn(), PlaySoundBiteLeg(), new RaycastRVParams(), DayZPhysics.RaycastRVProxy(), Timer.Run(), Object.SpawnDamageDealtEffect(), RaycastRVResult.component, RaycastRVParams.flags, m_RaycastSources, TrapBase.m_UpdateTimer, RaycastRVResult.obj, RaycastRVParams.radius, RaycastRVParams.type, and TrapBase.UPDATE_TIMER_INTERVALoverride void OnSteppedOut(EntityAI victim)this is also called on client (OnRPC->SnapOn->OnSteppedOn chain)
References Class.IsInherited(), TimerBase.IsRunning(), Timer.Stop()
Show 1 more
, TrapBase.m_UpdateTimerGeneric limp handling
References Class.CastTo(), PlayerBase.DamageAllLegs(), Object.GetMaxHealth()
Show 1 more
, Object.SetHealth()Referenced by OnServerSteppedOn()
void PlaySoundBiteLeg()Referenced by OnSteppedOn()
void PlaySoundBiteEmpty()Referenced by OnDisarm()
void PlaySoundOpen()Referenced by OnActivate()
override void OnActivate()References PlaySoundOpen()
override void OnDisarm()References PlaySoundBiteEmpty()
override void OnPlacementComplete(Man player, vector position = "0 0 0", vector orientation = "0 0 0")References Class.Cast(), CGame.IsServer(), TrapBase.OnPlacementComplete()
Show 1 more
, TrapBase.StartActivate()override bool IsDeployable()override string GetLoopDeploySoundset()override void SetActions()override void OnDebugSpawn()DEVELOPERReferences TrapBase.StartActivate()
override void GetDebugActions(out TSelectableActionInfoArrayEx outputList)DEVELOPERReferences ItemBase.GetDebugActions(), array.Insert(), new TSelectableActionInfoWithColor()
Show 2 more
, FadeColors.LIGHT_GREY, and FadeColors.REDoverride bool OnAction(int action_id, Man player, ParamsReadContext ctx)DEVELOPERReferences CGame.IsMultiplayer(), CGame.IsServer(), ItemBase.OnAction()