Enumerations | |
| enum | SoundTypeTrap { ACTIVATING = 5 } |
Functions | |
| void | TrapBase () |
| void | OnUpdate (EntityAI victim) |
| TrapTrigger | GetTrapTrigger () |
| override void | OnVariablesSynchronized () |
| this event is called all variables are synchronized on client | |
| override void | EEDelete (EntityAI parent) |
| override void | OnStoreSave (ParamsWriteContext ctx) |
| override bool | OnStoreLoad (ParamsReadContext ctx, int version) |
| bool | IsActive () |
| bool | IsInactive () |
| override bool | IsTakeable () |
| bool | IsActivable () |
| bool | IsPlaceable () |
| bool | IsPlaceableAtPosition (vector position) |
| void | Disarm () |
| void | OnDisarm () |
| also called from RPC on client | |
| void | SnapOnObject (EntityAI victim) |
| void | RemoveFromObject (EntityAI victim) |
| void | OnSteppedOn (EntityAI victim) |
| void | OnSteppedOut (EntityAI victim) |
| protected void | Synch (EntityAI victim) |
| keeping "step" here for consistency only | |
| override void | OnRPC (PlayerIdentity sender, int rpc_type, ParamsReadContext ctx) |
| void | RefreshState () |
| void | SetupTrap () |
| void | SetupTrapPlayer (PlayerBase player, bool set_position=true) |
| void | AddDefect () |
| void | SetActive () |
| void | OnActivate () |
| void | StartActivate (PlayerBase player) |
| void | StartDeactivate (PlayerBase player) |
| void | SetInactive (bool stop_timer=true) |
| void | CreateTrigger () |
| void | DeleteTrigger () |
| void | DeferredEnableTrigger () |
| override void | OnItemLocationChanged (EntityAI old_owner, EntityAI new_owner) |
| override void | EEItemAttached (EntityAI item, string slot_name) |
| override void | EEItemDetached (EntityAI item, string slot_name) |
| override void | OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0") |
| override bool | CanPutInCargo (EntityAI parent) |
| override bool | CanPutIntoHands (EntityAI parent) |
| override bool | CanRemoveFromHands (EntityAI parent) |
| override bool | CanBePlaced (Man player, vector position) |
| bool | CanBeClapped () |
| DEPRECATED Set if trap can be disarmed using ActionClapBearTrapWithThisItem. | |
| bool | CanBeDisarmed () |
| void | SetDisarmed (bool disarmed) |
| DEPRECATED. | |
| bool | GetDisarmed () |
| DEPRECATED. | |
| override void | SetActions () |
| protected EntityAI | GetClosestCarWheel (EntityAI victim) |
| protected void | DamageClothing (PlayerBase player) |
| void | PlayDeployLoopSound () |
| void | StopDeployLoopSound () |
| DEPRECATED. | |
Variables | |
| enum SoundTypeTrap | SPAWN_FLAGS = ECE_LOCAL |
| protected const int | DAMAGE_TRIGGER_MINE = 75 |
| protected const float | UPDATE_TIMER_INTERVAL = 0.05 |
| float | m_InitWaitTime |
| bool | m_NeedActivation |
| float | m_DefectRate |
| float | m_DamagePlayers |
| float | m_DamageOthers |
| bool | m_AddActivationDefect |
| bool | m_AddDeactivationDefect |
| protected bool | m_IsActive |
| protected bool | m_IsInProgress |
| protected bool | m_Disarmed = false |
| bool | m_WasActivatedOrDeactivated |
| DEPRECATED Used for explosive traps to prevent detonation after destroying through disarm action. | |
| string | m_AnimationPhaseGrounded |
| string | m_AnimationPhaseSet |
| string | m_AnimationPhaseTriggered |
| string | m_InfoSetup |
| string | m_InfoDeactivated |
| string | m_InfoDamageManipulation |
| string | m_InfoDamage |
| string | m_InfoActivationTime |
| protected ref Timer | m_Timer |
| protected ref Timer | m_UpdateTimer |
| protected TrapTrigger | m_TrapTrigger |
| protected ref array< int > | m_ClothingDmg |
| protected ref EffectSound | m_DeployLoopSound |
| DEPRECATED. | |
| enum SoundTypeTrap |
| void AddDefect | ( | ) |
References g_Game, and m_DefectRate.
Referenced by SetActive(), SetInactive(), and ItemBase::SetUsed().
| bool CanBeClapped | ( | ) |
DEPRECATED Set if trap can be disarmed using ActionClapBearTrapWithThisItem.
| bool CanBeDisarmed | ( | ) |
References IsPlaceableAtPosition().
References IsTakeable().
References IsTakeable().
References IsTakeable().
| void CreateTrigger | ( | ) |
References CALL_CATEGORY_SYSTEM, Class::CastTo(), DeferredEnableTrigger(), g_Game, GetOrientation(), GetPosition(), m_TrapTrigger, Trigger::SetExtents(), TrapTrigger::SetParentObject(), and SPAWN_FLAGS.
Referenced by InitZoneServer(), HotSpringArea::InitZoneServer(), SpookyArea::InitZoneServer(), and VolcanicArea::InitZoneServer().
| protected void DamageClothing | ( | PlayerBase | player | ) |
References m_ClothingDmg.
Referenced by OnSteppedOn().
| void DeferredEnableTrigger | ( | ) |
References m_TrapTrigger, and TrapTrigger::SetEnabled().
Referenced by CreateTrigger().
| void DeleteTrigger | ( | ) |
References m_TrapTrigger, and TrapTrigger::SetParentObject().
Referenced by EEItemLocationChanged(), SetInactive(), and StartDeactivate().
| void Disarm | ( | ) |
References g_Game, TrapBase::OnDisarm(), RefreshState(), and SetInactive().
| override void EEDelete | ( | EntityAI | parent | ) |
References g_Game, and m_TrapTrigger.
References g_Game, and RefreshState().
References g_Game, and RefreshState().
carscript specific handling (not all traps are uses this)
ruined wheel, bail out
ignore all spare wheel
actual, healthy wheel, let it pass
References GameInventory::AttachmentCount(), vector::Distance(), GameInventory::GetAttachmentFromIndex(), GetPosition(), and slotName.
Referenced by OnUpdate(), and TrapBase::OnUpdate().
| bool GetDisarmed | ( | ) |
DEPRECATED.
References m_Disarmed.
| TrapTrigger GetTrapTrigger | ( | ) |
References m_TrapTrigger.
| bool IsActivable | ( | ) |
References IsActive(), m_IsInProgress, and m_NeedActivation.
| bool IsActive | ( | ) |
References m_IsActive, and m_IsInProgress.
| bool IsInactive | ( | ) |
References IsActive(), and m_IsInProgress.
Referenced by RefreshState().
| bool IsPlaceable | ( | ) |
References vector::DistanceSq(), IsPlaceableAtPosition(), and Math::SqrFloat().
References g_Game.
Referenced by CanBePlaced(), and IsPlaceable().
| override bool IsTakeable | ( | ) |
References IsActive(), and m_IsInProgress.
| void OnActivate | ( | ) |
References g_Game, m_TimerLoopSound, and PlaySoundActivate().
Referenced by Activate(), AntibioticsMdfr::OnReconnect(), CharcoalMdfr::OnReconnect(), ChelationMdfr::OnReconnect(), FatigueMdfr::OnReconnect(), FeverMdfr::OnReconnect(), HemolyticReactionMdfr::OnReconnect(), PoisoningMdfr::OnReconnect(), WetMdfr::OnReconnect(), DisinfectionMdfr::OnReconnect(), DrowningMdfr::OnReconnect(), EpinephrineMdfr::OnReconnect(), FliesMdfr::OnReconnect(), ImmunityBoost::OnReconnect(), MaskMdfr::OnReconnect(), MorphineMdfr::OnReconnect(), PainKillersMdfr::OnReconnect(), and SalineMdfr::OnReconnect().
| void OnDisarm | ( | ) |
also called from RPC on client
References g_Game, IsActive(), RefreshState(), and SnapOnObject().
| override void OnPlacementComplete | ( | Man | player, |
| vector | position = "0 0 0", |
||
| vector | orientation = "0 0 0" |
||
| ) |
References g_Game, and SetPosition().
| override void OnRPC | ( | PlayerIdentity | sender, |
| int | rpc_type, | ||
| ParamsReadContext | ctx | ||
| ) |
References g_Game, TrapBase::OnDisarm(), Serializer::Read(), and SnapOnObject().
| void OnSteppedOn | ( | EntityAI | victim | ) |
References SetInactive().
| void OnSteppedOut | ( | EntityAI | victim | ) |
References m_UpdateTimer, and Timer::Stop().
| override bool OnStoreLoad | ( | ParamsReadContext | ctx, |
| int | version | ||
| ) |
References Serializer::Read(), SetActive(), and StartActivate().
| override void OnStoreSave | ( | ParamsWriteContext | ctx | ) |
References m_IsActive, m_IsInProgress, and Serializer::Write().
| void OnUpdate | ( | EntityAI | victim | ) |
References GetClosestCarWheel(), and TrapBase::OnServerSteppedOn().
| override void OnVariablesSynchronized | ( | ) |
this event is called all variables are synchronized on client
References g_Game, m_IsActive, m_IsInProgress, SetActive(), and StartActivate().
| void PlayDeployLoopSound | ( | ) |
| void RefreshState | ( | ) |
References g_Game, IsActive(), IsInactive(), m_AnimationPhaseGrounded, m_AnimationPhaseSet, m_AnimationPhaseTriggered, and m_WasActivatedOrDeactivated.
Referenced by Disarm(), EEHealthLevelChanged(), EEItemAttached(), EEItemDetached(), EEItemLocationChanged(), OnItemLocationChanged(), OnStoreLoad(), SetActive(), SetInactive(), and SnapOnObject().
| void RemoveFromObject | ( | EntityAI | victim | ) |
References TrapBase::OnSteppedOut().
| override void SetActions | ( | ) |
References ActionActivateTrap(), and AddAction().
| void SetActive | ( | ) |
References AddDefect(), TrapBase::CreateTrigger(), g_Game, m_AddActivationDefect, m_IsActive, m_IsInProgress, m_WasActivatedOrDeactivated, TrapBase::OnActivate(), and RefreshState().
Referenced by EEItemLocationChanged(), Icon::Icon(), UniversalTemperatureSourceDebug::Init(), ItemBase::OnItemLocationChanged(), ItemBase::OnPlacementComplete(), OnStoreLoad(), ItemBase::OnStoreLoad(), OnVariablesSynchronized(), HandsContainer::Refresh(), Container::Select(), LayoutHolder::SetFirstActive(), Container::SetNextActive(), AttachmentsGroupContainer::SetNextActive(), LayoutHolder::SetNextActive(), Container::SetPreviousActive(), AttachmentsGroupContainer::SetPreviousActive(), LayoutHolder::SetPreviousActive(), LayoutHolder::SetSameLevelNextActive(), LayoutHolder::SetSameLevelPreviousActive(), TrapSpawnBase::SetupTrap(), SetupTrapPlayer(), SlotsIcon::SlotsIcon(), StartActivate(), RainProcurementComponentBase::StartRainProcurement(), RainProcurementComponentBase::StopRainProcurement(), and UniversalTemperatureSourceDebug::Update().
| void SetDisarmed | ( | bool | disarmed | ) |
DEPRECATED.
References m_Disarmed.
| void SetInactive | ( | bool | stop_timer = true | ) |
References AddDefect(), DeleteTrigger(), m_AddDeactivationDefect, m_IsActive, m_Timer, m_WasActivatedOrDeactivated, RefreshState(), and Timer::Stop().
Referenced by Disarm(), TrapBase::EEHealthLevelChanged(), EEItemLocationChanged(), ItemBase::Fold(), ItemBase::OnItemLocationChanged(), TrapBase::OnServerSteppedOn(), OnServerSteppedOn(), and OnSteppedOn().
| void SetupTrap | ( | ) |
References g_Game, and SetupTrapPlayer().
| void SetupTrapPlayer | ( | PlayerBase | player, |
| bool | set_position = true |
||
| ) |
References g_Game, m_NeedActivation, SetActive(), and SetPosition().
Referenced by ItemBase::OnPlacementComplete(), SetupTrap(), and ItemBase::SetupTrap().
| void SnapOnObject | ( | EntityAI | victim | ) |
References Math::Clamp(), g_Game, m_DamageOthers, m_DamagePlayers, m_Timer, MAX, TrapBase::OnSteppedOn(), RefreshState(), Timer::Stop(), and Synch().
Referenced by OnItemLocationChanged(), and OnRPC().
| void StartActivate | ( | PlayerBase | player | ) |
References CALL_CATEGORY_SYSTEM, g_Game, m_InitWaitTime, m_IsInProgress, m_Timer, and SetActive().
Referenced by TrapBase::OnPlacementComplete(), OnPlacementComplete(), OnStoreLoad(), and OnVariablesSynchronized().
| void StartDeactivate | ( | PlayerBase | player | ) |
References DeleteTrigger(), FOLDED, and SetState().
Referenced by EEKilled(), and OnItemLocationChanged().
| void StopDeployLoopSound | ( | ) |
DEPRECATED.
| protected void Synch | ( | EntityAI | victim | ) |
keeping "step" here for consistency only
References g_Game.
Referenced by TrapBase::OnServerSteppedOn(), OnServerSteppedOn(), and SnapOnObject().
| void TrapBase | ( | ) |
timer calling OnUpdate in configured interval
References m_AddActivationDefect, m_AddDeactivationDefect, m_AnimationPhaseGrounded, m_AnimationPhaseSet, m_AnimationPhaseTriggered, m_DamageOthers, m_DamagePlayers, m_DefectRate, m_InfoActivationTime, m_InfoDamage, m_InfoDamageManipulation, m_InfoDeactivated, m_InfoSetup, m_InitWaitTime, m_IsInProgress, m_NeedActivation, m_UpdateTimer, m_WasActivatedOrDeactivated, and float::ToString().
| protected const int DAMAGE_TRIGGER_MINE = 75 |
Referenced by OnSteppedOn().
| bool m_AddActivationDefect |
Referenced by SetActive(), and TrapBase().
| bool m_AddDeactivationDefect |
Referenced by LandMineTrap(), SetInactive(), and TrapBase().
| string m_AnimationPhaseGrounded |
Referenced by TrapBase::BearTrap(), FoldTripWire(), RefreshState(), TrapBase(), and TripwireTrap().
| string m_AnimationPhaseSet |
| string m_AnimationPhaseTriggered |
Referenced by DamageClothing(), and LandMineTrap().
| float m_DamageOthers |
Referenced by TrapBase::BearTrap(), SnapOnObject(), and TrapBase().
| float m_DamagePlayers |
Referenced by TrapBase::BearTrap(), LandMineTrap(), SnapOnObject(), TrapBase(), and TripwireTrap().
| float m_DefectRate |
| protected ref EffectSound m_DeployLoopSound |
DEPRECATED.
| protected bool m_Disarmed = false |
Referenced by GetDisarmed(), and SetDisarmed().
| string m_InfoActivationTime |
Referenced by LandMineTrap(), TrapBase(), and TripwireTrap().
| string m_InfoDamage |
Referenced by TrapBase().
| string m_InfoDamageManipulation |
Referenced by TrapBase().
| string m_InfoDeactivated |
Referenced by TrapBase().
| string m_InfoSetup |
Referenced by TrapBase().
| float m_InitWaitTime |
| protected bool m_IsActive |
| protected bool m_IsInProgress |
Referenced by IsActivable(), IsActive(), IsInactive(), IsTakeable(), OnStoreSave(), OnVariablesSynchronized(), SetActive(), StartActivate(), and TrapBase().
| bool m_NeedActivation |
Referenced by IsActivable(), SetupTrapPlayer(), TrapBase(), and TripwireTrap().
| protected ref Timer m_Timer |
| protected TrapTrigger m_TrapTrigger |
| protected ref Timer m_UpdateTimer |
| bool m_WasActivatedOrDeactivated |
DEPRECATED Used for explosive traps to prevent detonation after destroying through disarm action.
Referenced by RefreshState(), SetActive(), SetInactive(), and TrapBase().
| enum SoundTypeTrap SPAWN_FLAGS = ECE_LOCAL |
Referenced by CreateTrigger().
| protected const float UPDATE_TIMER_INTERVAL = 0.05 |
Referenced by TrapBase::OnSteppedOn(), and OnSteppedOn().