class Grenade_BaseSource
Grenade_Base › ExplosivesBase › ItemBase › InventoryItem › EntityAI › Entity › ObjectTyped › Object › IEntity › Managed
Derived classes
View all 15 descendants
All members, including inherited
Constructors 1
void Grenade_Base()References EntityAI.RegisterNetSyncVariableBool(), SetFuseDelay(), SetGrenadeType()
Show 5 more
, SetPinnable(), DEFAULT_FUSE_DELAY, m_FuseTimer, m_Pinned, and m_RemainingFuseTimeConstants 1
protected const float DEFAULT_FUSE_DELAY = 10Referenced by Grenade_Base()
Members 6
protected ref Timer m_FuseTimerprotected float m_FuseDelayprotected float m_RemainingFuseTimeprotected bool m_PinnedReferenced by Grenade_Base(), IsPinned(), OnPin()
Show 6 more
, OnStoreLoad(), OnStoreSave(), OnUnpin(), Pin(), Unpin(), and Grenade_ChemGas.Grenade_ChemGas()protected bool m_Pinnableprotected EGrenadeType m_GrenadeTypeMethods 31
void Unpin()override void OnActivatedByTripWire()DEPRECATED use OnActivatedByItem
override void OnActivatedByItem(notnull ItemBase item)bool IsPinned()References m_Pinned
Referenced by ActionPin.ActionCondition(), ActionUnpin.ActionCondition(), and EEItemLocationChanged()
bool IsPinnable()Referenced by ActionPin.ActionCondition()
void ActivateRandomTime()void SetPinnable(bool state)to millis
References m_Pinnable
Referenced by Grenade_Base(), Grenade_ChemGas.Grenade_ChemGas(), and SmokeGrenadeBase.SmokeGrenadeBase()
void SetFuseDelay(float delay)References m_FuseDelay
void SetGrenadeType(EGrenadeType type)References m_GrenadeType
Referenced by FlashGrenade.FlashGrenade(), Grenade_Base(), Grenade_ChemGas.Grenade_ChemGas()
Show 1 more
, SmokeGrenadeBase.SmokeGrenadeBase()protected void Activate()References TimerBase.IsRunning(), Timer.Run(), m_FuseDelay
Show 2 more
, m_FuseTimer, and m_RemainingFuseTimeprotected void Deactivate()run only the remaining part (already unpinned and pinned)
References TimerBase.GetRemaining(), TimerBase.IsRunning(), OnDeactivate()
Show 3 more
, Timer.Stop(), m_FuseTimer, and m_RemainingFuseTimeprotected override void InitiateExplosion()References array.Count(), Object.Explode(), GetGrenadeType()
Show 2 more
, ExplosivesBase.OnExplode(), and ExplosivesBase.m_AmmoTypesReferenced by ExplodeGrenade()
protected void ExplodeGrenade(EGrenadeType grenade_type)DEPRECATED - for backward compatibility only
References InitiateExplosion()
protected void OnPin()References Deactivate(), InventoryItem.ForceFarBubble(), CGame.IsServer()
Show 2 more
, EntityAI.SetSynchDirty(), and m_PinnedReferenced by Pin()
protected void OnUnpin()References InventoryItem.ForceFarBubble(), CGame.IsServer(), OnActivateStarted()
Show 2 more
, EntityAI.SetSynchDirty(), and m_PinnedReferenced by Unpin()
protected void OnActivateStarted()Referenced by OnUnpin()
protected void OnActivateFinished()protected void OnActivateImmediate()Referenced by ActivateImmediate()
protected void OnDeactivate()Referenced by Deactivate()
override void OnStoreSave(ParamsWriteContext ctx)References ExplosivesBase.OnStoreSave(), CGame.SaveVersion(), Serializer.Write()
Show 1 more
, m_Pinnedoverride bool OnStoreLoad(ParamsReadContext ctx, int version)override bool CanBeArmed()override bool CanBeDisarmed()override bool CanExplodeInFire()override void SetActions()Referenced by SmokeGrenadeBase.SetActions()
override void EEItemLocationChanged(notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)References Activate(), ItemBase.EEItemLocationChanged(), InventoryLocation.GetType()
Show 1 more
, IsPinned()activate grenade when it leaves player hands (safety handle released)
override void InitSpecificsExplosionEffectForSurface()