An open API service indexing awesome lists of open source software.

https://github.com/perryvw/customheroselection

Custom hero selection in Panorama/Lua for Dota 2 custom games
https://github.com/perryvw/customheroselection

Last synced: about 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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:

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

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

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