DayZ
1.29
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
ParticleTest.c
См. документацию.
1
// Particle test for Maxman
2
3
class
ParticleTest
extends
ItemBase
4
{
5
protected
int
PARTICLE_PATH
;
6
protected
Particle
m_Particle
;
7
8
// Constructor
9
void
ParticleTest
()
10
{
11
if
( !
g_Game
.IsServer() || !
g_Game
.IsMultiplayer() )
// Client side
12
{
13
string
path
=
ParticleList
.
GetPathToParticles
();
14
15
16
17
18
19
// Enter particle ID to play when ParticleTest spawns
20
PARTICLE_PATH
=
ParticleList
.
DEBUG_DOT
;
21
22
// Alternatively, uncomment the second line and enter particle filename without *.ptc suffix instead. Example: "menu_engine_fire"
23
string
particle_filename =
"menu_engine_fire"
;
24
//PARTICLE_PATH = ParticleList.GetParticleID( path + particle_filename );
25
26
27
28
29
30
m_Particle
=
ParticleManager
.GetInstance().PlayOnObject(
PARTICLE_PATH
,
this
,
GetPosition
());
31
}
32
}
33
34
// Destructor
35
override
void
EEDelete
(
EntityAI
parent)
36
{
37
super.EEDelete(parent);
38
39
if
(
m_Particle
&&
g_Game
)
// g_Game is null when the game is being shut down
40
{
41
m_Particle
.Stop();
42
g_Game
.ObjectDelete(
m_Particle
);
43
}
44
}
45
}
g_Game
DayZGame g_Game
Определения
DayZGame.c:3942
path
string path
Определения
OptionSelectorMultistate.c:142
ParticleManager
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
Определения
ParticleManager.c:88
EntityAI
Определения
3_Game/DayZ/Entities/InventoryItem.c:2
ItemBase::EEDelete
override void EEDelete(EntityAI parent)
Определения
ParticleTest.c:35
ItemBase::ParticleTest
void ParticleTest()
Определения
ParticleTest.c:9
ItemBase::m_Particle
Particle m_Particle
Определения
ParticleTest.c:6
ItemBase::PARTICLE_PATH
int PARTICLE_PATH
Определения
ParticleTest.c:5
ItemBase
Определения
4_World/DayZ/Entities/Core/Inherited/InventoryItem.c:742
Particle
Legacy way of using particles in the game.
Определения
Particle.c:7
ParticleList::GetPathToParticles
static string GetPathToParticles()
Returns base path to all particles.
Определения
ParticleList.c:515
ParticleList::DEBUG_DOT
static const int DEBUG_DOT
Определения
ParticleList.c:23
ParticleList
Определения
ParticleList.c:12
GetPosition
vector GetPosition()
Get the world position of the Effect.
Определения
Effect.c:473
Ishodniki
scripts
4_World
DayZ
Entities
ItemBase
ParticleTest.c
Создано системой
1.13.2