View unanswered posts | View active topics It is currently Sat Dec 28, 2024 4:19 pm



Reply to topic  [ 57 posts ]  Go to page 1, 2, 3, 4  Next
 Dual Weapon Mode Template *Pie 
Author Message
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post 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 276 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


Last edited by CaveCricket48 on Fri May 07, 2010 9:01 pm, edited 5 times in total.



Fri Nov 13, 2009 10:21 pm
Profile
User avatar

Joined: Mon Jun 29, 2009 2:40 am
Posts: 610
Location: Deep below The Map of Mars
Reply with quote
Post 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
Profile
User avatar

Joined: Fri Dec 22, 2006 4:20 am
Posts: 4772
Location: Good news everyone!
Reply with quote
Post Re: Duel Weapon Mode Template
Duel wielding?
Please explain.


Fri Nov 13, 2009 11:38 pm
Profile WWW
User avatar

Joined: Thu Feb 12, 2009 1:47 am
Posts: 1182
Reply with quote
Post Re: Duel Weapon Mode Template
He means dual fire modes.

Like, grenade and pewpew.


Fri Nov 13, 2009 11:42 pm
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post 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
Profile

Joined: Mon Jan 11, 2010 2:13 am
Posts: 13
Reply with quote
Post 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:


Fri Feb 05, 2010 7:50 am
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post 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
Profile
User avatar

Joined: Mon Oct 06, 2008 2:04 am
Posts: 1559
Reply with quote
Post 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
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post 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
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Wed Sep 05, 2007 4:14 am
Posts: 3966
Location: Canadida
Reply with quote
Post 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
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post 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
Profile
User avatar

Joined: Mon Oct 06, 2008 2:04 am
Posts: 1559
Reply with quote
Post 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
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Wed Sep 05, 2007 4:14 am
Posts: 3966
Location: Canadida
Reply with quote
Post 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
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post 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
Profile
User avatar

Joined: Tue Jan 12, 2010 8:25 pm
Posts: 400
Location: mukilteo, wa
Reply with quote
Post 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 290 times
Tue May 11, 2010 7:42 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 57 posts ]  Go to page 1, 2, 3, 4  Next

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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.037s | 15 Queries | GZIP : Off ]