Files
Dota-Zombie-Invasion/scripts/vscripts/utils/precache_misc_particles.lua
T
2026-05-29 15:11:31 +07:00

196 lines
14 KiB
Lua

--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
local ____exports = {}
local ____blackshop = require("blackshop")
local precacheBlackshopParticles = ____blackshop.precacheBlackshopParticles
local ____QuestEventHandlers = require("quests.QuestEventHandlers")
local precacheQuestBountyHunterParticles = ____QuestEventHandlers.precacheQuestBountyHunterParticles
local ____SpawnManager = require("SpawnManager")
local precacheSpawnManagerEffectParticles = ____SpawnManager.precacheSpawnManagerEffectParticles
local ____SoundSystem = require("SoundSystem")
local precacheWeatherParticles = ____SoundSystem.precacheWeatherParticles
local precacheKittyFlexResources = ____SoundSystem.precacheKittyFlexResources
local ____vampirism = require("utils.vampirism")
local precacheVampirismParticle = ____vampirism.precacheVampirismParticle
local ____CutsceneFunctions = require("cutscenes.CutsceneFunctions")
local precacheCutsceneParticles = ____CutsceneFunctions.precacheCutsceneParticles
--- Полный набор частиц из бывшего GameMode.Precache (способности/предметы/резерв).
-- Дубликаты с precache* ниже безопасны. Постепенно переносить в Precache() конкретных ability/item.
local LEGACY_GAMEMODE_PARTICLES = {
"particles/econ/items/monkey_king/mk_ti9_immortal/arcana_death/mk_ti9_immortal_arcana_death_weapon_ambient_fire.vpcf",
"particles/econ/items/monkey_king/mk_ti9_immortal/mk_ti9_immortal_weapon_ambient_fire.vpcf",
"particles/red_diff.vpcf",
"particles/impossible.vpcf",
"particles/econ/items/phoenix/phoenix_ti10_immortal/phoenix_ti10_fire_spirit_launch_elements.vpcf",
"particles/econ/items/queen_of_pain/qop_arcana/qop_arcana_tgt_death_fire.vpcf",
"particles/units/heroes/hero_skeletonking/wraith_king_curse_overhead_skull.vpcf",
"particles/econ/items/bounty_hunter/bounty_hunter_hunters_hoard/bounty_hunter_hoard_shield_mark.vpcf",
"particles/econ/items/axe/ti9_jungle_axe/ti9_jungle_axe_culling_blade_sprint_fire.vpcf",
"particles/generic_gameplay/generic_has_quest.vpcf",
"particles/units/heroes/hero_kunkka/kunkka_spell_torrent_splash.vpcf",
"particles/units/heroes/hero_morphling/morphling_adaptive_strike_agi_proj.vpcf",
"particles/econ/items/crystal_maiden/crystal_maiden_maiden_of_icewrack/maiden_freezing_field_explosion_c_arcana1.vpcf",
"particles/units/heroes/hero_skeletonking/skeletonking_hellfireblast.vpcf",
"particles/econ/items/wraith_king/wraith_king_arcana/wk_arc_weapon_blur_critical.vpcf",
"particles/econ/events/fall_2022/maelstrom/maelstrom_arcs_fall2022.vpcf",
"particles/units/heroes/hero_bounty_hunter/bounty_hunter_track_trail_circle.vpcf",
"particles/units/heroes/hero_bounty_hunter/bounty_hunter_track_shield_mark.vpcf",
"particles/units/heroes/hero_phantom_assassin/phantom_assassin_stifling_dagger_explosion.vpcf",
"particles/units/heroes/hero_primal_beast/primal_beast_onslaught_chargeup.vpcf",
"particles/units/heroes/hero_abaddon/abaddon_death_coil.vpcf",
"particles/econ/items/huskar/huskar_2021_immortal/huskar_2021_immortal_burning_spear_debuff.vpcf",
"particles/units/heroes/hero_axe/axe_culling_blade.vpcf",
"particles/units/heroes/hero_phoenix/phoenix_supernova_reborn.vpcf",
"particles/bloodstone_full_screen_effect.vpcf",
"particles/econ/items/bloodseeker/bloodseeker_eztzhok_weapon/bloodseeker_bloodbath_eztzhok.vpcf",
"particles/units/heroes/hero_muerta/muerta_ultimate_form_screen_effect.vpcf",
"particles/units/heroes/hero_huskar/huskar_burning_spear_debuff.vpcf",
"particles/units/heroes/hero_skeletonking/wraith_king_curse_debuff_slash.vpcf",
"particles/econ/items/shadow_fiend/sf_desolation/sf_base_attack_desolation.vpcf",
"particles/econ/items/templar_assassin/ta_2022_immortal/ta_2022_immortal_trap_crimson.vpcf",
"particles/econ/items/templar_assassin/ta_2022_immortal/ta_2022_immortal_trap_gold.vpcf",
"particles/econ/items/lanaya/lanaya_epit_trap/templar_assassin_epit_trap.vpcf",
"particles/units/heroes/hero_ancient_apparition/ancient_apparition_freeze_stacks_smoke_b.vpcf",
"particles/units/heroes/hero_ancient_apparition/ancient_apparition_ice_blast_main.vpcf",
"particles/units/heroes/hero_jakiro/jakiro_liquid_fire_explosion.vpcf",
"particles/econ/items/faceless_void/faceless_void_arcana/faceless_void_arcana_deny_v2_symbol_question.vpcf",
"particles/units/heroes/hero_largo/largo_catchy_lick.vpcf",
"particles/ui_mouseactions/range_finder_cone_dual.vpcf",
"particles/units/heroes/hero_invoker/invoker_forged_spirit_projectile.vpcf",
"particles/msg_fx/msg_mana_add.vpcf",
"particles/units/heroes/hero_morphling/morphling_adaptive_strike.vpcf",
"particles/items3_fx/mango_active.vpcf",
"particles/units/heroes/hero_brewmaster/brewmaster_drunken_haze_debuff.vpcf",
"models/heroes/phantom_assassin_persona/debut/particles/pa_debutdash/pa_debutdash_fragments.vpcf",
"particles/items_fx/chain_lightning.vpcf",
"particles/items_fx/phylactery_target.vpcf",
"particles/items_fx/phylactery.vpcf",
"particles/units/heroes/hero_huskar/huskar_inner_fire_debuff_flame.vpcf",
"particles/items_fx/battlefury_cleave.vpcf",
"particles/econ/items/queen_of_pain/qop_2022_immortal/queen_2022_scream_of_pain_owner_blue.vpcf",
"particles/darkmoon_creep_warning.vpcf",
"particles/crystal_scepter_shield_ring.vpcf",
"particles/crystal_scepter_shield.vpcf",
"particles/fish_screen_effect.vpcf",
"particles/econ/items/lifestealer/lifestealer_immortal_backbone_gold/lifestealer_immortal_backbone_gold_rage.vpcf",
"particles/units/heroes/hero_omniknight/omniknight_heavenly_grace_buff.vpcf",
"particles/econ/items/omniknight/omniknight_fall20_immortal/omniknight_fall20_immortal_degen_aura_debuff.vpcf",
"particles/econ/items/omniknight/omni_crimson_witness_2021/omniknight_crimson_witness_2021_degen_aura_debuff.vpcf",
"particles/econ/events/fall_2021/fall_2021_emblem_game_effect.vpcf",
"particles/blue_gems_effect.vpcf",
"particles/sponsor_effect.vpcf",
"particles/lotus_effect.vpcf",
"particles/effect_battlepass_red.vpcf",
"particles/battlepass_garden_effect.vpcf",
"particles/battlepass_golden_effect.vpcf",
"particles/units/heroes/hero_witchdoctor/witchdoctor_maledict_projectile.vpcf",
"particles/econ/items/ember_spirit/ember_ti9/ember_ti9_flameguard.vpcf",
"particles/units/heroes/hero_ember_spirit/ember_spirit_fire_remnant_flames.vpcf",
"particles/world_environmental_fx/map_riverflow.vpcf",
"particles/econ/events/diretide_2020/emblem/fall20_emblem_effect.vpcf",
"particles/econ/events/diretide_2020/emblem/fall20_emblem_v1_effect.vpcf",
"particles/econ/events/diretide_2020/emblem/fall20_emblem_v2_effect.vpcf",
"particles/econ/events/diretide_2020/emblem/fall20_emblem_v3_effect.vpcf",
"particles/econ/items/kunkka/divine_anchor/hero_kunkka_dafx_skills/kunkka_spell_x_spot_mark_red_fxset.vpcf",
"particles/econ/events/ti9/shovel_dig.vpcf",
"particles/econ/events/ti9/shovel_revealed_baby_roshan.vpcf",
"particles/econ/events/darkmoon_2017/darkmoon_calldown_marker_arrows.vpcf",
"particles/econ/items/void_spirit/void_spirit_immortal_2021/void_spirit_immortal_2021_astral_step_debuff.vpcf",
"particles/econ/items/viper/viper_ti7_immortal/viper_poison_debuff_ti7.vpcf",
"particles/econ/events/darkmoon_2017/darkmoon_generic_aoe.vpcf",
"particles/econ/items/clinkz/clinkz_maraxiform/clinkz_maraxiform_searing_arrow_deso.vpcf",
"particles/econ/items/centaur/centaur_crownfall_belt/centaur_crownfall_belt_retaliate.vpcf",
"particles/units/heroes/hero_medusa/medusa_mana_shield_buff.vpcf",
"particles/ui_mouseactions/range_finder_tower_aoe_target_ring.vpcf",
"particles/units/heroes/hero_omniknight/omniknight_guardian_angel_wings.vpcf",
"particles/econ/items/bristleback/ti7_head_nasal_goo/bristleback_ti7_crimson_nasal_goo_proj.vpcf",
"particles/units/heroes/hero_axe/axe_beserkers_call_owner.vpcf",
"particles/econ/items/bloodseeker/bloodseeker_eztzhok_weapon/bloodseeker_bloodrage_eztzhok.vpcf",
"particles/units/heroes/hero_chaos_knight/chaos_knight_phantasm.vpcf",
"particles/units/heroes/hero_bloodseeker/bloodseeker_bloodritual_ring_lv.vpcf",
"particles/units/heroes/hero_bloodseeker/bloodseeker_spell_bloodbath_bubbles_lv.vpcf",
"particles/econ/items/lifestealer/ls_ti10_immortal/ls_ti10_immortal_infest_gold.vpcf",
"particles/units/heroes/hero_ursa/ursa_enrage_buff_2.vpcf",
"particles/units/heroes/heroes_underlord/abbysal_underlord_portal_ambient.vpcf",
"particles/bloodbath_circle.vpcf",
"particles/units/heroes/hero_pudge/pudge_meathook.vpcf",
"particles/econ/items/pudge/pudge_ti6_immortal/pudge_meathook_impact_ti6.vpcf",
"particles/units/heroes/hero_wisp/wisp_ambient.vpcf",
"particles/econ/events/fall_2021/fountain_regen_fall_2021_lvl3.vpcf",
"particles/crystal_maiden_aspect_3.vpcf",
"particles/econ/items/crystal_maiden/ti7_immortal_shoulder/cm_ti7_immortal_frostbite.vpcf",
"particles/econ/courier/courier_golden_doomling/courier_golden_doomling_ambient.vpcf",
"particles/units/heroes/hero_terrorblade/terrorblade_metamorphosis.vpcf",
"particles/econ/items/sven/sven_ti7_sword/sven_ti7_sword_spell_great_cleave_gods_strength_crit_b.vpcf",
"particles/econ/items/huskar/huskar_2021_immortal/huskar_2021_immortal_burning_spear_debuff_flame_circulate.vpcf",
"particles/units/heroes/hero_doom_bringer/doom_scorched_earth.vpcf",
"particles/econ/items/wraith_king/wraith_king_ti6_bracer/wraith_king_ti6_ambient_fireball_lava.vpcf",
"particles/units/heroes/hero_doom_bringer/doom_bringer_devour.vpcf",
"particles/econ/items/zeus/arcana_chariot/zeus_arcana_kill_explosion.vpcf",
"particles/econ/items/warlock/warlock_ti9/warlock_ti9_shadow_word_buff.vpcf",
"particles/units/heroes/hero_centaur/centaur_shard_buff_strength_counter_stack.vpcf",
"particles/units/heroes/hero_dragon_knight/dragon_knight_shard_fireball.vpcf",
"particles/nagash_world_full.vpcf",
"particles/events/crownfall/survivors/status/status_effect_burn.vpcf",
"particles/creeps/lane_creeps/creep_radiant_hulk_swipe_left.vpcf",
"particles/creeps/lane_creeps/creep_radiant_hulk_swipe_right.vpcf",
"particles/econ/items/bloodseeker/bloodseeker_crownfall_immortal/bloodseeker_crownfall_immortal_splash_ring.vpcf",
"particles/units/heroes/hero_witchdoctor/witchdoctor_voodoo_restoration.vpcf",
"particles/econ/items/winter_wyvern/winter_wyvern_ti7/wyvern_cold_embrace_ti7buff.vpcf",
"particles/econ/items/ancient_apparition/ancient_apparation_ti8/ancient_ice_vortex_ti8.vpcf",
"particles/generic_gameplay/generic_slowed_cold.vpcf",
"particles/econ/items/crystal_maiden/crystal_maiden_maiden_of_icewrack/maiden_freezing_field_snow_arcana1.vpcf",
"particles/units/heroes/hero_crystalmaiden/maiden_frostbite_buff.vpcf",
"particles/econ/items/crystal_maiden/ti9_immortal_staff/cm_ti9_staff_lvlup_globe.vpcf",
"particles/econ/events/snowball/snowball_projectile.vpcf",
"particles/units/heroes/hero_ancient_apparition/ancient_apparition_ice_blast_debuff.vpcf",
"particles/rain_fx/econ_weather_sirocco.vpcf",
"particles/rain_fx/econ_weather_pestilence.vpcf",
"particles/winter_fx/weather_plateau_snow.vpcf",
"particles/rain_fx/econ_rain.vpcf",
"particles/units/heroes/hero_clinkz/clinkz_searing_arrow_linear_proj.vpcf",
"particles/econ/items/grimstroke/gs_fall20_immortal/gs_fall20_immortal_soul_debuff.vpcf",
"particles/econ/items/grimstroke/gs_fall20_immortal/gs_fall20_immortal_soul_dragon_model.vpcf",
"particles/econ/items/legion/legion_fallen/legion_fallen_press_buff.vpcf",
"particles/heroes/dragon_knight_breathe_fire_meta.vpcf",
"particles/units/heroes/hero_dragon_knight/dragon_knight_breathe_fire.vpcf",
"particles/generic_gameplay/generic_lifesteal.vpcf",
"particles/econ/items/medusa/medusa_daughters/medusa_daughters_mana_shield.vpcf",
"particles/econ/items/gyrocopter/hero_gyrocopter_gyrotechnics/gyro_base_attack.vpcf",
"particles/units/heroes/hero_jakiro/jakiro_liquid_fire_debuff.vpcf",
"particles/econ/items/jakiro/jakiro_ti10_immortal/jakiro_ti10_macropyre.vpcf",
"particles/units/heroes/hero_warlock/warlock_rain_of_chaos_start.vpcf",
"particles/juggernaut_step.vpcf",
"particles/econ/items/warlock/warlock_ti10_head/warlock_ti_10_fatal_bonds_icon.vpcf",
"particles/units/heroes/hero_bloodseeker/bloodseeker_bloodbath.vpcf",
"particles/ping_player_clown.vpcf",
"particles/store.vpcf",
"particles/boss_tinker_laser_preview_vector.vpcf",
"particles/econ/items/axe/ti9_jungle_axe/ti9_jungle_axe_culling_blade_sprint_fire.vpcf",
"particles/econ/items/templar_assassin/templar_assassin_butterfly/templar_assassin_meld_attack_butterfly.vpcf"
}
--- Число записей PrecacheResource("particle") по модулям (для лога; совпадает с телами функций ниже).
local PARTICLE_PRECACHE_COUNTS = {
weather = 4,
spawnManager = 3,
blackshop = 6,
questBountyHunter = 2,
vampirism = 1,
cutscenes = 2
}
function ____exports.precacheMiscDistributedAndOrphanParticles(self, context)
precacheWeatherParticles(nil, context)
precacheKittyFlexResources(nil, context)
precacheSpawnManagerEffectParticles(nil, context)
precacheBlackshopParticles(nil, context)
precacheQuestBountyHunterParticles(nil, context)
precacheVampirismParticle(nil, context)
precacheCutsceneParticles(nil, context)
for ____, p in ipairs(LEGACY_GAMEMODE_PARTICLES) do
PrecacheResource("particle", p, context)
end
local legacyN = #LEGACY_GAMEMODE_PARTICLES
local sum = PARTICLE_PRECACHE_COUNTS.weather + PARTICLE_PRECACHE_COUNTS.spawnManager + PARTICLE_PRECACHE_COUNTS.blackshop + PARTICLE_PRECACHE_COUNTS.questBountyHunter + PARTICLE_PRECACHE_COUNTS.vampirism + PARTICLE_PRECACHE_COUNTS.cutscenes + legacyN
print(((((((((((((((("[Precache] Частицы: SoundSystem/погода=" .. tostring(PARTICLE_PRECACHE_COUNTS.weather)) .. ", SpawnManager=") .. tostring(PARTICLE_PRECACHE_COUNTS.spawnManager)) .. ", BlackShop=") .. tostring(PARTICLE_PRECACHE_COUNTS.blackshop)) .. ", Quest(BH)=") .. tostring(PARTICLE_PRECACHE_COUNTS.questBountyHunter)) .. ", vampirism=") .. tostring(PARTICLE_PRECACHE_COUNTS.vampirism)) .. ", cutscenes=") .. tostring(PARTICLE_PRECACHE_COUNTS.cutscenes)) .. ", legacy-список=") .. tostring(legacyN)) .. " → сумма вызовов Precache(particle) в этом блоке: ") .. tostring(sum)) .. " (дубликаты путей между модулями и legacy возможны)")
end
return ____exports