385 if (fullPath.
Replace(
"\\",
"/") > 0)
387 ErrorEx(
string.Format(
"Using wrong path delimiter for particle registering! Use '/' instead of '\\'. fullPath=%1", fullPath),
ErrorExSeverity.WARNING);
395#ifdef WAITING_FOR_PBOS_TO_BE_UPDATED
405 string rootPath = fullPath.
Substring(0, lastIndex + 1);
406 string fileName = fullPath.
Substring(lastIndex + 1, fullPath.
Length() - (lastIndex + 1));
420 string path =
string.Format(
"%1%2", root_path, file_name);
421 string fullPath =
string.Format(
"%1.ptc",
path);
427 devMsgSuffix =
" Then rebuild 'scripts' and 'graphics' PBOs.";
429 ErrorEx(
string.Format(
"Particle file not found! <%1> Correct path to this particle in script file ParticleList.c!%2",
440 if (existingNameId == existingPathId)
442 return existingNameId;
446 ErrorEx(
string.Format(
"ParticleNames and ParticlePaths array are containing conflicting data. ID %1 vs ID %2", existingNameId, existingPathId));
451 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);
511 return "graphics/particles/";
521 for (
int i = 0; i < count; ++i)
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
static const int TREE_PASSING_SNOW
static const int GUN_MOSIN_COMPENSATOR
static const int GRENADE_M18_YELLOW_LOOP
static const int IMPACT_ICE_RICOCHET
static const int SMOKING_BARREL_HEAVY
static const int TORCH_T2
static const int IMPACT_SAND_EXIT
static const int IMPACT_SNOW_ENTER
static const int IMPACT_MEATBONES_ENTER
static const int BARREL_FIRE_STEAM_2END
static const int FIREWORKS_EXPLOSION_THANKS2
static const int GRENADE_M18_RED_END
static const int GRENADE_RDG2_WHITE_LOOP
static const int BARREL_SMALL_FIRE
static const int OVEN_NORMAL_FIRE
static const int IMPACT_CONCRETE_RICOCHET
static const int GUN_MUZZLE_FLASH_SVD_STAR
static const int IMPACT_FOLIAGE_GREEN_ENTER
static const int ITEM_HOT_VAPOR
static const int GUN_UMP45
static const int GUN_PARTICLE_CASING_RAISE
static const int GUN_MP5K_2
static const int EXPLOSION_GOAT
static const int GRENADE_RDG2_BLACK_START
RDG2.
static const int BUSH_FALLING_SNOW
static const int FIREWORKS_EXPLOSION_THANKS4
static const int CAMP_NO_IGNITE_WIND
static const int GUN_PARTICLE_CASING
static const int GEYSER_STRONG
static const int GUN_MP5K
static const int TREE_FALLING_NEEDLE
static const int GRENADE_RDG2_BLACK_END
static const int FIREWORKS_AFTERBURN_END
static const int IMPACT_GRAVEL_EXIT
static const int IMPACT_MEAT_ENTER
static const int GUN_MP5K_COMPENSATOR
static const int IMPACT_GRASS_RICOCHET
static const int BLOOD_SURFACE_CHUNKS
static const int IMPACT_PLASTER_ENTER
static const int IMPACT_GRASS_ENTER
static const int GUN_SOLO_MUZZLE_FLASH
static const int BOLT_CUPID_HIT
static const int GRENADE_M18_PURPLE_START
static const int TORCH_T3
static const int GUN_FNX_SUPPRESSED
static const int IMPACT_DISTANT_DUST
static const int ROADFLARE_BURNING_INIT
static const int IMPACT_GLASS_EXIT
static string GetPathToParticles()
Returns base path to all particles.
static const int BREATH_VAPOUR_MEDIUM
static const int FIREWORKS_EXPLOSION_THANKS1
static const int BLEEDING_SOURCE
static const int ROADFLARE_BURNING_SMOKE
static const int CAMP_STOVE_FIRE_START
static int GetParticleIDByName(string name)
Returns particle's ID based on the filename (without .ptc suffix)
static const int CONTAMINATED_AREA_GAS_GROUND
static const int VEHICLE_WHEEL_SNOW
static const int STEP_SNOW
static const int COOKING_DRYING_DONE
static const int BREATH_VAPOUR_LIGHT
static const int GUN_M4A1
static const int IMPACT_FOLIAGE_CONIFER_EXIT
static const int FIREWORKS_EXPLOSION_YELLOW
static const int GRENADE_M18_BLACK_LOOP
static const int IMPACT_METAL_ENTER
static const int GUN_MP5K_SUPPRESSED
static const int IMPACT_WATER_SMALL_ENTER
static const int HATCHBACK_ENGINE_OVERHEATING
static const int IMPACT_GLASS_ENTER
static const int IMPACT_TEST
static const int EASTER_EGG_ACTIVATE
static const int GUN_LONG_WINDED_SMOKE
static const int IMPACT_RUBBER_EXIT
static const int BROOM_TORCH_T1
static const int GRENADE_M84
static const int CAMP_SMALL_SMOKE
static const int IMPACT_CONCRETE_ENTER
static const int ROADFLARE_BURNING_ENDING
static const int BUSH_PASSING_SNOW
static const int HOUSE_NORMAL_FIRE
static const int CLAYMORE_EXPLOSION
static const int GUN_WINCHESTER70
static const int ENV_SWARMING_FLIES
static const int IMPACT_TEST_EXIT_DEBUG
static const int BLOOD_SURFACE_DROPS
static const int GUN_IZH18_SUPPRESSED
static const int IMPACT_MEATBONES_RICOCHET
static const int HOUSE_FIRE_STEAM_2END
static const int IMPACT_WOOD_ENTER
static const int GRENADE_RDG2_BLACK_LOOP
static const int IMPACT_FOLIAGE_GREEN_RICOCHET
static const int PARTICLE_TEST
static const int IMPACT_SNOW_RICOCHET
static const int IMPACT_METAL_EXIT
static const int SMOKING_BARREL_STEAM
static const int GRENADE_RDG2_WHITE_START
static const int IMPACT_METAL_RICOCHET
static string GetParticleFullPath(int particle_id)
Returns particle's full path (with .ptc suffix) based on its ID.
static const int FIREWORKS_EXPLOSION_BLUE
static const int GUN_CZ61
static const int IMPACT_PLASTIC_EXIT
static const int IMPACT_RUBBER_ENTER
static const int HOTPSRING_WATERVAPOR
static const int GUN_CZ527
static const int EXPLOSION_LANDMINE
static const int GUN_AKM_SUPPRESSED
static const int IMPACT_WOOD_RICOCHET
static const int CAMP_STEAM_EXTINGUISH_START
static const int BROOM_TORCH_T3
static const int IMPACT_FOLIAGE_ENTER
static const int IMPACT_DIRT_RICOCHET
static const int CAMP_FIRE_START
static const int BOAT_WATER_SIDE
static const int BOAT_WATER_FRONT
static const int DROWNING_BUBBLES
static const int GRENADE_M18_YELLOW_START
static const int EVAPORATION
static const int CONTAMINATED_AREA_GAS_SHELL
static const int GRENADE_CHEM_BREAK
static const int IMPACT_SNOW_EXIT
static const int FISHING_SIGNAL_SPLASH
static const int GUN_CZ75
static const int IMPACT_TEST_NO_MATERIAL_ERROR
static const int FIREWORKS_EXPLOSION_RED
static const int CONTAMINATED_AREA_GAS_BIGASS
static void PreloadParticles()
Preloads all particles.
static const int HATCHBACK_COOLANT_OVERHEATED
static const int SMOKING_CAR_ENGINE
static const int FIREWORKS_EXPLOSION_THANKS5
static const int VOMIT_CHUNKS
static const int IMPACT_PLASTER_RICOCHET
static const int PLASTIC_EXPLOSION
static const int POWER_GENERATOR_SMOKE
static const int FLAREPROJ_ACTIVATE_GREEN
static const int HATCHBACK_COOLANT_OVERHEATING
static const int IMPACT_TEST_RICOCHET
static const int IMPACT_TEXTILE_EXIT
static const int GUN_MAGNUM
static const int IMPACT_PLASTIC_RICOCHET
static const int DIGGING_STASH
static ref map< int, string > m_ParticlePaths
static const int GUN_AK74
static const int IMPACT_FOLIAGE_EXIT
static const int CAMP_NORMAL_SMOKE
static const int GRENADE_M18_RED_LOOP
static const int GRENADE_M18_YELLOW_END
static const int FLAREPROJ_ACTIVATE
static int GetParticleID(string particle_file)
Returns particle's ID based on the path (without .ptc suffix)
static const int IMPACT_ICE_ENTER
static int RegisterParticle(string file_name)
static const int FIREWORKS_EXPLOSION_THANKS3
static const int GRENADE_M18_WHITE_END
static const int IMPACT_TEST_ENTER_DEBUG
static const int BARREL_FIRE_END
static const int CONTAMINATED_AREA_GAS_AROUND
static bool IsValidId(int id)
Purely checks for an invalid number, does NOT mean it is actually registered.
static const int FIREWORKS_FUSE
static const int IMPACT_GRAVEL_RICOCHET
static const int TREE_SOFT_FALLING_SNOW
static const int BARREL_NORMAL_FIRE
static const int HATCHBACK_EXHAUST_SMOKE
static const int GRENADE_M18_GREEN_LOOP
static const int COOKING_BOILING_DONE
static string GetParticlePath(int particle_id)
Returns particle's full path (without .ptc suffix) based on its ID.
static const int SPOOKY_MIST
static const int GRENADE_RDG2_WHITE_END
static ref map< string, int > m_ParticleNames
static const int CAMP_STOVE_FIRE
static const int GRENADE_M18_GREEN_END
static const int CAMP_STEAM_2END
static const int SMOKING_BARREL_SMALL
static const int COOKING_BOILING_EMPTY
static const int CAMP_SMALL_FIRE
static const int IMPACT_FOLIAGE_CONIFER_RICOCHET
static const int OVEN_SMALL_FIRE
static const int WATER_JET
static const int VEHICLE_WHEEL_ASPHALT
static const int TREE_SMALL_FALLING_SNOW
static const int SMOKING_HELI_WRECK
static const int FLAREPROJ_FIRE
static const int GRENADE_M18_WHITE_LOOP
static int GetRegisteredParticlesCount()
static const int BARREL_SMALL_SMOKE
static const int GEYSER_BUBBLES
static const int IMPACT_CONCRETE_EXIT
static const int HOUSE_NORMAL_SMOKE
static const int IMPACT_PLASTER_EXIT
static const int GRENADE_M18_BLACK_START
static const int TREE_FALLING_SNOW
static const int SMOKE_GENERIC_WRECK
static const int IMPACT_TEST2
static const int IMPACT_FOLIAGE_RICOCHET
static const int COOKING_DRYING_START
static const int SMARKS_CHAMBER
static const int BARREL_NORMAL_SMOKE
static const int COOKING_BOILING_START
static const int IMPACT_WATER_MEDIUM_ENTER
static const int GRENADE_M18_RED_START
static const int CAMP_FIRE_END
static const int IMPACT_MEATBONES_EXIT
static const int HOUSE_SMALL_FIRE
static const int CONTAMINATED_AREA_GAS_TINY
static const int HOUSE_FIRE_END
static const int TREE_SOFT_LARGE_FALLING_SNOW
static const int IMPACT_WATER_LARGE_ENTER
static const int BLEEDING_SOURCE_LIGHT
static int RegisterParticle(string root_path, string file_name)
Registers a particle and returns its ID.
static const int WATER_JET_WEAK
static const int IMPACT_FOLIAGE_GREEN_EXIT
static const int BARBED_WIRE_SPARKS
static const int FLAREPROJ_ACTIVATE_BLUE
static const int TREE_FALLING_LEAF
static const int COOKING_BAKING_START
static const int ROADFLARE_BURNING_MAIN
static const int GUN_AK101
static const int IMPACT_SAND_ENTER
static const int BONFIRE_SMOKE
static const int FIREWORKS_EXPLOSION_GREEN
static const int VEHICLE_WHEEL_GRAVEL
static const int GRENADE_M18_WHITE_START
static const int GUN_MOSIN9130
static const int SMOKING_BARREL
static const int IMPACT_ICE_EXIT
static const int IMPACT_DIRT_ENTER
static const int FIREWORKS_SHOT
static const int IMPACT_RUBBER_RICOCHET
static const int IMPACT_FOLIAGE_CONIFER_ENTER
static const int GRENADE_M18_GREEN_START
M18.
static const int CAMP_NORMAL_FIRE
static const int EXPLOSION_TEST
static const int IMPACT_SAND_RICOCHET
static const int EXPLOSION_GRENADE_ICE
static const int DEBUG_DOT
static const int IMPACT_DIRT_EXIT
static const int IMPACT_TEST_RICOCHET_DEBUG
static const int FIREWORKS_AFTERBURN_START
static const int GUN_LONG_WINDED_SMOKE_SMALL
static const int VOMIT_BLOOD
static const int GUN_IZH18
static const int IMPACT_TEXTILE_RICOCHET
static const int HATCHBACK_ENGINE_OVERHEATED
static const int IMPACT_PLASTIC_ENTER
static const int GUN_PELLETS
static const int HOUSE_FIRE_START
static const int SMOKING_BARREL_STEAM_SMALL
static const int GUN_MP133
static const int CAMP_STOVE_FIRE_END
static const int IMPACT_MEAT_EXIT
static const int BREATH_VAPOUR_HEAVY
static const int GRENADE_M18_PURPLE_LOOP
static const int IMPACT_GLASS_RICOCHET
static const int BOLT_CUPID_TAIL
Cupid's bolt.
static const int FLAREPROJ_ACTIVATE_RED
static const int IMPACT_MEAT_RICOCHET
static const int HOUSE_SMALL_SMOKE
static const int GRENADE_M18_PURPLE_END
static const int COOKING_BURNING_DONE
static const int GRENADE_M18_BLACK_END
static const int GUN_PARTICLE_TEST
static const int BONFIRE_FIRE
static const int BARREL_FIRE_START
static const int TORCH_T1
static int RegisterParticleByFullPath(string fullPath)
static const int OVEN_FIRE_START
static const int IMPACT_GRAVEL_ENTER
static const int AURORA_SANTA_WRECK
static const int OVEN_FIRE_END
static const int GEYSER_NORMAL
static const int IMPACT_WOOD_EXIT
static const int IMPACT_TEXTILE_ENTER
static const int BROOM_TORCH_T2
static const int EXPLOSION_GRENADE_SNOW
static const int BOAT_WATER_BACK
static const int LEVER_SPARKS
static const int FIREWORKS_EXPLOSION_PINK
static const int COOKING_BAKING_DONE
static const int WATER_SPILLING
proto native CGame GetGame()
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 native void ReleaseObject(vobject object, int flag=0)