Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion content/panorama/styles/custom_game/hud.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
66 changes: 26 additions & 40 deletions game/scripts/npc/heroes/meepo.kv
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// ///
/// ModDota AbilityLuaSpellLibrary spells for Meepo ///
/// ///
/// Last Update: 7.07c ///
/// Last Update: 7.37e ///
/// ///

"DOTAAbilities"
Expand All @@ -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"
"AbilityCastRange" "1250"
"AbilityCastPoint" "0.3"

// Time
// Time
//-------------------------------------------------------------------------------------------------------------
"AbilityCooldown" "2"
"AbilityCooldown" "2"

// Cost
//-------------------------------------------------------------------------------------------------------------
"AbilityManaCost" "10"
"AbilityManaCost" "10"

// Special
//-------------------------------------------------------------------------------------------------------------
"AbilitySpecial"
"AbilityValues"
{
"01"
"duration" "2.0"
"radius"
{
"var_type" "FIELD_FLOAT"
"duration" "2.0"
"value" "220"
"affected_by_aoe_increase" "1"
}
"02"
"speed" "1200"
"megameepo_net_offset"
{
"var_type" "FIELD_INTEGER"
"radius" "220"
"value" "160"
"affected_by_aoe_increase" "1"
}
"03"
{
"var_type" "FIELD_INTEGER"
"speed" "857"
}
"04"
{
"var_type" "FIELD_INTEGER"
"tooltip_range" "1250"
}
// Adding cooldown and praying this gets synced
"05"
{
"var_type" "FIELD_FLOAT"
"cooldown" "2"
"LinkedSpecialBonus" "special_bonus_unique_meepo3"
}

"cooldown" "2"
"LinkedSpecialBonus" "special_bonus_unique_meepo3"
}
"AbilityCastAnimation" "ACT_DOTA_CAST_ABILITY_1"
"AbilityCastAnimation" "ACT_DOTA_CAST_ABILITY_1"
}
}
4 changes: 3 additions & 1 deletion src/vscripts/GameMode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/vscripts/modifiers/modifier_panic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class ModifierSpeed extends BaseModifier {
@registerModifier()
export class modifier_panic extends ModifierSpeed {
// Set state
CheckState(): Partial<Record<modifierstate, boolean>> {
CheckState(): Partial<Record<ModifierState, boolean>> {
return {
[ModifierState.COMMAND_RESTRICTED]: true,
};
Expand Down
Loading