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

Enumerations

enum  SoundTypeMine { DISARMING = 0 }
 

Functions

void LandMineTrap ()
 
void ~LandMineTrap ()
 
override void StartActivate (PlayerBase player)
 
override void OnActivatedByItem (notnull ItemBase item)
 Called when this item is activated by other.
 
override void OnActivate ()
 
override bool CanExplodeInFire ()
 
override void OnUpdate (EntityAI victim)
 
override void OnSteppedOn (EntityAI victim)
 
override void OnSteppedOut (EntityAI victim)
 
protected void OnServerSteppedOn (Object obj, string damageZone)
 
void DeleteThis ()
 
override void OnItemLocationChanged (EntityAI old_owner, EntityAI new_owner)
 
override void EEKilled (Object killer)
 
void PlaySoundActivate ()
 
override void Explode (int damageType, string ammoType="")
 
override bool CanBeDisarmed ()
 
override void OnRPC (PlayerIdentity sender, int rpc_type, ParamsReadContext ctx)
 
void PlayDisarmingLoopSound ()
 
void StopDisarmingLoopSound ()
 
override void OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0")
 
override bool IsDeployable ()
 
override string GetLoopDeploySoundset ()
 
override void SetActions ()
 

Variables

enum SoundTypeMine m_TimerLoopSound
 
protected ref EffectSound m_SafetyPinSound
 
protected ref EffectSound m_DisarmingLoopSound
 
protected ref Timer m_DeleteTimer
 
private const int BROKEN_LEG_PROB = 90
 
private const int BLEED_SOURCE_PROB = 50
 
private const int MAX_BLEED_SOURCE = 1
 

Enumeration Type Documentation

◆ SoundTypeMine

Enumerator
DISARMING 

Function Documentation

◆ CanBeDisarmed()

override bool CanBeDisarmed ( )

◆ CanExplodeInFire()

override bool CanExplodeInFire ( )

◆ DeleteThis()

void DeleteThis ( )

◆ EEKilled()

override void EEKilled ( Object  killer)

References Explode().

◆ Explode()

◆ GetLoopDeploySoundset()

override string GetLoopDeploySoundset ( )

◆ IsDeployable()

override bool IsDeployable ( )

◆ LandMineTrap()

◆ OnActivate()

◆ OnActivatedByItem()

override void OnActivatedByItem ( notnull ItemBase  item)

Called when this item is activated by other.

References DeleteThis().

◆ OnItemLocationChanged()

override void OnItemLocationChanged ( EntityAI  old_owner,
EntityAI  new_owner 
)

◆ OnPlacementComplete()

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

References GetGame(), and StartActivate().

◆ OnRPC()

override void OnRPC ( PlayerIdentity  sender,
int  rpc_type,
ParamsReadContext  ctx 
)

◆ OnServerSteppedOn()

protected void OnServerSteppedOn ( Object  obj,
string  damageZone 
)

◆ OnSteppedOn()

◆ OnSteppedOut()

override void OnSteppedOut ( EntityAI  victim)

References m_UpdateTimer, and Timer::Stop().

◆ OnUpdate()

override void OnUpdate ( EntityAI  victim)

◆ PlayDisarmingLoopSound()

void PlayDisarmingLoopSound ( )

◆ PlaySoundActivate()

void PlaySoundActivate ( )

◆ SetActions()

override void SetActions ( )

◆ StartActivate()

◆ StopDisarmingLoopSound()

void StopDisarmingLoopSound ( )

References m_DisarmingLoopSound, and EffectSound::SoundStop().

Referenced by OnRPC().

◆ ~LandMineTrap()

Variable Documentation

◆ BLEED_SOURCE_PROB

private const int BLEED_SOURCE_PROB = 50

Referenced by OnSteppedOn().

◆ BROKEN_LEG_PROB

private const int BROKEN_LEG_PROB = 90

Referenced by OnSteppedOn().

◆ m_DeleteTimer

protected ref Timer m_DeleteTimer

◆ m_DisarmingLoopSound

protected ref EffectSound m_DisarmingLoopSound

◆ m_SafetyPinSound

protected ref EffectSound m_SafetyPinSound

Referenced by StartActivate().

◆ m_TimerLoopSound

enum SoundTypeMine m_TimerLoopSound

◆ MAX_BLEED_SOURCE

private const int MAX_BLEED_SOURCE = 1

Referenced by OnSteppedOn().