Data Realms Fan Forums http://45.55.195.193/ |
|
More than one type of ammo http://45.55.195.193/viewtopic.php?f=1&t=17314 |
Page 1 of 1 |
Author: | Benboman [ Mon Dec 07, 2009 8:06 pm ] |
Post subject: | More than one type of ammo |
Is there a way of shooting more than one type of ammo out of a gun other than Tracer rounds So a single gun could fire *maybe* 3 different types of ammo in one shot instead of the tracer being every two shots Knowledge wanted XD |
Author: | Benpasko [ Mon Dec 07, 2009 9:35 pm ] |
Post subject: | Re: More than one type of ammo |
Look at the code for the mauler shotgun, I think it fires 2 kinds in one shot. |
Author: | The Cling Clang [ Mon Dec 07, 2009 9:36 pm ] |
Post subject: | Re: More than one type of ammo |
Yes and no. Yes it's possible, but you're going to need to learn some lua first. |
Author: | Benboman [ Mon Dec 07, 2009 9:45 pm ] |
Post subject: | Re: More than one type of ammo |
Darnation is LUA much hareder and if so can you link me up to a post with some dowloadable lua scripts ty XD |
Author: | 411570N3 [ Tue Dec 08, 2009 12:09 am ] |
Post subject: | Re: More than one type of ammo |
The Cling Clang wrote: Yes it's possible, but you're going to need to learn some lua first. |
Author: | Abdul Alhazred [ Tue Dec 08, 2009 10:29 am ] |
Post subject: | Re: More than one type of ammo |
I realize you wanted to do this yourself, but I could not resist implementing it. There are obviously many way of doing this. The method I chose keeps track of the ID of the actor that fires the weapon so the script knows which type of bullet is next for each gun. Using the ID is not perfect since it can change at any time, but this is not a serious problem here. One benefit of tracking the actor is that we can implement a recoil system that makes automatic fire gradually more inaccurate. Anyone is free to use this: Attachment: This is only a demonstration so there is plenty of room for improvements though. |
Author: | 411570N3 [ Tue Dec 08, 2009 11:25 am ] |
Post subject: | Re: More than one type of ammo |
Oh right. I misunderstood the OP. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |