Data Structures | |
class | TripwireTrapDeployed |
Enumerations | |
enum | eWireMaterial { WIRE = 0 , BARBED_WIRE = 1 , ROPE = 2 } |
Functions | |
void | TripwireTrap () |
override void | OnStoreSave (ParamsWriteContext ctx) |
override bool | OnStoreLoad (ParamsReadContext ctx, int version) |
override void | CreateTrigger () |
override void | OnSteppedOn (EntityAI victim) |
override void | OnItemLocationChanged (EntityAI old_owner, EntityAI new_owner) |
override void | EEItemLocationChanged (notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc) |
override void | EEHealthLevelChanged (int oldLevel, int newLevel, string zone) |
override void | SetInactive (bool stop_timer=true) |
void | SetState (int state_ID) |
int | GetState () |
returns one of STATE_... | |
void | SetWireType (int wireType) |
int | GetWireType () |
override void | RefreshState () |
override void | SetupTrapPlayer (PlayerBase player, bool set_position=true) |
override void | StartDeactivate (PlayerBase player) |
override bool | CanReceiveAttachment (EntityAI attachment, int slotId) |
override bool | CanDisplayAttachmentSlot (int slot_id) |
override void | EEItemAttached (EntityAI item, string slot_name) |
override void | EEItemDetached (EntityAI item, string slot_name) |
override void | EEKilled (Object killer) |
void | FoldTripWire () |
override void | OnInventoryEnter (Man player) |
override void | OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0") |
override void | OnPlacementCancelled (Man player) |
override bool | IsDeployable () |
override bool | IsTakeable () |
override string | GetDeploySoundset () |
override string | GetLoopDeploySoundset () |
override void | SetActions () |
void | UpdateProxySelections () |
Variables | |
enum eWireMaterial | FOLDED = 3 |
static const int | DEPLOYED = 2 |
static const int | TRIGGERED = 1 |
int | m_State = FOLDED |
private int | m_WireMaterial |
protected bool | m_ResultOfAdvancedPlacing |
protected vector | m_TriggerPosition |
protected vector | m_TriggerOrientation |
enum eWireMaterial |
References DEPLOYED, and GetState().
Referenced by Entity::CanDisplayAnyAttachmentSlot().
References DEPLOYED, and GetState().
override void CreateTrigger | ( | ) |
References GetGame(), RefreshState(), SetState(), GameConstants::STATE_RUINED, and TRIGGERED.
References SetTakeable().
References SetTakeable().
override void EEItemLocationChanged | ( | notnull InventoryLocation | oldLoc, |
notnull InventoryLocation | newLoc | ||
) |
override void EEKilled | ( | Object | killer | ) |
References m_TrapTrigger, and StartDeactivate().
void FoldTripWire | ( | ) |
References m_AnimationPhaseGrounded, m_AnimationPhaseSet, and m_AnimationPhaseTriggered.
Referenced by RefreshState().
override string GetDeploySoundset | ( | ) |
override string GetLoopDeploySoundset | ( | ) |
int GetState | ( | ) |
returns one of STATE_...
returns the state of climb (enum value of ClimbStates);
References m_State.
int GetWireType | ( | ) |
References m_WireMaterial.
override bool IsDeployable | ( | ) |
override bool IsTakeable | ( | ) |
References DEPLOYED, and GetState().
override void OnInventoryEnter | ( | Man | player | ) |
References FOLDED, and SetState().
References StartDeactivate().
override void OnPlacementCancelled | ( | Man | player | ) |
References FOLDED, m_ResultOfAdvancedPlacing, and SetState().
override void OnPlacementComplete | ( | Man | player, |
vector | position = "0 0 0" , |
||
vector | orientation = "0 0 0" |
||
) |
References DEPLOYED, GetGame(), m_ResultOfAdvancedPlacing, m_TriggerOrientation, m_TriggerPosition, and SetState().
override void OnSteppedOn | ( | EntityAI | victim | ) |
References GetGame(), GetPosition, SEffectManager::PlaySound(), EffectSound::SetAutodestroy(), SetInactive(), SetState(), and TRIGGERED.
override bool OnStoreLoad | ( | ParamsReadContext | ctx, |
int | version | ||
) |
References FOLDED, Serializer::Read(), RefreshState(), and SetState().
override void OnStoreSave | ( | ParamsWriteContext | ctx | ) |
References CachedObjectsArrays::ARRAY_INT, m_ModifierList, m_ParamList, m_State, and Serializer::Write().
override void RefreshState | ( | ) |
References FOLDED, FoldTripWire(), and GetState().
override void SetActions | ( | ) |
References ActionDeployObject(), and AddAction().
override void SetInactive | ( | bool | stop_timer = true | ) |
override void SetupTrapPlayer | ( | PlayerBase | player, |
bool | set_position = true |
||
) |
References DEPLOYED, and SetState().
void SetWireType | ( | int | wireType | ) |
References m_WireMaterial.
override void StartDeactivate | ( | PlayerBase | player | ) |
References DeleteTrigger(), FOLDED, and SetState().
Referenced by EEKilled(), and OnItemLocationChanged().
void TripwireTrap | ( | ) |
References string::Format(), m_AnimationPhaseGrounded, m_AnimationPhaseSet, m_AnimationPhaseTriggered, m_DamagePlayers, m_DefectRate, m_InfoActivationTime, m_InitWaitTime, m_NeedActivation, and float::ToString().
Referenced by RecipeBase::Do(), and Roadflare::OnActivatedByItem().
void UpdateProxySelections | ( | ) |
References GetState().
|
static |
Referenced by CanDisplayAttachmentSlot(), CanReceiveAttachment(), IsTakeable(), OnPlacementComplete(), and SetupTrapPlayer().
enum eWireMaterial FOLDED = 3 |
protected bool m_ResultOfAdvancedPlacing |
Referenced by EEItemLocationChanged(), OnPlacementCancelled(), and OnPlacementComplete().
protected vector m_TriggerOrientation |
Referenced by EEItemLocationChanged(), and OnPlacementComplete().
protected vector m_TriggerPosition |
Referenced by EEItemLocationChanged(), and OnPlacementComplete().
private int m_WireMaterial |
Referenced by GetWireType(), and SetWireType().
|
static |
Referenced by EEHealthLevelChanged(), and OnSteppedOn().