Data Realms Fan Forums http://45.55.195.193/ |
|
A gun that uses your velocity and mass http://45.55.195.193/viewtopic.php?f=75&t=19850 |
Page 1 of 1 |
Author: | Barnox [ Sat Oct 02, 2010 12:57 pm ] |
Post subject: | A gun that uses your velocity and mass |
My request is for a gun that reads the owner's velocity and mass, and, when fired, creates a bullet with no sharpness, and the owner's mass and velocity, while reducing the owner's velocity to zero. It'd be a gun for making emergency stops, and for re-usable jetpack rushes. |
Author: | Mad Alex [ Sat Oct 02, 2010 1:04 pm ] |
Post subject: | Re: A gun that uses your velocity and mass |
It will be more simple if velocity of the actor will just simple set to 0:0 through lua. |
Author: | Lizardheim [ Sat Oct 02, 2010 2:29 pm ] |
Post subject: | Re: A gun that uses your velocity and mass |
Actually, a Lua script that does that wouldn't move the actor at all. Unless you specify it to, ofc. |
Author: | Barnox [ Sat Oct 02, 2010 3:21 pm ] |
Post subject: | Re: A gun that uses your velocity and mass |
What I meant was, actor works perfectly normally up until you fire. Then: BulletMass = ActorMass BulletVelocity = ActorVelocity ActorVelocity = 0 |
Author: | alphagamer774 [ Sun Oct 31, 2010 9:49 pm ] |
Post subject: | Re: A gun that uses your velocity and mass |
Wait, so when you're flying through the air, then you shoot, you stop dead, but the bullet continutes on said path? |
Author: | Roast Veg [ Sun Oct 31, 2010 9:56 pm ] |
Post subject: | Re: A gun that uses your velocity and mass |
I think that's what he means. I can't tell what would happen if you were facing backward though... would your velocity double? Or would you stop and have the bullet go right through you? Also, for that matter, what if you were standing still? |
Author: | alphagamer774 [ Sun Oct 31, 2010 9:57 pm ] |
Post subject: | Re: A gun that uses your velocity and mass |
This is now more of a physics thought-challenge rather than a plausible Idea. |
Author: | Roast Veg [ Sun Oct 31, 2010 10:04 pm ] |
Post subject: | Re: A gun that uses your velocity and mass |
That it is. I think the script should calculate which has a higher velocity, the bullet or the actor, and then nullify the velocity of the So, if you were flying through the air faster than a speeding bullet, the gunfire would halt you [no matter where you shoot it], but the gun would also serve as a sensible firearm when unmoving. |
Author: | Petethegoat [ Sun Oct 31, 2010 10:11 pm ] |
Post subject: | Re: A gun that uses your velocity and mass |
Roast Veg wrote: nullify the velocity of the faster object So, if you were flying through the air faster than a speeding bullet, the gunfire would halt you [no matter where you shoot it], but the gun would also serve as a sensible firearm when unmoving. Read through that again a couple of times. Tell me if you spot the problem(s). Also, as has been said, this would be much simpler with Lua. actor.Vel = Vector(0,0); Anyway, I'm pretty damn sure this topic is dead dead dead. |
Author: | Roast Veg [ Sun Oct 31, 2010 10:15 pm ] |
Post subject: | Re: A gun that uses your velocity and mass |
Uh... I meant slower. Really I did. I don't see this as being dead while the idea is still plausible. |
Author: | Petethegoat [ Sun Oct 31, 2010 10:20 pm ] |
Post subject: | Re: A gun that uses your velocity and mass |
Code: function Create(self) for actor in MoveableMan.Actors do local avgx = actor.Pos.X - self.Pos.X; local avgy = actor.Pos.Y - self.Pos.Y; local dist = math.sqrt(avgx ^ 2 + avgy ^ 2); if dist < 30 then self.Vel = actor.Vel; self.Mass = actor.Mass; actor.Vel = Vector(0,0); end end end DEAD DEAD DEAD |
Author: | Roast Veg [ Sun Oct 31, 2010 11:04 pm ] |
Post subject: | Re: A gun that uses your velocity and mass |
Wait, wait... Attachment: Now you can let it die. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |