SHARE
TWEET

Untitled

a guest Jun 18th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. AddCSLuaFile()
  2. AddCSLuaFile("sh_sounds.lua")
  3. include("sh_sounds.lua")
  4. //SCK name: m16
  5. //SCK pos name: m16pos
  6. //SCK canted name: m16canted
  7. //SCK no stock no mag: m16none
  8. //SCK grip and grippod: m16grip
  9. //SCK M203: m16m203
  10. //SCK default attachments: m16defualt
  11. if CLIENT then
  12.     SWEP.DrawCrosshair = false
  13.     SWEP.PrintName = "M16A4"
  14.     SWEP.CSMuzzleFlashes = true
  15.     SWEP.ViewModelMovementScale = 1.15
  16.    
  17.     SWEP.IconLetter = "i"
  18.     killicon.Add("cw_ws_m16a4", "vgui/kills/cw_ws_m16a4", Color(255, 255, 255, 255))
  19.     SWEP.SelectIcon = surface.GetTextureID("vgui/kills/cw_ws_m16a4")
  20.    
  21.     SWEP.MuzzleEffect = "muzzleflash_g3"
  22.     SWEP.PosBasedMuz = true
  23.     SWEP.SnapToGrip = true
  24.     SWEP.ShellScale = 0.25
  25.     SWEP.ShellOffsetMul = 1
  26.     SWEP.ShellPosOffset = {x = 3, y = -1, z = 0}
  27.     SWEP.ForeGripOffsetCycle_Draw = 0
  28.     SWEP.ForeGripOffsetCycle_Reload = 0.9
  29.     SWEP.ForeGripOffsetCycle_Reload_Empty = 0.8
  30.     SWEP.FireMoveMod = 0.6
  31.    
  32.     SWEP.M203OffsetCycle_Reload = 0
  33.     SWEP.M203OffsetCycle_Reload_Empty = 0
  34.     SWEP.M203OffsetCycle_Draw = 0
  35.    
  36.     SWEP.M203Pos0RG = Vector(-0.562, -2.481, 0.24)
  37.     SWEP.M203AngORG = Vector(0, 0, 0)
  38.  
  39.     SWEP.M203LeafPos = Vector(-1.28, 0, -0.401)
  40.     SWEP.M203LeafAng = Vector(-1, 0, 0)
  41.  
  42.     SWEP.M203M40Pos = Vector(-0.75, 0, 0.56)
  43.     SWEP.M203M40Ang = Vector(5, 0, 0)
  44.  
  45.     SWEP.M203Pos = Vector(-0.562, -2.481, 0.24)
  46.     SWEP.M203Ang = Vector(0, 0, 0)
  47.  
  48.     SWEP.IronsightPos = Vector(-1.903, 0, -0.12)
  49.     SWEP.IronsightAng = Vector(0.8, 0.009, 0)  
  50.  
  51.     SWEP.EoTechPos = Vector(-1.9, 0, -0.091)
  52.     SWEP.EoTechAng = Vector(0, 0, 0)
  53.    
  54.     SWEP.AimpointPos = Vector(-1.92, 0, 0.119)
  55.     SWEP.AimpointAng = Vector(0, 0, 0)
  56.    
  57.     SWEP.MicroT1Pos = Vector(-1.905, 0, 0.079)
  58.     SWEP.MicroT1Ang = Vector(0.8, 0.009, 0)
  59.  
  60.     SWEP.ACOGPos = Vector(-1.92, 0, -0.24)
  61.     SWEP.ACOGAng = Vector(0, 0, 0)
  62.     SWEP.ACOGAxisAlign = {right = 0, up = 0, forward = 0}
  63.    
  64.     SWEP.SprintPos = Vector(1.879, 0, 0.959)
  65.     SWEP.SprintAng = Vector(-21.107, 30.954, -6.332)  
  66.    
  67.     SWEP.ShortDotPos = Vector(-1.9, 0, 0.079)
  68.     SWEP.ShortDotAng = Vector(0, 0, 0)
  69.     SWEP.SchmidtShortDotAxisAlign = {right = 0, up = 0, forward = 0}
  70.    
  71.     //Knife Kitty's attachments'
  72.     SWEP.CoD4ReflexPos = Vector(-1.91, 0, 0.21)
  73.     SWEP.CoD4ReflexAng = Vector(0, 0, 0)
  74.    
  75.     SWEP.EoTech552Pos = Vector(-1.90, 0, -0.12)
  76.     SWEP.EoTech552Ang = Vector(0, 0, 0)
  77.  
  78.     SWEP.EoTech553Pos = Vector(-1.91, 0, -0.16)
  79.     SWEP.EoTech553Ang = Vector(0, 0, 0)
  80.    
  81.     SWEP.CoD4TascoPos = Vector(-1.92, 0, 0.54)
  82.     SWEP.CoD4TascoAng = Vector(0, 0, 0)
  83.    
  84.     SWEP.FAS2AimpointPos = Vector(-1.91, 0, 0.159)
  85.     SWEP.FAS2AimpointAng = Vector(0, 0, 0)
  86.    
  87.     SWEP.BackupReflexPos = Vector(-3.441, 0, 1.08)
  88.     SWEP.BackupReflexAng = Vector(0, 0, -45)
  89.    
  90.     SWEP.CoD4ACOGPos = Vector(-1.91, 0, 0.159)
  91.     SWEP.CoD4ACOGAng = Vector(0, 0, 0)
  92.     SWEP.CoD4ACOGAxisAlign = {right = 0, up = 0, forward = 0}
  93.    
  94.     SWEP.LeupoldPos = Vector(-1.91, 0, -0.08)
  95.     SWEP.LeupoldAng = Vector(0, 0, 0)
  96.     SWEP.LeupoldAxisAlign = {right = 0, up = 0, forward = 0}
  97.    
  98.     //Magnifer scopes
  99.     SWEP.MagnifierPos = Vector(-1.871, 0, -0.071)
  100.     SWEP.MagnifierAng = Vector(0, 0, 0)
  101.     SWEP.MagnifierScopeAxisAlign = {right = 0, up = 0, forward = 0}
  102.    
  103.     SWEP.CoD4ReflexPos_mag3x = Vector(-1.883, 0, -0.063)
  104.     SWEP.CoD4ReflexAng_mag3x = Vector(0, 0, 0)
  105.    
  106.     SWEP.EoTech552Pos_mag3x = Vector(-1.92, 0, 0)
  107.     SWEP.EoTech552Ang_mag3x = Vector(0, 0, 0)
  108.    
  109.     SWEP.EoTech553Pos_mag3x = Vector(-1.88, 0, 0.085)
  110.     SWEP.EoTech553Ang_mag3x = Vector(0, 0, 0)
  111.    
  112.     SWEP.CoD4TascoPos_mag3x = Vector(-1.88, 0, 0.18)
  113.     SWEP.CoD4TascoAng_mag3x = Vector(0, 0, 0)
  114.    
  115.     SWEP.FAS2AimpointPos_mag3x = Vector(-1.94, 0, 0.3)
  116.     SWEP.FAS2AimpointAng_mag3x = Vector(0, 0, 0)
  117.    
  118.     //White Snow's attachments'
  119.     SWEP.WS_EoTech557Pos = Vector(-1.90, 0, 0.17)
  120.     SWEP.WS_EoTech557Ang = Vector(0, 0, 0)
  121.    
  122.     SWEP.WS_BarskaPos = Vector(-1.915, 0, 0.19)
  123.     SWEP.WS_BarskaAng = Vector(0, 0, 0)
  124.    
  125.     SWEP.WS_CMOREPos = Vector(-1.90, 0, 0.185)
  126.     SWEP.WS_CMOREAng = Vector(0, 0, 0)
  127.  
  128.     SWEP.WS_AWPPos  = Vector(-1.88, 0, 0.039)
  129.     SWEP.WS_AWPAng = Vector(0 ,0, 0)
  130.     SWEP.WS_AWPAxisAlign = {right = 0.8, up = -0.53, forward = 0}
  131.    
  132.     SWEP.WS_AimpointSPos  = Vector(-1.90, 0, -0.15)
  133.     SWEP.WS_AimpointSAng = Vector(0 ,-0.1 , 0)
  134.     SWEP.WS_AimpointSAxisAlign = {right = 0.002, up = 0.002, forward = 190} //-170 //190
  135.    
  136.     SWEP.WS_ELCANPos  = Vector(-1.88, 0, 0.119)
  137.     SWEP.WS_ELCANAng = Vector(0 ,0 , 0)
  138.     SWEP.WS_ELCANAxisAlign = {right = 0, up = 0, forward = 0}
  139.    
  140.     SWEP.WS_ACOGPos  = Vector(-1.88, 0, 0.119)
  141.     SWEP.WS_ACOGAng = Vector(0 ,0 , 0)
  142.     SWEP.WS_ACOGAxisAlign = {right = 0, up = 0, forward = -135}
  143.    
  144.     SWEP.WS_LeupoldPos  = Vector(-1.88, 0, 0.219)
  145.     SWEP.WS_LeupoldAng = Vector(0 ,0 , 0)
  146.     SWEP.WS_LeupoldAxisAlign = {right = 1.35, up = 0.9, forward = 0}
  147.  
  148.     SWEP.WS_FoldSightPos = Vector(-1.864, 0, -0.151)
  149.     SWEP.WS_FoldSightAng = Vector(1.549, 0.129, 0)
  150.  
  151.     SWEP.WS_CantedPos = Vector(-2.731, 0, 0.61)
  152.     SWEP.WS_CantedAng = Vector(0.05, 0.159, -45)
  153.  
  154.     SWEP.WS_DocterPos = Vector(-1.951, 0, 0.519)
  155.     SWEP.WS_DocterAng = Vector(0, 0, 0)
  156.        
  157.     SWEP.CustomizePos = Vector(4.88, 0, -2.36)
  158.     SWEP.CustomizeAng = Vector(17.587, 30.954, 8.442)
  159.  
  160.     SWEP.BackupSights = {
  161.     ["md_acog"] = {[1] = Vector(-1.91, 0, -1.201), [2] = Vector(0, 0, 0)},
  162.     ["md_ws_acog"] = {[1] = Vector(-1.897, 0, -0.811), [2] = Vector(0, 0, 0)}
  163.     }
  164.  
  165.     SWEP.SightWithRail = false
  166.            
  167.     SWEP.AlternativePos = Vector(0.319, 1.325, -1.04)
  168.     SWEP.AlternativeAng = Vector(0, 0, 0)
  169.  
  170.     SWEP.BaseArm = "L_Arm_Controller"
  171.     SWEP.BaseArmBoneOffset = Vector(-50, 0, 0)
  172.     SWEP.M203CameraRotation = {p = -90, y = 0, r = -90}
  173.    
  174.     SWEP.AttachmentModelsVM = {
  175.         ["md_ws_m40gl"] = { type = "Model", model = "models/attachments/White_Snow_M203/ws_m40gl.mdl", bone = "Receiver", rel = "", pos = Vector(-0.65, -4.401, 0.5), angle = Angle(0, -180, 0), size = Vector(0.5, 0.5, 0.5)},
  176.         ["md_ws_m203leaf"] = { type = "Model", model = "models/attachments/White_Snow_M203/ws_m203leafsights.mdl", bone = "Receiver", rel = "", pos = Vector(-0, -6.753, 0.85), angle = Angle(0, 90, 0), size = Vector(0.699, 0.699, 0.699)},
  177.         //["bg_ws_nostock"] = { type = "Model", model = "models/attachments/white_snow/ws_buffertube.mdl", bone = "Receiver", rel = "", pos = Vector(2.029, 8.831, 3.9), angle = Angle(0, 90, 0), size = Vector(1, 1, 1)},
  178.         ["md_schmidt_shortdot"] = { type = "Model", model = "models/cw2/attachments/schmidt.mdl", bone = "Receiver", rel = "", pos = Vector(0.3, 5.714, -2.651), angle = Angle(0, 90, 0), size = Vector(0.899, 0.899, 0.899)},
  179.         ["md_magnifier_scope"] = { type = "Model", model = "models/c_magnifier_scope.mdl", bone = "Receiver", rel = "", pos = Vector(-0.08, -5.715, 1.95), angle = Angle(0, 90, 0), size = Vector(1.149, 1.149, 1.149)},
  180.         ["larue_mount"] = { type = "Model", model = "models/c_larue_kkhx.mdl", bone = "Receiver", rel = "", pos = Vector(-0.29, -4, 2.549), angle = Angle(0, 90, 0), size = Vector(1, 1, 1), color = Color(255, 255, 255, 255)},
  181.         ["md_backup_reflex"] = { type = "Model", model = "models/c_docter.mdl", bone = "Receiver", rel = "", pos = Vector(0.899, -9.9, 2), angle = Angle(0, 90, 45), size = Vector(0.87, 0.87, 0.87), color = Color(255, 255, 255, 255)},
  182.         ["md_backup_reflex_rail"] = { type = "Model", model = "models/c_angled_rails.mdl", bone = "Receiver", rel = "", pos = Vector(0.25, -8.832, 1.557), angle = Angle(0, -90, -90), size = Vector(1, 1, 1), color = Color(255, 255, 255, 255)},
  183.         ["md_cod4_acog_v2"] = { type = "Model", model = "models/v_cod4_acog.mdl", bone = "Receiver", rel = "", pos = Vector(-0.03, 3.635, 0), angle = Angle(0, -90, 0), size = Vector(0.8, 0.8, 0.8), color = Color(255, 255, 255, 255)},
  184.         ["md_fas2_aimpoint"] = { type = "Model", model = "models/c_fas2_aimpoint_rigged.mdl", bone = "Receiver", rel = "", pos = Vector(-0.03, -2.597, 1.7), angle = Angle(0, 90, 0), size = Vector(1.149, 1.149, 1.149), color = Color(255, 255, 255, 255)},
  185.         ["md_cod4_aimpoint_v2"] = { type = "Model", model = "models/v_cod4_aimpoint.mdl", bone = "Receiver", rel = "", pos = Vector(-0.03, 4.675, -0.22), angle = Angle(0, -90, 0), size = Vector(0.8, 0.8, 0.8), color = Color(255, 255, 255, 255)},
  186.         ["md_fas2_leupold_mount"] = { type = "Model", model = "models/v_fas2_leupold_mounts.mdl", bone = "Receiver", rel = "", pos = Vector(0, 2.5, 3.549), angle = Angle(0, 90, 0), size = Vector(1.6, 1.6, 1.6), color = Color(255, 255, 255, 255)},
  187.         ["md_fas2_leupold"] = { type = "Model", model = "models/v_fas2_leupold.mdl", bone = "Receiver", rel = "", pos = Vector(0, 2, 3.599), angle = Angle(0, 90, 0), size = Vector(1.6, 1.6, 1.6), color = Color(255, 255, 255, 255)},
  188.         ["md_fas2_eotech"] = { type = "Model", model = "models/c_fas2_eotech.mdl", bone = "Receiver", rel = "", pos = Vector(-0.036, -2.597, 1.94), angle = Angle(0, 90, 0), size = Vector(1.149, 1.149, 1.149), color = Color(255, 255, 255, 255)},
  189.         ["md_fas2_eotech_stencil"] = { type = "Model", model = "models/c_fas2_eotech_stencil.mdl", bone = "Receiver", rel = "", pos = Vector(-0.036, -2.597, 1.94), angle = Angle(0, 90, 0), size = Vector(1.149, 1.149, 1.149), color = Color(255, 255, 255, 255)},      
  190.         ["md_cod4_eotech_v2"] = { type = "Model", model = "models/v_cod4_eotech.mdl", bone = "Receiver", rel = "", pos = Vector(-0.01, 4.675, -0.5), angle = Angle(0, -90, 0), size = Vector(0.889, 0.889, 0.889), color = Color(255, 255, 255, 255)},
  191.         ["md_cod4_reflex"] = { type = "Model", model = "models/v_cod4_reflex.mdl", bone = "Receiver", rel = "", pos = Vector(-0.02, 4.675, -0.201), angle = Angle(0, -90, 0), size = Vector(0.8, 0.8, 0.8), color = Color(255, 255, 255, 255)},
  192.    
  193.         ["md_ws_acog"] = { type = "Model", model = "models/attachments/White_Snow/ws_acog.mdl", bone = "Receiver", rel = "", pos = Vector(1.96, 12.987, 4.25), angle = Angle(0, -180, 0), size = Vector(1, 1, 1), color = Color(255, 255, 255, 255)},
  194.         ["bg_magpulhandguard"] = { type = "Model", model = "models/attachments/White_Snow/ws_moe_handguard.mdl", bone = "Receiver", rel = "", pos = Vector(0, -8.9, -0.5), angle = Angle(0, 180, 0), size = Vector(0.07, 0.129, 0.07)},
  195.         ["md_ws_bipod"] = { type = "Model", model = "models/attachments/White_Snow/ws_bipod.mdl", bone = "Receiver", rel = "", pos = Vector(0.2, -9.832, 0.5), angle = Angle(0, 90, 0), size = Vector(0.6, 0.6, 0.6)},
  196.         ["md_ws_grippod"] = { type = "Model", model = "models/attachments/White_Snow/ws_grippod.mdl", bone = "Receiver", rel = "", pos = Vector(-12.801, -4.5, -1.351), angle = Angle(0, -8, 0), size = Vector(2.099, 2.099, 2.099)},
  197.         ["md_ws_dbal"] = { type = "Model", model = "models/attachments/White_Snow/ws_dbal.mdl", bone = "Receiver", rel = "", pos = Vector(-1.201, -9.87, 1.557), angle = Angle(0, -90, 90), size = Vector(0.649, 0.649, 0.649)},
  198.         ["bg_ar1560rndmag"] = { type = "Model", model = "models/attachments/White_Snow/ws_quad.mdl", bone = "Magazine", rel = "", pos = Vector(0, -1.558, 0.6), angle = Angle(0, -90, 0), size = Vector(2.5, 2.961, 1.988)},
  199.         ["bg_ws_pmag"] = { type = "Model", model = "models/attachments/White_Snow/ws_pmag.mdl", bone = "Magazine", rel = "", pos = Vector(0, 0.05, 0), angle = Angle(0, 0, 0), size = Vector(1.299, 1.299, 1.299)},
  200.         ["bg_ws_emag"] = { type = "Model", model = "models/attachments/White_Snow/ws_emag.mdl", bone = "Magazine", rel = "", pos = Vector(0, -1.701, 1.2), angle = Angle(0, -90, 0), size = Vector(2.799, 2.506, 2.506)},
  201.         ["md_ws_c_more"] = { type = "Model", model = "models/attachments/White_Snow/ws_c_more.mdl", bone = "Receiver", rel = "", pos = Vector(0.029, 0.5, 2.5), angle = Angle(0, -180, 0), size = Vector(0.25, 0.25, 0.25), adjustment = {min = -0.5, max = 2.25, axis = "y", inverse = true}},
  202.         ["bg_ws_moestock"] = { type = "Model", model = "models/attachments/White_Snow/ws_moe_stock.mdl", bone = "Receiver", rel = "", pos = Vector(2.019, 8.831, 3.9), angle = Angle(0, 90, 0), size = Vector(1, 1, 1)},
  203.         ["bg_ws_lightweightstock"] = { type = "Model", model = "models/attachments/White_Snow/ws_bad_lbs.mdl", bone = "Receiver", rel = "", pos = Vector(0, 4.675, 1.95), angle = Angle(0, 180, 0), size = Vector(0.4, 0.4, 0.4)},
  204.         ["md_ws_scar_silencer"] = { type = "Model", model = "models/attachments/White_Snow/ws_scar_sd.mdl", bone = "Receiver", rel = "", pos = Vector(-0.051, -23.5, 1.529), angle = Angle(0, 0, 0), size = Vector(1.899, 1.899, 1.899)},
  205.         ["md_ws_scifi_silencer"] = { type = "Model", model = "models/attachments/White_Snow/ws_scifi_silencer.mdl", bone = "Receiver", rel = "", pos = Vector(-2.73, -51.901, -4.1), angle = Angle(0, 0, 0), size = Vector(1, 1, 1)},
  206.         ["md_ws_magpul"] = { type = "Model", model = "models/attachments/White_Snow/ws_magpul.mdl", bone = "Magazine", rel = "", pos = Vector(0, -0.401, -2.5), angle = Angle(-20, -90, 0), size = Vector(1.149, 1.149, 1.149)},
  207.         ["md_ws_canted2"] = { type = "Model", model = "models/attachments/White_Snow/ws_canted_front.mdl", bone = "Receiver", rel = "", pos = Vector(0.3, -7.832, 2.5), angle = Angle(0, 180, 0), size = Vector(0.5, 0.5, 0.6)},
  208.         ["md_ws_canted"] = { type = "Model", model = "models/attachments/White_Snow/ws_canted_rear.mdl", bone = "Receiver", rel = "", pos = Vector(-0.06, 2.596, -0.96), angle = Angle(0, 90, 0), size = Vector(0.6, 0.6, 0.6)},
  209.         ["md_ws_docter"] = { type = "Model", model = "models/attachments/White_Snow/ws_docterdick.mdl", bone = "Receiver", rel = "", pos = Vector(-0.101, 0.518, 2.7), angle = Angle(0, -180, 0), size = Vector(0.85, 0.85, 0.85), adjustment = {min = -1, max = 2.5, axis = "y", inverse = true}},
  210.         ["md_ws_barska"] = { type = "Model", model = "models/attachments/White_Snow/ws_barska.mdl", bone = "Receiver", rel = "", pos = Vector(-0.015, 0.518, 2.549), angle = Angle(0, 180, 0), size = Vector(0.17, 0.17, 0.17), adjustment = {min = -1, max = 2.25, axis = "y", inverse = true}},
  211.         ["md_ws_anpeq15"] = { type = "Model", model = "models/attachments/White_Snow/ws_anpeq15.mdl", bone = "Receiver", rel = "", pos = Vector(-0.601, -8.832, 1.5), angle = Angle(90, 0, 0), size = Vector(0.2, 0.2, 0.2)},
  212.         ["md_ws_leupold"] = { type = "Model", model = "models/attachments/White_Snow/ws_leupold.mdl", bone = "Receiver", rel = "", pos = Vector(0.67, 4.675, -0.83), angle = Angle(0, 90, 0), size = Vector(0.55, 0.55, 0.55), adjustment = {min = 2.5, max = 5.81, axis = "y", inverse = true}},
  213.         ["md_ws_foldsight2"] = { type = "Model", model = "models/attachments/White_Snow/ws_foldfront.mdl", bone = "Receiver", rel = "", pos = Vector(-0.04, -7.401, -0.101), angle = Angle(0, -90, 0), size = Vector(5.5, 5.5, 5.5)},
  214.         ["md_ws_foldsight"] = { type = "Model", model = "models/attachments/White_Snow/ws_foldrear.mdl", bone = "Receiver", rel = "", pos = Vector(-0.051, -1.701, -0.051), angle = Angle(0, -90, 0), size = Vector(5.5, 5.5, 5.5), adjustment = {min = -5.5, max = -1.5, axis = "y", inverse = true}},
  215.         ["md_ws_elcan"] = { type = "Model", model = "models/attachments/ws_elcan.mdl", bone = "Receiver", rel = "", pos = Vector(0.06, 4.675, 0), angle = Angle(0, 90, 0), size = Vector(0.5, 0.5, 0.5), adjustment = {min = 3, max = 6.5, axis = "y", inverse = true}},
  216.         ["md_ws_waaimpoint"] = { type = "Model", model = "models/attachments/ws_wascope_sg550.mdl", bone = "Receiver", rel = "", pos = Vector(0.2, 6.5, -1.201), angle = Angle(0, -180, 0), size = Vector(0.649, 0.649, 0.649)},    //, adjustment = {min = 6.5, max = 8.4, axis = "y", inverse = true}
  217.         ["md_ws_awp_scope"] = { type = "Model", model = "models/attachments/ws_scope_awp.mdl", bone = "Receiver", rel = "", pos = Vector(-1.01, 6.752, -1.65), angle = Angle(0, 90, 0), size = Vector(0.855, 0.855, 0.855), adjustment = {min = 6.8, max = 8.2, axis = "y", inverse = true}},
  218.         ["md_ws_afg"] = { type = "Model", model = "models/attachments/afg_plane.mdl", bone = "Receiver", rel = "", pos = Vector(0, -5.715, 0.2), angle = Angle(0, 0, 0), size = Vector(0.5, 0.5, 0.5)},
  219.         ["md_ws_eotech557"] = { type = "Model", model = "models/attachments/ws_eotech557.mdl", bone = "Receiver", rel = "", pos = Vector(0.7, 6.5, -1.951), angle = Angle(0, 90, 0), size = Vector(0.8, 0.8, 0.8), adjustment = {min = 6, max = 8, axis = "y", inverse = true}},
  220.         ["bg_ws_m16longris"] = { type = "Model", model = "models/attachments/ws_m16_rail.mdl", bone = "Receiver", rel = "", pos = Vector(1.85, 9.899, 3.599), angle = Angle(0, -180, 0), size = Vector(0.8, 0.85, 0.8), color = Color(255, 255, 255, 255)},
  221.         ["md_m203"] = { type = "Model", model = "models/cw2/attachments/m203.mdl", bone = "Receiver", rel = "", pos = Vector(-2.3, 9.909, 3.7), angle = Angle(0, 90, 0), size = Vector(1, 1, 1), animated = true},
  222.         ["md_saker"] = { type = "Model", model = "models/cw2/attachments/556suppressor.mdl", bone = "Receiver", rel = "", pos = Vector(-0.051, -7.901, -0.12), angle = Angle(0, -180, 0), size = Vector(0.55, 0.55, 0.55)},
  223.         ["md_anpeq15"] = { type = "Model", model = "models/cw2/attachments/anpeq15.mdl", bone = "Receiver", rel = "", pos = Vector(-0.7, -9.87, 1.5), angle = Angle(0, -90, 90), size = Vector(0.5, 0.5, 0.5)},
  224.         ["bg_ws_longris"] = { type = "Model", model = "models/attachments/cw2_barrelrail.mdl", bone = "Receiver", rel = "", pos = Vector(-1.8, 11, 3.5), angle = Angle(0, -180, 0), size = Vector(0.8, 1, 0.8)},
  225.         ["md_eotech"] = { type = "Model", model = "models/wystan/attachments/2otech557sight.mdl", bone = "Receiver", rel = "", pos = Vector(-0.301, 12.5, -8.25), angle = Angle(0, 90, 0), size = Vector(1, 1, 1), adjustment = {min = 11, max = 13, axis = "y", inverse = true}},
  226.         ["md_microt1"] = { type = "Model", model = "models/cw2/attachments/microt1.mdl", bone = "Receiver", rel = "", pos = Vector(-0.051, 1, 2.596), adjustment = {min = -1, max = 2.4, axis = "y", inverse = true}, angle = Angle(0, 0, 0), size = Vector(0.4, 0.4, 0.4)},
  227.         ["md_aimpoint"] = { type = "Model", model = "models/wystan/attachments/aimpoint.mdl", bone = "Receiver", rel = "", pos = Vector(0.189, 6.199, -2.31), angle = Angle(0, -180, 0), size = Vector(0.85, 0.85, 0.85), adjustment = {min = 4.5, max = 7.5, axis = "y", inverse = true}},
  228.         ["md_foregrip"] = { type = "Model", model = "models/wystan/attachments/foregrip1.mdl", bone = "Receiver", rel = "", pos = Vector(-0.5, -13.8, -0.95), angle = Angle(0, 0, 0), size = Vector(0.55, 0.55, 0.55)},
  229.         ["md_acog"] = { type = "Model", model = "models/wystan/attachments/2cog.mdl", bone = "Receiver", rel = "", pos = Vector(0.31, 6, -2.61), angle = Angle(0, -180, 0), size = Vector(0.898, 0.898, 0.898)},
  230.     }
  231.  
  232.    
  233.  
  234.     function SWEP:RenderTargetFunc()
  235.     local fagal = self.AttachmentModelsVM.md_ws_c_more.ent
  236.     fagal:SetSkin(1)
  237.     local fagal2 = self.AttachmentModelsVM.bg_ws_longris.ent
  238.     fagal2:SetBodygroup(1,1)
  239.     local fagal3 = self.AttachmentModelsVM.bg_magpulhandguard.ent
  240.     fagal3:SetSkin(0)
  241.     local fagal4 = self.AttachmentModelsVM.md_ws_anpeq15.ent
  242.     fagal4:SetSkin(0)
  243.     local fagal5 = self.AttachmentModelsVM.md_ws_magpul.ent
  244.     fagal5:SetSkin(1)
  245.     local fagal6 = self.AttachmentModelsVM.bg_ws_pmag.ent
  246.     fagal6:SetSkin(0)
  247.     local fagal7 = self.AttachmentModelsVM.md_ws_bipod.ent
  248.     fagal7:SetSkin(0)
  249.     local fagal8 = self.AttachmentModelsVM.bg_ws_moestock.ent
  250.     fagal8:SetSkin(0)
  251.     local fagal9 = self.AttachmentModelsVM.md_ws_dbal.ent
  252.     fagal9:SetSkin(0)
  253.     local fagal10 = self.AttachmentModelsVM.bg_ws_lightweightstock.ent
  254.     fagal10:SetSkin(0)
  255.     local fagal11 = self.AttachmentModelsVM.bg_ws_m16longris.ent
  256.     fagal11:SetSkin(0)
  257.     local fagal13 = self.AttachmentModelsVM.md_ws_barska.ent
  258.     fagal13:SetSkin(0)
  259.    
  260.     if self.ActiveAttachments.skin_m16black then
  261.         fagal11:SetSkin(1)
  262.     end
  263.    
  264.    
  265.     if self.ActiveAttachments.md_magnifier_scope then
  266.                 if self.ActiveAttachments.md_cod4_reflex then
  267.                     self.AttachmentModelsVM.larue_mount.active = true
  268.                 end
  269.                
  270.                 if self.ActiveAttachments.md_cod4_aimpoint_v2 then
  271.                     self.AttachmentModelsVM.larue_mount.active = true
  272.                     self.AttachmentModelsVM.md_cod4_aimpoint_v2.ent:SetBodygroup(1,1)
  273.                 end
  274.             else
  275.                 self.AttachmentModelsVM.larue_mount.active = false
  276.                 self.AttachmentModelsVM.md_cod4_aimpoint_v2.ent:SetBodygroup(1,0)
  277.             end    
  278.    
  279.     end
  280.     end
  281.    
  282.     SWEP.CompM4SBoneMod = {
  283.         ["ard"] = { scale = Vector(1, 1, 1), pos = Vector(0, 0, 0), angle = Angle(31.445, 0, 0) }
  284.     }
  285.    
  286.     SWEP.M203HoldPos = {
  287.         ["Bone_L_LowerArm01"] = { scale = Vector(1, 1, 1), pos = Vector(0.4, 3.148, 0), angle = Angle(0, 0, 0) }
  288.     }
  289.    
  290.     SWEP.ForeGripHoldPos = {
  291.     ["Bone_L_LowerArm01"] = { scale = Vector(1, 1, 1), pos = Vector(-1.5, 1.264, 1.131), angle = Angle(18.113, -1.084, 68.313) },
  292.     ["Bone_L_UpperThumb01"] = { scale = Vector(1, 1, 1), pos = Vector(0, 0, 0), angle = Angle(12.781, 0, 49.811) },
  293.     ["Bone05"] = { scale = Vector(1, 1, 1), pos = Vector(0, 0.354, 0), angle = Angle(78.817, -31.953, 0) },
  294.     ["Bone09"] = { scale = Vector(1, 1, 1), pos = Vector(0, 0.2, 0), angle = Angle(61.775, 0, 21.302) },
  295.     ["Bone01"] = { scale = Vector(1, 1, 1), pos = Vector(0, 0.5, 0), angle = Angle(106.509, -14.912, 0) },
  296.     ["Bone14"] = { scale = Vector(1, 1, 1), pos = Vector(0, 0, 0), angle = Angle(59.645, 25.562, 0) },
  297.     ["Bone_L_LowerThumb01"] = { scale = Vector(1, 1, 1), pos = Vector(0, 0, 0), angle = Angle(51.124, 0, 48.993) }
  298.     }
  299.  
  300.     SWEP.ForegripOverridePos = {
  301.    
  302.     ["md_ws_grippod"] = {["Bone_L_LowerArm01"] = { scale = Vector(1, 1, 1), pos = Vector(-1.5, 1.264, 1.131), angle = Angle(18.113, -1.084, 68.313) },
  303.     ["Bone_L_UpperThumb01"] = { scale = Vector(1, 1, 1), pos = Vector(0, 0, 0), angle = Angle(12.781, 0, 49.811) },
  304.     ["Bone05"] = { scale = Vector(1, 1, 1), pos = Vector(0, 0.354, 0), angle = Angle(78.817, -31.953, 0) },
  305.     ["Bone09"] = { scale = Vector(1, 1, 1), pos = Vector(0, 0.2, 0), angle = Angle(61.775, 0, 21.302) },
  306.     ["Bone01"] = { scale = Vector(1, 1, 1), pos = Vector(0, 0.5, 0), angle = Angle(106.509, -14.912, 0) },
  307.     ["Bone14"] = { scale = Vector(1, 1, 1), pos = Vector(0, 0, 0), angle = Angle(59.645, 25.562, 0) },
  308.     ["Bone_L_LowerThumb01"] = { scale = Vector(1, 1, 1), pos = Vector(0, 0, 0), angle = Angle(51.124, 0, 48.993) }},
  309.    
  310.     ["md_ws_afg"] = {
  311.     ["Bone09"] = { scale = Vector(1, 1, 1), pos = Vector(-0.5, 0, 0), angle = Angle(41.625, 0, 0) },
  312.     ["Bone_L_LowerThumb01"] = { scale = Vector(1, 1, 1), pos = Vector(0, 0, 0), angle = Angle(32.102, 0, 0) },
  313.     ["Bone05"] = { scale = Vector(1, 1, 1), pos = Vector(0, 0, 0), angle = Angle(66.375, 0, 0) },
  314.     ["Bone_L_MiddleThumb01"] = { scale = Vector(1, 1, 1), pos = Vector(0.5, 0.381, -0.5), angle = Angle(-11.466, 22.93, 0) },
  315.     ["Bone01"] = { scale = Vector(1, 1, 1), pos = Vector(0, 0, 0), angle = Angle(75.375, 0, 0) },
  316.     ["Bone07"] = { scale = Vector(1, 1, 1), pos = Vector(0, 0, 0), angle = Angle(-61.875, 0, 0) },
  317.     ["Bone11"] = { scale = Vector(1, 1, 1), pos = Vector(0, 0, 0), angle = Angle(-34.875, 0, 0) },
  318.     ["Bone13"] = { scale = Vector(1, 1, 1), pos = Vector(-0.601, 0, 0), angle = Angle(25.875, 0, 0) },
  319.     ["Bone_L_Hand01"] = { scale = Vector(1, 1, 1), pos = Vector(0, 0.925, 0.185), angle = Angle(1.11, 10, 18.888) }}
  320.     }
  321.  
  322.     SWEP.AttachmentPosDependency = {
  323.         ["md_fas2_aimpoint"] = {
  324.             ["md_magnifier_scope"] = Vector(0, -7, 1.6),
  325.         },
  326.         ["md_fas2_eotech"] = {
  327.             ["md_magnifier_scope"] = Vector(-0.07, -8, 1.75)
  328.         },
  329.         ["md_cod4_reflex"] = {
  330.             ["md_magnifier_scope"] = Vector(-0.05, 0, 0.15),
  331.         },
  332.         ["md_cod4_aimpoint_v2"] = {
  333.             ["md_magnifier_scope"] = Vector(-0.075, 0, 0.2),
  334.         },    
  335.         ["md_cod4_eotech_v2"] = {
  336.             ["md_magnifier_scope"] = Vector(0, -0.1, -0.55),
  337.         },
  338.     }
  339.    
  340.     SWEP.LuaVMRecoilAxisMod = {vert = 0.5, hor = 1, roll = 1, forward = 0.5, pitch = 0.5}
  341.     SWEP.LaserPosAdjust = Vector(0, 0, 0)
  342.     SWEP.LaserAngAdjust = Angle(-0.1, 180, 3)
  343.    
  344.     SWEP.WS_LaserPosAdjust = Vector(0, 0, 0)
  345.     SWEP.WS_LaserAngAdjust = Angle(0, 89.5, 0)
  346.    
  347.     SWEP.WS_DbalPosAdjust = Vector(0, 0, 0)
  348.     SWEP.WS_DbalAngAdjust = Angle(0, 180, 0)
  349.    
  350.     if CustomizableWeaponry_WS_Pack and CustomizableWeaponry_KK_HK416 then
  351.         SWEP.CustomizationMenuScale = 0.010
  352.     else
  353.         SWEP.CustomizationMenuScale = 0.012
  354.     end
  355.  
  356.  
  357. SWEP.BarrelBGs      ={main = 4, regular = 0, none = 1, longris = 1, magpul = 1}
  358. SWEP.SightBGs       = {main = 3, carryhandle = 0, foldsight = 2, none = 1, foldfold = 3}
  359. // none = 1
  360. SWEP.ForegripBGs    = {main = 3, regular = 0, covered = 1}
  361. SWEP.MagBGs         = {main = 5, regular = 0, none = 1, emag = 1, pmag = 1, round60 = 1}
  362. SWEP.StockBGs       = {main = 2, regular = 0, lightweight = 1, moestock = 1, none = 1}
  363. SWEP.SilencerBGs    = {main = 6, off = 0, on = 1, long_off = 2, long_on = 3}
  364. //lua_run Entity(1):GetViewModel():SetBodygroup(3,1)
  365. //SWEP.AimBreathingEnabled = true
  366. SWEP.LuaViewmodelRecoil = true
  367.  
  368. SWEP.AttachmentDependencies = {
  369.     ["md_m203"] = {"bg_ws_m16longris", "bg_ws_longris"},
  370.     ["md_ws_afg"] = {"bg_ws_m16longris", "bg_ws_longris"},
  371.     ["md_ws_bipod"] = {"bg_ws_m16longris", "bg_ws_longris"},
  372.     ["md_ws_grippod"] = {"bg_ws_m16longris", "bg_ws_longris"},
  373.     ["md_magnifier_scope"] = {"md_cod4_reflex","md_cod4_eotech_v2","md_cod4_aimpoint_v2","md_fas2_eotech","md_fas2_aimpoint"},
  374.     ["md_ws_canted"] = {"md_ws_foldsight", "md_ws_acog", "md_eotech",  "md_aimpoint", "md_acog", "md_ws_docter", "md_microt1", "md_ws_c_more", "md_ws_barska", "md_ws_eotech557", "md_ws_elcan", "md_ws_leupold", "md_ws_awp_scope", "md_ws_waaimpoint"}
  375. }
  376. SWEP.AttachmentExclusions = {
  377. ["md_backup_reflex"] = {"md_ws_foldsight", "md_ws_docter", "md_microt1", "md_ws_c_more", "md_ws_barska", "md_eotech", "md_ws_eotech557", "md_aimpoint", "md_ws_elcan", "md_ws_leupold", "md_ws_acog", "md_ws_awp_scope", "md_ws_waaimpoint", "md_cod4_reflex","md_cod4_eotech_v2","md_cod4_aimpoint_v2","md_fas2_eotech","md_fas2_aimpoint"}
  378. }
  379.  
  380. //table.insert(swep.attachments, {category liek atts = {"and", "so", "on"}})
  381. //table.insert( SWEP.Attachments[1].atts, 2, "md_ws_m203leaf" )
  382. if CustomizableWeaponry_WS_Pack and CustomizableWeaponry_WS_BG and CustomizableWeaponry_KK_HK416 then
  383.     SWEP.Attachments = {
  384.         [1] = {header = "Sight", offset = {-100, -300},  atts = {"md_ws_foldsight", "md_ws_docter", "md_microt1", "md_ws_c_more", "md_cod4_reflex", "md_ws_barska", "md_eotech", "md_ws_eotech557", "md_cod4_eotech_v2", "md_fas2_eotech", "md_aimpoint", "md_cod4_aimpoint_v2", "md_fas2_aimpoint", "md_ws_elcan", "md_ws_leupold", "md_ws_acog","md_cod4_acog_v2", "md_fas2_leupold", "md_ws_awp_scope", "md_ws_waaimpoint"}},
  385.         [3] = {header = "Silencer", offset = {-600, -200},  atts = {"md_saker", "md_ws_scar_silencer", "md_ws_scifi_silencer"}},
  386.         [2] = {header = "Barrel", offset = {-600, -650},  atts = {"bg_magpulhandguard", "bg_ws_m16longris", "bg_ws_longris"}},
  387.         [4] = {header = "Handguard", offset = {-600, 200}, atts = {"md_ws_afg", "md_foregrip", "md_ws_bipod", "md_ws_grippod", "md_m203"}},
  388.         [5] = {header = "Side Rail Front", offset = {-600, 600}, atts = {"md_ws_anpeq15", "md_ws_dbal", "md_anpeq15"}, dependencies = {bg_ws_m16longris = true, bg_ws_longris = true}},
  389.         [6] = {header = "Hybrid Sights", offset = {500, 600}, atts = {"md_ws_canted", "md_backup_reflex", "md_magnifier_scope"}, dependencies = {bg_ws_m16longris = true, bg_ws_longris = true}},
  390.         [7] = {header = "Mags", offset = {500, 900}, atts = {"bg_ws_pmag", "bg_ws_emag", "bg_ar1560rndmag"}},
  391.         ["+attack2"] = {header = "Stocks", offset = {1200, 900}, atts = {"bg_ws_lightweightstock", "bg_ws_moestock", "bg_ws_nostock"}},
  392.         ["+reload"] = {header = "Ammo", offset = {800, 150}, atts = {"am_magnum", "am_matchgrade"}},
  393.         ["impulse 100"] = {header = "Skin", offset = {400, -650}, atts = {"skin_m16black"}},
  394.         [9] = {header = "M203", offset = {1800, 150}, atts = {}, dependencies = {md_m203 = true}}, // atts = {"md_ws_m203leaf", "md_ws_m40gl"}
  395.         [8] = {header = "Magpul", offset = {1300, 150}, atts = {"md_ws_magpul"}, exclusions = {bg_ar1560rndmag = true}},
  396.     }
  397.     if CustomizableWeaponry_WS_M2O3_SIGHTS then
  398.         table.insert( SWEP.Attachments[9].atts, 1, "md_ws_m203leaf" )
  399.         table.insert( SWEP.Attachments[9].atts, 1, "md_ws_m40gl" )
  400.     end
  401.     elseif CustomizableWeaponry_KK_HK416 and CustomizableWeaponry_WS_BG then
  402.     SWEP.Attachments = {
  403.         [1] = {header = "Sight", offset = {400, -300},  atts = {"md_microt1", "md_cod4_reflex", "md_eotech", "md_cod4_eotech_v2", "md_fas2_eotech", "md_aimpoint", "md_cod4_aimpoint_v2", "md_fas2_aimpoint", "md_cod4_acog_v2", "md_fas2_leupold"}},
  404.         [3] = {header = "Silencer", offset = {-400, -200},  atts = {"md_saker"}},
  405.         [2] = {header = "Barrel", offset = {-400, -650},  atts = {"bg_magpulhandguard", "bg_ws_m16longris", "bg_ws_longris"}},
  406.         [4] = {header = "Handguard", offset = {-400, 200}, atts = {"md_foregrip", "md_m203"}},
  407.         [5] = {header = "Side Rail Front", offset = {-400, 600}, atts = {"md_anpeq15"}, dependencies = {bg_ws_m16longris = true}},
  408.         [6] = {header = "Hybrid Sights", offset = {500, 600}, atts = {"md_backup_reflex", "md_magnifier_scope"}, dependencies = {bg_ws_m16longris = true, bg_ws_longris = true}},
  409.         [7] = {header = "Mags", offset = {500, 900}, atts = {"bg_ws_pmag", "bg_ws_emag", "bg_ar1560rndmag"}},
  410.         [8] = {header = "M203", offset = {1800, 150}, atts = {}, dependencies = {md_m203 = true}},
  411.         ["+attack2"] = {header = "Stocks", offset = {1200, 900}, atts = {"bg_ws_lightweightstock", "bg_ws_moestock", "bg_ws_nostock"}},
  412.         ["+reload"] = {header = "Ammo", offset = {800, 150}, atts = {"am_magnum", "am_matchgrade"}},
  413.         ["impulse 100"] = {header = "Skin", offset = {400, -650}, atts = {"skin_m16black"}},
  414.     }
  415.     if CustomizableWeaponry_WS_M2O3_SIGHTS then
  416.         table.insert( SWEP.Attachments[8].atts, 1, "md_ws_m203leaf" )
  417.         table.insert( SWEP.Attachments[8].atts, 1, "md_ws_m40gl" )
  418.     end
  419.     elseif CustomizableWeaponry_WS_Pack and CustomizableWeaponry_WS_BG then
  420.     SWEP.Attachments = {
  421.         [1] = {header = "Sight", offset = {-100, -300},  atts = {"md_ws_foldsight", "md_ws_docter", "md_microt1", "md_ws_c_more", "md_ws_barska", "md_eotech", "md_ws_eotech557", "md_aimpoint", "md_ws_elcan", "md_ws_leupold", "md_ws_acog", "md_ws_awp_scope", "md_ws_waaimpoint"}},
  422.         [3] = {header = "Silencer", offset = {-600, -200},  atts = {"md_saker", "md_ws_scar_silencer", "md_ws_scifi_silencer"}},
  423.         [2] = {header = "Barrel", offset = {-600, -650},  atts = {"bg_magpulhandguard", "bg_ws_m16longris", "bg_ws_longris"}},
  424.         [4] = {header = "Handguard", offset = {-600, 200}, atts = {"md_ws_afg", "md_foregrip", "md_ws_bipod", "md_ws_grippod", "md_m203"}},
  425.         [5] = {header = "Side Rail Front", offset = {-600, 600}, atts = {"md_ws_anpeq15", "md_ws_dbal", "md_anpeq15"}, dependencies = {bg_ws_m16longris = true, bg_ws_longris = true}},
  426.         [6] = {header = "Hybrid Sights", offset = {500, 600}, atts = {"md_ws_canted"}, dependencies = {bg_ws_m16longris = true, bg_ws_longris = true}},
  427.         [7] = {header = "Mags", offset = {500, 900}, atts = {"bg_ws_pmag", "bg_ws_emag", "bg_ar1560rndmag"}},
  428.         ["+attack2"] = {header = "Stocks", offset = {1200, 900}, atts = {"bg_ws_lightweightstock", "bg_ws_moestock", "bg_ws_nostock"}},
  429.         ["+reload"] = {header = "Ammo", offset = {800, 150}, atts = {"am_magnum", "am_matchgrade"}},
  430.         ["impulse 100"] = {header = "Skin", offset = {400, -650}, atts = {"skin_m16black"}},
  431.         [9] = {header = "M203", offset = {1800, 150}, atts = {}, dependencies = {md_m203 = true}},
  432.         [8] = {header = "Magpul", offset = {1300, 150}, atts = {"md_ws_magpul"}, exclusions = {bg_ar1560rndmag = true}},
  433.     }
  434.     if CustomizableWeaponry_WS_M2O3_SIGHTS then
  435.         table.insert( SWEP.Attachments[9].atts, 1, "md_ws_m203leaf" )
  436.         table.insert( SWEP.Attachments[9].atts, 1, "md_ws_m40gl" )
  437.     end
  438.     elseif CustomizableWeaponry_WS_Pack and CustomizableWeaponry_KK_HK416 then
  439.     SWEP.Attachments = {
  440.         [1] = {header = "Sight", offset = {400, -300},  atts = {"md_ws_foldsight", "md_ws_docter", "md_microt1", "md_ws_c_more", "md_cod4_reflex", "md_ws_barska", "md_eotech", "md_ws_eotech557", "md_cod4_eotech_v2", "md_fas2_eotech", "md_aimpoint", "md_cod4_aimpoint_v2", "md_fas2_aimpoint", "md_ws_elcan", "md_ws_leupold", "md_ws_acog","md_cod4_acog_v2", "md_fas2_leupold", "md_ws_awp_scope", "md_ws_waaimpoint"}},
  441.         [3] = {header = "Silencer", offset = {-400, -200},  atts = {"md_saker", "md_ws_scar_silencer", "md_ws_scifi_silencer"}},
  442.         [2] = {header = "Barrel", offset = {-400, -650},  atts = {"bg_ws_m16longris"}},
  443.         [4] = {header = "Handguard", offset = {-400, 200}, atts = {"md_ws_afg", "md_foregrip", "md_ws_bipod", "md_ws_grippod", "md_m203"}},
  444.         [5] = {header = "Side Rail Front", offset = {-400, 600}, atts = {"md_ws_anpeq15", "md_ws_dbal", "md_anpeq15"}, dependencies = {bg_ws_m16longris = true, bg_ws_longris = true}},
  445.         [6] = {header = "Hybrid Sights", offset = {500, 600}, atts = {"md_ws_canted", "md_backup_reflex", "md_magnifier_scope"}, dependencies = {bg_ws_m16longris = true, bg_ws_longris = true}},
  446.         ["+reload"] = {header = "Ammo", offset = {800, 150}, atts = {"am_magnum", "am_matchgrade"}},
  447.         [9] = {header = "M203", offset = {1800, 150}, atts = {}, dependencies = {md_m203 = true}},
  448.         ["impulse 100"] = {header = "Skin", offset = {400, -650}, atts = {"skin_m16black"}},
  449.         [8] = {header = "Magpul", offset = {1300, 150}, atts = {"md_ws_magpul"}}
  450.     }
  451.     if CustomizableWeaponry_WS_M2O3_SIGHTS then
  452.         table.insert( SWEP.Attachments[9].atts, 1, "md_ws_m203leaf" )
  453.         table.insert( SWEP.Attachments[9].atts, 1, "md_ws_m40gl" )
  454.     end
  455.     elseif CustomizableWeaponry_KK_HK416 then
  456.     SWEP.Attachments = {
  457.         [1] = {header = "Sight", offset = {400, -300},  atts = {"md_microt1", "md_cod4_reflex", "md_eotech", "md_cod4_eotech_v2", "md_fas2_eotech", "md_aimpoint", "md_cod4_aimpoint_v2", "md_fas2_aimpoint", "md_cod4_acog_v2", "md_fas2_leupold"}},
  458.         [3] = {header = "Silencer", offset = {-400, -200},  atts = {"md_saker"}},
  459.         [2] = {header = "Barrel", offset = {-400, -650},  atts = {"bg_ws_m16longris"}},
  460.         [4] = {header = "Handguard", offset = {-400, 200}, atts = {"md_foregrip", "md_m203"}},
  461.         [7] = {header = "M203", offset = {1800, 150}, atts = {}, dependencies = {md_m203 = true}},
  462.         [5] = {header = "Side Rail Front", offset = {-400, 600}, atts = {"md_anpeq15"}, dependencies = {bg_ws_m16longris = true}},
  463.         [6] = {header = "Hybrid Sights", offset = {500, 600}, atts = {"md_backup_reflex", "md_magnifier_scope"}, dependencies = {bg_ws_m16longris = true, bg_ws_longris = true}},
  464.         ["+reload"] = {header = "Ammo", offset = {800, 150}, atts = {"am_magnum", "am_matchgrade"}},
  465.         ["impulse 100"] = {header = "Skin", offset = {400, -650}, atts = {"skin_m16black"}},
  466.     }
  467.     if CustomizableWeaponry_WS_M2O3_SIGHTS then
  468.         table.insert( SWEP.Attachments[7].atts, 1, "md_ws_m203leaf" )
  469.         table.insert( SWEP.Attachments[7].atts, 1, "md_ws_m40gl" )
  470.     end
  471.     elseif CustomizableWeaponry_WS_Pack then
  472.         SWEP.Attachments = {
  473.         [1] = {header = "Sight", offset = {400, -300},  atts = {"md_ws_foldsight", "md_ws_docter", "md_microt1", "md_ws_c_more", "md_ws_barska", "md_eotech", "md_ws_eotech557", "md_aimpoint", "md_ws_elcan", "md_ws_leupold", "md_ws_acog",  "md_ws_awp_scope", "md_ws_waaimpoint"}},
  474.         [3] = {header = "Silencer", offset = {-400, -200},  atts = {"md_saker", "md_ws_scar_silencer", "md_ws_scifi_silencer"}},
  475.         [2] = {header = "Barrel", offset = {-400, -650},  atts = {"bg_ws_m16longris"}},
  476.         [7] = {header = "M203", offset = {1800, 150}, atts = {}, dependencies = {md_m203 = true}},
  477.         [4] = {header = "Handguard", offset = {-400, 200}, atts = {"md_ws_afg", "md_foregrip", "md_ws_bipod", "md_ws_grippod", "md_m203"}},
  478.         [5] = {header = "Side Rail Front", offset = {-400, 600}, atts = {"md_ws_anpeq15", "md_ws_dbal", "md_anpeq15"}, dependencies = {bg_ws_m16longris = true, bg_ws_longris = true}},
  479.         [6] = {header = "Hybrid Sights", offset = {500, 600}, atts = {"md_ws_canted"}, dependencies = {bg_ws_m16longris = true, bg_ws_longris = true}},
  480.         ["+reload"] = {header = "Ammo", offset = {800, 150}, atts = {"am_magnum", "am_matchgrade"}},
  481.         ["impulse 100"] = {header = "Skin", offset = {400, -650}, atts = {"skin_m16black"}},
  482.         [8] = {header = "Magpul", offset = {1300, 150}, atts = {"md_ws_magpul"}}
  483.     }
  484.     if CustomizableWeaponry_WS_M2O3_SIGHTS then
  485.         table.insert( SWEP.Attachments[7].atts, 1, "md_ws_m203leaf" )
  486.         table.insert( SWEP.Attachments[7].atts, 1, "md_ws_m40gl" )
  487.     end
  488.     elseif CustomizableWeaponry_WS_BG then
  489.         SWEP.Attachments = {
  490.         [1] = {header = "Sight", offset = {400, -300},  atts = {"md_microt1", "md_eotech", "md_aimpoint"}},
  491.         [3] = {header = "Silencer", offset = {-400, -200},  atts = {"md_saker"}},
  492.         [2] = {header = "Barrel", offset = {-400, -650},  atts = {"bg_magpulhandguard", "bg_ws_m16longris", "bg_ws_longris"}},
  493.         [4] = {header = "Handguard", offset = {-400, 200}, atts = {"md_foregrip", "md_m203"}},
  494.         [5] = {header = "Side Rail Front", offset = {-400, 600}, atts = {"md_anpeq15"}, dependencies = {bg_ws_m16longris = true}},
  495.         [7] = {header = "Mags", offset = {500, 900}, atts = {"bg_ws_pmag", "bg_ws_emag", "bg_ar1560rndmag"}},
  496.         [8] = {header = "M203", offset = {1800, 150}, atts = {}, dependencies = {md_m203 = true}},
  497.         ["+attack2"] = {header = "Stocks", offset = {1200, 900}, atts = {"bg_ws_lightweightstock", "bg_ws_moestock", "bg_ws_nostock"}},
  498.         ["+reload"] = {header = "Ammo", offset = {800, 150}, atts = {"am_magnum", "am_matchgrade"}},
  499.         ["impulse 100"] = {header = "Skin", offset = {400, -650}, atts = {"skin_m16black"}},
  500.     }
  501.     if CustomizableWeaponry_WS_M2O3_SIGHTS then
  502.         table.insert( SWEP.Attachments[8].atts, 1, "md_ws_m203leaf" )
  503.         table.insert( SWEP.Attachments[8].atts, 1, "md_ws_m40gl" )
  504.     end
  505.     else
  506.     SWEP.Attachments = {
  507.         [1] = {header = "Sight", offset = {400, -300},  atts = {"md_microt1", "md_eotech", "md_aimpoint"}},
  508.         [3] = {header = "Silencer", offset = {-400, -200},  atts = {"md_saker"}},
  509.         [2] = {header = "Barrel", offset = {-400, -650},  atts = {"bg_ws_m16longris"}},
  510.         [4] = {header = "Handguard", offset = {-400, 200}, atts = {"md_foregrip", "md_m203"}},
  511.         [5] = {header = "Side Rail Front", offset = {-400, 600}, atts = {"md_anpeq15"}, dependencies = {bg_ws_m16longris = true}},
  512.         [6] = {header = "M203", offset = {1800, 150}, atts = {}, dependencies = {md_m203 = true}},
  513.         ["+reload"] = {header = "Ammo", offset = {800, 150}, atts = {"am_magnum", "am_matchgrade"}},
  514.         ["impulse 100"] = {header = "Skin", offset = {400, -650}, atts = {"skin_m16black"}},
  515.     }
  516.     if CustomizableWeaponry_WS_M2O3_SIGHTS then
  517.         table.insert( SWEP.Attachments[6].atts, 1, "md_ws_m203leaf" )
  518.         table.insert( SWEP.Attachments[6].atts, 1, "md_ws_m40gl" )
  519.     end
  520. end
  521.  
  522.    
  523. SWEP.Animations = {fire = {"shoot1", "shoot2", "shoot3"},
  524.     reload = "reload",
  525.     idle = "idle",
  526.     draw = "draw"}
  527.    
  528. SWEP.Sounds = {
  529.     draw = {
  530.     [1] = {time = 0, sound = "CW_WS_M16A4_DRAW"}},
  531.    
  532.     reload = {
  533.     [1] = {time = 0.5, sound = "CW_WS_M16A4_MAGOUT"},
  534.     [2] = {time = 1, sound = "CW_WS_M16A4_MAGOUT2"},
  535.     [3] = {time = 1.6, sound = "CW_WS_M16A4_MAGIN"},
  536.     [4] = {time = 1.8, sound = "CW_WS_M16A4_MAGIN2"},
  537.     [5] = {time = 2.35, sound = "CW_WS_M16A4_BOLTBACK"},
  538.     [6] = {time = 2.6, sound = "CW_WS_M16A4_BOLTBACK2"},}
  539.     }
  540.  
  541. SWEP.SpeedDec = 30
  542.  
  543. SWEP.ADSFireAnim = false
  544. SWEP.BipodFireAnim = true
  545.  
  546. SWEP.Slot = 3
  547. SWEP.SlotPos = 0
  548. SWEP.NormalHoldType = "ar2"
  549. SWEP.RunHoldType = "passive"
  550. SWEP.FireModes = {"3burst", "semi"}
  551. SWEP.Base = "cw_base"
  552. SWEP.Category = "CW 2.0 White Snow"
  553.  
  554. SWEP.Author         = "White Snow"
  555. SWEP.Contact        = ""
  556. SWEP.Purpose        = ""
  557. SWEP.Instructions   = ""
  558.  
  559. SWEP.ViewModelFOV   = 70
  560. SWEP.AimViewModelFOV = 60
  561. SWEP.ViewModelFlip  = false    
  562. SWEP.ViewModel      = "models/weapons/m16a4/v_rif_m16a4.mdl"
  563. SWEP.WorldModel     = "models/weapons/m16a4/w_rif_m16a4.mdl"
  564. SWEP.DrawTraditionalWorldModel = false
  565. SWEP.WM = "models/weapons/m16a4/w_rif_m16a4.mdl"
  566. SWEP.WMPos = Vector(-1, -2, 0)
  567. SWEP.WMAng = Vector(-3,1,180)
  568.  
  569. SWEP.Spawnable          = true
  570. SWEP.AdminSpawnable     = true
  571.  
  572. SWEP.Primary.ClipSize       = 30
  573. SWEP.Primary.DefaultClip    = 200
  574. SWEP.Primary.Automatic      = true
  575. SWEP.Primary.Ammo           = "5.56x45MM"
  576. SWEP.magType = "arMag"
  577. SWEP.Chamberable = true
  578.  
  579. SWEP.FireDelay = 0.065
  580. SWEP.FireSound = "CW_WS_M16A4_FIRE"
  581. SWEP.FireSoundSuppressed = "CW_WS_M16A4_FIRE_SUPPRESSED"
  582. SWEP.Recoil = 0.6
  583.  
  584. SWEP.HipSpread = 0.040
  585. SWEP.AimSpread = 0.002
  586. SWEP.VelocitySensitivity = 0.5
  587. SWEP.MaxSpreadInc = 0.03
  588. SWEP.SpreadPerShot = 0.004
  589. SWEP.SpreadCooldown = 0.13
  590. SWEP.Shots = 1
  591. SWEP.Damage = 30
  592. SWEP.DeployTime = 0.6
  593.  
  594. SWEP.ReloadSpeed = 1
  595. SWEP.ReloadTime = 2.3
  596. SWEP.ReloadTime_Empty = 3.7
  597. SWEP.ReloadHalt = 0.1
  598. SWEP.ReloadHalt_Empty = 0.1
  599. SWEP.SnapToIdlePostReload = false
  600. SWEP.BulletDiameter = 5.70
  601. SWEP.CaseLength = 44.70
  602. SWEP.SnapToIdlePostReload = true
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top