Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
spookyareamisc.c File Reference

Go to the source code of this file.

Data Structures

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

Functions

void ~SpookyTriggerEventsHandler ()
bool CanDo (PlayerBase player, TStringVectorMap surfaceTypes)
void Do (PlayerBase player)
void GatherSurfaces (notnull TStringVectorMap gatheredGurfaces)
SpookyEventWind SpookyEventBase Init ()
void RegisterEvents ()
bool SelectEvent ()
void SpookyTriggerEventsHandler (notnull PlayerBase player)
void Update (float deltaTime)

Variables

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

Function Documentation

◆ ~SpookyTriggerEventsHandler()

void ~SpookyTriggerEventsHandler ( )
protected

Definition at line 219 of file spookyareamisc.c.

References m_SoundEvents.

◆ CanDo()

bool CanDo ( PlayerBase player,
TStringVectorMap surfaceTypes )
protected

Definition at line 30 of file spookyareamisc.c.

◆ Do()

void Do ( PlayerBase player)
protected

Definition at line 35 of file spookyareamisc.c.

◆ GatherSurfaces()

void GatherSurfaces ( notnull TStringVectorMap gatheredGurfaces)
protected

◆ Init()

Definition at line 1 of file spookyareamisc.c.

◆ RegisterEvents()

void RegisterEvents ( )
protected

Definition at line 224 of file spookyareamisc.c.

References m_SoundEvents.

Referenced by SpookyTriggerEventsHandler().

◆ SelectEvent()

bool SelectEvent ( )
protected

◆ SpookyTriggerEventsHandler()

void SpookyTriggerEventsHandler ( notnull PlayerBase player)
protected

Definition at line 208 of file spookyareamisc.c.

References m_SoundEvents, and RegisterEvents().

Referenced by OnEnterClientEvent().

◆ Update()

void Update ( float deltaTime)
protected

Variable Documentation

◆ CONSECUTIVE_EVENTS_COOLDOWN

const float CONSECUTIVE_EVENTS_COOLDOWN = 20
protected

Definition at line 202 of file spookyareamisc.c.

Referenced by Update().

◆ EVENT_CHECK_FREQUENCY

const float EVENT_CHECK_FREQUENCY = 2
protected

Definition at line 203 of file spookyareamisc.c.

Referenced by Update().

◆ FIRST_EVENT_CHECK_DELAY

const float FIRST_EVENT_CHECK_DELAY = 15
protected

Definition at line 204 of file spookyareamisc.c.

◆ m_NextEventCheck

float m_NextEventCheck = FIRST_EVENT_CHECK_DELAY
protected

Definition at line 206 of file spookyareamisc.c.

Referenced by Update().

◆ m_Player

PlayerBase m_Player
protected

Definition at line 200 of file spookyareamisc.c.

◆ m_SoundEvents

◆ m_TimeAccu

float m_TimeAccu
protected

Definition at line 201 of file spookyareamisc.c.

Referenced by Update().

◆ SURFACE_CHECK_POINT_DISTANCE

const float SURFACE_CHECK_POINT_DISTANCE = 2
protected

Definition at line 205 of file spookyareamisc.c.

Referenced by GatherSurfaces().