PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
Trap_TripWire.c File Reference

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
 

Enumeration Type Documentation

◆ eWireMaterial

Enumerator
WIRE 
BARBED_WIRE 
ROPE 

Function Documentation

◆ CanDisplayAttachmentSlot()

override bool CanDisplayAttachmentSlot ( int  slot_id)

◆ CanReceiveAttachment()

override bool CanReceiveAttachment ( EntityAI  attachment,
int  slotId 
)

References DEPLOYED, and GetState().

◆ CreateTrigger()

◆ EEHealthLevelChanged()

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

◆ EEItemAttached()

override void EEItemAttached ( EntityAI  item,
string  slot_name 
)

References SetTakeable().

◆ EEItemDetached()

override void EEItemDetached ( EntityAI  item,
string  slot_name 
)

References SetTakeable().

◆ EEItemLocationChanged()

◆ EEKilled()

override void EEKilled ( Object  killer)

References m_TrapTrigger, and StartDeactivate().

◆ FoldTripWire()

void FoldTripWire ( )

◆ GetDeploySoundset()

override string GetDeploySoundset ( )

◆ GetLoopDeploySoundset()

override string GetLoopDeploySoundset ( )

◆ GetState()

int GetState ( )

returns one of STATE_...

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

References m_State.

◆ GetWireType()

int GetWireType ( )

References m_WireMaterial.

◆ IsDeployable()

override bool IsDeployable ( )

◆ IsTakeable()

override bool IsTakeable ( )

References DEPLOYED, and GetState().

◆ OnInventoryEnter()

override void OnInventoryEnter ( Man  player)

References FOLDED, and SetState().

◆ OnItemLocationChanged()

override void OnItemLocationChanged ( EntityAI  old_owner,
EntityAI  new_owner 
)

References StartDeactivate().

◆ OnPlacementCancelled()

override void OnPlacementCancelled ( Man  player)

◆ OnPlacementComplete()

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

◆ OnSteppedOn()

◆ OnStoreLoad()

override bool OnStoreLoad ( ParamsReadContext  ctx,
int  version 
)

◆ OnStoreSave()

◆ RefreshState()

override void RefreshState ( )

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

◆ SetActions()

override void SetActions ( )

◆ SetInactive()

override void SetInactive ( bool  stop_timer = true)

◆ SetState()

void SetState ( int  state_ID)

References m_State.

◆ SetupTrapPlayer()

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

References DEPLOYED, and SetState().

◆ SetWireType()

void SetWireType ( int  wireType)

References m_WireMaterial.

◆ StartDeactivate()

override void StartDeactivate ( PlayerBase  player)

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

Referenced by EEKilled(), and OnItemLocationChanged().

◆ TripwireTrap()

◆ UpdateProxySelections()

void UpdateProxySelections ( )

References GetState().

Variable Documentation

◆ DEPLOYED

◆ FOLDED

◆ m_ResultOfAdvancedPlacing

protected bool m_ResultOfAdvancedPlacing

◆ m_State

int m_State = FOLDED

◆ m_TriggerOrientation

protected vector m_TriggerOrientation

◆ m_TriggerPosition

protected vector m_TriggerPosition

◆ m_WireMaterial

private int m_WireMaterial

Referenced by GetWireType(), and SetWireType().

◆ TRIGGERED

const int TRIGGERED = 1
static