Game Development Community

dev|Pro Game Development Curriculum

Sidewinder projectiles

by Kirchgessner · 02/13/2009 (5:37 am) · 17 comments

Its been a while since I've posted anything. lol
About 5 months ago I had this really cool idea to put a small add on to the Porjectiles in TGE. My first thought of this add on would be to use on say an Apache Helicopter.

Imagine, you're on the battlefield with bullets blazing over your head and you can hear the muffled yelling of a soldier calling for an air strike and backup. A few minutes later you see 3 Apache helicopters fly over head. When they are almost straight above you a large amount of smoke spits out from the launchers on the sides. Then screaming missiles fly through the air slightly spinning and spreading out over the area, blanketing the enemy with smoke and fire.

The thoughts cool, so I said what the heck. So I implemented a sort of crappy way of making the bullets swerve a little or a lot depending on where you looked. I initially didn't like it so gave up. A few weeks ago I decided what the heck why not try again.

And well the video below shows my (what I consider) success.
I'll be posting a code resource soon if anyone is interested, if not then it stays in my game lol.
So far I know it works with TGE and TGEA 1.7 and 1.8.

www.youtube.com/watch?v=Vax_MMwDvqs

#1
02/13/2009 (5:43 am)
That's a pretty neat effect!

The last bit of the video almost looks like slow-motion lightning or something :-p
#2
02/13/2009 (5:46 am)
Hi Brian, looks good. I can think of several uses for this type of projectile, not just for sidewinders. Would be great to have this as a resource, does it work network side too?
#4
02/13/2009 (7:40 am)
I'm not seeing your imbedded video in the page.
(though I did make a link) www.youtube.com/watch?v=Vax_MMwDvqs

Nice effect, very cool, reminds me of the swarm missiles from Freespace.

Are you using AFX or anything? Or is it all just custom coding?
#5
02/13/2009 (7:47 am)
Very cool!
#6
02/13/2009 (11:11 am)
Nice effect, I would be interested in a resource :-)
#7
02/13/2009 (11:12 am)
Very cool... Resourcefy it :-D
#8
02/13/2009 (11:16 am)
@Julian
As far as I am aware it works over network, it all works from the updateforces section of the source code.

@Steve
Thanks for the link, I can't seem to get the embedded video working any help would be great for it :D
And no this does not require or use any of the code from the AFX pack, its about I think like 10 lines of code and thats about it.

And I'll be writing the resource for it soon, within this next week, so look for it.
#9
02/13/2009 (12:26 pm)
hmm the first one looks like bullets but the others is more like lightning or shock of something more like a magic crossbow.
#10
02/13/2009 (3:21 pm)
That is really cool!

Yeah the first looks cool and would suit rockets, grenade launchers ... a lot of things, the second looks like it could be used by a lot of fantasy and electric sort of weapons. Cool!
#11
02/13/2009 (4:55 pm)

This looks awesome. Great job.
#12
02/14/2009 (8:29 pm)
Amazing! I will defeinatly be using this in my project for an electric spell!

2 questions:

Can you set it up to be an attack (like a spell) without the crossbow?

If so, could you easily make it into a different weapon so to speak, so that if used with the change weapon resource, you could have a crossbow and lightning spell?

From Max

PS. resource is a must for this effect!
#13
02/14/2009 (9:10 pm)
Reminds me alot of the Sindwinders in Freelancer, looks great!
#14
02/15/2009 (11:40 am)
Resource Requested for this one.
#16
02/15/2009 (9:48 pm)
@Max
I have tried implementing a following code that was built for TGE, don't have the link off hand. I did get that implemented and working based off of position. This following projectiles combined with this effect do work together. Although the game crashed often for me, so Yes it is possible. Its just gonna take some tweaking and other source code changes to do an attack spell.
And I'm sure you can do a lightning spell, it just takes a matter of time and testing. Thats all this was originally it was a mess up in the code :D thats what got me started on it. Then it only worked on the y axis, the version you see in the video however affects all axis, and uses a random number generator to make it completely crazy looking. And its actually all that complicated but it sure looks cool.

Resource is coming guys, I'll have it done some time this week :)
#17
02/19/2009 (7:18 pm)
I can't wait to see it. Looks nifty!