DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
ParticleList.c
См. документацию.
1// Register all particles below!
2
3// Example how to register particles from a mod
4/*
5modded class ParticleList
6{
7 static const int MODDED_PARTICLE = RegisterParticle( "mod_folder/" , "my_modded_particle");
8}
9*/
10
12{
13 ref static map<int, string> m_ParticlePaths; // Contains full paths to all particles. WARNING: Paths are without the '.ptc' suffix!
14 ref static map<string, int> m_ParticleNames; // Contains file NAME (without suffix) to id.
15
16 static int m_lastID = 0;
17
18 // REGISTER ALL PARTICLES BELOW:
19
20 static const int INVALID = -1;
21 static const int NONE = 0; // 0 does not exist either, valid particle starts from 1
22 static const int PARTICLE_TEST = RegisterParticle("_test_orientation");
23 static const int DEBUG_DOT = RegisterParticle("debug_dot");
24 static const int DEBUG_DOT5M = RegisterParticle("debug_dot5m");
25
26 // FIREPLACE
27 // Normal fireplace
28 static const int CAMP_FIRE_START = RegisterParticle("fire_small_camp_01_start");
29 static const int CAMP_SMALL_FIRE = RegisterParticle("fire_small_camp_01");
30 static const int CAMP_NORMAL_FIRE = RegisterParticle("fire_medium_camp_01");
31 static const int CAMP_SMALL_SMOKE = RegisterParticle("smoke_small_camp_01");
32 static const int CAMP_NORMAL_SMOKE = RegisterParticle("smoke_medium_camp_01");
33 static const int CAMP_FIRE_END = RegisterParticle("fire_small_camp_01_end");
34 static const int CAMP_STEAM_2END = RegisterParticle("steam_medium_camp_2end");
35 static const int CAMP_STEAM_EXTINGUISH_START = RegisterParticle("default_01");
36 static const int CAMP_STOVE_FIRE = RegisterParticle("fire_small_stove_01");
37 static const int CAMP_STOVE_FIRE_START = RegisterParticle("fire_small_stove_01_start");
38 static const int CAMP_STOVE_FIRE_END = RegisterParticle("fire_small_stove_01_end");
39 static const int CAMP_NO_IGNITE_WIND = RegisterParticle("fire_extinguish_wind");
40 // Fireplace indoor
41 static const int HOUSE_FIRE_START = RegisterParticle("fire_small_house_01_start");
42 static const int HOUSE_SMALL_FIRE = RegisterParticle("fire_small_house_01");
43 static const int HOUSE_SMALL_SMOKE = RegisterParticle("smoke_small_house_01");
44 static const int HOUSE_NORMAL_FIRE = RegisterParticle("fire_medium_house_01");
45 static const int HOUSE_NORMAL_SMOKE = RegisterParticle("smoke_medium_house_01");
46 static const int HOUSE_FIRE_END = RegisterParticle("fire_small_house_01_end");
47 static const int HOUSE_FIRE_STEAM_2END = RegisterParticle("steam_medium_house_2end");
48 // Fireplace tandoor
49 static const int TANDOOR_HOUSE_SMALL_FIRE = RegisterParticle("tandoor_fire_small_house_01_start");
50 static const int TANDOOR_HOUSE_SMALL_SMOKE = RegisterParticle("tandoor_smoke_small_house_01");
51 static const int TANDOOR_HOUSE_NORMAL_FIRE = RegisterParticle("tandoor_fire_small_house_01");
52 static const int TANDOOR_HOUSE_NORMAL_SMOKE = RegisterParticle("tandoor_smoke_medium_house_01");
53 static const int TANDOOR_HOUSE_FIRE_END = RegisterParticle("tandoor_fire_small_house_01_end");
54 static const int TANDOOR_HOUSE_FIRE_STEAM_2END = RegisterParticle("tandoor_steam_medium_house_2end");
55 // Fireplace in barrel with holes
56 static const int BARREL_FIRE_START = RegisterParticle("fire_small_barrel_01_start");
57 static const int BARREL_SMALL_FIRE = RegisterParticle("fire_small_barrel_01");
58 static const int BARREL_SMALL_SMOKE = RegisterParticle("smoke_small_barrel_01");
59 static const int BARREL_NORMAL_FIRE = RegisterParticle("fire_medium_barrel_01");
60 static const int BARREL_NORMAL_SMOKE = RegisterParticle("smoke_medium_barrel_01");
61 static const int BARREL_FIRE_END = RegisterParticle("fire_small_barrel_01_end");
62 static const int BARREL_FIRE_STEAM_2END = RegisterParticle("steam_medium_camp_2end");
63 // Fireplace in indoor oven
64 static const int OVEN_FIRE_START = RegisterParticle("fire_small_oven_01_start");
65 static const int OVEN_SMALL_FIRE = RegisterParticle("fire_small_oven_01");
66 static const int OVEN_NORMAL_FIRE = RegisterParticle("fire_medium_oven_01");
67 static const int OVEN_FIRE_END = RegisterParticle("fire_small_ovenl_01_end");
68
69 // COOKING
70 static const int COOKING_BOILING_EMPTY = RegisterParticle("cooking_boiling_empty");
71 static const int COOKING_BOILING_START = RegisterParticle("cooking_boiling_start");
72 static const int COOKING_BOILING_DONE = RegisterParticle("cooking_boiling_done");
73 static const int COOKING_BAKING_START = RegisterParticle("cooking_baking_start");
74 static const int COOKING_BAKING_DONE = RegisterParticle("cooking_baking_done");
75 static const int COOKING_DRYING_START = RegisterParticle("cooking_drying_start");
76 static const int COOKING_DRYING_DONE = RegisterParticle("cooking_drying_done");
77 static const int COOKING_BURNING_DONE = RegisterParticle("cooking_burning_done");
78 static const int ITEM_HOT_VAPOR = RegisterParticle("item_hot_vapor");
79
80 // TORCH
81 static const int TORCH_T3 = RegisterParticle("fire_small_torch_01");
82 static const int TORCH_T1 = RegisterParticle("fire_small_torch_02");
83 static const int TORCH_T2 = RegisterParticle("fire_small_torch_03");
84
85 //BROOM TORCH
86 static const int BROOM_TORCH_T1 = RegisterParticle("fire_small_broom_torch_01");
87 static const int BROOM_TORCH_T2 = RegisterParticle("fire_small_broom_torch_02");
88 static const int BROOM_TORCH_T3 = RegisterParticle("fire_small_broom_torch_03");
89
90 // ROADFLARE
91 static const int ROADFLARE_BURNING_INIT = RegisterParticle("fire_small_roadflare_red_04");
92 static const int ROADFLARE_BURNING_MAIN = RegisterParticle("fire_small_roadflare_red_01");
93 static const int ROADFLARE_BURNING_ENDING = RegisterParticle("fire_small_roadflare_red_02");
94 static const int ROADFLARE_BURNING_SMOKE = RegisterParticle("fire_small_roadflare_red_03");
95
96 // FLARE PROJECTILE
97 static const int FLAREPROJ_FIRE = RegisterParticle("fire_small_roadflare_red_04");
98 static const int FLAREPROJ_ACTIVATE = RegisterParticle("fire_small_flare_yellow_01");
99 static const int FLAREPROJ_ACTIVATE_RED = RegisterParticle("fire_small_flare_red_01");
100 static const int FLAREPROJ_ACTIVATE_GREEN = RegisterParticle("fire_small_flare_green_01");
101 static const int FLAREPROJ_ACTIVATE_BLUE = RegisterParticle("fire_small_flare_blue_01");
102
103 // DIGGING
104 static const int DIGGING_STASH = RegisterParticle("digging_ground");
105
106 // SMOKE GRENADES
108 static const int GRENADE_RDG2_BLACK_START = RegisterParticle("smoke_RDG2_black_01");
109 static const int GRENADE_RDG2_BLACK_LOOP = RegisterParticle("smoke_RDG2_black_02");
110 static const int GRENADE_RDG2_BLACK_END = RegisterParticle("smoke_RDG2_black_03");
111 static const int GRENADE_RDG2_WHITE_START = RegisterParticle("smoke_RDG2_white_01");
112 static const int GRENADE_RDG2_WHITE_LOOP = RegisterParticle("smoke_RDG2_white_02");
113 static const int GRENADE_RDG2_WHITE_END = RegisterParticle("smoke_RDG2_white_03");
115 static const int GRENADE_M18_GREEN_START = RegisterParticle("smoke_M18_green_01");
116 static const int GRENADE_M18_GREEN_LOOP = RegisterParticle("smoke_M18_green_02");
117 static const int GRENADE_M18_GREEN_END = RegisterParticle("smoke_M18_green_03");
118 static const int GRENADE_M18_PURPLE_START = RegisterParticle("smoke_M18_purple_01");
119 static const int GRENADE_M18_PURPLE_LOOP = RegisterParticle("smoke_M18_purple_02");
120 static const int GRENADE_M18_PURPLE_END = RegisterParticle("smoke_M18_purple_03");
121 static const int GRENADE_M18_RED_START = RegisterParticle("smoke_M18_red_01");
122 static const int GRENADE_M18_RED_LOOP = RegisterParticle("smoke_M18_red_02");
123 static const int GRENADE_M18_RED_END = RegisterParticle("smoke_M18_red_03");
124 static const int GRENADE_M18_WHITE_START = RegisterParticle("smoke_M18_white_01");
125 static const int GRENADE_M18_WHITE_LOOP = RegisterParticle("smoke_M18_white_02");
126 static const int GRENADE_M18_WHITE_END = RegisterParticle("smoke_M18_white_03");
127 static const int GRENADE_M18_YELLOW_START = RegisterParticle("smoke_M18_yellow_01");
128 static const int GRENADE_M18_YELLOW_LOOP = RegisterParticle("smoke_M18_yellow_02");
129 static const int GRENADE_M18_YELLOW_END = RegisterParticle("smoke_M18_yellow_03");
130 static const int GRENADE_M18_BLACK_START = RegisterParticle("smoke_M18_black_01");
131 static const int GRENADE_M18_BLACK_LOOP = RegisterParticle("smoke_M18_black_02");
132 static const int GRENADE_M18_BLACK_END = RegisterParticle("smoke_M18_black_03");
133
136 static const int GRENADE_M84 = RegisterParticle("explosion_M84_01");
137
138 // FRAGMENTATION GRENADES
139 static const int RGD5 = RegisterParticle("explosion_RGD5_01");
140 static const int M67 = RegisterParticle("explosion_M67_01");
141
142 // GRENADE EXPLOSION BY SURFACE
143 static const int EXPLOSION_GRENADE_SNOW = RegisterParticle("explosion_grenade_snow");
144 static const int EXPLOSION_GRENADE_ICE = RegisterParticle("explosion_grenade_ice");
145 static const int EXPLOSION_GRENADE_SAND = RegisterParticle("explosion_grenade_sand");
146 static const int EXPLOSION_GRENADE_DESERT_SAND = RegisterParticle("explosion_grenade_desert_sand");
147
148 // ELECTRICITY
149 static const int POWER_GENERATOR_SMOKE = RegisterParticle("smoke_small_generator_01");
150 static const int BARBED_WIRE_SPARKS = RegisterParticle("electro_shortc2");
151 static const int LEVER_SPARKS = RegisterParticle("electro_sparks");
152 static const int EASTER_EGG_ACTIVATE = RegisterParticle("easter_egg_activate");
153
154 // PLAYER
155 static const int BLEEDING_SOURCE = RegisterParticle("blood_bleeding_01");
156 static const int BLEEDING_SOURCE_LIGHT = RegisterParticle("blood_bleeding_02");
157 static const int BLOOD_SURFACE_DROPS = RegisterParticle("blood_surface_drops");
158 static const int BLOOD_SURFACE_CHUNKS = RegisterParticle("blood_surface_chunks");
159 static const int VOMIT = RegisterParticle("character_vomit_01");
160 static const int BREATH_VAPOUR_LIGHT = RegisterParticle("breath_vapour_light");
161 static const int BREATH_VAPOUR_MEDIUM = RegisterParticle("breath_vapour_medium");
162 static const int BREATH_VAPOUR_HEAVY = RegisterParticle("breath_vapour_heavy");
163 static const int VOMIT_CHUNKS = RegisterParticle("character_vomit_puddle");
164
165 // GUNS
166 static const int GUN_MUZZLE_FLASH_SVD_STAR = RegisterParticle("weapon_shot_Flame_3D_4star");
167 static const int GUN_SOLO_MUZZLE_FLASH = RegisterParticle("weapon_shot_Flame_3D");
168 static const int GUN_FNX = RegisterParticle("weapon_shot_fnx_01");
169 static const int GUN_FNX_SUPPRESSED = RegisterParticle("weapon_shot_fnx_02");
170 static const int GUN_PARTICLE_TEST = RegisterParticle("weapon_shot_fnx_01");
171 static const int GUN_PARTICLE_CASING = RegisterParticle("weapon_shot_chamber_smoke");
172 static const int GUN_PARTICLE_CASING_RAISE = RegisterParticle("weapon_shot_chamber_smoke_raise");
173 static const int GUN_CZ75 = RegisterParticle("weapon_shot_cz75_01");
174 static const int GUN_AKM = RegisterParticle("weapon_shot_akm_01");
175 static const int GUN_AKM_SUPPRESSED = RegisterParticle("weapon_shot_akm_02");
176 static const int GUN_IZH18 = RegisterParticle("weapon_shot_izh18_01");
177 static const int GUN_IZH18_SUPPRESSED = RegisterParticle("weapon_shot_izh18_02");
178 static const int GUN_MP5K = RegisterParticle("weapon_shot_mp5k_01");
179 static const int GUN_MP5K_2 = RegisterParticle("weapon_shot_mp5k_02_boris");
180 static const int GUN_MP5K_SUPPRESSED = RegisterParticle("weapon_shot_mp5k_02");
181 static const int GUN_MP5K_COMPENSATOR = RegisterParticle("weapon_shot_mp5k_02");
182 static const int GUN_UMP45 = RegisterParticle("weapon_shot_ump45_01");
183 static const int GUN_M4A1 = RegisterParticle("weapon_shot_m4a1_01");
184 static const int GUN_MP133 = RegisterParticle("weapon_shot_mp133_01");
185 static const int GUN_PELLETS = RegisterParticle("weapon_shot_pellets");
186 static const int GUN_MOSIN9130 = RegisterParticle("weapon_shot_mosin9130_01");
187 static const int GUN_MOSIN_COMPENSATOR = RegisterParticle("weapon_shot_mosin_compensator_01");
188 static const int GUN_CZ527 = RegisterParticle("weapon_shot_cz527_01");
189 static const int GUN_SKS = RegisterParticle("weapon_shot_sks_01");
190 static const int GUN_WINCHESTER70 = RegisterParticle("weapon_shot_winch70_01");
191 static const int GUN_VSS = RegisterParticle("weapon_shot_vss_01");
192 static const int GUN_AK74 = RegisterParticle("weapon_shot_ak74_01");
193 static const int GUN_AK101 = RegisterParticle("weapon_shot_ak101_01");
194
195 static const int GUN_MAGNUM = RegisterParticle("weapon_shot_magnum_01");
196
197 static const int GUN_CZ61 = RegisterParticle("weapon_shot_cz61_01");
198 static const int GUN_LONG_WINDED_SMOKE = RegisterParticle("weapon_shot_winded_smoke");
199 static const int GUN_LONG_WINDED_SMOKE_SMALL = RegisterParticle("weapon_shot_winded_smoke_small");
200 static const int SMOKING_BARREL = RegisterParticle("smoking_barrel");
201 static const int SMOKING_BARREL_SMALL = RegisterParticle("smoking_barrel_small");
202 static const int SMOKING_BARREL_HEAVY = RegisterParticle("smoking_barrel_heavy");
203 static const int SMOKING_BARREL_STEAM = RegisterParticle("smoking_barrel_steam");
204 static const int SMOKING_BARREL_STEAM_SMALL = RegisterParticle("smoking_barrel_steam_small");
205 static const int SMARKS_CHAMBER = RegisterParticle("weapon_shot_chamber_spark");
206
207 // BULLET & MELEE IMPACTS
208 static const int IMPACT_TEST = RegisterParticle("impacts/bullet_impact_placeholder");
209 static const int IMPACT_DISTANT_DUST = RegisterParticle("impacts/distant_dust");
210 static const int IMPACT_TEST_RICOCHET = RegisterParticle("impacts/bullet_riochet_placeholder");
211 static const int IMPACT_TEST2 = RegisterParticle("_test_orientation_02");
212 static const int IMPACT_TEST_ENTER_DEBUG = RegisterParticle("impacts/_test_impact_enter_debug");
213 static const int IMPACT_TEST_RICOCHET_DEBUG = RegisterParticle("impacts/_test_impact_ricochet_debug");
214 static const int IMPACT_TEST_EXIT_DEBUG = RegisterParticle("impacts/_test_impact_exit_debug");
215 static const int IMPACT_TEST_NO_MATERIAL_ERROR = RegisterParticle("_test_no_material");
216 static const int IMPACT_WOOD_ENTER = RegisterParticle("impacts/hit_wood_ent_01");
217 static const int IMPACT_WOOD_RICOCHET = RegisterParticle("impacts/hit_wood_ric_01");
218 static const int IMPACT_WOOD_EXIT = RegisterParticle("impacts/hit_wood_ext_01");
219 static const int IMPACT_CONCRETE_ENTER = RegisterParticle("impacts/hit_concrete_ent_01");
220 static const int IMPACT_CONCRETE_RICOCHET = RegisterParticle("impacts/hit_concrete_ric_01");
221 static const int IMPACT_CONCRETE_EXIT = RegisterParticle("impacts/hit_concrete_ext_01");
222 static const int IMPACT_FOLIAGE_ENTER = RegisterParticle("impacts/hit_foliage_ent_01");
223 static const int IMPACT_FOLIAGE_RICOCHET = RegisterParticle("impacts/hit_foliage_ric_01");
224 static const int IMPACT_FOLIAGE_EXIT = RegisterParticle("impacts/hit_foliage_ext_01");
225 static const int IMPACT_FOLIAGE_GREEN_ENTER = RegisterParticle("impacts/hit_foliage_green_ent_01");
226 static const int IMPACT_FOLIAGE_GREEN_RICOCHET = RegisterParticle("impacts/hit_foliage_green_ric_01");
227 static const int IMPACT_FOLIAGE_GREEN_EXIT = RegisterParticle("impacts/hit_foliage_green_ext_01");
228 static const int IMPACT_FOLIAGE_CONIFER_ENTER = RegisterParticle("impacts/hit_foliage_conifer_ent_01");
229 static const int IMPACT_FOLIAGE_CONIFER_RICOCHET= RegisterParticle("impacts/hit_foliage_conifer_ric_01");
230 static const int IMPACT_FOLIAGE_CONIFER_EXIT = RegisterParticle("impacts/hit_foliage_conifer_ext_01");
231 static const int IMPACT_GRASS_ENTER = RegisterParticle("impacts/hit_grass_ent_01");
232 static const int IMPACT_GRASS_RICOCHET = RegisterParticle("impacts/hit_grass_ric_01");
233 static const int IMPACT_DIRT_ENTER = RegisterParticle("impacts/hit_dirt_ent_01");
234 static const int IMPACT_DIRT_RICOCHET = RegisterParticle("impacts/hit_dirt_ric_01");
235 static const int IMPACT_DIRT_EXIT = RegisterParticle("impacts/hit_dirt_ext_01");
236 static const int IMPACT_RUBBER_ENTER = RegisterParticle("impacts/hit_rubber_ent_01");
237 static const int IMPACT_RUBBER_RICOCHET = RegisterParticle("impacts/hit_rubber_ric_01");
238 static const int IMPACT_RUBBER_EXIT = RegisterParticle("impacts/hit_rubber_ext_01");
239 static const int IMPACT_GRAVEL_ENTER = RegisterParticle("impacts/hit_gravel_ent_01");
240 static const int IMPACT_GRAVEL_RICOCHET = RegisterParticle("impacts/hit_gravel_ric_01");
241 static const int IMPACT_GRAVEL_EXIT = RegisterParticle("impacts/hit_gravel_ext_01");
242 static const int IMPACT_PLASTER_ENTER = RegisterParticle("impacts/hit_plaster_ent_01");
243 static const int IMPACT_PLASTER_RICOCHET = RegisterParticle("impacts/hit_plaster_ric_01");
244 static const int IMPACT_PLASTER_EXIT = RegisterParticle("impacts/hit_plaster_ext_01");
245 static const int IMPACT_METAL_ENTER = RegisterParticle("impacts/hit_metal_ent_01");
246 static const int IMPACT_METAL_RICOCHET = RegisterParticle("impacts/hit_metal_ric_01");
247 static const int IMPACT_METAL_EXIT = RegisterParticle("impacts/hit_metal_ext_01");
248 static const int IMPACT_MEAT_ENTER = RegisterParticle("impacts/hit_meat_ent_01");
249 static const int IMPACT_MEAT_RICOCHET = RegisterParticle("impacts/hit_meat_ric_01");
250 static const int IMPACT_MEAT_EXIT = RegisterParticle("impacts/hit_meat_ext_01");
251 static const int IMPACT_MEATBONES_ENTER = RegisterParticle("impacts/hit_meatbones_ent_01");
252 static const int IMPACT_MEATBONES_RICOCHET = RegisterParticle("impacts/hit_meatbones_ent_01");
253 static const int IMPACT_MEATBONES_EXIT = RegisterParticle("impacts/hit_meatbones_ext_01");
254 static const int IMPACT_GLASS_ENTER = RegisterParticle("impacts/hit_glass_ent_01");
255 static const int IMPACT_GLASS_RICOCHET = RegisterParticle("impacts/hit_glass_ric_01");
256 static const int IMPACT_GLASS_EXIT = RegisterParticle("impacts/hit_glass_ext_01");
257 static const int IMPACT_WATER_SMALL_ENTER = RegisterParticle("impacts/hit_water_ent_01");
258 static const int IMPACT_WATER_MEDIUM_ENTER = RegisterParticle("impacts/hit_water_ent_02");
259 static const int IMPACT_WATER_LARGE_ENTER = RegisterParticle("impacts/hit_water_ent_03");
260 static const int IMPACT_TEXTILE_ENTER = RegisterParticle("impacts/hit_textile_ent_01");
261 static const int IMPACT_TEXTILE_RICOCHET = RegisterParticle("impacts/hit_textile_ric_01");
262 static const int IMPACT_TEXTILE_EXIT = RegisterParticle("impacts/hit_textile_ext_01");
263 static const int IMPACT_SAND_ENTER = RegisterParticle("impacts/hit_sand_ent_01");
264 static const int IMPACT_SAND_RICOCHET = RegisterParticle("impacts/hit_sand_ric_01");
265 static const int IMPACT_SAND_EXIT = RegisterParticle("impacts/hit_sand_ext_01");
266 static const int IMPACT_DESERT_SAND_ENTER = RegisterParticle("impacts/hit_desert_sand_ent_01");
267 static const int IMPACT_DESERT_SAND_RICOCHET = RegisterParticle("impacts/hit_desert_sand_ric_01");
268 static const int IMPACT_DESERT_SAND_EXIT = RegisterParticle("impacts/hit_desert_sand_ext_01");
269 static const int IMPACT_MUD_BRICK_ENTER = RegisterParticle("impacts/hit_mud_brick_ent_01");
270 static const int IMPACT_MUD_BRICK_RICOCHET = RegisterParticle("impacts/hit_mud_brick_ric_01");
271 static const int IMPACT_MUD_BRICK_EXIT = RegisterParticle("impacts/hit_mud_brick_ext_01");
272 static const int IMPACT_PLASTIC_ENTER = RegisterParticle("impacts/hit_plastic_ent_01");
273 static const int IMPACT_PLASTIC_RICOCHET = RegisterParticle("impacts/hit_plastic_ric_01");
274 static const int IMPACT_PLASTIC_EXIT = RegisterParticle("impacts/hit_plastic_ext_01");
275 static const int IMPACT_SNOW_ENTER = RegisterParticle("impacts/hit_snow_ent_01");
276 static const int IMPACT_SNOW_RICOCHET = RegisterParticle("impacts/hit_snow_ric_01");
277 static const int IMPACT_SNOW_EXIT = RegisterParticle("impacts/hit_snow_ext_01");
278 static const int IMPACT_ICE_ENTER = RegisterParticle("impacts/hit_ice_ent_01");
279 static const int IMPACT_ICE_RICOCHET = RegisterParticle("impacts/hit_ice_ric_01");
280 static const int IMPACT_ICE_EXIT = RegisterParticle("impacts/hit_ice_ext_01");
281
282 // EXPLOSIONS
283 static const int EXPLOSION_LANDMINE = RegisterParticle("explosion_landmine_01");
284 static const int EXPLOSION_TEST = RegisterParticle("explosion_placeholder");
285 static const int EXPLOSION_GOAT = RegisterParticle("explosion_goat");
286
287 // ENVIRO EFX
288 static const int SMOKING_HELI_WRECK = RegisterParticle("smoke_heli_wreck_01");
289 static const int AURORA_SANTA_WRECK = RegisterParticle("smoke_santa_wreck");
290 static const int SMOKE_GENERIC_WRECK = RegisterParticle("smoke_generic_wreck");
291 static const int SMOKING_CAR_ENGINE = RegisterParticle("menu_engine_fire");
292 static const int EVAPORATION = RegisterParticle("menu_evaporation");
293
294 // VEHICLES
295 static const int HATCHBACK_COOLANT_OVERHEATING = RegisterParticle("Hatchback_coolant_overheating");
296 static const int HATCHBACK_COOLANT_OVERHEATED = RegisterParticle("Hatchback_coolant_overheated");
297 static const int HATCHBACK_ENGINE_OVERHEATING = RegisterParticle("Hatchback_engine_failing");
298 static const int HATCHBACK_ENGINE_OVERHEATED = RegisterParticle("Hatchback_engine_failure");
299 static const int HATCHBACK_EXHAUST_SMOKE = RegisterParticle("Hatchback_exhaust");
300 static const int BOAT_WATER_FRONT = RegisterParticle("vehicles/boat/boat_water_front");
301 static const int BOAT_WATER_BACK = RegisterParticle("vehicles/boat/boat_water_back");
302 static const int BOAT_WATER_SIDE = RegisterParticle("vehicles/boat/boat_water_side");
303
304 // CORPSE DECAY
305 static const int ENV_SWARMING_FLIES = RegisterParticle("env_fly_swarm_01");
306
307 // BONFIRE
308 static const int BONFIRE_FIRE = RegisterParticle("fire_bonfire");
309 static const int BONFIRE_SMOKE = RegisterParticle("smoke_bonfire");
310 static const int TIREPILE_FIRE = RegisterParticle("fire_tirepile");
311 static const int SPOOKY_MIST = RegisterParticle("spooky_mist");
312
313 static const int VOMIT_BLOOD = RegisterParticle("character_vomitBlood_01");
314
315 // CONTAMINATED AREAS
316 static const int CONTAMINATED_AREA_GAS_TINY = RegisterParticle("contaminated_area_gas_around_tiny");
317 static const int CONTAMINATED_AREA_GAS_AROUND = RegisterParticle("contaminated_area_gas_around");
318 static const int CONTAMINATED_AREA_GAS_BIGASS = RegisterParticle("contaminated_area_gas_bigass");
319 static const int CONTAMINATED_AREA_GAS_GROUND = RegisterParticle("contaminated_area_gas_ground");
320 static const int CONTAMINATED_AREA_GAS_SHELL = RegisterParticle("contaminated_area_gas_shell");
321 static const int CONTAMINATED_AREA_GAS_DEBUG = RegisterParticle("contaminated_area_gas_bigass_debug");
322
323 //Fireworks
324 static const int FIREWORKS_SHOT = RegisterParticle("fireworks_small_01");
325 static const int FIREWORKS_EXPLOSION_RED = RegisterParticle("fireworks_large_01_Red");
326 static const int FIREWORKS_EXPLOSION_GREEN = RegisterParticle("fireworks_large_01_Green");
327 static const int FIREWORKS_EXPLOSION_BLUE = RegisterParticle("fireworks_large_01_Blue");
328 static const int FIREWORKS_EXPLOSION_YELLOW = RegisterParticle("fireworks_large_01_Yellow");
329 static const int FIREWORKS_EXPLOSION_PINK = RegisterParticle("fireworks_large_01_Pink");
330
331 static const int FIREWORKS_FUSE = RegisterParticle("fireworks_small_04");
332 static const int FIREWORKS_AFTERBURN_START = RegisterParticle("fireworks_small_02");
333 static const int FIREWORKS_AFTERBURN_END = RegisterParticle("fireworks_small_03");
334
335 //Fireworks anniversary
336 static const int FIREWORKS_EXPLOSION_THANKS1 = RegisterParticle("fireworks_ThankYou_anim");
337 static const int FIREWORKS_EXPLOSION_THANKS2 = RegisterParticle("fireworks_For10_anim");
338 static const int FIREWORKS_EXPLOSION_THANKS3 = RegisterParticle("fireworks_Amazing_anim");
339 static const int FIREWORKS_EXPLOSION_THANKS4 = RegisterParticle("fireworks_Years_anim");
340 static const int FIREWORKS_EXPLOSION_THANKS5 = RegisterParticle("fireworks_Dayz_anim");
341
342
343 //pox grenade
344 static const int GRENADE_CHEM_BREAK = RegisterParticle("contaminated_area_gas_grenade");
345 //Claymore
346 static const int CLAYMORE_EXPLOSION = RegisterParticle("explosion_claymore_01");
347 static const int PLASTIC_EXPLOSION = RegisterParticle("explosion_plastic_01");
348
349 // Water jet/spilling
350 static const int WATER_JET = RegisterParticle("water_jet");
351 static const int WATER_JET_WEAK = RegisterParticle("water_jet_weak");
352 static const int WATER_SPILLING = RegisterParticle("water_spilling");
353
354 // Drowning bubbles
355 static const int DROWNING_BUBBLES = RegisterParticle("breath_bubbles");
356
358 static const int BOLT_CUPID_TAIL = RegisterParticle("cupid_bolt");
359 static const int BOLT_CUPID_HIT = RegisterParticle("cupid_hit");
360
361 // VOLCANIC
362 static const int HOTPSRING_WATERVAPOR = RegisterParticle("hotspring_watervapor");
363 static const int GEYSER_NORMAL = RegisterParticle("geyser_normal");
364 static const int GEYSER_STRONG = RegisterParticle("geyser_strong");
365 static const int GEYSER_SPLASH = RegisterParticle("geyser_strong_splash");
366 static const int GEYSER_BUBBLES = RegisterParticle("geyser_bubbles");
367 static const int VOLCANO = RegisterParticle("volcano_smoke");
368
369 // FISHING
370 static const int FISHING_SIGNAL_SPLASH = RegisterParticle("fishing_signal_splash");
371
372 // STEPS
373 static const int STEP_SNOW = RegisterParticle("step_snow");
374 static const int STEP_DESERT = RegisterParticle("step_desert");
375 static const int STEP_SOIL = RegisterParticle("step_soil");
376
377 // CEILING DUST
378 static const int CEILING_WOOD = RegisterParticleByFullPath("graphics/particles/dust/dust_ceiling_wood");
379
380 // PART DESTRUCTION
381 static const int BUILDNG_DESTRUCT_WOOD = RegisterParticle("building_destruction_wood");
382 static const int BUILDNG_DESTRUCT_BRICK = RegisterParticle("building_destruction_brick");
383 static const int BUILDNG_DESTRUCT_METAL = RegisterParticle("building_destruction_metal");
384
385
386 // STEPS
387 static const int VEHICLE_WHEEL_SNOW = RegisterParticle("vehicle_wheel_snow");//
388 static const int VEHICLE_WHEEL_GRAVEL = RegisterParticle("vehicle_wheel_gravel");//
389 static const int VEHICLE_WHEEL_ASPHALT = RegisterParticle("vehicle_wheel_asphalt");//
390 static const int VEHICLE_WHEEL_SOIL = RegisterParticle("vehicle_wheel_soil");//
391 static const int VEHICLE_WHEEL_DESERT = RegisterParticle("vehicle_wheel_desert");//
392
393 //TREE FALLING PARTICLES
394 static const int TREE_FALLING_SNOW = RegisterParticle("tree_falling_snow");//
395 static const int TREE_SOFT_FALLING_SNOW = RegisterParticle("tree_soft_falling_snow");//
396 static const int TREE_SOFT_LARGE_FALLING_SNOW = RegisterParticle("tree_soft_large_falling_snow");//
397 static const int TREE_SMALL_FALLING_SNOW = RegisterParticle("tree_small_falling_snow");//
398 static const int TREE_FALLING_NEEDLE = RegisterParticle("tree_falling_needle");//
399 static const int TREE_FALLING_LEAF = RegisterParticle("tree_falling_leaf");//
400 static const int BUSH_FALLING_SNOW = RegisterParticle("bush_falling_snow");//
401 //TREE PASSING ParticleSource
402 static const int TREE_PASSING_SNOW = RegisterParticle("tree_passing_snow");//
403 static const int BUSH_PASSING_SNOW = RegisterParticle("bush_passing_snow");// same as bush_falling_snow
404
405 static const int DUST_GROUND = RegisterParticle("dust/dust_grnd_01");
406 static const int DUST_CLOUD = RegisterParticle("dust/dust_effect_01"/*"smoke_M18_red_02"*/);
407
408 static const int DUST_VEHICLE = RegisterParticle("dust_vehicle");
409 static const int DUST_VEHICLE_SOFT = RegisterParticle("dust_vehicle_soft");
410
411 static const int OIL_FIRE1 = RegisterParticle("fire_oil1");
412 static const int OIL_FIRE2 = RegisterParticle("fire_oil2");
413
414 static int RegisterParticle(string file_name)
415 {
416 return RegisterParticle(GetPathToParticles(), file_name);
417 }
418
421 static int RegisterParticleByFullPath(string fullPath)
422 {
424#ifdef DIAG_DEVELOPER
425 if (fullPath.Replace("\\", "/") > 0)
426 {
427 ErrorEx(string.Format("Using wrong path delimiter for particle registering! Use '/' instead of '\\'. fullPath=%1", fullPath), ErrorExSeverity.WARNING);
428 }
429#endif
430
431 int lastIndex = fullPath.LastIndexOf("/");
432 if (lastIndex < 0)
433 {
435#ifdef WAITING_FOR_PBOS_TO_BE_UPDATED
436 ErrorEx(string.Format("No root path found! fullPath=%1", fullPath), ErrorExSeverity.ERROR);
437 return ParticleList.INVALID;
438#else
440#endif
441 }
442
443 // 'graphics/particles/vehicle_wheel_snow' becomes 'graphics/particles/' and 'vehicle_wheel_snow'
444
445 string rootPath = fullPath.Substring(0, lastIndex + 1);
446 string fileName = fullPath.Substring(lastIndex + 1, fullPath.Length() - (lastIndex + 1));
447
448 return RegisterParticle(rootPath, fileName);
449 }
450
452 static int RegisterParticle(string root_path, string file_name)
453 {
454 //takes care of case sensitivity issue
455 root_path.ToLower();
456 file_name.ToLower();
457
458 //makes sure filename is really just a filename
459 string justName = file_name;
460 int lastIndex = file_name.LastIndexOf("/");
461 if (lastIndex >= 0)
462 justName = justName.Substring(lastIndex + 1, justName.Length() - (lastIndex + 1));
463
464 if (!m_ParticlePaths)
466
467 if (!m_ParticleNames)
469
470 string path = string.Format("%1%2", root_path, file_name);
471 string fullPath = string.Format("%1.ptc", path);
472
473 if ( !FileExist(fullPath) )
474 {
475 string devMsgSuffix;
476 #ifdef DEVELOPER
477 devMsgSuffix = " Then rebuild 'scripts' and 'graphics' PBOs.";
478 #endif
479 ErrorEx(string.Format("Particle file not found! <%1> Correct path to this particle in script file ParticleList.c!%2",
480 fullPath, devMsgSuffix), ErrorExSeverity.WARNING);
481 //return ParticleList.INVALID;
482 }
483
484 int existingNameId;
485 if (m_ParticleNames.Find(justName, existingNameId))
486 {
487 int existingPathId;
488 if (m_ParticlePaths.GetKeyByValueChecked(path, existingPathId))
489 {
490 if (existingNameId == existingPathId)
491 {
492 return existingNameId; // We have already registered this exact file
493 }
494 else
495 {
496 ErrorEx(string.Format("ParticleNames and ParticlePaths array are containing conflicting data. ID %1 vs ID %2", existingNameId, existingPathId));
497 }
498 }
499 else
500 {
501 ErrorEx(string.Format("Duplicate particle filename: %1; GetParticleIDByName will only work with the first path if there are two different paths.", file_name), ErrorExSeverity.WARNING);
502 }
503 }
504 else
505 {
506 m_ParticleNames.Insert(justName, m_lastID + 1);
507 }
508
509 ++m_lastID;
511 return m_lastID;
512 }
513
515 {
516 return m_lastID;
517 }
518
520 static bool IsValidId(int id)
521 {
522 return id != NONE && id != INVALID;
523 }
524
526 static string GetParticlePath(int particle_id)
527 {
528 string path;
529 if (!m_ParticlePaths.Find(particle_id, path))
530 ErrorEx(string.Format("No particle registered with id: %1", particle_id), ErrorExSeverity.WARNING);
531 return path;
532 }
533
536 {
537 return string.Format("%1.ptc", GetParticlePath(particle_id));
538 }
539
541 static int GetParticleID(string particle_file)
542 {
543 particle_file.ToLower();
544
545 int id = m_ParticlePaths.GetKeyByValue(particle_file);
546 if (!IsValidId(id)) // valid id starts from 1, 0 is invalid
547 ErrorEx(string.Format("No particle registered with path: %1", particle_file), ErrorExSeverity.WARNING);
548 return id;
549 }
550
552 static int GetParticleIDByName(string name)
553 {
554 name.ToLower();
555
556 int id = ParticleList.NONE;
557 if (!m_ParticleNames.Find(name, id))
558 ErrorEx(string.Format("No particle registered with name: %1", name), ErrorExSeverity.WARNING);
559 return id;
560 }
561
563 static string GetPathToParticles()
564 {
565 return "graphics/particles/";
566 }
567
569 static void PreloadParticles()
570 {
571 if ( !g_Game.IsServer() || !g_Game.IsMultiplayer() ) // client side
572 {
573 int count = m_ParticlePaths.Count();
574
575 for (int i = 0; i < count; ++i)
576 {
577 vobject vobj = GetObject( string.Format("%1.ptc", m_ParticlePaths[i]) );
578 ReleaseObject(vobj);
579 }
580 }
581 }
582}
Object GetObject()
Определения ActionTargets.c:142
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
DayZGame g_Game
Определения DayZGame.c:4074
string path
Определения OptionSelectorMultistate.c:142
int particle_id
Определения SmokeSimulation.c:28
static const int TREE_PASSING_SNOW
Определения ParticleList.c:402
static const int GUN_MOSIN_COMPENSATOR
Определения ParticleList.c:187
static const int IMPACT_MUD_BRICK_ENTER
Определения ParticleList.c:269
static const int GRENADE_M18_YELLOW_LOOP
Определения ParticleList.c:128
static const int IMPACT_ICE_RICOCHET
Определения ParticleList.c:279
static const int SMOKING_BARREL_HEAVY
Определения ParticleList.c:202
static const int TORCH_T2
Определения ParticleList.c:83
static const int IMPACT_SAND_EXIT
Определения ParticleList.c:265
static const int IMPACT_SNOW_ENTER
Определения ParticleList.c:275
static const int IMPACT_MEATBONES_ENTER
Определения ParticleList.c:251
static const int BARREL_FIRE_STEAM_2END
Определения ParticleList.c:62
static const int FIREWORKS_EXPLOSION_THANKS2
Определения ParticleList.c:337
static const int GRENADE_M18_RED_END
Определения ParticleList.c:123
static const int GRENADE_RDG2_WHITE_LOOP
Определения ParticleList.c:112
static const int IMPACT_MUD_BRICK_EXIT
Определения ParticleList.c:271
static const int BARREL_SMALL_FIRE
Определения ParticleList.c:57
static const int OVEN_NORMAL_FIRE
Определения ParticleList.c:66
static const int CONTAMINATED_AREA_GAS_DEBUG
Определения ParticleList.c:321
static const int IMPACT_CONCRETE_RICOCHET
Определения ParticleList.c:220
static const int GUN_MUZZLE_FLASH_SVD_STAR
Определения ParticleList.c:166
static const int IMPACT_FOLIAGE_GREEN_ENTER
Определения ParticleList.c:225
static const int STEP_DESERT
Определения ParticleList.c:374
static const int EXPLOSION_GRENADE_SAND
Определения ParticleList.c:145
static const int ITEM_HOT_VAPOR
Определения ParticleList.c:78
static const int GUN_UMP45
Определения ParticleList.c:182
static const int GUN_PARTICLE_CASING_RAISE
Определения ParticleList.c:172
static const int GUN_MP5K_2
Определения ParticleList.c:179
static const int EXPLOSION_GOAT
Определения ParticleList.c:285
static const int GRENADE_RDG2_BLACK_START
RDG2.
Определения ParticleList.c:108
static const int BUSH_FALLING_SNOW
Определения ParticleList.c:400
static const int FIREWORKS_EXPLOSION_THANKS4
Определения ParticleList.c:339
static const int CAMP_NO_IGNITE_WIND
Определения ParticleList.c:39
static const int GUN_PARTICLE_CASING
Определения ParticleList.c:171
static const int GEYSER_STRONG
Определения ParticleList.c:364
static const int GUN_MP5K
Определения ParticleList.c:178
static const int TREE_FALLING_NEEDLE
Определения ParticleList.c:398
static const int GRENADE_RDG2_BLACK_END
Определения ParticleList.c:110
static const int FIREWORKS_AFTERBURN_END
Определения ParticleList.c:333
static const int BUILDNG_DESTRUCT_BRICK
Определения ParticleList.c:382
static const int IMPACT_GRAVEL_EXIT
Определения ParticleList.c:241
static const int IMPACT_MEAT_ENTER
Определения ParticleList.c:248
static const int RGD5
Определения ParticleList.c:139
static const int GUN_MP5K_COMPENSATOR
Определения ParticleList.c:181
static const int GUN_SKS
Определения ParticleList.c:189
static const int IMPACT_GRASS_RICOCHET
Определения ParticleList.c:232
static const int BLOOD_SURFACE_CHUNKS
Определения ParticleList.c:158
static int m_lastID
Определения ParticleList.c:16
static const int TIREPILE_FIRE
Определения ParticleList.c:310
static const int IMPACT_PLASTER_ENTER
Определения ParticleList.c:242
static const int IMPACT_GRASS_ENTER
Определения ParticleList.c:231
static const int TANDOOR_HOUSE_FIRE_END
Определения ParticleList.c:53
static const int GUN_SOLO_MUZZLE_FLASH
Определения ParticleList.c:167
static const int BOLT_CUPID_HIT
Определения ParticleList.c:359
static const int TANDOOR_HOUSE_SMALL_FIRE
Определения ParticleList.c:49
static const int GRENADE_M18_PURPLE_START
Определения ParticleList.c:118
static const int IMPACT_DESERT_SAND_EXIT
Определения ParticleList.c:268
static const int TORCH_T3
Определения ParticleList.c:81
static const int GUN_FNX_SUPPRESSED
Определения ParticleList.c:169
static const int IMPACT_DISTANT_DUST
Определения ParticleList.c:209
static const int ROADFLARE_BURNING_INIT
Определения ParticleList.c:91
static const int IMPACT_GLASS_EXIT
Определения ParticleList.c:256
static string GetPathToParticles()
Returns BASE path to all particles.
Определения ParticleList.c:563
static const int BREATH_VAPOUR_MEDIUM
Определения ParticleList.c:161
static const int FIREWORKS_EXPLOSION_THANKS1
Определения ParticleList.c:336
static const int BLEEDING_SOURCE
Определения ParticleList.c:155
static const int ROADFLARE_BURNING_SMOKE
Определения ParticleList.c:94
static const int CAMP_STOVE_FIRE_START
Определения ParticleList.c:37
static int GetParticleIDByName(string name)
Returns particle's ID based on the filename (without .ptc suffix)
Определения ParticleList.c:552
static const int CONTAMINATED_AREA_GAS_GROUND
Определения ParticleList.c:319
static const int VEHICLE_WHEEL_SNOW
Определения ParticleList.c:387
static const int STEP_SNOW
Определения ParticleList.c:373
static const int COOKING_DRYING_DONE
Определения ParticleList.c:76
static const int BREATH_VAPOUR_LIGHT
Определения ParticleList.c:160
static const int GUN_M4A1
Определения ParticleList.c:183
static const int IMPACT_FOLIAGE_CONIFER_EXIT
Определения ParticleList.c:230
static const int FIREWORKS_EXPLOSION_YELLOW
Определения ParticleList.c:328
static const int GRENADE_M18_BLACK_LOOP
Определения ParticleList.c:131
static const int IMPACT_METAL_ENTER
Определения ParticleList.c:245
static const int GUN_MP5K_SUPPRESSED
Определения ParticleList.c:180
static const int IMPACT_WATER_SMALL_ENTER
Определения ParticleList.c:257
static const int VEHICLE_WHEEL_DESERT
Определения ParticleList.c:391
static const int HATCHBACK_ENGINE_OVERHEATING
Определения ParticleList.c:297
static const int VEHICLE_WHEEL_SOIL
Определения ParticleList.c:390
static const int IMPACT_GLASS_ENTER
Определения ParticleList.c:254
static const int IMPACT_TEST
Определения ParticleList.c:208
static const int TANDOOR_HOUSE_FIRE_STEAM_2END
Определения ParticleList.c:54
static const int EASTER_EGG_ACTIVATE
Определения ParticleList.c:152
static const int GUN_LONG_WINDED_SMOKE
Определения ParticleList.c:198
static const int IMPACT_RUBBER_EXIT
Определения ParticleList.c:238
static const int BROOM_TORCH_T1
Определения ParticleList.c:86
static const int GRENADE_M84
Определения ParticleList.c:136
static const int CAMP_SMALL_SMOKE
Определения ParticleList.c:31
static const int IMPACT_CONCRETE_ENTER
Определения ParticleList.c:219
static const int ROADFLARE_BURNING_ENDING
Определения ParticleList.c:93
static const int BUSH_PASSING_SNOW
Определения ParticleList.c:403
static const int HOUSE_NORMAL_FIRE
Определения ParticleList.c:44
static const int CLAYMORE_EXPLOSION
Определения ParticleList.c:346
static const int DEBUG_DOT5M
Определения ParticleList.c:24
static const int GUN_WINCHESTER70
Определения ParticleList.c:190
static const int ENV_SWARMING_FLIES
Определения ParticleList.c:305
static const int IMPACT_TEST_EXIT_DEBUG
Определения ParticleList.c:214
static const int BLOOD_SURFACE_DROPS
Определения ParticleList.c:157
static const int GUN_IZH18_SUPPRESSED
Определения ParticleList.c:177
static const int VOLCANO
Определения ParticleList.c:367
static const int IMPACT_MEATBONES_RICOCHET
Определения ParticleList.c:252
static const int HOUSE_FIRE_STEAM_2END
Определения ParticleList.c:47
static const int GEYSER_SPLASH
Определения ParticleList.c:365
static const int IMPACT_WOOD_ENTER
Определения ParticleList.c:216
static const int DUST_CLOUD
Определения ParticleList.c:406
static const int GRENADE_RDG2_BLACK_LOOP
Определения ParticleList.c:109
static const int IMPACT_FOLIAGE_GREEN_RICOCHET
Определения ParticleList.c:226
static const int PARTICLE_TEST
Определения ParticleList.c:22
static const int IMPACT_SNOW_RICOCHET
Определения ParticleList.c:276
static const int IMPACT_METAL_EXIT
Определения ParticleList.c:247
static const int SMOKING_BARREL_STEAM
Определения ParticleList.c:203
static const int DUST_VEHICLE_SOFT
Определения ParticleList.c:409
static const int IMPACT_MUD_BRICK_RICOCHET
Определения ParticleList.c:270
static const int GRENADE_RDG2_WHITE_START
Определения ParticleList.c:111
static const int IMPACT_METAL_RICOCHET
Определения ParticleList.c:246
static string GetParticleFullPath(int particle_id)
Returns particle's full path (with .ptc suffix) based on its ID.
Определения ParticleList.c:535
static const int FIREWORKS_EXPLOSION_BLUE
Определения ParticleList.c:327
static const int GUN_CZ61
Определения ParticleList.c:197
static const int IMPACT_PLASTIC_EXIT
Определения ParticleList.c:274
static const int IMPACT_RUBBER_ENTER
Определения ParticleList.c:236
static const int EXPLOSION_GRENADE_DESERT_SAND
Определения ParticleList.c:146
static const int HOTPSRING_WATERVAPOR
Определения ParticleList.c:362
static const int GUN_CZ527
Определения ParticleList.c:188
static const int EXPLOSION_LANDMINE
Определения ParticleList.c:283
static const int GUN_AKM_SUPPRESSED
Определения ParticleList.c:175
static const int M67
Определения ParticleList.c:140
static const int IMPACT_WOOD_RICOCHET
Определения ParticleList.c:217
static const int STEP_SOIL
Определения ParticleList.c:375
static const int CAMP_STEAM_EXTINGUISH_START
Определения ParticleList.c:35
static const int BROOM_TORCH_T3
Определения ParticleList.c:88
static const int IMPACT_FOLIAGE_ENTER
Определения ParticleList.c:222
static const int IMPACT_DIRT_RICOCHET
Определения ParticleList.c:234
static const int CAMP_FIRE_START
Определения ParticleList.c:28
static const int BOAT_WATER_SIDE
Определения ParticleList.c:302
static const int BOAT_WATER_FRONT
Определения ParticleList.c:300
static const int CEILING_WOOD
Определения ParticleList.c:378
static const int DROWNING_BUBBLES
Определения ParticleList.c:355
static const int GRENADE_M18_YELLOW_START
Определения ParticleList.c:127
static const int EVAPORATION
Определения ParticleList.c:292
static const int CONTAMINATED_AREA_GAS_SHELL
Определения ParticleList.c:320
static const int GRENADE_CHEM_BREAK
Определения ParticleList.c:344
static const int BUILDNG_DESTRUCT_WOOD
Определения ParticleList.c:381
static const int IMPACT_SNOW_EXIT
Определения ParticleList.c:277
static const int FISHING_SIGNAL_SPLASH
Определения ParticleList.c:370
static const int GUN_CZ75
Определения ParticleList.c:173
static const int IMPACT_TEST_NO_MATERIAL_ERROR
Определения ParticleList.c:215
static const int FIREWORKS_EXPLOSION_RED
Определения ParticleList.c:325
static const int TANDOOR_HOUSE_NORMAL_FIRE
Определения ParticleList.c:51
static const int CONTAMINATED_AREA_GAS_BIGASS
Определения ParticleList.c:318
static const int DUST_GROUND
Определения ParticleList.c:405
static void PreloadParticles()
Preloads all particles.
Определения ParticleList.c:569
static const int HATCHBACK_COOLANT_OVERHEATED
Определения ParticleList.c:296
static const int SMOKING_CAR_ENGINE
Определения ParticleList.c:291
static const int FIREWORKS_EXPLOSION_THANKS5
Определения ParticleList.c:340
static const int VOMIT_CHUNKS
Определения ParticleList.c:163
static const int IMPACT_PLASTER_RICOCHET
Определения ParticleList.c:243
static const int PLASTIC_EXPLOSION
Определения ParticleList.c:347
static const int POWER_GENERATOR_SMOKE
Определения ParticleList.c:149
static const int FLAREPROJ_ACTIVATE_GREEN
Определения ParticleList.c:100
static const int TANDOOR_HOUSE_SMALL_SMOKE
Определения ParticleList.c:50
static const int TANDOOR_HOUSE_NORMAL_SMOKE
Определения ParticleList.c:52
static const int HATCHBACK_COOLANT_OVERHEATING
Определения ParticleList.c:295
static const int IMPACT_TEST_RICOCHET
Определения ParticleList.c:210
static const int IMPACT_TEXTILE_EXIT
Определения ParticleList.c:262
static const int GUN_MAGNUM
Определения ParticleList.c:195
static const int OIL_FIRE1
Определения ParticleList.c:411
static const int IMPACT_PLASTIC_RICOCHET
Определения ParticleList.c:273
static const int DIGGING_STASH
Определения ParticleList.c:104
static const int OIL_FIRE2
Определения ParticleList.c:412
static ref map< int, string > m_ParticlePaths
Определения ParticleList.c:13
static const int GUN_AK74
Определения ParticleList.c:192
static const int IMPACT_FOLIAGE_EXIT
Определения ParticleList.c:224
static const int CAMP_NORMAL_SMOKE
Определения ParticleList.c:32
static const int GRENADE_M18_RED_LOOP
Определения ParticleList.c:122
static const int GRENADE_M18_YELLOW_END
Определения ParticleList.c:129
static const int FLAREPROJ_ACTIVATE
Определения ParticleList.c:98
static int GetParticleID(string particle_file)
Returns particle's ID based on the path (without .ptc suffix)
Определения ParticleList.c:541
static const int IMPACT_ICE_ENTER
Определения ParticleList.c:278
static int RegisterParticle(string file_name)
Определения ParticleList.c:414
static const int FIREWORKS_EXPLOSION_THANKS3
Определения ParticleList.c:338
static const int GRENADE_M18_WHITE_END
Определения ParticleList.c:126
static const int IMPACT_TEST_ENTER_DEBUG
Определения ParticleList.c:212
static const int BARREL_FIRE_END
Определения ParticleList.c:61
static const int CONTAMINATED_AREA_GAS_AROUND
Определения ParticleList.c:317
static bool IsValidId(int id)
Purely checks for an invalid number, does NOT mean it is actually registered.
Определения ParticleList.c:520
static const int FIREWORKS_FUSE
Определения ParticleList.c:331
static const int IMPACT_GRAVEL_RICOCHET
Определения ParticleList.c:240
static const int TREE_SOFT_FALLING_SNOW
Определения ParticleList.c:395
static const int BARREL_NORMAL_FIRE
Определения ParticleList.c:59
static const int HATCHBACK_EXHAUST_SMOKE
Определения ParticleList.c:299
static const int GRENADE_M18_GREEN_LOOP
Определения ParticleList.c:116
static const int COOKING_BOILING_DONE
Определения ParticleList.c:72
static string GetParticlePath(int particle_id)
Returns particle's full path (without .ptc suffix) based on its ID.
Определения ParticleList.c:526
static const int SPOOKY_MIST
Определения ParticleList.c:311
static const int GRENADE_RDG2_WHITE_END
Определения ParticleList.c:113
static ref map< string, int > m_ParticleNames
Определения ParticleList.c:14
static const int CAMP_STOVE_FIRE
Определения ParticleList.c:36
static const int GRENADE_M18_GREEN_END
Определения ParticleList.c:117
static const int CAMP_STEAM_2END
Определения ParticleList.c:34
static const int NONE
Определения ParticleList.c:21
static const int SMOKING_BARREL_SMALL
Определения ParticleList.c:201
static const int COOKING_BOILING_EMPTY
Определения ParticleList.c:70
static const int CAMP_SMALL_FIRE
Определения ParticleList.c:29
static const int DUST_VEHICLE
Определения ParticleList.c:408
static const int IMPACT_FOLIAGE_CONIFER_RICOCHET
Определения ParticleList.c:229
static const int OVEN_SMALL_FIRE
Определения ParticleList.c:65
static const int WATER_JET
Определения ParticleList.c:350
static const int VEHICLE_WHEEL_ASPHALT
Определения ParticleList.c:389
static const int TREE_SMALL_FALLING_SNOW
Определения ParticleList.c:397
static const int SMOKING_HELI_WRECK
Определения ParticleList.c:288
static const int FLAREPROJ_FIRE
Определения ParticleList.c:97
static const int GRENADE_M18_WHITE_LOOP
Определения ParticleList.c:125
static int GetRegisteredParticlesCount()
Определения ParticleList.c:514
static const int INVALID
Определения ParticleList.c:20
static const int BARREL_SMALL_SMOKE
Определения ParticleList.c:58
static const int GEYSER_BUBBLES
Определения ParticleList.c:366
static const int IMPACT_CONCRETE_EXIT
Определения ParticleList.c:221
static const int HOUSE_NORMAL_SMOKE
Определения ParticleList.c:45
static const int GUN_FNX
Определения ParticleList.c:168
static const int IMPACT_PLASTER_EXIT
Определения ParticleList.c:244
static const int GRENADE_M18_BLACK_START
Определения ParticleList.c:130
static const int TREE_FALLING_SNOW
Определения ParticleList.c:394
static const int SMOKE_GENERIC_WRECK
Определения ParticleList.c:290
static const int GUN_VSS
Определения ParticleList.c:191
static const int IMPACT_TEST2
Определения ParticleList.c:211
static const int IMPACT_FOLIAGE_RICOCHET
Определения ParticleList.c:223
static const int COOKING_DRYING_START
Определения ParticleList.c:75
static const int SMARKS_CHAMBER
Определения ParticleList.c:205
static const int BARREL_NORMAL_SMOKE
Определения ParticleList.c:60
static const int COOKING_BOILING_START
Определения ParticleList.c:71
static const int IMPACT_WATER_MEDIUM_ENTER
Определения ParticleList.c:258
static const int GRENADE_M18_RED_START
Определения ParticleList.c:121
static const int BUILDNG_DESTRUCT_METAL
Определения ParticleList.c:383
static const int CAMP_FIRE_END
Определения ParticleList.c:33
static const int IMPACT_MEATBONES_EXIT
Определения ParticleList.c:253
static const int HOUSE_SMALL_FIRE
Определения ParticleList.c:42
static const int CONTAMINATED_AREA_GAS_TINY
Определения ParticleList.c:316
static const int HOUSE_FIRE_END
Определения ParticleList.c:46
static const int TREE_SOFT_LARGE_FALLING_SNOW
Определения ParticleList.c:396
static const int IMPACT_WATER_LARGE_ENTER
Определения ParticleList.c:259
static const int BLEEDING_SOURCE_LIGHT
Определения ParticleList.c:156
static int RegisterParticle(string root_path, string file_name)
Registers a particle and returns its ID.
Определения ParticleList.c:452
static const int WATER_JET_WEAK
Определения ParticleList.c:351
static const int IMPACT_FOLIAGE_GREEN_EXIT
Определения ParticleList.c:227
static const int BARBED_WIRE_SPARKS
Определения ParticleList.c:150
static const int FLAREPROJ_ACTIVATE_BLUE
Определения ParticleList.c:101
static const int TREE_FALLING_LEAF
Определения ParticleList.c:399
static const int COOKING_BAKING_START
Определения ParticleList.c:73
static const int ROADFLARE_BURNING_MAIN
Определения ParticleList.c:92
static const int GUN_AK101
Определения ParticleList.c:193
static const int IMPACT_SAND_ENTER
Определения ParticleList.c:263
static const int BONFIRE_SMOKE
Определения ParticleList.c:309
static const int FIREWORKS_EXPLOSION_GREEN
Определения ParticleList.c:326
static const int VEHICLE_WHEEL_GRAVEL
Определения ParticleList.c:388
static const int GRENADE_M18_WHITE_START
Определения ParticleList.c:124
static const int GUN_MOSIN9130
Определения ParticleList.c:186
static const int SMOKING_BARREL
Определения ParticleList.c:200
static const int IMPACT_ICE_EXIT
Определения ParticleList.c:280
static const int IMPACT_DIRT_ENTER
Определения ParticleList.c:233
static const int FIREWORKS_SHOT
Определения ParticleList.c:324
static const int VOMIT
Определения ParticleList.c:159
static const int IMPACT_DESERT_SAND_ENTER
Определения ParticleList.c:266
static const int IMPACT_RUBBER_RICOCHET
Определения ParticleList.c:237
static const int IMPACT_FOLIAGE_CONIFER_ENTER
Определения ParticleList.c:228
static const int GRENADE_M18_GREEN_START
M18.
Определения ParticleList.c:115
static const int CAMP_NORMAL_FIRE
Определения ParticleList.c:30
static const int EXPLOSION_TEST
Определения ParticleList.c:284
static const int IMPACT_SAND_RICOCHET
Определения ParticleList.c:264
static const int EXPLOSION_GRENADE_ICE
Определения ParticleList.c:144
static const int DEBUG_DOT
Определения ParticleList.c:23
static const int IMPACT_DIRT_EXIT
Определения ParticleList.c:235
static const int IMPACT_TEST_RICOCHET_DEBUG
Определения ParticleList.c:213
static const int FIREWORKS_AFTERBURN_START
Определения ParticleList.c:332
static const int GUN_LONG_WINDED_SMOKE_SMALL
Определения ParticleList.c:199
static const int VOMIT_BLOOD
Определения ParticleList.c:313
static const int GUN_IZH18
Определения ParticleList.c:176
static const int IMPACT_TEXTILE_RICOCHET
Определения ParticleList.c:261
static const int HATCHBACK_ENGINE_OVERHEATED
Определения ParticleList.c:298
static const int IMPACT_PLASTIC_ENTER
Определения ParticleList.c:272
static const int GUN_PELLETS
Определения ParticleList.c:185
static const int HOUSE_FIRE_START
Определения ParticleList.c:41
static const int SMOKING_BARREL_STEAM_SMALL
Определения ParticleList.c:204
static const int GUN_MP133
Определения ParticleList.c:184
static const int CAMP_STOVE_FIRE_END
Определения ParticleList.c:38
static const int IMPACT_MEAT_EXIT
Определения ParticleList.c:250
static const int BREATH_VAPOUR_HEAVY
Определения ParticleList.c:162
static const int GRENADE_M18_PURPLE_LOOP
Определения ParticleList.c:119
static const int IMPACT_GLASS_RICOCHET
Определения ParticleList.c:255
static const int BOLT_CUPID_TAIL
Cupid's bolt.
Определения ParticleList.c:358
static const int FLAREPROJ_ACTIVATE_RED
Определения ParticleList.c:99
static const int IMPACT_MEAT_RICOCHET
Определения ParticleList.c:249
static const int HOUSE_SMALL_SMOKE
Определения ParticleList.c:43
static const int GRENADE_M18_PURPLE_END
Определения ParticleList.c:120
static const int COOKING_BURNING_DONE
Определения ParticleList.c:77
static const int GRENADE_M18_BLACK_END
Определения ParticleList.c:132
static const int GUN_PARTICLE_TEST
Определения ParticleList.c:170
static const int BONFIRE_FIRE
Определения ParticleList.c:308
static const int BARREL_FIRE_START
Определения ParticleList.c:56
static const int GUN_AKM
Определения ParticleList.c:174
static const int TORCH_T1
Определения ParticleList.c:82
static int RegisterParticleByFullPath(string fullPath)
Определения ParticleList.c:421
static const int OVEN_FIRE_START
Определения ParticleList.c:64
static const int IMPACT_GRAVEL_ENTER
Определения ParticleList.c:239
static const int AURORA_SANTA_WRECK
Определения ParticleList.c:289
static const int OVEN_FIRE_END
Определения ParticleList.c:67
static const int GEYSER_NORMAL
Определения ParticleList.c:363
static const int IMPACT_WOOD_EXIT
Определения ParticleList.c:218
static const int IMPACT_TEXTILE_ENTER
Определения ParticleList.c:260
static const int BROOM_TORCH_T2
Определения ParticleList.c:87
static const int EXPLOSION_GRENADE_SNOW
Определения ParticleList.c:143
static const int IMPACT_DESERT_SAND_RICOCHET
Определения ParticleList.c:267
static const int BOAT_WATER_BACK
Определения ParticleList.c:301
static const int LEVER_SPARKS
Определения ParticleList.c:151
static const int FIREWORKS_EXPLOSION_PINK
Определения ParticleList.c:329
static const int COOKING_BAKING_DONE
Определения ParticleList.c:74
static const int WATER_SPILLING
Определения ParticleList.c:352
Определения ParticleList.c:12
Определения Transport.c:70
Определения proto.c:49
ErrorExSeverity
Определения EnDebug.c:62
enum ShapeType ErrorEx
proto bool FileExist(string name)
Check existence of file.
proto native int Length()
Returns length of string.
proto int Replace(string sample, string replace)
Replace all occurrances of 'sample' in 'str' by 'replace'.
proto native int LastIndexOf(string sample)
Finds last 'sample' in 'str'. Returns -1 when not found.
proto string Substring(int start, int len)
Substring of 'str' from 'start' position 'len' number of characters.
static proto string Format(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
Gets n-th character from string.
proto int ToLower()
Changes string to lowercase. Returns length.
proto native void ReleaseObject(vobject object, int flag=0)