1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Get the Origin of a Hit Box?

Discussion in 'Scripts' started by greatguys1, Aug 25, 2018.

  1. greatguys1

    greatguys1 Active Adventurer Developer Warriors of the North

    279
    34
    Apr 20, 2013
    Yes
    Is there any way client side to get a random hit box, and the origin of the hit box? One of these:
    fadb0a9daf3fcc6454f864f28e7cf69e.png
     
  2. Thothie

    Thothie Administrator Staff Member Administrator Moderator Developer

    15,079
    54
    Apr 8, 2005
    psycho-oligist
    lost
    There's a $get property for it (lasthitgroup), that's supposed to detect hotboxes flagged in the model's QC, however, it only seems to work on players.

    Sadly, every time I've wanted a locational hitbox on a mob, I've only been able to do it by sticking another NPC to an attachment (ala. Undamael or the Abyssal Worm).
     
  3. greatguys1

    greatguys1 Active Adventurer Developer Warriors of the North

    279
    34
    Apr 20, 2013
    Yes
    Darn. In other news, I found that you can get the bone indexes and positions which works too. Thanks though
     
  4. Thothie

    Thothie Administrator Staff Member Administrator Moderator Developer

    15,079
    54
    Apr 8, 2005
    psycho-oligist
    lost
    True, though attachments have movement modes that allow you to set things to follow them smoothly, automatically, and with client side prediction (eg. "cleffect tempent set_current_prop follow <idx> <attachment#>" or server side via effect beam end|ents, etc). Try to do that with a bone and ya gotta update it, which looks janky, if it's something you can see, and is less reliable.
     
    Malachite likes this.
  5. greatguys1

    greatguys1 Active Adventurer Developer Warriors of the North

    279
    34
    Apr 20, 2013
    Yes
    It's unnoticeable with the bleed sfx from the other post. Thanks for the info though
     

Share This Page