Archived copy of warcraft-source.com, the Warcraft: Source (WCS) forum (2007–2011), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2009-08-21 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
August 21, 2009, 03:38:17 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: WCS Tournament being opened for applications!

Post here for signups!
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1]   Go Down
  Print  
This topic has not yet been rated! You have not rated this topic. Select a rating:
Author Topic: Hit Groups Explanation And Diagram, Very Helpful  (Read 19 times)
Loaded
Level 1 Trained Beginner
*
Offline Offline

Posts: 20



« on: August 19, 2009, 01:56:37 AM »

I'm betting you have seen races that involve hit groups. Hit Groups are basically a way to divide the player up so you can determine which part of the body was hit.

Code like this:
Code:
if (event_var(hitgroup) != 1) do
or
Code:
if (event_var(hitgroup) = 1) do
are the most common

The first one says "if the hit group does not equal 1(the head) do this"
The second one says "if the hit group is equal to 1(the head) do this"
This generally is used for races like zombies where you must shoot them in the head to kill them. The only hitgroup we really ever see is 1 to distinguish whether it was a headshot or not. Well here is a nice diagram to let you know that hit group 1 is not the only one out there.

http://www.eventscripts.com/pages/Hit_Groups

1 = Head
2 = Upper Body (Heart, Lungs, Rib Cage, etc.)
3 = Lower Body (Gut, Stomach, etc.)
4= Left Arm (includes Left Upper Arm, Left Forearm, and Left Hand)
5= Right Arm (includes Right Upper Arm, Right Forearm, and Right Hand)
6= Left Leg (includes Left Thigh, Left Calf, and Left Foot)
7= Right Leg (includes Right Thigh, Right Calf, and Right Foot)

Those are Hit Groups...now someone go make a race where to die you have to be shot in the arm!
Logged
Pietro
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 515




Pietro_Annuzzi
« Reply #1 on: August 19, 2009, 06:48:06 AM »

what if its a custom model?  Roll Eyes
Logged

Footman : Link
EvilKnight : Link
Horde Totem : Link
Ally Totem : Link
Loaded
Level 1 Trained Beginner
*
Offline Offline

Posts: 20



« Reply #2 on: August 19, 2009, 06:52:11 AM »

then god help us all!!!  Shocked Shocked Shocked
Logged
Pietro
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 515




Pietro_Annuzzi
« Reply #3 on: August 19, 2009, 07:06:25 AM »

then god help us all!!!  Shocked Shocked Shocked
gief me a serious answer Sad Sad Sad Sad Sad
Logged

Footman : Link
EvilKnight : Link
Horde Totem : Link
Ally Totem : Link
CA.Berettonawak
Le renommé méconnu...
Watchdogs
Level 7 Expert
*****
Offline Offline

France France

Posts: 2504


Big Berettonawak is watching you...


WWW
Bifkids
« Reply #4 on: August 19, 2009, 08:02:36 AM »

what if its a custom model?  Roll Eyes
Hitboxes remain the same, unless you manually remove some hitboxes.
For example, you can add a head to a create model Smiley
Logged

Quote from: N0life
Beret, keep yourself focusing on 1 project. Be sure to memorize that down since it sounds good.
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
August 20, 2009, 09:05:08 PM
I have invalid time oh here :O Some body help ! help me!
August 20, 2009, 08:18:35 PM
4 days, 22 hours and 38 minutes.
August 20, 2009, 08:18:33 PM
im here longer then you :p
August 20, 2009, 08:13:08 PM
yea, but i have bin here the time i have bin logged inn,
August 20, 2009, 08:05:29 PM
Total time logged in: 18 days, 12 hours and 2 minutes.
August 20, 2009, 07:49:24 PM
lol, and i have bin online 7 days, 9 hours and 15 min Tongue
August 20, 2009, 05:54:32 PM
uhh i have been online in 1 day now Tongue
Recent
[Today at 12:38:29 AM]

[Today at 12:14:32 AM]

[August 20, 2009, 11:57:22 PM]

[August 20, 2009, 08:15:02 PM]

[August 20, 2009, 07:53:42 PM]

[August 20, 2009, 07:33:16 PM]

by M.R.
[August 20, 2009, 05:55:25 PM]

[August 20, 2009, 02:21:58 PM]

[August 20, 2009, 11:50:00 AM]

[August 20, 2009, 09:11:04 AM]
Theme switch

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.105 seconds with 24 queries.