Gamestudio Links
Zorro Links
Newest Posts
Series within loop
by Spirit
Today at 03:38
ein Truetype wie ein Bitmap Font laden?
by tagimbul
Yesterday at 21:46
'you' and c_scan
by 3run
Yesterday at 17:24
rayp's old school fast zombie FPS project
by 3run
Yesterday at 11:01
No Trades Using Workshop 6
by peterhw
Yesterday at 10:59
Actual PIP Cost for backtesting
by tradingest
10/14/18 16:36
Rigid Force Alpha - Classic side-scrolling shoot'em up
by Turrican
10/14/18 11:44
AUM Magazine
Latest Screens
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Evonet Beta v1.0 : Online Project Development Template
Lake scene
Who's Online
5 registered (kvm, Ayumi, jenGs, PSA, jumpman), 463 Guests and 4 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
BazGen, pallab1964, wOrlD21, peterhw, 7th_zorro
18076 Registered Users
Page 2 of 2 < 1 2
Topic Options
Rate This Topic
#470396 - 01/11/18 15:43 Re: getting bone name hit by c_trace with USE_BOX [Re: Reconnoiter]
Superku Online
Senior Expert

Registered: 09/13/03
Posts: 6757
Loc: Kiel (Germany)
You could make a USE_BOX trace first, then, on a hit, do a SCAN_TEXTURE (without USE_BOX) trace to some target like endpoint:

c_trace(from,to,USE_BOX);
if(trace_hit)
{
vec_diff(temp,target,from);
vec_scale(temp,1.05); // make sure it reaches far enough
vec_add(temp,from);
c_trace(from,to,SCAN_TEXTURE);
}
_________________________
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Superku The Game

Severely outdated footage: http://store.steampowered.com/app/407570

Top
#470429 - 01/14/18 15:08 Re: getting bone name hit by c_trace with USE_BOX [Re: Superku]
Reconnoiter Offline
Serious User

Registered: 12/26/11
Posts: 1807
Loc: Netherlands
Ty for the suggestion.
I went with the same approach as Rayp went, which works (surprisingly) decent for humanoids. I use vec_to_ent to transform the hit.x(yz) to local coordinates than compare with minxyz/maxxyz etc. I can check for torso, head, (roughly) arms and legs this way.

Top
Page 2 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