Dayz Explorer 1.29.162510
Loading...
Searching...
No Matches
trap_tripwire.c File Reference

Go to the source code of this file.

Classes

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
int m_State = FOLDED
bool m_ResultOfAdvancedPlacing
vector m_TriggerPosition
vector m_TriggerOrientation

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.

◆ CanReceiveAttachment()

override bool CanReceiveAttachment ( EntityAI attachment,
int slotId )
protected

Definition at line 218 of file trap_tripwire.c.

◆ CreateTrigger()

override void CreateTrigger ( )
protected

Definition at line 60 of file trap_tripwire.c.

◆ EEHealthLevelChanged()

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

Definition at line 136 of file trap_tripwire.c.

◆ EEItemAttached()

override void EEItemAttached ( EntityAI item,
string slot_name )
protected

Definition at line 235 of file trap_tripwire.c.

◆ EEItemDetached()

override void EEItemDetached ( EntityAI item,
string slot_name )
protected

Definition at line 242 of file trap_tripwire.c.

◆ EEItemLocationChanged()

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

Definition at line 111 of file trap_tripwire.c.

◆ EEKilled()

override void EEKilled ( Object killer)
protected

Definition at line 249 of file trap_tripwire.c.

◆ FoldTripWire()

void FoldTripWire ( )
protected

Definition at line 260 of file trap_tripwire.c.

◆ 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.

◆ GetWireType()

int GetWireType ( )
protected

Definition at line 187 of file trap_tripwire.c.

◆ 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.

◆ OnInventoryEnter()

override void OnInventoryEnter ( Man player)
protected

Definition at line 275 of file trap_tripwire.c.

◆ OnItemLocationChanged()

override void OnItemLocationChanged ( EntityAI old_owner,
EntityAI new_owner )
protected

Definition at line 99 of file trap_tripwire.c.

◆ OnPlacementCancelled()

override void OnPlacementCancelled ( Man player)
protected

Definition at line 353 of file trap_tripwire.c.

◆ OnPlacementComplete()

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

Definition at line 339 of file trap_tripwire.c.

◆ OnSteppedOn()

override void OnSteppedOn ( EntityAI victim)
protected

Definition at line 72 of file trap_tripwire.c.

◆ OnStoreLoad()

override bool OnStoreLoad ( ParamsReadContext ctx,
int version )
protected

Definition at line 45 of file trap_tripwire.c.

◆ OnStoreSave()

override void OnStoreSave ( ParamsWriteContext ctx)
protected

Definition at line 37 of file trap_tripwire.c.

◆ RefreshState()

override void RefreshState ( )
protected

Definition at line 193 of file trap_tripwire.c.

◆ SetActions()

override void SetActions ( )
protected

Definition at line 383 of file trap_tripwire.c.

◆ SetInactive()

override void SetInactive ( bool stop_timer = true)
protected

Definition at line 150 of file trap_tripwire.c.

◆ SetState()

void SetState ( int state_ID)
protected

Definition at line 172 of file trap_tripwire.c.

◆ SetupTrapPlayer()

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

Definition at line 203 of file trap_tripwire.c.

◆ SetWireType()

void SetWireType ( int wireType)
protected

Definition at line 182 of file trap_tripwire.c.

◆ StartDeactivate()

override void StartDeactivate ( PlayerBase player)
protected

Definition at line 209 of file trap_tripwire.c.

◆ TripwireTrap()

void TripwireTrap ( )
protected

Definition at line 23 of file trap_tripwire.c.

◆ UpdateProxySelections()

void UpdateProxySelections ( )
protected

Definition at line 395 of file trap_tripwire.c.

Variable Documentation

◆ FOLDED

enum eWireMaterial FOLDED = 3

◆ m_ResultOfAdvancedPlacing

bool m_ResultOfAdvancedPlacing
protected

Definition at line 19 of file trap_tripwire.c.

◆ 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.

◆ m_TriggerPosition

vector m_TriggerPosition
protected

Definition at line 20 of file trap_tripwire.c.