perryvw / customheroselection Goto Github PK
View Code? Open in Web Editor NEWCustom hero selection in Panorama/Lua for Dota 2 custom games
License: MIT License
Custom hero selection in Panorama/Lua for Dota 2 custom games
License: MIT License
I've tried to create a barebones project and followed all the necessary steps in your README (for the location of the files, I assumed the panorama folder needs to be merged with the one in "dota 2 beta\content"). However, as soon I load into the game, instead of showing the custom hero selection screen, the game just starts hanging. Do you have any idea what might cause this behaviour?
Does this example still work with the current version of the game?
The Gold is not set properly,m when repalcing the Hero. When iset the gold via StartingGold in GameEvent manager, it gets to 0 when hero is replaced.
Changed the following line:
function HeroSelection:AssignHero( player, hero )
PrecacheUnitByNameAsync( hero, function()
-- 28.02.2019 Changed by SirWayNe, Replace with Proper Gold Value
-- PlayerResource:ReplaceHeroWith( player, hero, 0, 0 )
PlayerResource:ReplaceHeroWith( player, hero, PlayerResource:GetGold( player ) , 0)
end, player)
end
Hey,
your Hero Selector works fine, but i really would like to have the possibility to have a limited number of the same hero to pick instead of default only once.
Also can you make a additonal name-plate next to the hero button to declare which hero this is? Since im using Custom Heroes, with totally different Ability Builds etc. it would be nice to place a Text here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.