Data Realms Fan Forums http://45.55.195.193/ |
|
Boomerangs. http://45.55.195.193/viewtopic.php?f=73&t=15140 |
Page 1 of 1 |
Author: | numgun [ Tue Jun 02, 2009 7:46 pm ] |
Post subject: | Boomerangs. |
Kay, need some help again. This is for the BLAME! mod primarily, but other people might find this useful for their own purposes. So the point is this: Gun fires projectile, projectile returns to firer by moving or gravitating towards it. And if within range of 20 pixels of the firer, make the projectile dissappear. So its like a lucky boomerang. You throw it and it always comes back at you after a short delay. |
Author: | Daman [ Tue Jun 02, 2009 8:05 pm ] |
Post subject: | Re: Boomerangs. |
numgun wrote: Kay, need some help again. This is for the BLAME! mod primarily, but other people might find this useful for their own purposes. So the point is this: Gun fires projectile, projectile returns to firer by moving or gravitating towards it. And if within range of 20 pixels of the firer, make the projectile dissappear. So its like a lucky boomerang. You throw it and it always comes back at you after a short delay. If you made a boomerang firearm that fires a boomerang mopixel or whatever damages people, you could make it come back by creating a timer when it is made and applying a forward force with a weaker spiral based on how close the timer is to a number. If it's over a number, apply a force toward the actor based on how high it is(thus getting a strong throw, gets weaker, turns around and is guaranteed to fly back because it gets stronger so it'll go through terrain). Then you could just make it add a copy of the weapon to the actor's inventory if the actor is within 20px. I'd make it if you could make the non-lua parts I mentioned. |
Author: | CrazyMLC [ Wed Jun 03, 2009 3:20 am ] |
Post subject: | Re: Boomerangs. |
Make it a homing missile but make it home toward the thrower, and give it however much lagtime you want. Make it disappear before it kills you. |
Author: | numgun [ Wed Jun 03, 2009 8:05 pm ] |
Post subject: | Re: Boomerangs. |
No I'm gonna try Daman first, I just need to do some tweaks to the mod so it would be alright to script. |
Author: | Daman [ Thu Jun 04, 2009 4:32 am ] |
Post subject: | Re: Boomerangs. |
numgun wrote: No I'm gonna try Daman first, I just need to do some tweaks to the mod so it would be alright to script. Here's a quick mockup I wrote out. http://luabin.foszor.com/2037 Comments are so you get the general gist rather than trying to use broken code. |
Author: | piipu [ Thu Jun 04, 2009 9:08 am ] | ||
Post subject: | Re: Boomerangs. | ||
Here's a rough script that actually works. Modified to a harpoon gun.
|
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |