Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsJedi Knight and Mysteries of the Sith Editing Forum → Hitzones?
Hitzones?
2005-06-04, 9:43 AM #1
I have the theory of Hitzones like Head,arm,etc..

maybe with a cog when layer x is hit then happens ...

watcha think?
SpriteMod (JO 2003) Roger Wilco Skin

Snail racing: (500 posts per line) ---@%
2005-06-04, 10:17 AM #2
Try this instead
Skateboarding is not a crime.
2005-06-04, 11:35 AM #3
There is no way to get layers ingame. You can't even get a reference to any part of the 3do itself, as the collision detection is using a bounding cylinder thingie, if I remember correctly.
The link above explains the best method to simulate regional damage, but it is really just a half step ahead of random decision...
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
2005-06-04, 12:05 PM #4
A while ago I wrote a bare-bones layout for regional damage (borrowing detection methods from General Ramen and Hideki). I can basically detect wherever the body is hit (assuming the code works -- I haven't tested it).
If it does work, this is probably about as good as you're gonna get in JK, since, yeah, there's no layer detection.
Code:
touched:
	bullet = GetSenderRef();
	victim = GetSourceRef();
	vec1 = VectorSub(GetThingPos(victim), GetThingPos(bullet));
	dot = VectorDot(vec1,GetThingLVec(victim));
	if(dot > 0.85) [front blow]
	else if(dot < -0.85) [rear blow]
	else if(dot > -0.4 && dot < 0.4) [side blow]
	else [diagonal side blow]

	height = VectorZ(GetThingPos(bullet)) - VectorZ(GetThingPos(victim));
	if(height < -0.25) [low shot, maybe the legs and lower]
	else if(height > 0.25) [high shot -- about chest level and up]
	else [gut shot :P]
stop;
May the mass times acceleration be with you.
2005-06-04, 4:44 PM #5
Check This Out.
2005-06-04, 8:53 PM #6
Quote:
Originally posted by ReT
Check This Out.

That was the first thing that came to my mind when I saw this thread, but you were way ahead of me in posting it.
My JK Level Design | 2005 JK Hub Level Pack (Plexus) | Massassi Levels

↑ Up to the top!