Data Realms Fan Forums http://45.55.195.193/ |
|
Firing vertically? http://45.55.195.193/viewtopic.php?f=1&t=20422 |
Page 1 of 1 |
Author: | Koolaidperson [ Sat Dec 04, 2010 4:46 am ] |
Post subject: | Firing vertically? |
I want to make a rocket launcher (currently a copy of the homing missile launcher) that fires the rockets vertically, instead of horizontally. To make things clearer, here's a picture... Attachment: Is there any way to do that? Preferably with .ini |
Author: | 411570N3 [ Sat Dec 04, 2010 5:18 am ] |
Post subject: | Re: Firing vertically? |
Have the launcher fire a TDExplosive with a GibImpulseLimit of 0. Attach an AEmitter to it that emits heavy, low lifetime, HitsMOs = 0, GetsHitByMOs = 0 particles at a high rate. Have the TDExplosive gib into another TDExplosive offset upwards at a decent speed. The result should be a rocket launcher that fires a rocket perpendicular to your current aim. |
Author: | Koolaidperson [ Sat Dec 04, 2010 5:24 am ] |
Post subject: | Re: Firing vertically? |
That sounds complex, but I'll try it. In the meantime, any other suggestions? |
Author: | 411570N3 [ Sat Dec 04, 2010 6:34 am ] |
Post subject: | Re: Firing vertically? |
It'd be much simpler in Lua, where you could just set the velocity of the rocket on create. |
Author: | YHTFLKC [ Sat Dec 04, 2010 7:55 am ] |
Post subject: | Re: Firing vertically? |
Would you want it to fire directly up no matter which direction you point your gun? Say, 45 degrees up/down? |
Author: | Major [ Sat Dec 04, 2010 8:17 am ] |
Post subject: | Re: Firing vertically? |
Make the launcher fire an AEmitter at 0 velocity and make the AEmitter facing up and have its Emissions perpendicular to the ground with PushesEmitter = 1 |
Author: | Koolaidperson [ Sat Dec 04, 2010 6:36 pm ] |
Post subject: | Re: Firing vertically? |
411570N3 wrote: It'd be much simpler in Lua, where you could just set the velocity of the rocket on create. I'm not too good with lua, any help? YHTFLKC wrote: Would you want it to fire directly up no matter which direction you point your gun? Say, 45 degrees up/down? It should fire perpendicular to the current aim Also I need to know how to attach an AEmiiter? (I know, very noobish) |
Author: | Roast Veg [ Sat Dec 04, 2010 6:47 pm ] |
Post subject: | Re: Firing vertically? |
Code: function Create(self) self.Vel.X = 0 self.Vel.Y = -20 end Provided it doesn't explode in your barrel [set the barrel offset slightly further than normal in the ini] it should just go upward. |
Author: | Koolaidperson [ Sat Dec 04, 2010 7:06 pm ] |
Post subject: | Re: Firing vertically? |
Roast Veg wrote: Code: function Create(self) self.Vel.X = 0 self.Vel.Y = -20 end Provided it doesn't explode in your barrel [set the barrel offset slightly further than normal in the ini] it should just go upward. It works! Thanks for the code. Also thanks to everyone else for ideas. I might publish this in the mod dump soon, just in case you want to use it. |
Author: | Roast Veg [ Sat Dec 04, 2010 7:22 pm ] |
Post subject: | Re: Firing vertically? |
Scratch that, I've just seen you release this in the Minor Mod Dump, and what I put here would have not helped at all. |
Author: | Koolaidperson [ Sat Dec 04, 2010 10:46 pm ] |
Post subject: | Re: Firing vertically? |
The mod's out! Check the mod dump if you want to see it, my first mod. Thanks everyone for your help. I saw your edit, thanks anyway. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |