Data Realms Fan Forums http://45.55.195.193/ |
|
A script that damages weapons when we uses it? http://45.55.195.193/viewtopic.php?f=75&t=31527 |
Page 1 of 1 |
Author: | N4K4T0V [ Thu Aug 02, 2012 4:29 pm ] |
Post subject: | A script that damages weapons when we uses it? |
I really need that,I can't code in lua cause I'm lua illiterate, some one can help me? I request a script that damages weapons when you fires with. a wound per 5 shots,to make the guns not durable,for a survival map. |
Author: | akblabla [ Thu Aug 02, 2012 5:44 pm ] |
Post subject: | Re: A script that damages weapons when we uses it? |
I can script it for you. Should it have recoil similar to my trappers weapons, as I imaging that it would fit your apocalyptic theme? |
Author: | N4K4T0V [ Thu Aug 02, 2012 5:47 pm ] |
Post subject: | Re: A script that damages weapons when we uses it? |
you sprite very vell, you code very well, you code lua too? you're the datarealms god? hell yes I accept you code that! and no,no recoil please! |
Author: | akblabla [ Thu Aug 02, 2012 7:11 pm ] | |||
Post subject: | Re: A script that damages weapons when we uses it? | |||
Here are the scripts. You will need to make a MOPixel with a mass of about 0.001 kg and then write the name of this MOPixel instead of "Laser Damage" that is in about line 90 The "Auto" script will be for your auto weapons and the "semiauto" will be for your semiautos of course. There are some properties you play around with in the start of each script. Some that may not be so obvious, self.Durability is the number of shots it takes for the device to take damage self.MaxTurn is the amount it can rotate before you drop the gun. A pistol should have about 2, a smg should have about 1.3, an assault rifle should have about 0.9 and a sniper rifle should have about 0.5.
|
Author: | N4K4T0V [ Thu Aug 02, 2012 7:21 pm ] |
Post subject: | Re: A script that damages weapons when we uses it? |
You're my god aw yeah! but that script seems a bit hard to mod. I have just wanted a script that make one wound per 5 shots :/ |
Author: | akblabla [ Thu Aug 02, 2012 7:44 pm ] | |||
Post subject: | Re: A script that damages weapons when we uses it? | |||
N4K4T0V wrote: You're my god aw yeah! but that script seems a bit hard to mod. I have just wanted a script that make one wound per 5 shots :/ Just play around with the variables Code: --You may change following variables to your likings self.ParticleMass = 1 --Mass of the projectile fired self.ParticleVel = 90 --speed of the projectile fired self.RecoilMulti = 1 --if for some reason you need to change the recoil without changing mass or velocity use this self.Grip = 1 --This is how fast you regain control self.MaxTurn = 2 self.MovementPunisherment = 1 self.Durability = 5 But here are the versions of the scripts without recoil, which are simpler Edit: Sorry, didn't see you didn't want recoil
|
Author: | N4K4T0V [ Thu Aug 02, 2012 8:06 pm ] |
Post subject: | Re: A script that damages weapons when we uses it? |
No worries about recoil I have maded an edit,that's why you don't seen I don't need recoil. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |