GithubHelp home page GithubHelp logo

Cannot pick Wraith King about dota_imba HOT 4 OPEN

dobegor avatar dobegor commented on June 9, 2024
Cannot pick Wraith King

from dota_imba.

Comments (4)

Kodpact avatar Kodpact commented on June 9, 2024 1

Yes you can by disconnecting before it will random you. Whenever hero is banned with IMBA system (red line on hero, you cannot select it, and hero is not faded into red) you can pick it with dota_select_hero console command.
I guess disconnect trick works because code is checking if player is actually connected

if PlayerResource:IsValidPlayer(i) and PlayerResource:GetConnectionState(i) == DOTA_CONNECTION_STATE_CONNECTED then

#FixIt

from dota_imba.

EarthSalamander42 avatar EarthSalamander42 commented on June 9, 2024

It's not as easy as it looks like. If the server select a hero for you when you're offline, once you reconnect you'll be unable to issue any command. I'll take a closer look to find a way using timers maybe.

from dota_imba.

Kodpact avatar Kodpact commented on June 9, 2024

Do you really need timers? Cannot you hook reconnect event and then check if player actually has valid hero?

from dota_imba.

EarthSalamander42 avatar EarthSalamander42 commented on June 9, 2024

yeah but i'll need timers, iirc there's a delay with the reconnect hook and player being valid

from dota_imba.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.