DIFF

class SpookyEventBaseSource

Constructors 1

void SpookyEventBase()
References Init()

Members 5

protected float m_PerformedTimestamp

internal, marks the time this event was last performed so that it can guruantee the cooldown period before playing it again

Referenced by CanPerform(), and Perform()
protected int m_Cooldown

how much time needs to elapse between this event can be performed again in seconds

Referenced by CanPerform(), and SetCoolDown()
protected string m_SoundSet

if set, will play this soundset when performing the event

protected ref TStringArray m_Surfaces

if set, the player needs to detect this surface for the event to be considered valid

protected vector m_MatchingSurfacePos

position of the first matching surface

Referenced by CanPerform(), and GetSoundPos()

Methods 9

protected void Init()
Referenced by SpookyEventBase()
protected vector GetMatchingSurfacePos(TStringArray surfaces, TStringVectorMap gatheredSurfaces)
References string.Contains(), map.Count(), map.Get()
Show 2 more, map.GetKey(), and vector.Zero
Referenced by CanPerform()
protected void SetCoolDown(float secs)
References m_Cooldown
protected bool HasSurfaces()
References array.Count(), and m_Surfaces
Referenced by CanPerform(), and GetSoundPos()
protected bool CanDo(PlayerBase player, TStringVectorMap surfaceTypes)
Referenced by CanPerform()
protected void Do(PlayerBase player)
Referenced by Perform()
protected vector GetSoundPos(PlayerBase player)