DayZ
1.27
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
( !
GetGame
().IsServer() || !
GetGame
().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
&&
GetGame
())
// GetGame() is null when the game is being shut down
40
{
41
m_Particle
.Stop();
42
GetGame
().
ObjectDelete
(
m_Particle
);
43
}
44
}
45
}
path
string path
Определения
OptionSelectorMultistate.c:142
ParticleManager
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
Определения
ParticleManager.c:88
CGame::ObjectDelete
proto native void ObjectDelete(Object obj)
EntityAI
Определения
Building.c:6
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
Определения
InventoryItem.c:731
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:509
ParticleList::DEBUG_DOT
static const int DEBUG_DOT
Определения
ParticleList.c:23
ParticleList
Определения
ParticleList.c:12
GetGame
proto native CGame GetGame()
GetPosition
class JsonUndergroundAreaTriggerData GetPosition
Определения
UndergroundAreaLoader.c:9
Ishodniki
scripts
4_World
Entities
ItemBase
ParticleTest.c
Создано системой
1.13.2