class EasterEggSource
EasterEgg › Inventory_Base › ItemBase › InventoryItem › EntityAI › Entity › ObjectTyped › Object › IEntity › Managed
All members, including inherited
Constructors 2
void EasterEgg()void ~EasterEgg()Constants 2
private const float PARTICLE_SCALE_MULT = 0.1Used because we use DistanceSqr to get relevant scale
Referenced by ResizeParticle()
Members 12
private DayZCreatureAI m_StoredCreature = nullReferenced by Capture()
private string m_CreatureTypeReferenced by Capture(), EasterEgg(), OnInventoryExit()
Show 3 more
, OnStoreLoad(), OnStoreSave(), and Release()private int m_CaptureState = eCaptureState.STASISReferenced by Capture(), ContactEvent(), OnInventoryExit()
Show 5 more
, OnStoreLoad(), OnStoreSave(), OnVariablesSynchronized(), PlayVFX(), and Release()protected Particle m_ParCaptureprivate float m_ParScale = 1protected bool m_DangerSound = falseUsed to determine if release animal is dangerous and play sound accordingly
Store all possible creature sound sets mapped to their respective hash
protected int m_CaptureSoundHashUsed to find capture sound set in map
protected int m_ReleaseSoundHashUsed to find release sound set in map
Methods 16
References Capture(), Class.Cast(), Object.IsAlive()
Show 7 more
, CGame.IsServer(), PlaySFX(), PlayVFX(), Release(), EntityAI.SetSynchDirty(), m_CaptureState, and m_CreatureHashoverride void OnInventoryExit(Man player)override void OnInventoryEnter(Man player)override void EEItemLocationChanged(notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)References ItemBase.EEItemLocationChanged()
private void Capture(DayZCreatureAI capAnimal)References DayZCreatureAI.CaptureSound(), EntityAI.Delete(), EntityAI.Delete()
Show 22 more
, Object.Delete(), ItemBase.GetQuantityMax(), Object.GetType(), string.Hash(), string.Hash(), string.Hash(), Object.IsAlive(), DayZCreatureAI.IsDanger(), DayZCreatureAI.ReleaseSound(), ResizeParticle(), ItemBase.SetQuantity(), EntityAI.SetSynchDirty(), SetVelocity(), CAPTURE_VELOCITY, m_CaptureSoundHash, m_CaptureState, m_CreatureHash, m_CreatureType, m_DangerSound, m_ParCapture, m_ReleaseSoundHash, and m_StoredCreatureReferenced by ContactEvent()
private void Release(vector pos)Referenced by ContactEvent()
private void PlayVFX()private void ResizeParticle(DayZCreatureAI capAnimal)References vector.DistanceSq(), IEntity.GetWorldBounds(), m_ParScale
Show 1 more
, PARTICLE_SCALE_MULTReferenced by Capture()
private void PlaySFX(int releaseCase = eCaptureState.CAPTURE)References map.Find(), CGame.IsDedicatedServer(), Object.PlaySoundSet()
Show 6 more
, m_CaptureSound, m_CaptureSoundHash, m_CreatureSound, m_CreatureSoundMap, m_DangerSound, and m_ReleaseSoundHashoverride void OnVariablesSynchronized()void RegisterSoundSetMap()Referenced by EasterEgg()
override void OnStoreSave(ParamsWriteContext ctx)References ItemBase.OnStoreSave(), Serializer.Write(), m_CaptureSoundHash
Show 5 more
, m_CaptureState, m_CreatureType, m_DangerSound, m_ParScale, and m_ReleaseSoundHashoverride bool OnStoreLoad(ParamsReadContext ctx, int version)References ItemBase.OnStoreLoad(), Serializer.Read(), m_CaptureSoundHash
Show 5 more
, m_CaptureState, m_CreatureType, m_DangerSound, m_ParScale, and m_ReleaseSoundHashprivate void DestroyEg()References EntityAI.Delete()