Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
easteregg.c File Reference

Go to the source code of this file.

Enumerations

enum  eCaptureState {
  CAPTURE = 0, RELEASE = 1, STASIS = 2, CAPTUREFX = 3,
  RELEASEFX = 4, END
}
 

Functions

void EasterEgg ()
 
void ~EasterEgg ()
 
void ContactEvent (IEntity other, vector pos)
 
override void EOnTouch (IEntity other, int extra)
 
override void EOnContact (IEntity other, Contact extra)
 
override void OnInventoryExit (Man player)
 
override void OnInventoryEnter (Man player)
 
override void EEItemLocationChanged (notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
 
private void Capture (DayZCreatureAI capAnimal)
 
private void Release (vector pos)
 
private void PlayVFX ()
 
private void ResizeParticle (DayZCreatureAI capAnimal)
 
private void PlaySFX (int releaseCase=eCaptureState.CAPTURE)
 
override void OnVariablesSynchronized ()
 
void RegisterSoundSetMap ()
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
private void DestroyEg ()
 

Variables

enum eCaptureState m_StoredCreature = null
 
private string m_CreatureType
 
private int m_CreatureHash = 0
 
private int m_CaptureState = eCaptureState.STASIS
 
const private vector CAPTURE_VELOCITY = { 0, 0, 0 }
 
protected Particle m_ParCapture
 
private float m_ParScale = 1
 
const private float PARTICLE_SCALE_MULT = 0.1
 
protected EffectSound m_CaptureSound
 
protected EffectSound m_CreatureSound
 
protected bool m_DangerSound = false
 
protected ref map< int, stringm_CreatureSoundMap
 
protected int m_CaptureSoundHash
 
protected int m_ReleaseSoundHash
 

Enumeration Type Documentation

◆ eCaptureState

Enumerator
CAPTURE 
RELEASE 
STASIS 
CAPTUREFX 
RELEASEFX 
END 

Definition at line 1 of file easteregg.c.

Function Documentation

◆ Capture()

private void Capture ( DayZCreatureAI  capAnimal)

Definition at line 157 of file easteregg.c.

◆ ContactEvent()

void ContactEvent ( IEntity  other,
vector  pos 
)

Definition at line 61 of file easteregg.c.

◆ DestroyEg()

private void DestroyEg ( )

Definition at line 405 of file easteregg.c.

◆ EasterEgg()

void EasterEgg ( )

Definition at line 37 of file easteregg.c.

◆ EEItemLocationChanged()

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

Definition at line 147 of file easteregg.c.

◆ EOnContact()

override void EOnContact ( IEntity  other,
Contact  extra 
)

Definition at line 112 of file easteregg.c.

◆ EOnTouch()

override void EOnTouch ( IEntity  other,
int  extra 
)

Definition at line 106 of file easteregg.c.

◆ OnInventoryEnter()

override void OnInventoryEnter ( Man  player)

Definition at line 137 of file easteregg.c.

◆ OnInventoryExit()

override void OnInventoryExit ( Man  player)

Definition at line 117 of file easteregg.c.

◆ OnStoreLoad()

override bool OnStoreLoad ( ParamsReadContext  ctx,
int  version 
)

Definition at line 378 of file easteregg.c.

◆ OnStoreSave()

override void OnStoreSave ( ParamsWriteContext  ctx)

Definition at line 366 of file easteregg.c.

◆ OnVariablesSynchronized()

override void OnVariablesSynchronized ( )

Definition at line 272 of file easteregg.c.

◆ PlaySFX()

private void PlaySFX ( int  releaseCase = eCaptureState.CAPTURE)

Definition at line 239 of file easteregg.c.

◆ PlayVFX()

private void PlayVFX ( )

Definition at line 212 of file easteregg.c.

◆ RegisterSoundSetMap()

void RegisterSoundSetMap ( )

Definition at line 289 of file easteregg.c.

◆ Release()

private void Release ( vector  pos)

Definition at line 185 of file easteregg.c.

◆ ResizeParticle()

private void ResizeParticle ( DayZCreatureAI  capAnimal)

Definition at line 228 of file easteregg.c.

◆ ~EasterEgg()

void ~EasterEgg ( )

Definition at line 52 of file easteregg.c.

Variable Documentation

◆ CAPTURE_VELOCITY

const private vector CAPTURE_VELOCITY = { 0, 0, 0 }

Definition at line 20 of file easteregg.c.

◆ m_CaptureSound

protected EffectSound m_CaptureSound

Definition at line 28 of file easteregg.c.

◆ m_CaptureSoundHash

protected int m_CaptureSoundHash

Definition at line 33 of file easteregg.c.

◆ m_CaptureState

private int m_CaptureState = eCaptureState.STASIS

Definition at line 19 of file easteregg.c.

◆ m_CreatureHash

private int m_CreatureHash = 0

Definition at line 18 of file easteregg.c.

◆ m_CreatureSound

protected EffectSound m_CreatureSound

Definition at line 29 of file easteregg.c.

◆ m_CreatureSoundMap

protected ref map<int, string> m_CreatureSoundMap

Definition at line 32 of file easteregg.c.

◆ m_CreatureType

private string m_CreatureType

Definition at line 17 of file easteregg.c.

◆ m_DangerSound

protected bool m_DangerSound = false

Definition at line 30 of file easteregg.c.

◆ m_ParCapture

protected Particle m_ParCapture

Definition at line 23 of file easteregg.c.

◆ m_ParScale

private float m_ParScale = 1

Definition at line 24 of file easteregg.c.

◆ m_ReleaseSoundHash

protected int m_ReleaseSoundHash

Definition at line 34 of file easteregg.c.

◆ m_StoredCreature

enum eCaptureState m_StoredCreature = null

◆ PARTICLE_SCALE_MULT

const private float PARTICLE_SCALE_MULT = 0.1

Definition at line 25 of file easteregg.c.