class SpookyEventBaseSource
Constructors 1
void SpookyEventBase()References Init()
Members 5
protected float m_PerformedTimestampinternal, marks the time this event was last performed so that it can guruantee the cooldown period before playing it again
protected int m_Cooldownhow much time needs to elapse between this event can be performed again in seconds
protected string m_SoundSetif set, will play this soundset when performing the event
Referenced by Perform(), SpookyEventRustle.Init(), SpookyEventSteps.Init()
Show 2 more
, SpookyEventWhisper.Init(), and SpookyEventWind.Init()protected ref TStringArray m_Surfacesif set, the player needs to detect this surface for the event to be considered valid
Referenced by CanPerform(), HasSurfaces(), SpookyEventRustle.Init()
Show 1 more
, SpookyEventSteps.Init()protected vector m_MatchingSurfacePosposition of the first matching surface
Methods 9
protected void Init()Referenced by SpookyEventBase()
protected vector GetMatchingSurfacePos(TStringArray surfaces, TStringVectorMap gatheredSurfaces)Referenced by CanPerform()
protected void SetCoolDown(float secs)References m_Cooldown
Referenced by SpookyEventRustle.Init(), SpookyEventSteps.Init(), SpookyEventWhisper.Init()
Show 1 more
, SpookyEventWind.Init()protected bool HasSurfaces()protected bool CanDo(PlayerBase player, TStringVectorMap surfaceTypes)Referenced by CanPerform()
protected void Do(PlayerBase player)Referenced by Perform()
bool CanPerform(PlayerBase player, float currentTime, TStringVectorMap surfaceTypes)References CanDo(), GetMatchingSurfacePos(), HasSurfaces()
Show 5 more
, m_Cooldown, m_MatchingSurfacePos, m_PerformedTimestamp, m_Surfaces, and vector.ZeroReferenced by SpookyTriggerEventsHandler.SelectEvent()
void Perform(PlayerBase player, float currentTime, TStringVectorMap gatheredSurfaces)Referenced by SpookyTriggerEventsHandler.SelectEvent()
protected vector GetSoundPos(PlayerBase player)References Object.GetPosition(), HasSurfaces(), vector.RandomDir2D()