DIFF

class EasterEggSource

EasterEgg Inventory_Base ItemBase InventoryItem EntityAI Entity ObjectTyped Object IEntity Managed

All members, including inherited

Constructors 2

void ~EasterEgg()

Constants 2

private const vector CAPTURE_VELOCITY = { 0, 0, 0 }
Referenced by Capture(), and Release()
private const float PARTICLE_SCALE_MULT = 0.1

Used because we use DistanceSqr to get relevant scale

Referenced by ResizeParticle()

Members 12

private DayZCreatureAI m_StoredCreature = null
Referenced by Capture()
private string m_CreatureType
Referenced by Capture(), EasterEgg(), OnInventoryExit()
Show 3 more, OnStoreLoad(), OnStoreSave(), and Release()
private int m_CreatureHash = 0

Used for sync

Referenced by Capture(), ContactEvent(), and Release()
private int m_CaptureState = eCaptureState.STASIS
protected Particle m_ParCapture
Referenced by ~EasterEgg(), Capture(), OnInventoryEnter()
Show 2 more, PlayVFX(), and Release()
private float m_ParScale = 1
Referenced by OnStoreLoad(), OnStoreSave(), PlayVFX()
Show 1 more, ResizeParticle()
protected EffectSound m_CaptureSound

Egg SFX

Referenced by PlaySFX()
protected EffectSound m_CreatureSound

Creature specific SFX

Referenced by PlaySFX()
protected bool m_DangerSound = false

Used to determine if release animal is dangerous and play sound accordingly

Referenced by Capture(), OnStoreLoad(), OnStoreSave()
Show 1 more, PlaySFX()
protected ref map<int, string> m_CreatureSoundMap

Store all possible creature sound sets mapped to their respective hash

Referenced by PlaySFX(), and RegisterSoundSetMap()
protected int m_CaptureSoundHash

Used to find capture sound set in map

Referenced by Capture(), OnStoreLoad(), OnStoreSave()
Show 1 more, PlaySFX()
protected int m_ReleaseSoundHash

Used to find release sound set in map

Referenced by Capture(), OnStoreLoad(), OnStoreSave()
Show 1 more, PlaySFX()

Methods 16

override void EOnTouch(IEntity other, int extra)
override void EOnContact(IEntity other, Contact extra)
override void OnInventoryEnter(Man player)
References Object.Delete(), CGame.IsClient(), Particle.Stop()
Show 1 more, m_ParCapture
override void EEItemLocationChanged(notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
private void ResizeParticle(DayZCreatureAI capAnimal)
Referenced by Capture()
private void PlaySFX(int releaseCase = eCaptureState.CAPTURE)
override void OnVariablesSynchronized()
void RegisterSoundSetMap()
Referenced by EasterEgg()
private void DestroyEg()