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, string > | m_CreatureSoundMap |
protected int | m_CaptureSoundHash |
protected int | m_ReleaseSoundHash |
enum eCaptureState |
private void Capture | ( | DayZCreatureAI | capAnimal | ) |
References CAPTURE_VELOCITY, GetQuantityMax(), string::Hash(), m_CaptureSoundHash, m_CaptureState, m_CreatureHash, m_CreatureType, m_DangerSound, m_ParCapture, m_ReleaseSoundHash, m_StoredCreature, ResizeParticle(), SetQuantity(), and SetVelocity().
Referenced by ContactEvent().
References Capture(), GetGame(), m_CaptureState, m_CreatureHash, PlaySFX(), PlayVFX(), and Release().
Referenced by EOnContact(), and EOnTouch().
private void DestroyEg | ( | ) |
void EasterEgg | ( | ) |
References m_CreatureType, RegisterSoundSetMap(), and SetFlags().
override void EEItemLocationChanged | ( | notnull InventoryLocation | oldLoc, |
notnull InventoryLocation | newLoc | ||
) |
References ContactEvent(), and Contact::Position.
References ContactEvent(), and GetPosition.
override void OnInventoryEnter | ( | Man | player | ) |
References GetGame(), m_ParCapture, and Particle::Stop().
override void OnInventoryExit | ( | Man | player | ) |
References m_CaptureState, and m_CreatureType.
override bool OnStoreLoad | ( | ParamsReadContext | ctx, |
int | version | ||
) |
References m_CaptureSoundHash, m_CaptureState, m_CreatureType, m_DangerSound, m_ParScale, m_ReleaseSoundHash, and Serializer::Read().
override void OnStoreSave | ( | ParamsWriteContext | ctx | ) |
References m_CaptureSoundHash, m_CaptureState, m_CreatureType, m_DangerSound, m_ParScale, m_ReleaseSoundHash, and Serializer::Write().
override void OnVariablesSynchronized | ( | ) |
References m_CaptureState, PlaySFX(), and PlayVFX().
private void PlaySFX | ( | int | releaseCase = eCaptureState.CAPTURE | ) |
References GetGame(), m_CaptureSound, m_CaptureSoundHash, m_CreatureSound, m_CreatureSoundMap, m_DangerSound, and m_ReleaseSoundHash.
Referenced by ContactEvent(), and OnVariablesSynchronized().
private void PlayVFX | ( | ) |
References ParticleList::EASTER_EGG_ACTIVATE, GetGame(), GetPosition, m_CaptureState, m_ParCapture, m_ParScale, ParticleManager(), Particle::SetParameter(), and Particle::SetWiggle().
Referenced by ContactEvent(), and OnVariablesSynchronized().
void RegisterSoundSetMap | ( | ) |
References string::Hash(), and m_CreatureSoundMap.
Referenced by EasterEgg().
private void Release | ( | vector | pos | ) |
References CAPTURE_VELOCITY, CGame::CreateObject(), GetGame(), GetQuantityMin(), m_CaptureState, m_CreatureHash, m_CreatureType, m_ParCapture, SetQuantity(), and SetVelocity().
Referenced by ContactEvent().
private void ResizeParticle | ( | DayZCreatureAI | capAnimal | ) |
References vector::DistanceSq(), m_ParScale, and PARTICLE_SCALE_MULT.
Referenced by Capture().
void ~EasterEgg | ( | ) |
References m_ParCapture, and Particle::Stop().
protected EffectSound m_CaptureSound |
Referenced by PlaySFX().
protected int m_CaptureSoundHash |
Referenced by Capture(), OnStoreLoad(), OnStoreSave(), and PlaySFX().
private int m_CaptureState = eCaptureState.STASIS |
Referenced by Capture(), ContactEvent(), OnInventoryExit(), OnStoreLoad(), OnStoreSave(), OnVariablesSynchronized(), PlayVFX(), and Release().
private int m_CreatureHash = 0 |
Referenced by Capture(), ContactEvent(), and Release().
protected EffectSound m_CreatureSound |
Referenced by PlaySFX().
Referenced by PlaySFX(), and RegisterSoundSetMap().
private string m_CreatureType |
Referenced by Capture(), EasterEgg(), OnInventoryExit(), OnStoreLoad(), OnStoreSave(), and Release().
protected bool m_DangerSound = false |
Referenced by Capture(), OnStoreLoad(), OnStoreSave(), and PlaySFX().
protected Particle m_ParCapture |
Referenced by Capture(), OnInventoryEnter(), PlayVFX(), Release(), and ~EasterEgg().
private float m_ParScale = 1 |
Referenced by OnStoreLoad(), OnStoreSave(), PlayVFX(), and ResizeParticle().
protected int m_ReleaseSoundHash |
Referenced by Capture(), OnStoreLoad(), OnStoreSave(), and PlaySFX().
enum eCaptureState m_StoredCreature = null |
Referenced by Capture().
private const float PARTICLE_SCALE_MULT = 0.1 |
Referenced by ResizeParticle().