Line of sight test - height offset menu

Shout-Out

User Tag List

Results 1 to 4 of 4
  1. #1
    Bananenbrot's Avatar Contributor
    Reputation
    153
    Join Date
    Nov 2009
    Posts
    384
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Line of sight test - height offset

    Hi,

    As everyone should know, there is no client-side logic for checking line of sight (break in Spell_C_Failed() when the third argument is 49, which is an id for a localized error message, from there you can see the stack trace).
    That's why I'm playing around with WorldMap::Intersect and a unit's (collision) height to get los checks right.
    As long as my toon is a night elf and my target is a standard unit (with a model height of ~2.07), using the obligatory 2 yards z offset which is used by caytchen in cleanCore and in every emu I check so far, it works pretty well.
    However, if I log in as a gnome, my los checks are not adequate, i.e. if I target those lepra (or w/e) gnomes in the very first area from downstairs, it returns true every time although I actually fail to cast anything.
    Even when I replace those 2 yards by the actual collision height ([CMovement* + 0xD0] currently), it still fails.

    For scale factors like 4/5 of my own height and 3/5 of the targets height I get accurate results for a gnome, but those factors don't work on night elves.

    So has anyone of you more sufficient values at hand or do you check for spell errors?

    Line of sight test - height offset
  2. #2
    Bananenbrot's Avatar Contributor
    Reputation
    153
    Join Date
    Nov 2009
    Posts
    384
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So... everybody is doing the +2.f way?

  3. #3
    namreeb's Avatar Legendary

    Reputation
    668
    Join Date
    Sep 2008
    Posts
    1,029
    Thanks G/R
    8/222
    Trade Feedback
    0 (0%)
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    "There is no client side LOS check"? Are you sure? It's been a while, but I'm pretty sure there was a traceline function which specifically checked for spell LOS.

  4. #4
    Bananenbrot's Avatar Contributor
    Reputation
    153
    Join Date
    Nov 2009
    Posts
    384
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If there was, Spell_C_Failed would be called with that localization id (49 for SPELL_FAILED_LINE_OF_SIGHT). I attached a debugger and checked the stack trace. It is called from a packet parsing function, so the check is entirely serverside, or, at least that trigger for the error string is. Also: iirc, you recognize a short lag between between casting the spell and seeing that error message and a short twitch of the char when trying to cast at a target not in line of sight.

    Edit: Of course, I might be wrong in case there is an LoS check anywhere outside of spell error handling... but it seems very unlikely that there is one.
    Last edited by Bananenbrot; 05-25-2012 at 04:05 PM.

Similar Threads

  1. Pulling things that are not in Line of Sight, and break Stealth
    By choweyiii in forum World of Warcraft Exploits
    Replies: 5
    Last Post: 08-17-2010, 02:47 AM
  2. [Warlock] Pull through line of sight
    By Grand Malignant in forum World of Warcraft Exploits
    Replies: 13
    Last Post: 08-11-2009, 01:47 AM
  3. Line of sight issue with Mangos for v1.12.1
    By Rhetoric in forum WoW EMU Questions & Requests
    Replies: 5
    Last Post: 06-04-2009, 11:33 PM
  4. No -Not in Line of Sight-
    By Sandile in forum WoW EMU Questions & Requests
    Replies: 7
    Last Post: 05-01-2009, 03:38 PM
  5. [Line of Sight] Action through ground in EotS
    By Memphiz in forum World of Warcraft Exploits
    Replies: 14
    Last Post: 09-25-2008, 09:36 PM
All times are GMT -5. The time now is 10:06 PM. 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