Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --// Guns & Skins Handling
- --// By: Wubzer/WXBZ
- local module = {};
- local gunStorage = game.ServerStorage.Guns;
- local skinStorage = game.ServerStorage.Skins;
- --// Gun Configuration
- do
- local g = {
- [gunStorage.MNineEl] = {
- Name ="M1911";
- Bio ="Cheap, but effective pistol.";
- Level =0;
- Cost =nil;
- Rarity =nil;
- HeadDamage =75;
- TorsoDamage =25;
- ArmsDamage =15;
- LegsDamage =20;
- DamageFall =3;
- MaxRange =120;
- ClipSize =8;
- InReserve =38;
- RecoilType =1;
- RecoilScale =0.5;
- FireRate =0.13;
- AimTime =0.2;
- HipAccuracy =0.7;
- Image ="*There is no thumbnail image currently.*";
- Shooting ="*There is no shooting sound currently.*";
- Reloading ="*There is no reloading sound currently.*";
- },
- [gunStorage.MPSeven] = {
- Name ="MP7";
- Bio ="Deadly SMG at close-medium range.";
- Level =0;
- Cost =nil;
- Rarity =nil;
- HeadDamage =90;
- TorsoDamage =16;
- ArmsDamage =8;
- LegsDamage =12;
- DamageFall =2;
- MaxRange =170;
- ClipSize =8;
- InReserve =38;
- RecoilType =1;
- RecoilScale =0.4;
- FireRate =0.08;
- AimTime =0.3;
- HipAccuracy =0.4;
- Image ="*There is no thumbnail image currently.*";
- Shooting ="*There is no shooting sound currently.*";
- Reloading ="*There is no reloading sound currently.*";
- }
- };
- function module.gInfo(gunName)
- local pos;
- for i, gun in pairs(g) do
- if (gun.Name == gunName) then
- pos = i;
- break;
- end;
- end;
- if (pos == nil) then return {0, 0, 0, 0}; end;
- return {g[pos].Name, g[pos].Bio, g[pos].Level, g[pos].Cost, g[pos].Rarity};
- end;
- function module.gDamage(gunName)
- local pos;
- for i, gun in pairs(g) do
- if (gun.Name == gunName) then
- pos = i;
- break;
- end;
- end;
- if (pos == nil) then return {0, 0, 0, 0}; end;
- return {g[pos].HeadDamage, g[pos].TorsoDamage, g[pos].ArmsDamage, g[pos].LegsDamage};
- end;
- function module.gConfiguration(gunName)
- local pos;
- for i, gun in pairs(g) do
- if (gun.Name == gunName) then
- pos = i;
- break;
- end;
- end;
- if (pos == nil) then return {0, 0, 0, 0, 0, 0, 0, 0, 0}; end;
- return {g[pos].DamageFall, g[pos].MaxRange, g[pos].ClipSize, g[pos].InReserve, g[pos].RecoilType, g[pos].RecoilScale, g[pos].FireRate, g[pos].AimTime, g[pos].HipAccuracy, g[pos].Image};
- end;
- function module.gAudio(gunName)
- local pos;
- for i, gun in pairs(g) do
- if (gun.Name == gunName) then
- pos = i;
- break;
- end;
- end;
- if (pos == nil) then return {0, 0}; end;
- return {g[pos].Shooting, g[pos].Reloading};
- end;
- end;
- --// Skin Configuration
- do
- local s = {
- [skinStorage.DeveloperGold] = {
- Type = 0;
- Name = "24k Gold";
- Bio = "This skin is only for the l33test devs.";
- Rarity = 5;
- Image = "";
- }
- }
- end;
- return module;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement