Game Development Community

How to make an HeadShot Sound?

by Dootuz · in Torque Game Engine · 06/18/2007 (11:49 pm) · 3 replies

I've already researched on this I found the swim,crawl,crouch,prone etc. resource but that was of no help then I noticed the thread about headshots damage and so far I'm trying to learn the tourqe scripting language as well as a bit more about the engines hard code I've made multiple attempts which have all failed at detecting if a player was shot in the head to play a sound,

so I'm wondering if some one could write, or give an example of a script that would play a headshot sound to the two players involved in the shooting the victim and killer like counter strike:Quake Sounds mod.

when ever they were shot in the head or shot some one in the head... I'd really apreciate it thanks for any help I may get in advance.

An example of one of my failed attempts would be.

function Player::getDamageLocation(%this)
{
	if ( %this.pos = "head")
	{
         //Play Sound
	}
}


Edit: In advance I'm using TGE 1.5.2 incase it matters.

#1
06/21/2007 (2:46 pm)
No one can help me with this?
#2
06/21/2007 (3:50 pm)
I searched for "damage location" and this is one of the threads that may help you.
This one
#3
06/21/2007 (9:15 pm)
Thank you, very much for the reply I'll check that out and try it.