Author |
Message |
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 Location: Here
|
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 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.
Last edited by CaveCricket48 on Fri May 07, 2010 9:01 pm, edited 5 times in total.
|
Fri Nov 13, 2009 10:21 pm |
|
|
PhantomAGN
Joined: Mon Jun 29, 2009 2:40 am Posts: 610 Location: Deep below The Map of Mars
|
Re: Duel Weapon Mode Template
This will come in very handy. Thank you, you are now one of my heroes.
|
Fri Nov 13, 2009 11:13 pm |
|
|
CrazyMLC
Joined: Fri Dec 22, 2006 4:20 am Posts: 4772 Location: Good news everyone!
|
Re: Duel Weapon Mode Template
Duel wielding? Please explain.
|
Fri Nov 13, 2009 11:38 pm |
|
|
Disst
Joined: Thu Feb 12, 2009 1:47 am Posts: 1182
|
Re: Duel Weapon Mode Template
He means dual fire modes.
Like, grenade and pewpew.
|
Fri Nov 13, 2009 11:42 pm |
|
|
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 Location: Here
|
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.
|
Wed Jan 27, 2010 9:41 pm |
|
|
mrsico
Joined: Mon Jan 11, 2010 2:13 am Posts: 13
|
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.
|
Fri Feb 05, 2010 7:50 am |
|
|
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 Location: Here
|
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.
|
Fri Apr 23, 2010 11:00 pm |
|
|
LowestFormOfWit
Joined: Mon Oct 06, 2008 2:04 am Posts: 1559
|
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).
|
Sun May 02, 2010 7:04 am |
|
|
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 Location: Here
|
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.
|
Sun May 02, 2010 3:26 pm |
|
|
Foa
Data Realms Elite
Joined: Wed Sep 05, 2007 4:14 am Posts: 3966 Location: Canadida
|
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.
|
Sun May 02, 2010 4:32 pm |
|
|
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 Location: Here
|
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.
|
Sun May 02, 2010 11:52 pm |
|
|
LowestFormOfWit
Joined: Mon Oct 06, 2008 2:04 am Posts: 1559
|
Re: Duel Weapon Mode Template *Update - Better Scripts
Funny how the simplest things can become so complex when it comes to modding this game.
|
Mon May 03, 2010 12:57 am |
|
|
Foa
Data Realms Elite
Joined: Wed Sep 05, 2007 4:14 am Posts: 3966 Location: Canadida
|
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.
|
Mon May 03, 2010 7:05 am |
|
|
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 Location: Here
|
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.
|
Fri May 07, 2010 9:01 pm |
|
|
salt_1219
Joined: Tue Jan 12, 2010 8:25 pm Posts: 400 Location: mukilteo, wa
|
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.
|
Tue May 11, 2010 7:42 am |
|
|
|