Index | FAQ | Search | Memberlist | Usergroups | Profile | Log in to check your private messages | Log in | Register

Headshots

| Inside3d Forums Forum Index -> QuakeC Programming

View previous topic :: View next topic
Author | Message
--- | ---
Ghost_Fang Joined: 12 Nov 2009 Posts: 162 |

Posted: Mon Mar 08, 2010 4:27 am Post subject: Headshots |

Headshots as seen in Kurok (and im sure in other quake mods) and/or other body parts such as limbs. The coding for that.... would it be QC or Engine or a collaboration of both? I think it would be QC but im not sure...

Back to top |

Downsider Joined: 16 Sep 2008 Posts: 478 |

Posted: Mon Mar 08, 2010 5:14 am Post subject: |

Kurok "headshots" just checked how high the hit was on the single collision box (QC). Real limb detection requires multiple hitboxes (Engine).

Back to top |

Ghost_Fang Joined: 12 Nov 2009 Posts: 162 |

Posted: Mon Mar 08, 2010 5:38 am Post subject: |

Ah i see, i was kinda wrong with my idea of QC. I though it was a matter of adding another hitbox at a certain height. Would limb detection affect performance much?

Back to top |

Baker Joined: 14 Mar 2006 Posts: 1538 |

Posted: Mon Mar 08, 2010 12:02 pm Post subject: |

QuakeC tutorial for locational damage (may or may not work for your purposes, but I expect it probably would): http://www.moddb.com/games/quake/tutorials/easy-locational-damage One mod with locational damage is QMatrix: Example: http://www.quakewiki.net/archives/qmatrix/
Source code:
http://www.quake-1.com/quakec-gallery/Matrix05C_SRC.zip
_________________
Tomorrow Never Dies. I feel this Tomorrow knocking on the door ...

Back to top |

Biodude Joined: 27 Aug 2008 Posts: 83 |

Posted: Mon Mar 08, 2010 12:15 pm Post subject: |

I got a hitlocation qc file if you want

Back to top |

Ghost_Fang Joined: 12 Nov 2009 Posts: 162 |

Posted: Mon Mar 08, 2010 6:02 pm Post subject: |

Thanks Baker, its actually quite simple. I'm gona mess around with it and see what i can come up with for L4Q . No thanks Biodude i got all the info i needed from the ModDB page. Thanks anyways.

Back to top |

Sajt Joined: 16 Oct 2004 Posts: 1026 |

Posted: Tue Mar 09, 2010 5:20 am Post subject: |

Headshots in Quake (that is, check how high up on the bbox you hit) pretty much suck. If you are below the monster shooting up at him, you have to shoot at the air 2 feet in front of his head. If you are above the monster shooting down at him, you only have to hit anywhere within 5 feet of his head to do a headshot... Keep this in mind when you decide if you still want to do it...
_________________
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.

Back to top |

Error Inside3D Staff Joined: 05 Nov 2004 Posts: 558 Location: VA, USA

Posted: Tue Mar 09, 2010 7:35 am Post subject: |

this is where model polygon hitting would come in handy. _________________ Inside3D : Knowledge Is Power Darkplaces Documentation Wiki

Back to top |

MDave Joined: 17 Dec 2007 Posts: 75 |

Posted: Fri Mar 12, 2010 2:00 am Post subject: |

Can't quite remember exactly now (about 2 years ago!) but there is 2 methods for detecting headshots in Kurok, depending on what kind of attack it was I did one method for missile type entities, and another method for hitscan attacks. This alleviated most of the problem mentioned by Sajt, since most weapons in Kurok were of the hitscan type
Can't be bothered figuring it out now but I do remember looking into how it was done in the Matrix mod and the moddb tutorial page.

Back to top |

Ghost_Fang Joined: 12 Nov 2009 Posts: 162 |

Posted: Sat Mar 13, 2010 4:49 pm Post subject: |

Yea i did notice that locational detection one was unreliable partially because of the aim assist. How would turn it off? Also is there some sort of engine modification that would make the models to(where the mesh makes the hit box so in theory you would be able to shoot between their legs or something. That might increase the reliability of locational hit detection.

Back to top |

frag.machine Joined: 25 Nov 2006 Posts: 728 |

Posted: Sat Mar 13, 2010 5:59 pm Post subject: |

Q2K4 had per-poly collision detection, from an ancient tutorial I found buried inside somewhere. It worked pretty well actually, however there was no support to tell you via QuakeC where a projectile hit the entity. _________________ frag.machine - Q2K4 Project
http://fragmachine.quakedev.com/

Back to top |

leileilol Joined: 15 Oct 2004 Posts: 1321 |

Posted: Sat Mar 13, 2010 6:30 pm Post subject: |

darkplaces has HITMODEL, combined that with the new decal system (that applies decals to models) and you'll instantly be in love. If you use skeletons or tags you could make actual hitboxes on heads and arms and legs with hitmodel for even more accurate locational damage!
_________________

Back to top |

Display posts from previous:

| Inside3d Forums Forum Index -> QuakeC Programming | All times are GMT
Page 1 of 1

Jump to:

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 vote in polls in this forum

Powered by phpBB © 2004 phpBB Group