Data Realms Fan Forums
http://45.55.195.193/

Burst fire and alt ammo
http://45.55.195.193/viewtopic.php?f=73&t=25370
Page 1 of 1

Author:  SnowMonster20 [ Wed Aug 31, 2011 7:29 am ]
Post subject:  Burst fire and alt ammo

ok I made me a gun that has two types of ammo using Crickets script. Then I tried to add the Vanilla script for burst fire to the alternate gun.

Problem is no matter what I have tried it only does one of the scripts.

It fires in burst but then wont switch back to the main when I select Gold Dig OR it switches but fires full auto. It is always one or the other never both.

I have tried putting two scripts in the .ini but it seems to choose one at random



I have tried adding the burst fire to the switch ammo script itself but it only does whichever script is first.



Am I just adding it wrong or what can i do to fix this?

Thank you

Author:  Roast Veg [ Wed Aug 31, 2011 12:46 pm ]
Post subject:  Re: Burst fire and alt ammo

Multiple ammo via CC48's old script has now become obsolete. You can now attach scripts directly to guns, making the whole process far easier.

Scratch that, I forgot he updated it.

Author:  Gotcha! [ Wed Aug 31, 2011 1:49 pm ]
Post subject:  Re: Burst fire and alt ammo

You can't attach two scriptpaths to one entity I'm afraid. :)

Also, you'll need to add all Create(Self) bits under the Create(Self) section and all the Update(Self) bits need to go in the Update(Self) section. So you can't have more than 1 Update(Self) section.
(It's what I found out anyway. Please correct me if I am wrong.)

If you look at the last downloadable unitec version, the alternate .lua files have been edited, merging the burst fire bit with the gun changing bit. Feel free to use them. :)

Yay! I helped with lua! Sort of... >_>

I am really clualess, but if you need help merging lua scripts then I can at least help you with that. Feel free to pm them to me. :grin:

Author:  SnowMonster20 [ Thu Sep 01, 2011 1:01 am ]
Post subject:  Re: Burst fire and alt ammo

ok ill take a look and try your stuff :) Thanks so much lol

Also sorry but Im a Luatard too so I haven't really got a clue of what your talking about.

Author:  Azukki [ Sat Sep 03, 2011 1:20 am ]
Post subject:  Re: Burst fire and alt ammo

It looks like we'll have pie menu slices available for modding before long, [see: drl twitter & mod contest thread] so you might want to hold off on putting a lot of effort into either of those features until that's been implemented, so you can have an easier control method for those features in the first place.

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