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

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
 
private const vector CAPTURE_VELOCITY = { 0, 0, 0 }
 
protected Particle m_ParCapture
 
private float m_ParScale = 1
 
private const 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 

Function Documentation

◆ Capture()

◆ ContactEvent()

void ContactEvent ( IEntity  other,
vector  pos 
)

◆ DestroyEg()

private void DestroyEg ( )

◆ EasterEgg()

void EasterEgg ( )

◆ EEItemLocationChanged()

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

◆ EOnContact()

override void EOnContact ( IEntity  other,
Contact  extra 
)

◆ EOnTouch()

override void EOnTouch ( IEntity  other,
int  extra 
)

References ContactEvent(), and GetPosition.

◆ OnInventoryEnter()

override void OnInventoryEnter ( Man  player)

◆ OnInventoryExit()

override void OnInventoryExit ( Man  player)

References m_CaptureState, and m_CreatureType.

◆ OnStoreLoad()

◆ OnStoreSave()

◆ OnVariablesSynchronized()

override void OnVariablesSynchronized ( )

References m_CaptureState, PlaySFX(), and PlayVFX().

◆ PlaySFX()

◆ PlayVFX()

◆ RegisterSoundSetMap()

void RegisterSoundSetMap ( )

References string::Hash(), and m_CreatureSoundMap.

Referenced by EasterEgg().

◆ Release()

◆ ResizeParticle()

private void ResizeParticle ( DayZCreatureAI  capAnimal)

◆ ~EasterEgg()

void ~EasterEgg ( )

References m_ParCapture, and Particle::Stop().

Variable Documentation

◆ CAPTURE_VELOCITY

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

Referenced by Capture(), and Release().

◆ m_CaptureSound

protected EffectSound m_CaptureSound

Referenced by PlaySFX().

◆ m_CaptureSoundHash

protected int m_CaptureSoundHash

◆ m_CaptureState

◆ m_CreatureHash

private int m_CreatureHash = 0

Referenced by Capture(), ContactEvent(), and Release().

◆ m_CreatureSound

protected EffectSound m_CreatureSound

Referenced by PlaySFX().

◆ m_CreatureSoundMap

protected ref map<int, string> m_CreatureSoundMap

Referenced by PlaySFX(), and RegisterSoundSetMap().

◆ m_CreatureType

private string m_CreatureType

◆ m_DangerSound

protected bool m_DangerSound = false

◆ m_ParCapture

protected Particle m_ParCapture

◆ m_ParScale

private float m_ParScale = 1

◆ m_ReleaseSoundHash

protected int m_ReleaseSoundHash

◆ m_StoredCreature

enum eCaptureState m_StoredCreature = null

Referenced by Capture().

◆ PARTICLE_SCALE_MULT

private const float PARTICLE_SCALE_MULT = 0.1

Referenced by ResizeParticle().