Data Realms Fan Forums
http://45.55.195.193/

Dual Weapon Mode Template *Pie
http://45.55.195.193/viewtopic.php?f=1&t=17126
Page 1 of 4

Author:  CaveCricket48 [ Fri Nov 13, 2009 10:21 pm ]
Post subject:  Dual Weapon Mode Template *Pie

This is a template for a weapon with duel firing modes.

What this is exactly is a template for a gun the can toggle between a main firing mode and an alt firing mode, such as an assault rifle + grenade launcher, or remote-detonated bombs + detonator, whatever you want. To toggle firing modes, hold the Pie Menu button and select the AI Gold Dig option. Feel free to use this for any mod you like. You don't have to ask for permission, but be sure to give credits. If the directions confuse you (I'm not good at giving directions) or if you have any other problems with this, PM me.

Directions:


Technical stuff


Change log

Attachment:
AR-GL.rte.rar [1.43 KiB]
Downloaded 277 times


And here's a version that uses the new Pie menu buttons, but there aren't any directions on how to implement them yet. I'll write some up later. And by later, I mean in a very long time.
Attachment:
Dual Weapon Mode.rte.rar [1.27 KiB]
Downloaded 303 times

Author:  PhantomAGN [ Fri Nov 13, 2009 11:13 pm ]
Post subject:  Re: Duel Weapon Mode Template

This will come in very handy.
Thank you, you are now one of my heroes.

Author:  CrazyMLC [ Fri Nov 13, 2009 11:38 pm ]
Post subject:  Re: Duel Weapon Mode Template

Duel wielding?
Please explain.

Author:  Disst [ Fri Nov 13, 2009 11:42 pm ]
Post subject:  Re: Duel Weapon Mode Template

He means dual fire modes.

Like, grenade and pewpew.

Author:  CaveCricket48 [ Wed Jan 27, 2010 9:41 pm ]
Post subject:  Re: Duel Weapon Mode Template

I put a description of exactly what this does in the OP, along with how to toggle the firing mode in-game, for people who never used my pulse rifles.

Updated: Mac Compatable! Sorry to any mac users who were unable use this mod before, but it should work now.

And whoever put in the "Bump Topic" option after you edit a topic, many thanks to you.

Author:  mrsico [ Fri Feb 05, 2010 7:50 am ]
Post subject:  Re: Duel Weapon Mode Template *Update - Mac Compatable

WOW! If I ever get 'round to learning Lua, I will so use this. Great tool anyway. :grin:

Author:  CaveCricket48 [ Fri Apr 23, 2010 11:00 pm ]
Post subject:  Re: Duel Weapon Mode Template *Update - Better Scripts

Scripts are now using my latest switching scripts and the whole thing should be faster and more reliable.

Author:  LowestFormOfWit [ Sun May 02, 2010 7:04 am ]
Post subject:  Re: Duel Weapon Mode Template *Update - Better Scripts

I love this template, but I have run into a bit of a snag balance-wise with it.

Every time I switch modes, it resets the ammo and reloads the gun to full when I get to it again. So I can fire all rounds out of say a minigun, switch to alt mode then back again fast, and my minigun is full up.

Is there a way to modify the Lua to retain ammo information? I know that dropped weapons keep their ammo information (at least if you fire all the rounds out of your own gun and pick it back up it's still empty).

Author:  CaveCricket48 [ Sun May 02, 2010 3:26 pm ]
Post subject:  Re: Duel Weapon Mode Template *Update - Better Scripts

It's possible to move the switched gun somewhere off-screen to maintain ammo information, but you can't actually save and set ammo values with Lua. You would also have to make the actor pick the device up when switching instead of directly adding the gun to the actor's inventory, which could lead to the actor accidentally picking up a different device. Also, while the device is off-screen, it can be effected by other Lua mods and will add another active device in-game, possibly making other devices settle.

Author:  Foa [ Sun May 02, 2010 4:32 pm ]
Post subject:  Re: Duel Weapon Mode Template *Update - Better Scripts

CaveCricket48 wrote:
It's possible to move the switched gun somewhere off-screen to maintain ammo information, but you can't actually save and set ammo values with Lua. You would also have to make the actor pick the device up when switching instead of directly adding the gun to the actor's inventory, which could lead to the actor accidentally picking up a different device. Also, while the device is off-screen, it can be effected by other Lua mods and will add another active device in-game, possibly making other devices settle.

You'd probably have to merge it with M90 Shotgun's code.

Author:  CaveCricket48 [ Sun May 02, 2010 11:52 pm ]
Post subject:  Re: Duel Weapon Mode Template *Update - Better Scripts

Bleh, that means the device would have to have Lua'd firing and would be pretty complicated. And I don't feel like making a generic Lua'd gun template.

Author:  LowestFormOfWit [ Mon May 03, 2010 12:57 am ]
Post subject:  Re: Duel Weapon Mode Template *Update - Better Scripts

Funny how the simplest things can become so complex when it comes to modding this game.

Author:  Foa [ Mon May 03, 2010 7:05 am ]
Post subject:  Re: Duel Weapon Mode Template *Update - Better Scripts

There is a reason why complex things are many small things put together.
The problem is pattern detection.

Author:  CaveCricket48 [ Fri May 07, 2010 9:01 pm ]
Post subject:  Re: Duel Weapon Mode Template *Update - Better Scripts

Lol, I forgot something important for this to work when creating it with the build menu. Fixed.

Author:  salt_1219 [ Tue May 11, 2010 7:42 am ]
Post subject:  Re: Duel Weapon Mode Template *Update - Bug Fix

Hey sorry about bringing this back from the dead, but I went to use this and ran into a problem.

I had two guns I made and fallowed the steps but it doesn't switch modes when I select gold digging AI, what it does do is create two separate guns that do exactly what the other ones did.

Should I add the particles I want fired both into the same parent gun?

I will try to post a download link in the morning.
-thanks in advance for any help you can offer.

I thought I fallowed the directions right I probably did something stupid like switch a name around.

Attachments:
Scud.rte.rar [1.26 MiB]
Downloaded 291 times

Page 1 of 4 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/