Head Shot!!!

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
$w!tCh
Posts: 10
Joined: Mon Dec 19, 2005 7:35 am
Location: India

Head Shot!!!

Post by $w!tCh »

hi all,
i was wondering how to impart variable damage to the players/bots in my FPS based on where the bullet hits,,, do i make sense???

wht i mean is how can i know if the bullet hits the the head and its an instant death... or less damage if hits other parts of the body like limbs etc...

any inputs on this???
JPulham
Posts: 320
Joined: Sat Nov 19, 2005 12:06 pm

Post by JPulham »

The way I'm doin' it is by having head and body as seperate objects, and which ever gets hit, decides the damage...make sense?
pushpork
$w!tCh
Posts: 10
Joined: Mon Dec 19, 2005 7:35 am
Location: India

Post by $w!tCh »

well is that the right way to do it??? is that the way its been done in professional FPS games out there ??

isnt there any way to create new bounding box for ur player mesh... i mena one for head and one for body????

thanks anyways,,,
Saku
Posts: 158
Joined: Wed Jan 05, 2005 8:48 am
Location: Denmark

Post by Saku »

You could also use bones, and then insert simple invisble boxes in paces like the head bone. Then you simply check for colision with any of these boxes.
Call me Wice, Miami Wice!
MiNalien
Posts: 9
Joined: Mon Feb 06, 2006 6:05 pm

Post by MiNalien »

Saku wrote:You could also use bones, and then insert simple invisble boxes in paces like the head bone. Then you simply check for colision with any of these boxes.
Yeah, that would possibly work, having it set up with the joint for the head as well so that you can have the head move and the collision box stay with the head. The problem with that is, however, that if you check only the collision with the box it will be more like having a square head for collision purposes. So if you used this way you'd have to make sure you checked collision with both the head and the invisible box objects.
$w!tCh
Posts: 10
Joined: Mon Dec 19, 2005 7:35 am
Location: India

thanks

Post by $w!tCh »

thanks a lot guys...
i would really appreciate if u ppl can direct me to any site/resource which can help me understand more abt using bones with mesh...
Post Reply