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

Go to the source code of this file.

Enumerations

enum  SoundTypeMine { DISARMING = 0 }

Functions

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

Variables

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

Enumeration Type Documentation

◆ SoundTypeMine

Enumerator
DISARMING 

Definition at line 1 of file trap_landmine.c.

Function Documentation

◆ ~LandMineTrap()

void ~LandMineTrap ( )
private

◆ CanBeDisarmed()

override bool CanBeDisarmed ( )
protected

Definition at line 241 of file trap_landmine.c.

◆ CanExplodeInFire()

override bool CanExplodeInFire ( )
private

Definition at line 84 of file trap_landmine.c.

◆ DeleteThis()

void DeleteThis ( )
protected

Definition at line 193 of file trap_landmine.c.

References CALL_CATEGORY_SYSTEM, and m_DeleteTimer.

Referenced by Explode(), OnActivatedByItem(), and OnSteppedOn().

◆ EEKilled()

override void EEKilled ( Object killer)
protected

Definition at line 204 of file trap_landmine.c.

References Explode().

◆ Explode()

override void Explode ( int damageType,
string ammoType = "" )
protected

◆ GetLoopDeploySoundset()

override string GetLoopDeploySoundset ( )
protected

Definition at line 301 of file trap_landmine.c.

◆ IsDeployable()

override bool IsDeployable ( )
protected

Definition at line 296 of file trap_landmine.c.

◆ LandMineTrap()

◆ OnActivate()

◆ OnActivatedByItem()

override void OnActivatedByItem ( notnull ItemBase item)
private

Called when this item is activated by other.

Definition at line 61 of file trap_landmine.c.

References DeleteThis().

◆ OnItemLocationChanged()

override void OnItemLocationChanged ( EntityAI old_owner,
EntityAI new_owner )
protected

Definition at line 199 of file trap_landmine.c.

◆ OnPlacementComplete()

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

Definition at line 285 of file trap_landmine.c.

References g_Game, and StartActivate().

◆ OnRPC()

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

◆ OnServerSteppedOn()

void OnServerSteppedOn ( Object obj,
string damageZone )
protected

Definition at line 177 of file trap_landmine.c.

References Explode(), m_UpdateTimer, SetInactive(), and Synch().

◆ OnSteppedOn()

override void OnSteppedOn ( EntityAI victim)
private

◆ OnSteppedOut()

override void OnSteppedOut ( EntityAI victim)
private

Definition at line 166 of file trap_landmine.c.

References m_UpdateTimer.

◆ OnUpdate()

override void OnUpdate ( EntityAI victim)
private

Definition at line 89 of file trap_landmine.c.

References GetClosestCarWheel(), and TrapBase::OnServerSteppedOn().

◆ PlayDisarmingLoopSound()

void PlayDisarmingLoopSound ( )
protected

Definition at line 268 of file trap_landmine.c.

References GetPosition(), m_DisarmingLoopSound, and SEffectManager::PlaySound().

Referenced by OnRPC().

◆ PlaySoundActivate()

void PlaySoundActivate ( )
protected

Definition at line 211 of file trap_landmine.c.

References g_Game, GetPosition(), SEffectManager::PlaySound(), and EffectSound::SetAutodestroy().

Referenced by OnActivate().

◆ SetActions()

override void SetActions ( )
protected

Definition at line 306 of file trap_landmine.c.

References ActionAttach(), ActionDeployObject(), ActionDetach(), and AddAction().

◆ StartActivate()

override void StartActivate ( PlayerBase player)
private

◆ StopDisarmingLoopSound()

void StopDisarmingLoopSound ( )
protected

Definition at line 276 of file trap_landmine.c.

References m_DisarmingLoopSound.

Referenced by OnRPC().

Variable Documentation

◆ BLEED_SOURCE_PROB

const int BLEED_SOURCE_PROB = 50
private

Definition at line 14 of file trap_landmine.c.

Referenced by OnSteppedOn().

◆ BROKEN_LEG_PROB

const int BROKEN_LEG_PROB = 90
private

Definition at line 13 of file trap_landmine.c.

Referenced by OnSteppedOn().

◆ m_DeleteTimer

ref Timer m_DeleteTimer
protected

Definition at line 11 of file trap_landmine.c.

◆ m_DisarmingLoopSound

ref EffectSound m_DisarmingLoopSound
protected

Definition at line 10 of file trap_landmine.c.

Referenced by ~LandMineTrap(), PlayDisarmingLoopSound(), and StopDisarmingLoopSound().

◆ m_SafetyPinSound

ref EffectSound m_SafetyPinSound
protected

Definition at line 9 of file trap_landmine.c.

Referenced by StartActivate().

◆ m_TimerLoopSound

enum SoundTypeMine m_TimerLoopSound

◆ MAX_BLEED_SOURCE

const int MAX_BLEED_SOURCE = 1
private

Definition at line 15 of file trap_landmine.c.

Referenced by OnSteppedOn().