Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 10/24/26 01:54
Tradestation missing in table of contents
by AndrewAMD. 10/23/26 14:35
No connection to MT4
by JeyKey II. 10/22/26 15:33
Zorro tutorial ideas?
by mistery. 10/21/26 05:28
Avoid "log\ - delete old files" message
by Martin_HH. 10/20/26 07:23
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (TipmyPip), 6,823 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
JimSimons, julienp, julienper, KelleyAbbey, Yopachi
19246 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 | 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