View unanswered posts | View active topics It is currently Fri Dec 27, 2024 9:29 am



Reply to topic  [ 12 posts ] 
 BOOM headshot 
Author Message
User avatar

Joined: Sat Jun 16, 2007 2:31 am
Posts: 2982
Location: Texas
Reply with quote
Post BOOM headshot
How does one check if something has died from a headshot....?
Or can we not because we have no attachable Lua? You know, cuz heads are attachables.


Thu Dec 23, 2010 4:08 am
Profile
User avatar

Joined: Wed Feb 17, 2010 12:07 am
Posts: 1545
Location: That small peaceful place called Hell.
Reply with quote
Post Re: BOOM headshot
You could check if the selected actor has anything with the Preset Name of "Head" in it and its not within range of a few pixels of the actor.


Thu Dec 23, 2010 4:42 am
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: BOOM headshot
yeah you'd have to be checking ridiculously fast though, and that's only if the actor is in the negative health phase, and not dead from gibbing/already keeled over


Thu Dec 23, 2010 5:04 am
Profile
User avatar

Joined: Sat Jun 16, 2007 2:31 am
Posts: 2982
Location: Texas
Reply with quote
Post Re: BOOM headshot
Damn. Oh well, gotta use plan b.


Thu Dec 23, 2010 5:24 am
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post Re: BOOM headshot
I just had an idea. If you cast a ray with the length/direction equal to the projectile's velocity, you will be able to "see" when the bullet will hit. Once that ray hits something, you put a pointer for that object. You then wait a frame or two so the bullet can strike the target, and then check if the detected object no longer exists AND has the word "head" in its PresetName.


Sun Dec 26, 2010 1:51 am
Profile
User avatar

Joined: Tue Nov 06, 2007 6:58 am
Posts: 2054
Reply with quote
Post Re: BOOM headshot
Or just have the projectile look castmo ahead, check if there is a head infront of it. If so, modify sharpness to absurdly high value, and lock in on the head to guarantee a headshot.


Sun Dec 26, 2010 2:06 am
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post Re: BOOM headshot
I don't think whitty is looking for an auto-headshot weapon. Or an absurdly strong gun. Just something that tells you if you've destroyed a head.
whitty wrote:
How does one check if something has died from a headshot....?


Sun Dec 26, 2010 2:17 am
Profile
User avatar

Joined: Tue Nov 06, 2007 6:58 am
Posts: 2054
Reply with quote
Post Re: BOOM headshot
I'm assuming whitty is making a gun that plays a sound on headshot.
If so, then faking detection by ensuring a headshot will appear to be similar to actually detecting it.


Sun Dec 26, 2010 3:04 am
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post Re: BOOM headshot
But what if your weapon wasn't strong enough to actually destroy the head, and it only hits it? Like the actor's material is Test or something.


Sun Dec 26, 2010 3:44 am
Profile
User avatar

Joined: Tue Nov 06, 2007 6:58 am
Posts: 2054
Reply with quote
Post Re: BOOM headshot
Then wait for it to be one frame away from impact, and then forcibly gib the attachable.


Sun Dec 26, 2010 7:37 am
Profile
User avatar

Joined: Sat Jun 16, 2007 2:31 am
Posts: 2982
Location: Texas
Reply with quote
Post Re: BOOM headshot
It was actually going to be a 1x1 "bunker system" thing for the upcoming contest. I wanted it to detect gibbed heads and have it do the Halo grunt headshot thingy.

But alas, no more.


Mon Dec 27, 2010 9:04 pm
Profile
User avatar

Joined: Tue Dec 12, 2006 3:10 pm
Posts: 495
Location: Uncertain quantum state
Reply with quote
Post Re: BOOM headshot
Enumare through the moids and check if the attachable has "head" in it's presetname, if so, check if it's set ToDelete and not ToSettle.


Mon Dec 27, 2010 9:57 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 12 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.078s | 14 Queries | GZIP : Off ]