Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
trap_tripwire.c File Reference

Go to the source code of this file.

Data Structures

class  TripwireTrapDeployed

Enumerations

enum  eWireMaterial { WIRE = 0 , BARBED_WIRE = 1 , ROPE = 2 }

Functions

override bool CanDisplayAttachmentSlot (int slot_id)
override bool CanReceiveAttachment (EntityAI attachment, int slotId)
override void CreateTrigger ()
override void EEHealthLevelChanged (int oldLevel, int newLevel, string zone)
override void EEItemAttached (EntityAI item, string slot_name)
override void EEItemDetached (EntityAI item, string slot_name)
override void EEItemLocationChanged (notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
override void EEKilled (Object killer)
void FoldTripWire ()
override string GetDeploySoundset ()
override string GetLoopDeploySoundset ()
int GetState ()
 returns one of STATE_...
int GetWireType ()
override bool IsDeployable ()
override bool IsTakeable ()
override void OnInventoryEnter (Man player)
override void OnItemLocationChanged (EntityAI old_owner, EntityAI new_owner)
override void OnPlacementCancelled (Man player)
override void OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0")
override void OnSteppedOn (EntityAI victim)
override bool OnStoreLoad (ParamsReadContext ctx, int version)
override void OnStoreSave (ParamsWriteContext ctx)
override void RefreshState ()
override void SetActions ()
override void SetInactive (bool stop_timer=true)
void SetState (int state_ID)
override void SetupTrapPlayer (PlayerBase player, bool set_position=true)
void SetWireType (int wireType)
override void StartDeactivate (PlayerBase player)
void TripwireTrap ()
void UpdateProxySelections ()

Variables

static const int DEPLOYED = 2
enum eWireMaterial FOLDED = 3
bool m_ResultOfAdvancedPlacing
int m_State = FOLDED
vector m_TriggerOrientation
vector m_TriggerPosition
int m_WireMaterial
static const int TRIGGERED = 1

Enumeration Type Documentation

◆ eWireMaterial

Enumerator
WIRE 
BARBED_WIRE 
ROPE 

Definition at line 2 of file trap_tripwire.c.

Function Documentation

◆ CanDisplayAttachmentSlot()

override bool CanDisplayAttachmentSlot ( int slot_id)
protected

Definition at line 227 of file trap_tripwire.c.

References DEPLOYED, and GetState().

Referenced by Entity::CanDisplayAnyAttachmentSlot().

◆ CanReceiveAttachment()

override bool CanReceiveAttachment ( EntityAI attachment,
int slotId )
protected

Definition at line 218 of file trap_tripwire.c.

References DEPLOYED, and GetState().

◆ CreateTrigger()

override void CreateTrigger ( )
protected

◆ EEHealthLevelChanged()

override void EEHealthLevelChanged ( int oldLevel,
int newLevel,
string zone )
protected

Definition at line 136 of file trap_tripwire.c.

References g_Game, RefreshState(), SetState(), GameConstants::STATE_RUINED, and TRIGGERED.

◆ EEItemAttached()

override void EEItemAttached ( EntityAI item,
string slot_name )
protected

Definition at line 235 of file trap_tripwire.c.

References SetTakeable().

◆ EEItemDetached()

override void EEItemDetached ( EntityAI item,
string slot_name )
protected

Definition at line 242 of file trap_tripwire.c.

References SetTakeable().

◆ EEItemLocationChanged()

override void EEItemLocationChanged ( notnull InventoryLocation oldLoc,
notnull InventoryLocation newLoc )
protected

◆ EEKilled()

override void EEKilled ( Object killer)
protected

Definition at line 249 of file trap_tripwire.c.

References m_TrapTrigger, and StartDeactivate().

◆ FoldTripWire()

void FoldTripWire ( )
protected

Definition at line 260 of file trap_tripwire.c.

References m_AnimationPhaseGrounded, m_AnimationPhaseSet, and m_AnimationPhaseTriggered.

Referenced by RefreshState().

◆ GetDeploySoundset()

override string GetDeploySoundset ( )
protected

Definition at line 373 of file trap_tripwire.c.

◆ GetLoopDeploySoundset()

override string GetLoopDeploySoundset ( )
protected

Definition at line 378 of file trap_tripwire.c.

◆ GetState()

int GetState ( )
protected

returns one of STATE_...

returns the state of climb (enum value of ClimbStates);

Definition at line 177 of file trap_tripwire.c.

References m_State.

◆ GetWireType()

int GetWireType ( )
protected

Definition at line 187 of file trap_tripwire.c.

References m_WireMaterial.

◆ IsDeployable()

override bool IsDeployable ( )
protected

Definition at line 362 of file trap_tripwire.c.

◆ IsTakeable()

override bool IsTakeable ( )
protected

Definition at line 368 of file trap_tripwire.c.

References DEPLOYED, and GetState().

◆ OnInventoryEnter()

override void OnInventoryEnter ( Man player)
protected

Definition at line 275 of file trap_tripwire.c.

References FOLDED, and SetState().

◆ OnItemLocationChanged()

override void OnItemLocationChanged ( EntityAI old_owner,
EntityAI new_owner )
protected

Definition at line 99 of file trap_tripwire.c.

References StartDeactivate().

◆ OnPlacementCancelled()

override void OnPlacementCancelled ( Man player)
protected

Definition at line 353 of file trap_tripwire.c.

References FOLDED, m_ResultOfAdvancedPlacing, and SetState().

◆ OnPlacementComplete()

override void OnPlacementComplete ( Man player,
vector position = "0 0 0",
vector orientation = "0 0 0" )
protected

◆ OnSteppedOn()

override void OnSteppedOn ( EntityAI victim)
protected

◆ OnStoreLoad()

override bool OnStoreLoad ( ParamsReadContext ctx,
int version )
protected

Definition at line 45 of file trap_tripwire.c.

References FOLDED, Serializer::Read(), RefreshState(), and SetState().

◆ OnStoreSave()

override void OnStoreSave ( ParamsWriteContext ctx)
protected

◆ RefreshState()

override void RefreshState ( )
protected

Definition at line 193 of file trap_tripwire.c.

References FOLDED, FoldTripWire(), and GetState().

◆ SetActions()

override void SetActions ( )
protected

Definition at line 383 of file trap_tripwire.c.

References ActionDeployObject(), and AddAction().

◆ SetInactive()

override void SetInactive ( bool stop_timer = true)
protected

◆ SetState()

void SetState ( int state_ID)
protected

Definition at line 172 of file trap_tripwire.c.

References m_State.

◆ SetupTrapPlayer()

override void SetupTrapPlayer ( PlayerBase player,
bool set_position = true )
protected

Definition at line 203 of file trap_tripwire.c.

References DEPLOYED, and SetState().

◆ SetWireType()

void SetWireType ( int wireType)
protected

Definition at line 182 of file trap_tripwire.c.

References m_WireMaterial.

◆ StartDeactivate()

override void StartDeactivate ( PlayerBase player)
protected

Definition at line 209 of file trap_tripwire.c.

References DeleteTrigger(), FOLDED, and SetState().

Referenced by EEKilled(), and OnItemLocationChanged().

◆ TripwireTrap()

◆ UpdateProxySelections()

void UpdateProxySelections ( )
protected

Definition at line 395 of file trap_tripwire.c.

References GetState().

Variable Documentation

◆ DEPLOYED

const int DEPLOYED = 2
static

◆ FOLDED

◆ m_ResultOfAdvancedPlacing

bool m_ResultOfAdvancedPlacing
protected

◆ m_State

int m_State = FOLDED

Definition at line 16 of file trap_tripwire.c.

◆ m_TriggerOrientation

vector m_TriggerOrientation
protected

Definition at line 21 of file trap_tripwire.c.

Referenced by EEItemLocationChanged(), and OnPlacementComplete().

◆ m_TriggerPosition

vector m_TriggerPosition
protected

Definition at line 20 of file trap_tripwire.c.

Referenced by EEItemLocationChanged(), and OnPlacementComplete().

◆ m_WireMaterial

int m_WireMaterial
private

Definition at line 17 of file trap_tripwire.c.

Referenced by GetWireType(), and SetWireType().

◆ TRIGGERED

const int TRIGGERED = 1
static

Definition at line 14 of file trap_tripwire.c.

Referenced by EEHealthLevelChanged(), and OnSteppedOn().