Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2012-09-22 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog
Chat

War3:Source
September 21, 2012, 09:46:17 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Download: http://war3source.com/index.php?board=9.0
What is War3Source?: http://war3source.com/index.php?topic=200.0
Sample Stats: http://war3source.com/war3stats
Steam Community Group: http://steamcommunity.com/groups/war3source
War3Source SVN Checkout: http://ownageclan.com/svn/war3source/
War3Source servers: http://www.game-monitor.com/search.php?vars=war3_version=
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Question: Anyone know about singling out hitboxes?  (Read 257 times)
-El Diablo
Full Member
***
Posts: 175


View Profile
« on: May 24, 2012, 04:48:11 AM »

To be able to reduce or refuse damage to specific hitboxes and/or to be able to know when a hitbox is hit??

I couldn't find anything specific online by the usualy google.
Logged
Glider⠠⠵
Global Moderator
Sr. Member
*****
Posts: 402


⠠⠵


View Profile
« Reply #1 on: May 24, 2012, 07:53:59 AM »

sdkhooks has a hitbox parameter on some functions you could use. I think the item that blocks headshots in war3source actually uses this to block damage if hitbox == head, maybe that can help you.
Logged

Revan
Sr. Member
****
Posts: 263



View Profile
« Reply #2 on: May 24, 2012, 08:14:09 AM »

you could hook event player_hurt and get the hitbox param if you don't want to use sdkhooks. but you should realy consider using it since hooking player_hurt to reduce/prevent damage isn't nice Wink
Logged

Smilax
Newbie
*
Posts: 34


I make things for tf2.


View Profile WWW Email
« Reply #3 on: July 30, 2012, 07:41:39 PM »

for future reference on hitboxs

Hitbox
0 = head
1 = pelvis
2 & 3 & 4 & 5 = Spine (backstab related)
Left Arm
6 = Upper arm
7 = Lower Arm
8 = Hand
Right Arm
9 = Upper
10 = Lower
11 = Hand

Bottom Half Left
12 = Hip
13 = Knee
14 = Foot

Bottom Half Right
15 = Hip
16 = Knee
17 = Foot

Hitbox Group
0 = Pelvis
1 = Head
2 & 3 = Spine
4 & 5 = Arms & Hands
6 & 7 = Legs & Feet


Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!