DayZ 1.24
|
Go to the source code of this file.
Enumerations | |
enum | SoundTypeTrap { ACTIVATING = 5 } |
Variables | |
enum SoundTypeTrap | SPAWN_FLAGS = ECE_LOCAL |
const int | DAMAGE_TRIGGER_MINE = 75 |
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 |
bool | m_IsActive |
bool | m_IsInProgress |
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 |
ref Timer | m_Timer |
ref Timer | m_UpdateTimer |
TrapTrigger | m_TrapTrigger |
ref array< int > | m_ClothingDmg |
ref EffectSound | m_DeployLoopSound |
Enumerator | |
---|---|
ACTIVATING |
Definition at line 1 of file TrapBase.c.
|
protected |
Definition at line 403 of file TrapBase.c.
References GetGame(), and m_DefectRate.
Referenced by SetActive(), SetInactive(), and TrapSpawnBase::SpawnCatch().
|
protected |
DEPRECATED Set if trap can be disarmed using ActionClapBearTrapWithThisItem.
Definition at line 573 of file TrapBase.c.
|
protected |
Definition at line 579 of file TrapBase.c.
Definition at line 567 of file TrapBase.c.
References IsPlaceableAtPosition().
Definition at line 546 of file TrapBase.c.
References IsTakeable().
Definition at line 554 of file TrapBase.c.
References IsTakeable().
Definition at line 562 of file TrapBase.c.
References IsTakeable().
|
protected |
Definition at line 468 of file TrapBase.c.
References CALL_CATEGORY_SYSTEM, Class::CastTo(), DeferredEnableTrigger(), GetGame(), GetOrientation(), GetPosition, m_TrapTrigger, Trigger::SetExtents(), TrapTrigger::SetParentObject(), and SPAWN_FLAGS.
Referenced by InitZoneServer(), ContaminatedArea_Dynamic::InitZoneServer(), and SpookyArea::InitZoneServer().
|
protected |
Definition at line 649 of file TrapBase.c.
References m_ClothingDmg.
Referenced by OnSteppedOn().
|
protected |
Definition at line 490 of file TrapBase.c.
References m_TrapTrigger, and TrapTrigger::SetEnabled().
Referenced by CreateTrigger().
|
protected |
Definition at line 481 of file TrapBase.c.
References m_TrapTrigger, and TrapTrigger::SetParentObject().
Referenced by EEItemLocationChanged(), SetInactive(), and StartDeactivate().
|
protected |
Definition at line 209 of file TrapBase.c.
References GetGame(), TrapBase::OnDisarm(), RefreshState(), and SetInactive().
Definition at line 117 of file TrapBase.c.
References GetGame(), and m_TrapTrigger.
Definition at line 517 of file TrapBase.c.
References GetGame(), and RefreshState().
Definition at line 525 of file TrapBase.c.
References GetGame(), 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
Definition at line 612 of file TrapBase.c.
References vector::Distance(), GetPosition, and slotName.
Referenced by OnUpdate(), and TrapBase::OnUpdate().
|
protected |
|
protected |
Definition at line 88 of file TrapBase.c.
References m_TrapTrigger.
|
protected |
Definition at line 178 of file TrapBase.c.
References IsActive(), m_IsInProgress, and m_NeedActivation.
|
protected |
|
protected |
Definition at line 164 of file TrapBase.c.
References IsActive(), and m_IsInProgress.
Referenced by RefreshState().
|
protected |
Definition at line 183 of file TrapBase.c.
References vector::DistanceSq(), IsPlaceableAtPosition(), and Math::SqrFloat().
Definition at line 199 of file TrapBase.c.
References GetGame().
Referenced by CanBePlaced(), and IsPlaceable().
Definition at line 170 of file TrapBase.c.
References IsActive(), and m_IsInProgress.
|
protected |
HumanCommandScript fully scriptable command.
Definition at line 1105 of file human.c.
References GetGame(), GetPlayer(), m_TimerLoopSound, and PlaySoundActivate().
Referenced by Activate(), AntibioticsMdfr::OnReconnect(), CharcoalMdfr::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().
|
protected |
also called from RPC on client
Definition at line 496 of file TrapBase.c.
References GetGame(), IsActive(), RefreshState(), and SnapOnObject().
|
protected |
Definition at line 533 of file TrapBase.c.
References GetGame(), and SetPosition().
|
protected |
Definition at line 294 of file TrapBase.c.
References GetGame(), TrapBase::OnDisarm(), PlayDeployLoopSound(), SnapOnObject(), and StopDeployLoopSound().
Definition at line 272 of file TrapBase.c.
References SetInactive().
Definition at line 158 of file Trap_LandMine.c.
References m_UpdateTimer.
|
protected |
Definition at line 137 of file TrapBase.c.
References SetActive(), and StartActivate().
|
protected |
Definition at line 128 of file TrapBase.c.
References m_IsActive, and m_IsInProgress.
Definition at line 87 of file Trap_LandMine.c.
References GetClosestCarWheel(), and TrapBase::OnServerSteppedOn().
this event is called all variables are synchronized on client
Definition at line 94 of file TrapBase.c.
References CanPlayDeployLoopSound(), GetGame(), IsDeploySound(), m_DeployLoopSound, m_IsActive, m_IsInProgress, PlayDeployLoopSound(), PlayDeploySound(), SetActive(), StartActivate(), and StopDeployLoopSound().
|
protected |
Referenced by OnRPC(), ItemBase::OnVariablesSynchronized(), and OnVariablesSynchronized().
|
protected |
Definition at line 336 of file TrapBase.c.
References GetGame(), IsActive(), IsInactive(), m_AnimationPhaseGrounded, m_AnimationPhaseSet, m_AnimationPhaseTriggered, and m_WasActivatedOrDeactivated.
Referenced by Disarm(), EEHealthLevelChanged(), EEItemAttached(), EEItemDetached(), EEItemLocationChanged(), OnItemLocationChanged(), OnStoreLoad(), SetActive(), SetInactive(), and SnapOnObject().
Definition at line 604 of file TrapBase.c.
References ActionActivateTrap(), and AddAction().
|
protected |
Definition at line 409 of file TrapBase.c.
References AddDefect(), TrapBase::CreateTrigger(), GetGame(), m_AddActivationDefect, m_IsActive, m_IsInProgress, m_WasActivatedOrDeactivated, TrapBase::OnActivate(), and RefreshState().
Referenced by ItemBase::EEItemAttached(), 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(), TrapSpawnBase::SetupTrap(), SetupTrapPlayer(), SlotsIcon::SlotsIcon(), StartActivate(), RainProcurementComponentBase::StartRainProcurement(), and RainProcurementComponentBase::StopRainProcurement().
Definition at line 452 of file TrapBase.c.
References AddDefect(), DeleteTrigger(), m_AddDeactivationDefect, m_IsActive, m_Timer, m_WasActivatedOrDeactivated, and RefreshState().
Referenced by Disarm(), TrapBase::EEHealthLevelChanged(), EEItemLocationChanged(), ItemBase::Fold(), ItemBase::OnItemLocationChanged(), TrapBase::OnServerSteppedOn(), OnServerSteppedOn(), and OnSteppedOn().
|
protected |
Definition at line 376 of file TrapBase.c.
References GetGame(), and SetupTrapPlayer().
|
protected |
Definition at line 385 of file TrapBase.c.
References GetGame(), m_NeedActivation, SetActive(), and SetPosition().
Referenced by ItemBase::OnPlacementComplete(), SetupTrap(), and ItemBase::SetupTrap().
Definition at line 221 of file TrapBase.c.
References Math::Clamp(), GetGame(), m_DamageOthers, m_DamagePlayers, m_Timer, MAX, TrapBase::OnSteppedOn(), RefreshState(), and Synch().
Referenced by OnItemLocationChanged(), and OnRPC().
|
protected |
Definition at line 431 of file TrapBase.c.
References CALL_CATEGORY_SYSTEM, GetGame(), m_InitWaitTime, m_IsInProgress, m_Timer, and SetActive().
Referenced by TrapBase::OnPlacementComplete(), OnPlacementComplete(), OnStoreLoad(), ItemBase::OnStoreLoad(), and OnVariablesSynchronized().
|
protected |
Definition at line 208 of file Trap_TripWire.c.
References DeleteTrigger(), FOLDED, and SetState().
Referenced by EEKilled(), and OnItemLocationChanged().
|
protected |
Referenced by OnRPC(), ItemBase::OnVariablesSynchronized(), and OnVariablesSynchronized().
keeping "step" here for consistency only
Definition at line 280 of file TrapBase.c.
References GetGame().
Referenced by TrapBase::OnServerSteppedOn(), OnServerSteppedOn(), and SnapOnObject().
|
protected |
timer calling OnUpdate in configured interval
Definition at line 49 of file TrapBase.c.
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().
Definition at line 81 of file TrapBase.c.
References SEffectManager::DestroyEffect(), and m_DeployLoopSound.
Definition at line 14 of file TrapBase.c.
Referenced by OnSteppedOn().
|
protected |
Definition at line 23 of file TrapBase.c.
Referenced by SetActive(), and TrapBase().
|
protected |
Definition at line 24 of file TrapBase.c.
Referenced by LandMineTrap(), SetInactive(), and TrapBase().
|
protected |
Definition at line 32 of file TrapBase.c.
Referenced by TrapBase::BearTrap(), FoldTripWire(), RefreshState(), TrapBase(), and TripwireTrap().
|
protected |
Definition at line 33 of file TrapBase.c.
Referenced by TrapBase::BearTrap(), FoldTripWire(), RefreshState(), ItemBase::SetActive(), ItemBase::SetDeployed(), ItemBase::SetUsed(), TrapSpawnBase::Trap_FishNet(), TrapSpawnBase::Trap_RabbitSnare(), TrapSpawnBase::Trap_SmallFish(), TrapBase(), ItemBase::TrapSpawnBase(), and TripwireTrap().
|
protected |
Definition at line 34 of file TrapBase.c.
Referenced by TrapBase::BearTrap(), FoldTripWire(), RefreshState(), ItemBase::SetActive(), ItemBase::SetDeployed(), ItemBase::SetUsed(), TrapSpawnBase::Trap_FishNet(), TrapSpawnBase::Trap_RabbitSnare(), TrapSpawnBase::Trap_SmallFish(), TrapBase(), ItemBase::TrapSpawnBase(), and TripwireTrap().
Definition at line 46 of file TrapBase.c.
Referenced by DamageClothing(), and LandMineTrap().
|
protected |
Definition at line 21 of file TrapBase.c.
Referenced by TrapBase::BearTrap(), SnapOnObject(), and TrapBase().
|
protected |
Definition at line 20 of file TrapBase.c.
Referenced by TrapBase::BearTrap(), LandMineTrap(), SnapOnObject(), TrapBase(), and TripwireTrap().
|
protected |
Definition at line 19 of file TrapBase.c.
Referenced by AddDefect(), ItemBase::AddDefect(), TrapBase::BearTrap(), LandMineTrap(), TrapSpawnBase::Trap_FishNet(), TrapSpawnBase::Trap_RabbitSnare(), TrapSpawnBase::Trap_SmallFish(), TrapBase(), ItemBase::TrapSpawnBase(), and TripwireTrap().
|
protected |
Definition at line 47 of file TrapBase.c.
Referenced by ItemBase::OnVariablesSynchronized(), Inventory_Base::OnVariablesSynchronized(), OnVariablesSynchronized(), ItemBase::PlayDeployLoopSound(), Inventory_Base::PlayDeployLoopSound(), ItemBase::StopDeployLoopSound(), Inventory_Base::StopDeployLoopSound(), ItemBase::~BarbedWire(), Inventory_Base::~HescoBox(), ItemBase::~KitBase(), ItemBase::~Spotlight(), ItemBase::~TentBase(), ~TrapBase(), and ItemBase::~TrapSpawnBase().
Definition at line 28 of file TrapBase.c.
Referenced by GetDisarmed(), and SetDisarmed().
|
protected |
Definition at line 40 of file TrapBase.c.
Referenced by LandMineTrap(), TrapBase(), and TripwireTrap().
|
protected |
Definition at line 39 of file TrapBase.c.
Referenced by TrapBase().
|
protected |
Definition at line 38 of file TrapBase.c.
Referenced by TrapBase().
|
protected |
Definition at line 37 of file TrapBase.c.
Referenced by TrapBase().
|
protected |
Definition at line 36 of file TrapBase.c.
Referenced by TrapBase().
|
protected |
Definition at line 17 of file TrapBase.c.
Referenced by TrapBase::BearTrap(), LandMineTrap(), ItemBase::SetActive(), StartActivate(), TrapSpawnBase::Trap_FishNet(), TrapSpawnBase::Trap_RabbitSnare(), TrapSpawnBase::Trap_SmallFish(), TrapBase(), ItemBase::TrapSpawnBase(), and TripwireTrap().
|
protected |
Definition at line 25 of file TrapBase.c.
|
protected |
Definition at line 26 of file TrapBase.c.
Referenced by IsActivable(), IsActive(), IsInactive(), IsTakeable(), OnStoreSave(), ItemBase::OnStoreSave(), OnVariablesSynchronized(), SetActive(), StartActivate(), and TrapBase().
|
protected |
Definition at line 18 of file TrapBase.c.
Referenced by IsActivable(), SetupTrapPlayer(), TrapBase(), and TripwireTrap().
Definition at line 42 of file TrapBase.c.
|
protected |
Definition at line 44 of file TrapBase.c.
Referenced by CreateTrigger(), TrapBase::CreateTrigger(), DeferredEnableTrigger(), DeleteTrigger(), EEDelete(), EEItemLocationChanged(), EEKilled(), and GetTrapTrigger().
Definition at line 43 of file TrapBase.c.
|
protected |
DEPRECATED Used for explosive traps to prevent detonation after destroying through disarm action.
Definition at line 30 of file TrapBase.c.
Referenced by RefreshState(), SetActive(), SetInactive(), and TrapBase().
enum SoundTypeTrap SPAWN_FLAGS = ECE_LOCAL |
Referenced by CreateTrigger().
Definition at line 15 of file TrapBase.c.
Referenced by TrapBase::OnSteppedOn(), and OnSteppedOn().