Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
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 Capture (DayZCreatureAI capAnimal)
void ContactEvent (IEntity other, vector pos)
void DestroyEg ()
void EasterEgg ()
override void EEItemLocationChanged (notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
override void EOnContact (IEntity other, Contact extra)
override void EOnTouch (IEntity other, int extra)
override void OnInventoryEnter (Man player)
override void OnInventoryExit (Man player)
override bool OnStoreLoad (ParamsReadContext ctx, int version)
override void OnStoreSave (ParamsWriteContext ctx)
override void OnVariablesSynchronized ()
void PlaySFX (int releaseCase=eCaptureState.CAPTURE)
void PlayVFX ()
void RegisterSoundSetMap ()
void Release (vector pos)
void ResizeParticle (DayZCreatureAI capAnimal)

Variables

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

Enumeration Type Documentation

◆ eCaptureState

Enumerator
CAPTURE 
RELEASE 
STASIS 
CAPTUREFX 
RELEASEFX 
END 

Definition at line 1 of file easteregg.c.

Function Documentation

◆ ~EasterEgg()

void ~EasterEgg ( )
protected

Definition at line 52 of file easteregg.c.

References m_ParCapture.

◆ Capture()

◆ ContactEvent()

void ContactEvent ( IEntity other,
vector pos )
protected

Definition at line 61 of file easteregg.c.

References Capture(), g_Game, m_CaptureState, m_CreatureHash, PlaySFX(), PlayVFX(), and Release().

Referenced by EOnContact(), and EOnTouch().

◆ DestroyEg()

void DestroyEg ( )
private

Definition at line 405 of file easteregg.c.

◆ EasterEgg()

void EasterEgg ( )
protected

Definition at line 37 of file easteregg.c.

References m_CreatureType, RegisterSoundSetMap(), and SetFlags().

◆ EEItemLocationChanged()

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

Definition at line 147 of file easteregg.c.

◆ EOnContact()

override void EOnContact ( IEntity other,
Contact extra )
protected

Definition at line 112 of file easteregg.c.

References ContactEvent(), and Contact::Position.

◆ EOnTouch()

override void EOnTouch ( IEntity other,
int extra )
protected

Definition at line 106 of file easteregg.c.

References ContactEvent(), and GetPosition().

◆ OnInventoryEnter()

override void OnInventoryEnter ( Man player)
protected

Definition at line 137 of file easteregg.c.

References g_Game, and m_ParCapture.

◆ OnInventoryExit()

override void OnInventoryExit ( Man player)
protected

Definition at line 117 of file easteregg.c.

References m_CaptureState, and m_CreatureType.

◆ OnStoreLoad()

override bool OnStoreLoad ( ParamsReadContext ctx,
int version )
private

◆ OnStoreSave()

override void OnStoreSave ( ParamsWriteContext ctx)
private

◆ OnVariablesSynchronized()

override void OnVariablesSynchronized ( )
private

Definition at line 272 of file easteregg.c.

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

◆ PlaySFX()

void PlaySFX ( int releaseCase = eCaptureState.CAPTURE)
private

◆ PlayVFX()

void PlayVFX ( )
private

◆ RegisterSoundSetMap()

void RegisterSoundSetMap ( )
private

Definition at line 289 of file easteregg.c.

References string::Hash(), and m_CreatureSoundMap.

Referenced by EasterEgg().

◆ Release()

void Release ( vector pos)
private

◆ ResizeParticle()

void ResizeParticle ( DayZCreatureAI capAnimal)
private

Definition at line 228 of file easteregg.c.

References vector::DistanceSq(), m_ParScale, and PARTICLE_SCALE_MULT.

Referenced by Capture().

Variable Documentation

◆ CAPTURE_VELOCITY

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

Definition at line 20 of file easteregg.c.

Referenced by Capture(), and Release().

◆ m_CaptureSound

EffectSound m_CaptureSound
protected

Definition at line 28 of file easteregg.c.

Referenced by PlaySFX().

◆ m_CaptureSoundHash

int m_CaptureSoundHash
protected

Definition at line 33 of file easteregg.c.

Referenced by Capture(), OnStoreLoad(), OnStoreSave(), and PlaySFX().

◆ m_CaptureState

◆ m_CreatureHash

int m_CreatureHash = 0
private

Definition at line 18 of file easteregg.c.

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

◆ m_CreatureSound

EffectSound m_CreatureSound
protected

Definition at line 29 of file easteregg.c.

Referenced by PlaySFX().

◆ m_CreatureSoundMap

ref map<int, string> m_CreatureSoundMap
protected

Definition at line 32 of file easteregg.c.

Referenced by PlaySFX(), and RegisterSoundSetMap().

◆ m_CreatureType

string m_CreatureType
private

Definition at line 17 of file easteregg.c.

Referenced by Capture(), EasterEgg(), OnInventoryExit(), OnStoreLoad(), OnStoreSave(), and Release().

◆ m_DangerSound

bool m_DangerSound = false
protected

Definition at line 30 of file easteregg.c.

Referenced by Capture(), OnStoreLoad(), OnStoreSave(), and PlaySFX().

◆ m_ParCapture

Particle m_ParCapture
protected

Definition at line 23 of file easteregg.c.

Referenced by ~EasterEgg(), Capture(), OnInventoryEnter(), PlayVFX(), and Release().

◆ m_ParScale

float m_ParScale = 1
private

Definition at line 24 of file easteregg.c.

Referenced by OnStoreLoad(), OnStoreSave(), PlayVFX(), and ResizeParticle().

◆ m_ReleaseSoundHash

int m_ReleaseSoundHash
protected

Definition at line 34 of file easteregg.c.

Referenced by Capture(), OnStoreLoad(), OnStoreSave(), and PlaySFX().

◆ m_StoredCreature

enum eCaptureState m_StoredCreature = null

Referenced by Capture().

◆ PARTICLE_SCALE_MULT

const float PARTICLE_SCALE_MULT = 0.1
private

Definition at line 25 of file easteregg.c.

Referenced by ResizeParticle().