Facing the target check mechanism menu

Shout-Out

User Tag List

Results 1 to 7 of 7
  1. #1
    citrot's Avatar Member
    Reputation
    1
    Join Date
    Dec 2013
    Posts
    30
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Facing the target check mechanism

    Hi!

    It is checked on client side, when player starts a casting or finishes one, it should face the target, or action fails. Looking for some tips, how to find the mechanism, where client checks it (32-bit client, gonna test it only on private servers).

    Facing the target check mechanism
  2. #2
    Filint's Avatar Contributor Authenticator enabled
    Reputation
    167
    Join Date
    Mar 2014
    Posts
    97
    Thanks G/R
    23/56
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've not done this personally, but... My first thought is that to deduce whether you are facing the target it will need to know the direction you are facing (angle). So it might be a good idea to have a look for functions referencing that.

    A good idea is to grab an old named idb and Poke around in Ida, see if you can find it there, then find the same thing in the latest version.

    Good luck

  3. #3
    LogicWin's Avatar Master Sergeant
    Reputation
    51
    Join Date
    Mar 2011
    Posts
    103
    Thanks G/R
    4/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  4. #4
    Jadd's Avatar 🐸 Premium Seller
    Reputation
    1515
    Join Date
    May 2008
    Posts
    2,433
    Thanks G/R
    81/336
    Trade Feedback
    1 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I believe Spell_C_IsUsableAction checks for everything you could want before casting a spell, including facing requirements, distance requirements, and so on.

    __cdecl bool Spell_C_IsUsableAction(CGUnit_C *unit, SpellRec *spellSource, SmartGuid &spellTarget, ItemRecSparse *itemSource, bool ignoreControlState, bool includePetSpells, bool ignoreSpellTokens, bool ignoreShapeshiftRules)

    If you want to check if a spell is castable, itemSource may be null. ignoreControlState determines whether we should ignore stuns etc. when determining the outcome. Other bool values should be false generally.
    Last edited by Jadd; 02-14-2016 at 02:02 AM.

  5. #5
    citrot's Avatar Member
    Reputation
    1
    Join Date
    Dec 2013
    Posts
    30
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi!

    In nutshell, have no clue, what to do with info written on that topic

    Checked the whole topic. Probably i do not understand it fully. Somewhere in time of wow patch 3.1.3 9947 there was a tool named "BhTool", and with that loaded into the memory, extra functionality was possible to trigger. Or something like that. Now that tool is gone long time ago, and even if i can obtain a copy of that from folks around (minimal chance i guess, as its a 6+ years old story), there is no private server i found with that version to check control flow, how it did work in respect of facing the target. Also, there is 6.x time now, even for private servers, and wow got many upgrades in design too. Of cource i will search around bhtool, however that path seems pretty cold already. If you have relevant code snippets / control flow docs of native client from those days (still a chance to recognize it in ida), let me know.

  6. #6
    Filint's Avatar Contributor Authenticator enabled
    Reputation
    167
    Join Date
    Mar 2014
    Posts
    97
    Thanks G/R
    23/56
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Jadd has given you the name of the function to investigate:

    Originally Posted by Jadd View Post
    Spell_C_IsUsableAction
    So with that and a named idb you should easily be able to figure out what's happening. A Named idb can be found with a simple search. You can then check the recent info dumps and go from there.

    If using Ida and reversing it yourself is too difficult at the moment, I would suggest that perhaps it's not yet time to approach this project. If so, practice a bit first, read some other material, and come back to this in a few months time.

    Good luck.

  7. #7
    citrot's Avatar Member
    Reputation
    1
    Join Date
    Dec 2013
    Posts
    30
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If i had history for that functionality from older versions, there will be no problem. I am searching in this question first time, this is the very beginning. If you have the point, which function name to check, please, let me know. I will find it on version dump thread topic, and i will be fine from that point on.

Similar Threads

  1. Check if you're facing the target?
    By thrakmar in forum PE Support forum
    Replies: 4
    Last Post: 12-20-2015, 08:43 PM
  2. Replies: 15
    Last Post: 02-01-2009, 05:17 AM
  3. Is there anyway to get the targets armor
    By Dearleader in forum WoW Memory Editing
    Replies: 14
    Last Post: 01-07-2009, 12:12 PM
  4. [New] The Target-Tracker Program
    By blubb12345 in forum World of Warcraft Bots and Programs
    Replies: 51
    Last Post: 09-07-2008, 10:51 PM
  5. What the heck, check out this im i received?!
    By sk8erevan in forum Community Chat
    Replies: 11
    Last Post: 08-15-2008, 01:28 AM
All times are GMT -5. The time now is 07:46 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search