Data Realms Fan Forums http://45.55.195.193/ |
|
Burst Fire Taking Up Multiple Bullets http://45.55.195.193/viewtopic.php?f=75&t=17786 |
Page 1 of 1 |
Author: | Hamjuice [ Wed Feb 10, 2010 1:38 am ] |
Post subject: | Burst Fire Taking Up Multiple Bullets |
Hey. I've got a mod that uses burst fire for two of the guns (it's in Releases), but I want to have each of the three-shot bursts take up three ammo instead of just one. How would I do this? |
Author: | Contrary [ Wed Feb 10, 2010 7:30 am ] |
Post subject: | Re: Burst Fire Taking Up Multiple Bullets |
You could do the thing that happens with alt fire guns. Where when you do something it changes to a different gun. Just every time it's fired change it to an identical gun with 3 less ammo count. |
Author: | Lizardheim [ Wed Feb 10, 2010 8:09 am ] |
Post subject: | Re: Burst Fire Taking Up Multiple Bullets |
That would work, or you can use that ammo system that cavecricket used in his shotgun. Then you can have autofire that is innaccurate, bursts for medium range and semi auto for long ranges. |
Author: | PhantomAGN [ Wed Feb 10, 2010 6:26 pm ] |
Post subject: | Re: Burst Fire Taking Up Multiple Bullets |
I'm just pulling Lua out of the back of my head, but because you can activate weapons from scripts, then perhaps the burst mode could activate a counter which then fires the gun two more times is quick succession. So: shoot -> first bullet gets the ID of the gun that fired it -> shot reads counter, IF counter < 3 then add one to counter and activate the gun again, Else set counter to 0 and destroy self I'm not sure how your guns are set up though, so the firing rate might not be high enough to allow this to work. In that case one could incorporate code from the dual-mode gun template to actually switch to a gun that has a higher rate of fire, an switch back after. That's all just pulled out of thin air, but unless I am very wrong it ought to work. Probably not the best way to do this though. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |