Weapon Firing
by James Laker (BurNinG) · in Torque Game Engine · 03/11/2004 (3:58 am) · 8 replies
How do i make a gun that doesn't fire a projectle, but
still has an effect on a player... I dont want the "bullets".
All the examples have rockets, arrows, etc...
Eg. I have a Microwave Gun... So i hold the button... and
everything organic (players) starts BURNING :)
But there must be no effect as we can't see Microwaves...
I need some sort of Raytracing something, blah...
Agghh... this server room is cold, and my fingers...
numb...
Help me please
Burning
still has an effect on a player... I dont want the "bullets".
All the examples have rockets, arrows, etc...
Eg. I have a Microwave Gun... So i hold the button... and
everything organic (players) starts BURNING :)
But there must be no effect as we can't see Microwaves...
I need some sort of Raytracing something, blah...
Agghh... this server room is cold, and my fingers...
numb...
Help me please
Burning
#2
03/11/2004 (7:57 am)
You will still need a projectile, but use a empty image instead of a dts shape.
#3
03/11/2004 (8:05 am)
Naah, you can use a hitscan.. hitscan is cool..
#4
03/11/2004 (9:50 am)
@Phil: Hitscan? Did an engine search and couldn't find it anywhere. Is it a resource or something?
#5
03/11/2004 (9:53 am)
Hitscan == sending out a ray and doing the effect to whatever you hit. Doom and Quake used it for their shotguns, for instance.
#6
03/11/2004 (11:47 am)
You could do a raycast to see if anything is in front of you, then kill em.
#7
Phil... Can you give us an example of this Hitscan way
of doing it?
03/11/2004 (10:12 pm)
Okay... i've got the (invisible)beam thing to work...Phil... Can you give us an example of this Hitscan way
of doing it?
#8
03/12/2004 (9:04 am)
Aah, thanx, Ben. So it's basically a raycast routine which kicks target butt.
Torque 3D Owner Jeff Wilkinson
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=3917