From c4141ce12c06151fa0aaa8a54f3a7302c2744542 Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 20 Nov 2024 09:07:16 +0200 Subject: [PATCH 1/5] update hud background --- content/panorama/styles/custom_game/hud.css | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/content/panorama/styles/custom_game/hud.css b/content/panorama/styles/custom_game/hud.css index 671d30a..b97e712 100644 --- a/content/panorama/styles/custom_game/hud.css +++ b/content/panorama/styles/custom_game/hud.css @@ -7,7 +7,14 @@ width: 500px; height: 500px; /* Using a background image already in dota */ - background-image: url("s2r://panorama/images/compendium/international2020/compendium/dashboard_panel_bg_psd.vtex"); + background-image: url("s2r://panorama/images/loadingscreens/international_2023_ls_3/loadingscreen.vtex"); + background-repeat: no-repeat; + background-position: center; + background-size: cover; + + border-style: solid; + border-width: 3px; + border-color: rgb(0, 0, 0); horizontal-align: center; vertical-align: center; From 0e66f4e48a0b8ae1999d3c0bd292f74b14aed8ce Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 20 Nov 2024 09:07:31 +0200 Subject: [PATCH 2/5] update meepo.kv to 7.37e --- game/scripts/npc/heroes/meepo.kv | 68 +++++++++++++------------------- 1 file changed, 27 insertions(+), 41 deletions(-) diff --git a/game/scripts/npc/heroes/meepo.kv b/game/scripts/npc/heroes/meepo.kv index 18b4892..1eb37e9 100644 --- a/game/scripts/npc/heroes/meepo.kv +++ b/game/scripts/npc/heroes/meepo.kv @@ -1,7 +1,7 @@ /// /// /// ModDota AbilityLuaSpellLibrary spells for Meepo /// /// /// -/// Last Update: 7.07c /// +/// Last Update: 7.37e /// /// /// "DOTAAbilities" @@ -13,62 +13,48 @@ { // General //------------------------------------------------------------------------------------------------------------- - "BaseClass" "ability_lua" - "ScriptFile" "abilities/heroes/meepo/earthbind_ts_example.lua" - "AbilityTextureName" "meepo_earthbind" - "AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_AOE | DOTA_ABILITY_BEHAVIOR_POINT | DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING" - "SpellImmunityType" "SPELL_IMMUNITY_ENEMIES_NO" - "SpellDispellableType" "SPELL_DISPELLABLE_YES" - "FightRecapLevel" "1" - "AbilitySound" "Hero_Meepo.Earthbind.Cast" + "BaseClass" "ability_lua" + "ScriptFile" "abilities/heroes/meepo/earthbind_ts_example.lua" + "AbilityTextureName" "meepo_earthbind" + "AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_AOE | DOTA_ABILITY_BEHAVIOR_POINT | DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING" + "SpellImmunityType" "SPELL_IMMUNITY_ENEMIES_NO" + "SpellDispellableType" "SPELL_DISPELLABLE_YES" + "FightRecapLevel" "1" + "AbilitySound" "Hero_Meepo.Earthbind.Cast" // Casting //------------------------------------------------------------------------------------------------------------- - "AbilityCastRange" "1250" - "AbilityCastPoint" "0.3" - - // Time + "AbilityCastRange" "1250" + "AbilityCastPoint" "0.3" + + // Time //------------------------------------------------------------------------------------------------------------- - "AbilityCooldown" "2" + "AbilityCooldown" "2" // Cost //------------------------------------------------------------------------------------------------------------- - "AbilityManaCost" "10" + "AbilityManaCost" "10" // Special //------------------------------------------------------------------------------------------------------------- - "AbilitySpecial" + "AbilityValues" { - "01" - { - "var_type" "FIELD_FLOAT" - "duration" "2.0" - } - "02" - { - "var_type" "FIELD_INTEGER" - "radius" "220" - } - "03" - { - "var_type" "FIELD_INTEGER" - "speed" "857" - } - "04" + "duration" "2.0" + "radius" { - "var_type" "FIELD_INTEGER" - "tooltip_range" "1250" + "value" "220" + "affected_by_aoe_increase" "1" } - // Adding cooldown and praying this gets synced - "05" + "speed" "1200" + "megameepo_net_offset" { - "var_type" "FIELD_FLOAT" - "cooldown" "2" - "LinkedSpecialBonus" "special_bonus_unique_meepo3" + "value" "160" + "affected_by_aoe_increase" "1" } - + "cooldown" "2" + "LinkedSpecialBonus" "special_bonus_unique_meepo3" } - "AbilityCastAnimation" "ACT_DOTA_CAST_ABILITY_1" + "AbilityCastAnimation" "ACT_DOTA_CAST_ABILITY_1" } } From f6ec93ba329632fb36ba336b96fefc60f1b5df0b Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 20 Nov 2024 09:07:46 +0200 Subject: [PATCH 3/5] handle dead hero case --- src/vscripts/GameMode.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vscripts/GameMode.ts b/src/vscripts/GameMode.ts index 56ef916..4d7b0f7 100644 --- a/src/vscripts/GameMode.ts +++ b/src/vscripts/GameMode.ts @@ -43,7 +43,9 @@ export class GameMode { // Also apply the panic modifier to the sending player's hero const hero = player.GetAssignedHero(); - hero.AddNewModifier(hero, undefined, modifier_panic.name, { duration: 5 }); + if (hero != undefined) { // Hero didn't spawn yet or dead + hero.AddNewModifier(hero, undefined, modifier_panic.name, { duration: 5 }); + } }); } From e715f2a111797e5affb4695ef2242bf71ce68f52 Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 20 Nov 2024 09:08:08 +0200 Subject: [PATCH 4/5] use normalized enum name --- src/vscripts/modifiers/modifier_panic.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vscripts/modifiers/modifier_panic.ts b/src/vscripts/modifiers/modifier_panic.ts index 67461f8..352399d 100644 --- a/src/vscripts/modifiers/modifier_panic.ts +++ b/src/vscripts/modifiers/modifier_panic.ts @@ -15,7 +15,7 @@ class ModifierSpeed extends BaseModifier { @registerModifier() export class modifier_panic extends ModifierSpeed { // Set state - CheckState(): Partial> { + CheckState(): Partial> { return { [ModifierState.COMMAND_RESTRICTED]: true, }; From ecc041d3ce5835dc8865bad233d83fac3b34bd8a Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 20 Nov 2024 09:16:50 +0200 Subject: [PATCH 5/5] remove extra spaces --- game/scripts/npc/heroes/meepo.kv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/scripts/npc/heroes/meepo.kv b/game/scripts/npc/heroes/meepo.kv index 1eb37e9..0c2c58b 100644 --- a/game/scripts/npc/heroes/meepo.kv +++ b/game/scripts/npc/heroes/meepo.kv @@ -27,7 +27,7 @@ //------------------------------------------------------------------------------------------------------------- "AbilityCastRange" "1250" "AbilityCastPoint" "0.3" - + // Time //------------------------------------------------------------------------------------------------------------- "AbilityCooldown" "2"