Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Smallarms - Infantry Rifles
- -- Shared Attributes
- local shared = {
- accuracy = 100,
- areaOfEffect = 1,
- avoidFeature = true,
- avoidFriendly = false,
- collideFeature = true,
- collideFriendly = false,
- collisionSize = 2.5,
- coreThickness = 0.15,
- duration = 0.01,
- explosionGenerator = [[custom:Bullet]],
- fireStarter = 0,
- id = 2, -- used for cob based fear from rifle/smg
- impactonly = 1,
- intensity = 0.9,
- interceptedByShieldType = 8,
- laserFlareSize = 0.0001,
- movingAccuracy = 888,
- rgbColor = [[1.0 0.75 0.0]],
- soundTrigger = false,
- sprayAngle = 100,
- thickness = 0.4,
- tolerance = 6000,
- turret = true,
- weaponTimer = 1,
- weaponType = [[LaserCannon]],
- weaponVelocity = 1500,
- customparams = {
- damagetype = [[smallarm]],
- },
- damage = {
- default = 33,
- },
- }
- weaponDefs = {
- -- Enfield only attributes
- Enfield = {
- accuracy = 50, -- overwrites default
- name = [[Lee-Enfield No. 4 Mk. I]],
- range = 680,
- reloadtime = 2.5,
- soundStart = [[GBR_Enfield]],
- },
- -- K98K only attributes
- k98k = {
- name = [[Karabiner 98k]],
- range = 665,
- reloadtime = 2.8,
- soundStart = [[GER_K98K]],
- },
- M1Garand = {
- name = [[M1 Garand]],
- range = 510,
- reloadtime = 1.8,
- soundStart = [[US_M1garand]],
- },
- -- Mosin-Nagant M1891/30 only attributes
- MosinNagant = {
- name = [[Mosin-Nagant]],
- range = 660,
- reloadtime = 3,
- rgbColor = [[0.0 0.7 0.0]], -- overwrites default
- soundStart = [[RUS_MosinNagant]],
- },
- -- Partisan Mosin only attributes (inherits from the above)
- PartisanMosinNagant = {
- accuracy = 225,
- movingAccuracy = 1800,
- },
- -- PTRD only attributes
- PTRD = {
- accuracy = 450,
- explosionGenerator = [[custom:AP_XSmall]],
- interceptedByShieldType = 32,
- name = [[PTRD]],
- range = 655,
- reloadtime = 12,
- rgbColor = [[0.0 0.7 0.0]],
- size = 1,
- soundStart = [[RUS_PTRD]],
- thickness = 0.8,
- weaponVelocity = 2024,
- customparams = {
- armor_penetration_1000m = 16,
- armor_penetration_100m = 35,
- damagetype = [[kinetic]],
- },
- damage = {
- default = 448,
- },
- }
- -- Partisan mosin should also inherit from base mosin
- inherit(weaponDefs.PartisanMosinNagant, weaponDefs.MosinNagant)
- for name, weapon in pairs(weaponDefs) do
- inherit(weapon, shared)
- end
- return lowerkeys(weaponDefs)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement