Author |
Message |
whitty
Joined: Sat Jun 16, 2007 2:31 am Posts: 2982 Location: Texas
|
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 |
|
|
Coops
Joined: Wed Feb 17, 2010 12:07 am Posts: 1545 Location: That small peaceful place called Hell.
|
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 |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
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 |
|
|
whitty
Joined: Sat Jun 16, 2007 2:31 am Posts: 2982 Location: Texas
|
Re: BOOM headshot
Damn. Oh well, gotta use plan b.
|
Thu Dec 23, 2010 5:24 am |
|
|
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 Location: Here
|
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 |
|
|
mail2345
Joined: Tue Nov 06, 2007 6:58 am Posts: 2054
|
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 |
|
|
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 Location: Here
|
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 |
|
|
mail2345
Joined: Tue Nov 06, 2007 6:58 am Posts: 2054
|
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 |
|
|
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 Location: Here
|
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 |
|
|
mail2345
Joined: Tue Nov 06, 2007 6:58 am Posts: 2054
|
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 |
|
|
whitty
Joined: Sat Jun 16, 2007 2:31 am Posts: 2982 Location: Texas
|
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 |
|
|
findude
Joined: Tue Dec 12, 2006 3:10 pm Posts: 495 Location: Uncertain quantum state
|
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 |
|
|
|