Game Development Community

Detecting Shot (Head or Body).

by Denis Linardic · in Torque Game Engine · 08/29/2005 (3:57 pm) · 3 replies

Hi!

Does anyone know how could I detect which part of Bot body was hit. I am trying to create one of those sniper head shots (one shot in the head kills). I've searched the forum and found some nice stuff but I am still confused. Is it possible to do this without changing engine code?

Thanks in advance :)

#1
08/30/2005 (4:06 am)
It's already in the engine, check out the Player::getDamageLocation() method in player.cc.
#2
08/30/2005 (6:27 am)
Thanks, I will check that, but my knowledge of C++ is a little better than ASM knowledge(and I suck in ASM) ;)
#3
08/30/2005 (9:15 am)
Search the resources! But make sure they work first some of them are pretty old.