Game Development Community

Creating spread on aim

by Bryce Kaminsky · in General Discussion · 08/06/2004 (10:58 pm) · 6 replies

How would i make a weapon less accurate?

like a shotgun for instance?

#1
08/07/2004 (2:10 am)
You mean the spread of the fire?
like the chaingun in tribes2?
#2
08/07/2004 (12:44 pm)
(Assuming you're talking about Torque here...)

Bryce, if you'll willing to wait a few days, I'm about to release a resource that will contain a shotgun model, textures, sound effects, and .cs files to make it all work. I'm also doing a machine gun and a rocket launcher. I've already finished the shotgun, and tested it out.

How does it work? It spawns a small number of projectiles and fans them out. This makes the weapon very shotgun-like, as a glancing blow isn't necessarily fatal -- But if you take all of the projectiles in the face, it's an instant-kill.

There are other ways you could simulate a shotgun, but this method doesn't require Torque engine changes. :)
#3
08/07/2004 (2:38 pm)
There is also this resource which shows how to do multiple projectiles in a spread pattern.
#4
08/07/2004 (3:26 pm)
We are using the resource mentioned by Luke D and I can confirm it works great, but NOT in combination with the "Conform to Terrain" resource.
#5
08/20/2004 (8:39 am)
Luke D, that resource was very helpful. Thanks for the link!