View unanswered posts | View active topics It is currently Fri Dec 27, 2024 7:56 am



Reply to topic  [ 6 posts ] 
 Boomerangs. 
Author Message

Joined: Sat Jan 13, 2007 11:04 pm
Posts: 2932
Reply with quote
Post 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.


Tue Jun 02, 2009 7:46 pm
Profile
User avatar

Joined: Fri Jan 26, 2007 3:22 am
Posts: 1451
Reply with quote
Post 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.


Tue Jun 02, 2009 8:05 pm
Profile
User avatar

Joined: Fri Dec 22, 2006 4:20 am
Posts: 4772
Location: Good news everyone!
Reply with quote
Post 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.


Wed Jun 03, 2009 3:20 am
Profile WWW

Joined: Sat Jan 13, 2007 11:04 pm
Posts: 2932
Reply with quote
Post 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.


Wed Jun 03, 2009 8:05 pm
Profile
User avatar

Joined: Fri Jan 26, 2007 3:22 am
Posts: 1451
Reply with quote
Post 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.


Thu Jun 04, 2009 4:32 am
Profile
User avatar

Joined: Mon Jun 30, 2008 9:13 pm
Posts: 499
Location: Finland
Reply with quote
Post Re: Boomerangs.
Here's a rough script that actually works. Modified to a harpoon gun.


Attachments:
HarpoonGun.rte.rar [58.27 KiB]
Downloaded 194 times
Thu Jun 04, 2009 9:08 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.055s | 16 Queries | GZIP : Off ]