DayZ
1.29
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
CrashBase.c
См. документацию.
1
class
CrashBase
extends
House
2
{
3
Particle
m_ParticleEfx
;
4
static
bool
m_Init
=
Init
();
5
6
static
bool
Init
()
7
{
8
CrashSoundSets
.
RegisterSoundSet
(
"HeliCrash_Distant_SoundSet"
);
9
CrashSoundSets
.
RegisterSoundSet
(
"SledgeCrash_Distant_SoundSet"
);
10
return
true
;
11
}
12
13
override
void
EEOnCECreate
()
14
{
15
super.EEOnCECreate();
16
RequestSoundEvent
();
17
}
18
19
void
RequestSoundEvent
()
20
{
21
Param3<bool, vector, int>
playSound =
new
Param3<bool, vector, int>
(
true
,
GetPosition
(),
GetSoundSet
().Hash());
22
g_Game
.RPCSingleParam( null,
ERPCs
.RPC_SOUND_HELICRASH, playSound,
true
);
23
}
24
25
// needs to have the soundset registered in CrashBase.Init()
26
string
GetSoundSet
()
27
{
28
return
"HeliCrash_Distant_SoundSet"
;
29
}
30
31
override
void
EEInit
()
32
{
33
super.EEInit();
34
//Setup for local sound tests
35
#ifdef DEVELOPER
36
if
( !
g_Game
.IsMultiplayer() )
37
{
38
EffectSound
eff =
SEffectManager
.
PlaySound
(
GetSoundSet
(),
GetPosition
(), 0.1, 0.1 );
39
eff.
SetAutodestroy
(
true
);
40
}
41
#endif
42
}
43
44
override
void
EEDelete
(
EntityAI
parent)
45
{
46
if
( !
g_Game
.IsDedicatedServer() )
47
{
48
if
(
m_ParticleEfx
)
49
m_ParticleEfx
.Stop();
50
}
51
}
52
};
g_Game
DayZGame g_Game
Определения
DayZGame.c:3942
Init
override Widget Init()
Определения
DayZGame.c:127
ERPCs
ERPCs
Определения
ERPCs.c:2
CrashBase::GetSoundSet
override string GetSoundSet()
Определения
Wreck_SantasSleigh.c:25
CrashBase
Определения
Wreck_MI8.c:3
CrashSoundSets::RegisterSoundSet
static void RegisterSoundSet(string sound_set)
Определения
DayZGame.c:48
CrashSoundSets
Определения
DayZGame.c:45
EffectSound::SetAutodestroy
override void SetAutodestroy(bool auto_destroy)
Sets whether Effect automatically cleans up when it stops.
Определения
EffectSound.c:603
EffectSound
Wrapper class for managing sound through SEffectManager.
Определения
EffectSound.c:5
EntityAI
Определения
3_Game/DayZ/Entities/InventoryItem.c:2
House::EEInit
override void EEInit()
Определения
CrashBase.c:31
House::House
void House()
Определения
4_World/DayZ/Entities/Game/Super/Building.c:87
House::RequestSoundEvent
void RequestSoundEvent()
Определения
CrashBase.c:19
House::EEOnCECreate
override void EEOnCECreate()
Определения
CrashBase.c:13
House::Init
static bool Init()
Определения
CrashBase.c:6
House::EEDelete
override void EEDelete(EntityAI parent)
Определения
CrashBase.c:44
House::m_Init
static bool m_Init
Определения
CrashBase.c:4
House::m_ParticleEfx
Particle m_ParticleEfx
Определения
CrashBase.c:3
House::GetSoundSet
string GetSoundSet()
Определения
CrashBase.c:26
Param3
Определения
3_Game/DayZ/Entities/EntityAI.c:102
Particle
Legacy way of using particles in the game.
Определения
Particle.c:7
SEffectManager::PlaySound
static EffectSound PlaySound(string sound_set, vector position, float play_fade_in=0, float stop_fade_out=0, bool loop=false)
Create and play an EffectSound.
Определения
EffectManager.c:169
SEffectManager
Manager class for managing Effect (EffectParticle, EffectSound)
Определения
EffectManager.c:6
GetPosition
vector GetPosition()
Get the world position of the Effect.
Определения
Effect.c:473
Ishodniki
scripts
4_World
DayZ
Entities
Building
CrashBase.c
Создано системой
1.13.2