Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function Inherit (c, p)
- for k,v in pairs(p) do
- if type(v) == "table" then
- if not c.k then c.k = {} end
- Inherit(c.k, v)
- else
- if k == "name" then c.k = v .. c.k else
- if not c.k then c.k = v end
- end
- end
- end
- end
- local M3_75mm_Shared = {
- collisionSize = 4,
- craterMult = 0,
- fireStarter = 0,
- gravityaffected = [[true]],
- impulseFactor = 0,
- intensity = 0.1,
- movingAccuracy = 600,
- myGravity = 1/3,
- name = [[US M3 (Sherman) 75mm ]],
- noSelfDamage = true,
- range = 1270,
- reloadtime = 5.25,
- rgbColor = [[0.5 0.5 0.0]],
- separation = 2,
- size = 1,
- soundStart = [[US_75mm]],
- stages = 50,
- targetMoveError = 0.1,
- turret = true,
- weaponType = [[Cannon]],
- }
- local weaponDefs = {
- local M375mmAP = {
- accuracy = 290,
- areaOfEffect = 10,
- canattackground = false,
- colormap = [[ap_colormap.png]],
- edgeEffectiveness = 0.1,
- explosionGenerator = [[custom:AP_Medium]],
- explosionSpeed = 100,
- name = [[AP]],
- soundHit = [[GEN_Explo_1]],
- tolerance = 300,
- weaponVelocity = 1176,
- customparams = {
- armor_penetration_1000m = 57,
- armor_penetration_100m = 71,
- damagetype = [[kinetic]],
- },
- damage = {
- default = 2816,
- },
- },
- local M375mmHE = {
- accuracy = 300,
- areaOfEffect = 88,
- edgeEffectiveness = 0.25,
- explosionGenerator = [[custom:HE_Medium]],
- explosionSpeed = 30,
- name = [[HE]],
- soundHit = [[GEN_Explo_3]],
- tolerance = 3000,
- weaponVelocity = 926,
- customparams = {
- damagetype = [[explosive]],
- fearaoe = 75,
- fearid = 401,
- },
- damage = {
- default = 1334,
- },
- },
- },
- Inherit(weaponDefs.M375mmAP, M3_75mm_Shared)
- Inherit(weaponDefs.M375mmHE, M3_75mm_Shared)
- return lowerkeys(weaponDefs)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement