Data Realms Fan Forums http://45.55.195.193/ |
|
BOOM headshot http://45.55.195.193/viewtopic.php?f=73&t=20829 |
Page 1 of 1 |
Author: | whitty [ Thu Dec 23, 2010 4:08 am ] |
Post subject: | 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. |
Author: | Coops [ Thu Dec 23, 2010 4:42 am ] |
Post subject: | 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. |
Author: | Grif [ Thu Dec 23, 2010 5:04 am ] |
Post subject: | 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 |
Author: | whitty [ Thu Dec 23, 2010 5:24 am ] |
Post subject: | Re: BOOM headshot |
Damn. Oh well, gotta use plan b. |
Author: | CaveCricket48 [ Sun Dec 26, 2010 1:51 am ] |
Post subject: | 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. |
Author: | mail2345 [ Sun Dec 26, 2010 2:06 am ] |
Post subject: | 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. |
Author: | CaveCricket48 [ Sun Dec 26, 2010 2:17 am ] |
Post subject: | 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....? |
Author: | mail2345 [ Sun Dec 26, 2010 3:04 am ] |
Post subject: | 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. |
Author: | CaveCricket48 [ Sun Dec 26, 2010 3:44 am ] |
Post subject: | 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. |
Author: | mail2345 [ Sun Dec 26, 2010 7:37 am ] |
Post subject: | Re: BOOM headshot |
Then wait for it to be one frame away from impact, and then forcibly gib the attachable. |
Author: | whitty [ Mon Dec 27, 2010 9:04 pm ] |
Post subject: | 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. |
Author: | findude [ Mon Dec 27, 2010 9:57 pm ] |
Post subject: | 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. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |