Skip to content

Custom hero selection in Panorama/Lua for Dota 2 custom games

License

Notifications You must be signed in to change notification settings

alimalibaev/CustomHeroSelection

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CustomHeroSelection

Custom hero selection in Panorama/Lua for Dota 2 custom games

Gif video of the result: http://gfycat.com/SelfishGrippingIlladopsis

The screen is visible by default as soon as the player gets ingame. To use this successfully use this first force a default hero:

GameRules:GetGameModeEntity():SetCustomGameForceHero( "npc_dota_hero_jakiro" )

Then listen for the game_rules_state_change event and to the handler add:

if GameRules:State_Get() == DOTA_GAMERULES_STATE_HERO_SELECTION then
		HeroSelection:Start()

About

Custom hero selection in Panorama/Lua for Dota 2 custom games

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 52.6%
  • Lua 24.9%
  • CSS 22.5%