Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
spookyareamisc.c File Reference

Go to the source code of this file.

Classes

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)
 
bool CanDo (PlayerBase player, TStringVectorMap surfaceTypes)
 
void Do (PlayerBase player)
 
void SpookyTriggerEventsHandler (notnull PlayerBase player)
 
void ~SpookyTriggerEventsHandler ()
 
void RegisterEvents ()
 
void Update (float deltaTime)
 
void GatherSurfaces (notnull TStringVectorMap gatheredGurfaces)
 
bool SelectEvent ()
 

Variables

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

Function Documentation

◆ 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

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 1 of file spookyareamisc.c.

◆ RegisterEvents()

void RegisterEvents ( )
protected

Definition at line 224 of file spookyareamisc.c.

◆ SelectEvent()

bool SelectEvent ( )
protected

Definition at line 278 of file spookyareamisc.c.

◆ SpookyTriggerEventsHandler()

void SpookyTriggerEventsHandler ( notnull PlayerBase player)
protected

Definition at line 208 of file spookyareamisc.c.

◆ Update()

void Update ( float deltaTime)
protected

Definition at line 233 of file spookyareamisc.c.

◆ ~SpookyTriggerEventsHandler()

void ~SpookyTriggerEventsHandler ( )
protected

Definition at line 219 of file spookyareamisc.c.

Variable Documentation

◆ CONSECUTIVE_EVENTS_COOLDOWN

const float CONSECUTIVE_EVENTS_COOLDOWN = 20
protected

Definition at line 202 of file spookyareamisc.c.

◆ EVENT_CHECK_FREQUENCY

const float EVENT_CHECK_FREQUENCY = 2
protected

Definition at line 203 of file spookyareamisc.c.

◆ 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.

◆ m_Player

PlayerBase m_Player
protected

Definition at line 200 of file spookyareamisc.c.

◆ m_SoundEvents

class SpookyEventBase m_SoundEvents
protected

◆ m_TimeAccu

float m_TimeAccu
protected

Definition at line 201 of file spookyareamisc.c.

◆ SURFACE_CHECK_POINT_DISTANCE

const float SURFACE_CHECK_POINT_DISTANCE = 2
protected

Definition at line 205 of file spookyareamisc.c.