Skip to content

Commit 56dd106

Browse files
authored
Merge pull request #15 from Anime-pdf/master
Update template to recent DotA patches
2 parents 9dfc100 + ecc041d commit 56dd106

File tree

4 files changed

+38
-43
lines changed

4 files changed

+38
-43
lines changed

content/panorama/styles/custom_game/hud.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@
77
width: 500px;
88
height: 500px;
99
/* Using a background image already in dota */
10-
background-image: url("s2r://panorama/images/compendium/international2020/compendium/dashboard_panel_bg_psd.vtex");
10+
background-image: url("s2r://panorama/images/loadingscreens/international_2023_ls_3/loadingscreen.vtex");
11+
background-repeat: no-repeat;
12+
background-position: center;
13+
background-size: cover;
14+
15+
border-style: solid;
16+
border-width: 3px;
17+
border-color: rgb(0, 0, 0);
1118

1219
horizontal-align: center;
1320
vertical-align: center;

game/scripts/npc/heroes/meepo.kv

Lines changed: 26 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// ///
22
/// ModDota AbilityLuaSpellLibrary spells for Meepo ///
33
/// ///
4-
/// Last Update: 7.07c ///
4+
/// Last Update: 7.37e ///
55
/// ///
66

77
"DOTAAbilities"
@@ -13,62 +13,48 @@
1313
{
1414
// General
1515
//-------------------------------------------------------------------------------------------------------------
16-
"BaseClass" "ability_lua"
17-
"ScriptFile" "abilities/heroes/meepo/earthbind_ts_example.lua"
18-
"AbilityTextureName" "meepo_earthbind"
19-
"AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_AOE | DOTA_ABILITY_BEHAVIOR_POINT | DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING"
20-
"SpellImmunityType" "SPELL_IMMUNITY_ENEMIES_NO"
21-
"SpellDispellableType" "SPELL_DISPELLABLE_YES"
22-
"FightRecapLevel" "1"
23-
"AbilitySound" "Hero_Meepo.Earthbind.Cast"
16+
"BaseClass" "ability_lua"
17+
"ScriptFile" "abilities/heroes/meepo/earthbind_ts_example.lua"
18+
"AbilityTextureName" "meepo_earthbind"
19+
"AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_AOE | DOTA_ABILITY_BEHAVIOR_POINT | DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING"
20+
"SpellImmunityType" "SPELL_IMMUNITY_ENEMIES_NO"
21+
"SpellDispellableType" "SPELL_DISPELLABLE_YES"
22+
"FightRecapLevel" "1"
23+
"AbilitySound" "Hero_Meepo.Earthbind.Cast"
2424

2525

2626
// Casting
2727
//-------------------------------------------------------------------------------------------------------------
28-
"AbilityCastRange" "1250"
29-
"AbilityCastPoint" "0.3"
28+
"AbilityCastRange" "1250"
29+
"AbilityCastPoint" "0.3"
3030

31-
// Time
31+
// Time
3232
//-------------------------------------------------------------------------------------------------------------
33-
"AbilityCooldown" "2"
33+
"AbilityCooldown" "2"
3434

3535
// Cost
3636
//-------------------------------------------------------------------------------------------------------------
37-
"AbilityManaCost" "10"
37+
"AbilityManaCost" "10"
3838

3939
// Special
4040
//-------------------------------------------------------------------------------------------------------------
41-
"AbilitySpecial"
41+
"AbilityValues"
4242
{
43-
"01"
43+
"duration" "2.0"
44+
"radius"
4445
{
45-
"var_type" "FIELD_FLOAT"
46-
"duration" "2.0"
46+
"value" "220"
47+
"affected_by_aoe_increase" "1"
4748
}
48-
"02"
49+
"speed" "1200"
50+
"megameepo_net_offset"
4951
{
50-
"var_type" "FIELD_INTEGER"
51-
"radius" "220"
52+
"value" "160"
53+
"affected_by_aoe_increase" "1"
5254
}
53-
"03"
54-
{
55-
"var_type" "FIELD_INTEGER"
56-
"speed" "857"
57-
}
58-
"04"
59-
{
60-
"var_type" "FIELD_INTEGER"
61-
"tooltip_range" "1250"
62-
}
63-
// Adding cooldown and praying this gets synced
64-
"05"
65-
{
66-
"var_type" "FIELD_FLOAT"
67-
"cooldown" "2"
68-
"LinkedSpecialBonus" "special_bonus_unique_meepo3"
69-
}
70-
55+
"cooldown" "2"
56+
"LinkedSpecialBonus" "special_bonus_unique_meepo3"
7157
}
72-
"AbilityCastAnimation" "ACT_DOTA_CAST_ABILITY_1"
58+
"AbilityCastAnimation" "ACT_DOTA_CAST_ABILITY_1"
7359
}
7460
}

src/vscripts/GameMode.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ export class GameMode {
4343

4444
// Also apply the panic modifier to the sending player's hero
4545
const hero = player.GetAssignedHero();
46-
hero.AddNewModifier(hero, undefined, modifier_panic.name, { duration: 5 });
46+
if (hero != undefined) { // Hero didn't spawn yet or dead
47+
hero.AddNewModifier(hero, undefined, modifier_panic.name, { duration: 5 });
48+
}
4749
});
4850
}
4951

src/vscripts/modifiers/modifier_panic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class ModifierSpeed extends BaseModifier {
1515
@registerModifier()
1616
export class modifier_panic extends ModifierSpeed {
1717
// Set state
18-
CheckState(): Partial<Record<modifierstate, boolean>> {
18+
CheckState(): Partial<Record<ModifierState, boolean>> {
1919
return {
2020
[ModifierState.COMMAND_RESTRICTED]: true,
2121
};

0 commit comments

Comments
 (0)