Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
2 registered members (Grant, AndrewAMD), 911 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
arm, leg, body and head shots :D #359537
02/18/11 12:32
02/18/11 12:32
Joined: Feb 2010
Posts: 886
Random Offline OP
User
Random  Offline OP
User

Joined: Feb 2010
Posts: 886
I just wanted to know, how it would be passable to attach the passability to get shot or to shoot at diffrent body parts.
So how to scan diffrent body parts grin



Re: arm, leg, body and head shots :D [Re: Random] #359538
02/18/11 12:45
02/18/11 12:45
Joined: Jan 2011
Posts: 122
GUILIN , CHINA
tzw Offline
Member
tzw  Offline
Member

Joined: Jan 2011
Posts: 122
GUILIN , CHINA
HED would be help . search it


Full of my eyes are class struggles.....
Re: arm, leg, body and head shots :D [Re: tzw] #359541
02/18/11 13:22
02/18/11 13:22
Joined: Feb 2010
Posts: 886
Random Offline OP
User
Random  Offline OP
User

Joined: Feb 2010
Posts: 886
Are you sure it`s writen right.
They are no matches with that word...



Re: arm, leg, body and head shots :D [Re: Random] #359543
02/18/11 13:49
02/18/11 13:49
Joined: Jan 2011
Posts: 122
GUILIN , CHINA
tzw Offline
Member
tzw  Offline
Member

Joined: Jan 2011
Posts: 122
GUILIN , CHINA
Oh.sorry ~_~ i mean hitbox editor (by superku) you can search hitbox directly


Full of my eyes are class struggles.....
Re: arm, leg, body and head shots :D [Re: tzw] #359544
02/18/11 13:52
02/18/11 13:52
Joined: Feb 2010
Posts: 886
Random Offline OP
User
Random  Offline OP
User

Joined: Feb 2010
Posts: 886
Oh, ok thanks I take a look. grin



Re: arm, leg, body and head shots :D [Re: Random] #359850
02/19/11 20:07
02/19/11 20:07
Joined: Feb 2010
Posts: 886
Random Offline OP
User
Random  Offline OP
User

Joined: Feb 2010
Posts: 886
Ämmm...
Are there some not so complicated ways?
When no, then I have alot work to do grin



Re: arm, leg, body and head shots :D [Re: Random] #359881
02/20/11 01:20
02/20/11 01:20
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
What's your problem with my method, it's pretty easy.

You could try to use c_updatehull, USE_POLYGON (c_trace) and some different material approach based upon vertices (I've done that some years ago, too, called partSet or the like).


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: arm, leg, body and head shots :D [Re: Superku] #359890
02/20/11 02:57
02/20/11 02:57
Joined: Feb 2011
Posts: 135
Myrkling Offline
Member
Myrkling  Offline
Member

Joined: Feb 2011
Posts: 135
If your model is rigged with bones, you could also use ent_bonename() to get the name of the bone attached to the hit vertex (assuming you use c_trace).
If the bones are named reasonably, you can easily determine which body part was hit.

Re: arm, leg, body and head shots :D [Re: Myrkling] #360626
02/25/11 15:33
02/25/11 15:33
Joined: Feb 2010
Posts: 886
Random Offline OP
User
Random  Offline OP
User

Joined: Feb 2010
Posts: 886
So like this?

Click to reveal..
if(you)
{
vec_set(temp_v, hit.x);
vec_for_bone(temp_v, you, ent_bonename(you,"head",548));




Re: arm, leg, body and head shots :D [Re: Random] #360655
02/25/11 20:09
02/25/11 20:09
Joined: Feb 2011
Posts: 135
Myrkling Offline
Member
Myrkling  Offline
Member

Joined: Feb 2011
Posts: 135
Rather something like this:

Code:
c_trace(...);

if (hit.entity)
{
    STRING *boneName = _str("");
    ent_bonename(hit.entity, boneName, hit.vertex);
    
    if (str_cmp(boneName, "head"))
    {
        // headshot!
    }
}



Page 1 of 2 1 2

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1