DayZ 1.24
Loading...
Searching...
No Matches
InfectedSoundEventBase.c File Reference

Go to the source code of this file.

Enumerations

enum  EInfectedSoundEventType { GENERAL }
 

Functions

void InfectedSoundEventBase ()
 
void ~InfectedSoundEventBase ()
 
void Init (ZombieBase pInfected)
 
void SoftStop ()
 
override void Stop ()
 
void PosUpdate ()
 
override bool Play ()
 

Variables

enum EInfectedSoundEventType m_Infected
 

Enumeration Type Documentation

◆ EInfectedSoundEventType

Enumerator
GENERAL 

Definition at line 1 of file InfectedSoundEventBase.c.

2{
4}

Function Documentation

◆ InfectedSoundEventBase()

void InfectedSoundEventBase ( )

Definition at line 10 of file InfectedSoundEventBase.c.

11 {
13 }
eBleedingSourceType m_Type
EInfectedSoundEventType

References m_Type.

◆ Init()

void Init ( ZombieBase pInfected)

Definition at line 20 of file InfectedSoundEventBase.c.

21 {
23 }
enum EInfectedSoundEventType m_Infected

References m_Infected.

◆ Play()

override bool Play ( )

Definition at line 51 of file InfectedSoundEventBase.c.

52 {
53 string soundset_name;
54
55 soundset_name = string.Format("%1_%2_SoundSet", m_Infected.ClassName(), m_SoundSetNameRoot);
58 {
59 GetGame().GetCallQueue(CALL_CATEGORY_GAMEPLAY).CallLaterByName(this, "PosUpdate", 0, true);
60 return true;
61 }
62 string error = "[%1] No sound callback for : \'%2\' in state: \'%3\' Please define relevant SoundSet in %4";
63#ifdef DEVELOPER
64 Error(string.Format(error, "ERROR", m_Infected.ClassName(), m_SoundSetNameRoot, "Zombie_SoundSets.hpp"));
65#else
66 PrintToRPT("" + string.Format(error, "WARNING", m_Infected.ClassName(), m_SoundSetNameRoot, "sounds/hpp/config.cpp"));
67#endif
68 return false;
69 }
AbstractWave m_SoundSetCallback
Definition SoundEvents.c:80
string m_SoundSetNameRoot
Definition SoundEvents.c:85
proto native CGame GetGame()
void Error(string err)
Messagebox with error message.
Definition EnDebug.c:90
proto void PrintToRPT(void var)
Prints content of variable to RPT file (performance warning - each write means fflush!...
const int CALL_CATEGORY_GAMEPLAY
Definition tools.c:10

References CALL_CATEGORY_GAMEPLAY, Error(), GetGame(), m_Infected, m_SoundSetCallback, m_SoundSetNameRoot, and PrintToRPT().

◆ PosUpdate()

void PosUpdate ( )

Definition at line 45 of file InfectedSoundEventBase.c.

46 {
49 }
proto void SetPosition(vector position, vector velocity="0 0 0")

References m_Infected, m_SoundSetCallback, and AbstractWave::SetPosition().

◆ SoftStop()

void SoftStop ( )

Definition at line 25 of file InfectedSoundEventBase.c.

26 {
28 {
31 }
32 }
proto void Loop(bool setLoop)

References AbstractWave::Loop(), and m_SoundSetCallback.

◆ Stop()

override void Stop ( )

Definition at line 34 of file InfectedSoundEventBase.c.

35 {
37 {
40 }
41
42 GetGame().GetCallQueue(CALL_CATEGORY_GAMEPLAY).RemoveByName(this, "PosUpdate");
43 }
proto void Stop()

References CALL_CATEGORY_GAMEPLAY, GetGame(), m_SoundSetCallback, and AbstractWave::Stop().

◆ ~InfectedSoundEventBase()

Variable Documentation

◆ m_Infected