Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
spookyareamisc.c File Reference

Go to the source code of this file.

Data Structures

class  SpookyEventWind
 
class  SpookyEventSteps
 
class  SpookyEventBase
 
class  SpookyPlayerStalker
 this entity gets attached to each player while present in the spooky area More...
 

Functions

SpookyEventWind SpookyEventBase Init ()
 Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system) More...
 
override protected bool CanDo (PlayerBase player, TStringVectorMap surfaceTypes)
 
override protected void Do (PlayerBase player)
 
void SpookyTriggerEventsHandler (notnull PlayerBase player)
 
void ~SpookyTriggerEventsHandler ()
 
protected void RegisterEvents ()
 
void Update (float deltaTime)
 
protected void GatherSurfaces (notnull TStringVectorMap gatheredGurfaces)
 
protected bool SelectEvent ()
 

Variables

class SpookyEventBase m_SoundEvents
 
protected PlayerBase m_Player
 
protected float m_TimeAccu
 
const protected float CONSECUTIVE_EVENTS_COOLDOWN = 20
 
const protected float EVENT_CHECK_FREQUENCY = 2
 
const protected float FIRST_EVENT_CHECK_DELAY = 15
 
const protected float SURFACE_CHECK_POINT_DISTANCE = 2
 
protected float m_NextEventCheck = FIRST_EVENT_CHECK_DELAY
 

Function Documentation

◆ CanDo()

override protected bool CanDo ( PlayerBase  player,
TStringVectorMap  surfaceTypes 
)

Definition at line 8 of file spookyareamisc.c.

◆ Do()

override protected void Do ( PlayerBase  player)

Definition at line 13 of file spookyareamisc.c.

◆ GatherSurfaces()

protected void GatherSurfaces ( notnull TStringVectorMap  gatheredGurfaces)

Definition at line 246 of file spookyareamisc.c.

◆ Init()

Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)

Definition at line 23 of file spookyareamisc.c.

◆ RegisterEvents()

protected void RegisterEvents ( )

Definition at line 224 of file spookyareamisc.c.

◆ SelectEvent()

protected bool SelectEvent ( )

Definition at line 278 of file spookyareamisc.c.

◆ SpookyTriggerEventsHandler()

void SpookyTriggerEventsHandler ( notnull PlayerBase  player)

Definition at line 208 of file spookyareamisc.c.

◆ Update()

void Update ( float  deltaTime)

Definition at line 233 of file spookyareamisc.c.

◆ ~SpookyTriggerEventsHandler()

Definition at line 219 of file spookyareamisc.c.

Variable Documentation

◆ CONSECUTIVE_EVENTS_COOLDOWN

const protected float CONSECUTIVE_EVENTS_COOLDOWN = 20

Definition at line 202 of file spookyareamisc.c.

◆ EVENT_CHECK_FREQUENCY

const protected float EVENT_CHECK_FREQUENCY = 2

Definition at line 203 of file spookyareamisc.c.

◆ FIRST_EVENT_CHECK_DELAY

const protected float FIRST_EVENT_CHECK_DELAY = 15

Definition at line 204 of file spookyareamisc.c.

◆ m_NextEventCheck

protected float m_NextEventCheck = FIRST_EVENT_CHECK_DELAY

Definition at line 206 of file spookyareamisc.c.

◆ m_Player

protected PlayerBase m_Player

Definition at line 200 of file spookyareamisc.c.

◆ m_SoundEvents

class SpookyEventBase m_SoundEvents

◆ m_TimeAccu

protected float m_TimeAccu

Definition at line 201 of file spookyareamisc.c.

◆ SURFACE_CHECK_POINT_DISTANCE

const protected float SURFACE_CHECK_POINT_DISTANCE = 2

Definition at line 205 of file spookyareamisc.c.