Forum Rules

  • No flaming or derogatory remarks, directly or through insinuation.
  • No discussion, sharing or referencing illegal software such as hacks, keygen, cracks and pirated software.
  • No offensive contents, including but not limited to, racism, gore or pornography.
  • No excessive spam/meme, i.e. copious one liners in a short period of time, typing with all caps or posting meme responses (text/image).
  • No trolling, including but not limited to, flame incitation, user provocation or false information distribution.
  • No link spamming or signature advertisements for content not specific to Dota 2.
  • No Dota 2 key requests, sell, trade etc.
  • You may not create multiple accounts for any purpose, including ban evasion, unless expressly permitted by a moderator.

  • Please search before posting. One thread per issue. Do not create another thread if there is an existing one already.
  • Before posting anything, make sure you check out all sticky threads (e.g., this). Do not create new threads about closed ones.
  • It is extremely important that you post in correct forum section.

  • Balance discussion only in Misc.
  • All art related (such as hero model) feedbacks go to Art Feedback Forum.
  • All matchmaking feedback should go here: Matchmaking Feedback
  • All report/low priority issues should go here: Commend/Report/Ban Feedback
  • No specific workshop item feedback. These should go to workshop page of that item.
  • When posting in non-bugs section (such as this), use [Bugs], [Discussion] or [Suggestion] prefix in your thread name.

In case you object some action by a moderator, please contact him directly through PM and explain your concerns politely. If you are still unable to resolve the issue, contact an administrator. Do not drag these issues in public.

All rules are meant to augment common sense, please use them when not conflicted with aforementioned policies.
See more
See less

[Confirmed]Windrunner's Shackleshot's tree searching angle range is way too wide

  • Filter
  • Time
  • Show
Clear All
new posts

  • [Confirmed]Windrunner's Shackleshot's tree searching angle range is way too wide

    Do the math yourself if you want; you have to calculate the arctan[(xDifference / yDifference)]
    It is ~25.8 degrees in positive and negative direction (something between 25.757 and 25.873)
    it should be 21 degrees in positive and negative direction

    Actually, it is the same as unit searching angle at the moment. Unit searching angle is also ~25.8, which actually should be 26, but the outcome is almost the same for that one, matters about 0~3 units depending on how far the secondary target is.

    Anyway, there should be seperate searching angles for both trees and units.
    Here is the proof from the code:

    01  function Func2456 takes nothing returns nothing
    02    local destructable loc_destructable01=GetEnumDestructable()
    03    local real loc_real01=Atan2(GetDestructableY(loc_destructable01)-GetUnitY(unit124),GetDestructableX(loc_destructable01)-GetUnitX(unit124))
    04    local real loc_real02=RAbsBJ((real009-loc_real01)*bj_RADTODEG)
    05    if(Func0094(loc_destructable01)or GetDestructableTypeId(loc_destructable01)=='B005')and GetDestructableLife(loc_destructable01)>1 and loc_real02<real298 and loc_real02<(real299-5)then
    06      set real298=loc_real02
    07      set destructable001=loc_destructable01
    08    endif
    09    set loc_destructable01=null
    10  endfunction
    Focus on the line 5.
    This function is called for every unit that has been grouped as viable secondary tree-targets.
    real298 is 9999 by default, but changes on every call
    real299 is set to 26, which is used raw on the other function where viable units are detected, but reduced by 5 in this one

    This function is used for finding the target that has the least angle difference, with a maximum of 21 degrees difference.

    Actually, even when this gets fixed to be 21 degrees, Shackleshot tree searching area will still be greater than what it was in DotA in average... but whatever, that will make things complicated

  • #2
    FINALLY !!


    • #3
      GF to all those non-believers.


      • #4


        • #5

          Nice to see some real data for once instead of "I feel.." reports on this issue.

          BTW, you don't need to produce the jass for absolutely everything Applesin. Most of the people who know this mechanic would know about the different tree searching angle. Posting the discrepancy between the two games is enough, with emphasis on specific differences (tree search is wrong, is 26deg, should be 21deg) rather than your methodology or the code, because otherwise the report is very long and hard to absorb quickly for any devs reading.

          (And 21 vs 26 is not 'way too wide' really. We would have found this out via visual tests long ago if that was the case :/ )
          Last edited by DLRevan; 03-29-2013, 11:19 PM.
          Always read and follow the forum rules. If you need help from a moderator, use the report button ()
          Before posting new bugs:
          -Check the Known Bugs List and search the forum for an existing report.
          -Make sure its a bug (test in WC3 Dota, visit playdota guides and adv. mech, etc). If you're still not sure, post in Mechanics and Gameplay Bug Brainstorming instead.
          -Read the Bug Posting Guidelines on how to report a bug properly.


          • #6

            There are three reasons why I provide the code and explain it:
            - firstly and most importantly, I enjoy it. But if that is the case that it is becoming tiring for the devs to find the focus, I will then post the focus as the original post of my threads, with the proof from Dota 2 if necessary; and then explain it on a following post
            - second reason is that I think some people might be enjoying the read of such reports, and I really try to make my reports enjoyable while reading. For example, recently I have been making slow-mo videos on my reports, which are there just to keep it entertaining
            - lastly... well, I am kind of fed up with seeing unbased sourceless shooting down with "no it is not like that in DotA" or "no you are wrong" or "source??? I think you are wrong" or "intended.", taking over my reports... When people see the code, they get more serious. Seeing the code is like hitting against a wall to them. When there is the code around for people to see themselves, they cannot say random unbased things that so recklessly. It still leaves them a window to say their opinions about it. They still can say that "I would rather like to have it this way" etc..

            And the difference between 21 and 26 really is big actually...
            26 is about 24% higher than 21. It basically multiples the searching area by 1.25
            and it can increase the searching range by up to 42*2 units on the perpendicular axis:

            525 * (sin26 - sin21) = 42.00 units difference on both sides on the perpenicular axis
            525 * sin21 = 188.14 is how wide it should be, and 42 is 22% of it, meaning that it is about 22% wider

            I don't know... I would call this "way too", but of course one can call it "slightly" too


            • #7
              just want to ask, any reason tree search angle is narrower than unit search angle?


              • #8
                We need the Ice to answer that
                I think the reason might be that the map is already filled with trees, so it has been made to be more narrow than the unit search angle range, to even out the unit latching and tree latching a little


                • #9
                  it's a point. i agree with u. probably for balance reason. also trees are stationary while units are generally moving.
                  btw bother answering this?


                  • #10
                    I am thinking over it, and how I can find it out... I have that tab open on my browser, which will remain open until I answer it
                    The way I found it in Dota 2 was tiring, and is impossible for me to use in DotA aswell for some reason, so I have to find another way, maybe somehow find it in the code somehow, and I don't even know if the trees being created through jass


                    • #11
                      Well in that playdota thread didn't it say they have to be on multiples of 32? I'd probably just try to guess it with -setxy If it's multiples of 32 you can't get that far off, surely
                      Comprehensive Damage Reduction & Amplifications Dota 2 Guide


                      • #12
                        like that was something new... Shackle binding from every wierd angle and 20k range, happening every time


                        • #13
                          Yeah, multiples of 64 not 32. 32 is for regions, 64 for trees. That'll work

                          No it doesn't work... I still cannot tell it precisely even with the 64
                          Last edited by ThoAppelsin; 03-30-2013, 06:44 AM.


                          • #14
                            also it shakles after blink

                            KEEP IN SHADOWS


                            • #15
                              Originally posted by Kraivo View Post
                              also it shakles after blink
                              that's not a bug