Data Realms Fan Forums http://45.55.195.193/ |
|
Telekinetic Wielding http://45.55.195.193/viewtopic.php?f=1&t=15899 |
Page 1 of 2 |
Author: | Kyred [ Fri Jul 17, 2009 6:25 am ] |
Post subject: | Telekinetic Wielding |
The force is strong with this one... My current WIP. This weapon/tool will allow you to telekineticly pluck any gun off the ground and use it along with any other gun in your inventory. The second gun floats above your head and aims towards your line of sight. The gun even reloads in mid-air The Lua code for this is close to being finished. I need to make a way of dropping the floating gun and maybe have the floating gun bob around a bit while its floating over your head. Also some few possible known issues left to fix. And, of course, I need to make it look prettier Update: --I made sure the effect stops when: a) Actor is killed, b) Floating weapon is destroyed, c) Another actor grabs the floating weapon (happens every now and then). --Floating weapon is dropped (ie. effect stops) when the actor crouches. Weapon is tossed slightly forward so it doesn't bonk you on the head (cuz that would be silly). --Added a "smart" mode. When activated, the floating gun moves to a position slightly higher and forward than normal when you are aiming. The gun will move out of the way when you are aiming up, so you don't shoot it. It will also track targets that you are in your direct line of sight (ie. you're looking right at them) and will up slightly in their direction to get closer. You have to keep them in your sights to maintain this, though. The picture below is an example: You can switch between modes by tapping the Pie-Menu button. Hot foot =D |
Author: | LowestFormOfWit [ Fri Jul 17, 2009 6:26 am ] |
Post subject: | Re: Telekinetic Wielding |
God I love your proof of concepts. Now, does the floating gun reload when you do, or can you keep shooting with the floater while you reload? |
Author: | mail2345 [ Fri Jul 17, 2009 6:53 am ] |
Post subject: | Re: Telekinetic Wielding |
Uh, what happens if someone picks it up? EDIT: Adding a CastMO from the actor to calculate where to aim the gun might be nice. |
Author: | Kyred [ Fri Jul 17, 2009 6:54 am ] |
Post subject: | Re: Telekinetic Wielding |
mail2345 wrote: Uh, what happens if someone picks it up? Kyred wrote: Also some few possible known issues left to fix. That's one of them. LFoW wrote: Now, does the floating gun reload when you do, or can you keep shooting with the floater while you reload? You can keep shooting with the floater until it runs out of ammo. *Edit* mail2345 wrote: Adding a CastMO from the actor to calculate where to aim the gun might be nice. It already has that. You can see it if you look closely enough at where the Gatling gun is shooting and where the soldier is aiming in the gif above. I used the Law of Cosines to calculate the RotAngle for the gun. |
Author: | Winterous [ Fri Jul 17, 2009 11:20 am ] |
Post subject: | Re: Telekinetic Wielding |
That is DAMN cool! I can see this sort of thing being implemented on Mechas (shoulder-mounted rocket pods and such) |
Author: | Raintail99 [ Fri Jul 17, 2009 3:03 pm ] |
Post subject: | Re: Telekinetic Wielding |
For dropping the gun, use a key close to WSAD. Also, VERY COOL. |
Author: | TorrentHKU [ Fri Jul 17, 2009 4:51 pm ] |
Post subject: | Re: Telekinetic Wielding |
Like I said before. Kyred, you are gonna go places in here. |
Author: | LowestFormOfWit [ Fri Jul 17, 2009 5:31 pm ] |
Post subject: | Re: Telekinetic Wielding |
Kyred, your avatar was the best thing you could have chosen to show off this thread. I laughed. |
Author: | mail2345 [ Fri Jul 17, 2009 6:40 pm ] |
Post subject: | Re: Telekinetic Wielding |
Oh, btw is it operated via an MO latching onto the guy, or the guy himself? |
Author: | piipu [ Fri Jul 17, 2009 6:50 pm ] |
Post subject: | Re: Telekinetic Wielding |
Looks like a gun that shoots telekinetic bullets. |
Author: | Mind [ Fri Jul 17, 2009 11:54 pm ] |
Post subject: | Re: Telekinetic Wielding |
What if you shoot before it appears above your head? Edit: You know you can reload the gun when you reload your parent gun.....? ControlState 15 = RELOAD. (Thanks to darlos showing me the link :3) Don't know at all how your gun is doing this nor how to type it correctly, but: Code: if controller:IsState(Controller.RELOAD) then self:SetState(Controller.RELOAD) end |
Author: | Kyred [ Sat Jul 18, 2009 12:03 am ] |
Post subject: | Re: Telekinetic Wielding |
@piipu: Yeah, it does for now. I want to make some effect for it so it doesn't look like that. @Mind: The floating gun won't fire and the normal one will. You don't see me shooting in those gifs before the gun is over the soldiers head because I didn't want to accidentally shoot the floating gun. @mail2345: The script runs on an MOPixel (the bullet thing, at the moment) that contains both a reference to the shooter and the weapon being picked up. It detects when you press and release the trigger and passes that on to the floating gun. The bullet then stays above your head near the gun. You normally can't see it because it's hidden behind either your health display or the gun. That, and it's very tiny. Both the gun and the MO have their positions constantly being set to above the actor's head. So both the MO and the gun are pseudo-attached to the actor. |
Author: | Mind [ Sat Jul 18, 2009 12:38 am ] |
Post subject: | Re: Telekinetic Wielding |
Look at the edit, sorry. Would something like that work for reloading then gun? |
Author: | Kyred [ Sat Jul 18, 2009 1:16 am ] |
Post subject: | Re: Telekinetic Wielding |
I'll look into it. The floating gun reloads on its own, so I'm not too concerned about it. However, it would be nice for it to reload everytime you manually reload. But I don't know if the game differentiates between auto and manual reload. |
Author: | Grif [ Sat Jul 18, 2009 1:59 am ] |
Post subject: | Re: Telekinetic Wielding |
Actually you'd have to find some way to force the un-parented weapon to reload; which is apparently not possible. |
Page 1 of 2 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |