Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- TTT Code --
- SWEP.AutoSpawnable = true
- SWEP.AmmoEnt = "item_ammo_357_ttt"
- SWEP.Slot = 2 -- Slot in the weapon selection menu. Subtract 1, as this starts at 0.
- SWEP.AllowDrop = true
- SWEP.Kind = WEAPON_HEAVY
- if CLIENT then
- SWEP.Icon = "vgui/hud/tfa_ins2_codol_free"
- SWEP.EquipMenuData = {
- type = "Weapon",
- desc = "Freedom SR"
- };
- end
- if SERVER then
- resource.AddFile("materials/VGUI/hud/tfa_ins2_codol_free.vmt")
- end
- -- End of TTT Code --
- SWEP.Gun = ("codol_freedom") -- must be the name of your gun
- SWEP.Base = "tfa_gun_base"
- SWEP.Category = "TFA Insurgency for TTT" --The category. Please, just choose something generic or something I've already done if you plan on only doing like one swep..
- SWEP.Manufacturer = "Freedom" --Gun Manufactrer (e.g. Hoeckler and Koch )
- SWEP.Author = "TFA & Karate Walrus" --Author Tooltip
- SWEP.Contact = "http://steamcommunity.com/profiles/76561198161775645" --Contact Info Tooltip
- SWEP.Purpose = "" --Purpose Tooltip
- SWEP.Instructions = "" --Instructions Tooltip
- SWEP.Spawnable = true --Can you, as a normal user, spawn this?
- SWEP.AdminSpawnable = false --Can an adminstrator spawn this? Does not tie into your admin mod necessarily, unless its coded to allow for GMod's default ranks somewhere in its code. Evolve and ULX should work, but try to use weapon restriction rather than these.
- SWEP.DrawCrosshair = false -- Draw the crosshair?
- SWEP.DrawCrosshairIS = false --Draw the crosshair in ironsights?
- SWEP.PrintName = "Freedom SR" -- Weapon name (Shown on HUD)
- SWEP.SlotPos = 73 -- Position in the slot
- SWEP.AutoSwitchTo = false -- Auto switch to if we pick it up
- SWEP.AutoSwitchFrom = false -- Auto switch from if you pick up a better weapon
- SWEP.Weight = 0 -- This controls how "good" the weapon is for autopickup.
- --[[WEAPON HANDLING]]--
- SWEP.Primary.Sound = Sound("TFA_INS2_CODOL_FREEDOM.1") -- This is the sound of the weapon, when you shoot.
- SWEP.Primary.SilencedSound = Sound("TFA_INS2_CODOL_FREEDOM.2") -- This is the sound of the weapon, when silenced.
- SWEP.Primary.PenetrationMultiplier = 1 --Change the amount of something this gun can penetrate through
- SWEP.Primary.Damage = 100 -- Damage, in standard damage points.
- SWEP.Primary.DamageTypeHandled = true --true will handle damagetype in base
- SWEP.Primary.DamageType = bit.bor(DMG_BULLET,DMG_AIRBOAT) --See DMG enum. This might be DMG_SHOCK, DMG_BURN, DMG_BULLET, etc. Leave nil to autodetect. DMG_AIRBOAT opens doors.
- SWEP.Primary.Force = nil --Force value, leave nil to autocalc
- SWEP.Primary.Knockback = nil --Autodetected if nil; this is the velocity kickback
- SWEP.Primary.HullSize = 0 --Big bullets, increase this value. They increase the hull size of the hitscan bullet.
- SWEP.Primary.NumShots = 1 --The number of shots the weapon fires. SWEP.Shotgun is NOT required for this to be >1.
- SWEP.Primary.Automatic = false -- Automatic/Semi Auto
- SWEP.Primary.RPM = 38 -- This is in Rounds Per Minute / RPM
- SWEP.Primary.RPM_Semi = nil -- RPM for semi-automatic or burst fire. This is in Rounds Per Minute / RPM
- SWEP.Primary.RPM_Burst = nil -- RPM for burst fire, overrides semi. This is in Rounds Per Minute / RPM
- SWEP.Primary.DryFireDelay = 0.3 --How long you have to wait after firing your last shot before a dryfire animation can play. Leave nil for full empty attack length. Can also use SWEP.StatusLength[ ACT_VM_BLABLA ]
- SWEP.Primary.BurstDelay = nil -- Delay between bursts, leave nil to autocalculate
- SWEP.FiresUnderwater = true
- --Miscelaneous Sounds
- SWEP.IronInSound = Sound("TFA_INS2.IronIn") --Sound to play when ironsighting in? nil for default
- SWEP.IronOutSound = Sound("TFA_INS2.IronOut") --Sound to play when ironsighting out? nil for default
- --Silencing
- SWEP.CanBeSilenced = false --Can we silence? Requires animations.
- SWEP.Silenced = false --Silenced by default?
- -- Selective Fire Stuff
- SWEP.SelectiveFire = false --Allow selecting your firemode?
- SWEP.DisableBurstFire = false --Only auto/single?
- SWEP.OnlyBurstFire = false --No auto, only burst/single?
- SWEP.DefaultFireMode = "" --Default to auto or whatev
- SWEP.FireModeName = nil --Change to a text value to override it
- --Ammo Related
- SWEP.Primary.ClipSize = 6 -- This is the size of a clip
- SWEP.Primary.DefaultClip = 6
- -- This is the number of bullets the gun gives you, counting a clip as defined directly above.
- SWEP.Primary.Ammo = "357" -- What kind of ammo. Options, besides custom, include pistol, 357, smg1, ar2, buckshot, slam, SniperPenetratedRound, and AirboatGun.
- SWEP.Primary.AmmoConsumption = 1 --Ammo consumed per shot
- --Pistol, buckshot, and slam like to ricochet. Use AirboatGun for a light metal peircing shotgun pellets
- SWEP.DisableChambering = true --Disable round-in-the-chamber
- --Recoil Related
- SWEP.Primary.KickUp = 0.7 -- This is the maximum upwards recoil (rise)
- SWEP.Primary.KickDown = 0.5 -- This is the maximum downwards recoil (skeet)
- SWEP.Primary.KickHorizontal = 0.4 -- This is the maximum sideways recoil (no real term)
- SWEP.Primary.StaticRecoilFactor = 0.2 --Amount of recoil to directly apply to EyeAngles. Enter what fraction or percentage (in decimal form) you want. This is also affected by a convar that defaults to 0.5.
- --Firing Cone Related
- SWEP.Primary.Spread = .02 --This is hip-fire acuracy. Less is more (1 is horribly awful, .0001 is close to perfect)
- SWEP.Primary.IronAccuracy = .001 -- Ironsight accuracy, should be the same for shotguns
- --Unless you can do this manually, autodetect it. If you decide to manually do these, uncomment this block and remove this line.
- SWEP.Primary.SpreadMultiplierMax = 5--How far the spread can expand when you shoot. Example val: 2.5
- SWEP.Primary.SpreadIncrement = 1 --What percentage of the modifier is added on, per shot. Example val: 1/3.5
- SWEP.Primary.SpreadRecovery = 3--How much the spread recovers, per second. Example val: 3
- --Range Related
- SWEP.Primary.Range = 550 * 48 -- The distance the bullet can travel in source units. Set to -1 to autodetect based on damage/rpm.
- SWEP.Primary.RangeFalloff = 0.5 -- The percentage of the range the bullet damage starts to fall off at. Set to 0.8, for example, to start falling off after 80% of the range.
- --Penetration Related
- SWEP.MaxPenetrationCounter = 4 --The maximum number of ricochets. To prevent stack overflows.
- --Misc
- SWEP.IronRecoilMultiplier = 0.6 --Multiply recoil by this factor when we're in ironsights. This is proportional, not inversely.
- SWEP.CrouchAccuracyMultiplier = 0.5 --Less is more. Accuracy * 0.5 = Twice as accurate, Accuracy * 0.1 = Ten times as accurate
- --Movespeed
- SWEP.MoveSpeed = 0.85 --Multiply the player's movespeed by this.
- SWEP.IronSightsMoveSpeed = SWEP.MoveSpeed * 0.8 --Multiply the player's movespeed by this when sighting.
- --[[PROJECTILES]]--
- SWEP.ProjectileEntity = nil --Entity to shoot
- SWEP.ProjectileVelocity = 0 --Entity to shoot's velocity
- SWEP.ProjectileModel = nil --Entity to shoot's model
- --[[VIEWMODEL]]--
- SWEP.ViewModel = "models/weapons/tfa_ins2/c_codol_freedom.mdl" --Viewmodel path
- SWEP.ViewModelFOV = 56 -- This controls how big the viewmodel looks. Less is more.
- SWEP.ViewModelFlip = false -- Set this to true for CSS models, or false for everything else (with a righthanded viewmodel.)
- SWEP.UseHands = true --Use gmod c_arms system.
- SWEP.VMPos = Vector(0,0,0) --The viewmodel positional offset, constantly. Subtract this from any other modifications to viewmodel position.
- SWEP.VMAng = Vector(0,0,0) --The viewmodel angular offset, constantly. Subtract this from any other modifications to viewmodel angle.
- SWEP.VMPos_Additive = false --Set to false for an easier time using VMPos. If true, VMPos will act as a constant delta ON TOP OF ironsights, run, whateverelse
- SWEP.CenteredPos = nil --The viewmodel positional offset, used for centering. Leave nil to autodetect using ironsights.
- SWEP.CenteredAng = nil --The viewmodel angular offset, used for centering. Leave nil to autodetect using ironsights.
- SWEP.Bodygroups_V = nil --{
- --[0] = 1,
- --[1] = 4,
- --[2] = etc.
- --}
- --[[WORLDMODEL]]--
- SWEP.WorldModel = "models/weapons/tfa_ins2/w_codol_freedom.mdl" -- Weapon world model path
- SWEP.Bodygroups_W = nil --{
- --[0] = 1,
- --[1] = 4,
- --[2] = etc.
- --}
- SWEP.HoldType = "ar2" -- This is how others view you carrying the weapon. Options include:
- -- normal melee melee2 fist knife smg ar2 pistol rpg physgun grenade shotgun crossbow slam passive
- -- You're mostly going to use ar2, smg, shotgun or pistol. rpg and crossbow make for good sniper rifles
- SWEP.Offset = {
- Pos = {
- Up = -1,
- Right = 0.811,
- Forward = 4
- },
- Ang = {
- Up = 0,
- Right = -9.5,
- Forward = 180
- },
- Scale = 0.7
- } --Procedural world model animation, defaulted for CS:S purposes.
- --Vector(4.637, 0.811, -0.454), angle = Angle(-12.523, 0, 180)
- SWEP.ThirdPersonReloadDisable = false --Disable third person reload? True disables.
- --[[SCOPES]]--
- SWEP.IronSightsSensitivity = .3 --Useful for a RT scope. Change this to 0.25 for 25% sensitivity. This is if normal FOV compenstaion isn't your thing for whatever reason, so don't change it for normal scopes.
- SWEP.BoltAction = false --Unscope/sight after you shoot?
- SWEP.Scoped = false --Draw a scope overlay?
- SWEP.ScopeOverlayThreshold = 0.875 --Percentage you have to be sighted in to see the scope.
- SWEP.BoltTimerOffset = 0.25 --How long you stay sighted in after shooting, with a bolt action.
- SWEP.ScopeScale = 0.5 --Scale of the scope overlay
- SWEP.ReticleScale = 0.7 --Scale of the reticle overlay
- --[[SPRINTING]]--
- SWEP.RunSightsPos = Vector(0, 0, 0)
- SWEP.RunSightsAng = Vector(-11.869, 17.129, -16.056)
- --[[IRONSIGHTS]]--
- SWEP.data = {}
- SWEP.data.ironsights = 1 --Enable Ironsights
- SWEP.Secondary.IronFOV = 75 -- How much you 'zoom' in. Less is more! Don't have this be <= 0. A good value for ironsights is like 70.
- SWEP.IronSightsPos = Vector(-3.806, -8, 1.222)
- SWEP.IronSightsAng = Vector(0, 0, 0)
- --[[
- SWEP.IronSightsPos_Kobra = Vector(-3.89, -4, 0.944)
- SWEP.IronSightsAng_Kobra = Vector(0.1, -0.095, 0)
- SWEP.IronSightsPos_EOTech = Vector(-3.888, -7, 0.66)
- SWEP.IronSightsAng_EOTech = Vector(0.1, -0.095, 0)
- SWEP.IronSightsPos_RDS = Vector(-3.888, -7, 0.585)
- SWEP.IronSightsAng_RDS = Vector(0.1, -0.095, 0)
- SWEP.IronSightsPos_2XRDS = Vector(-3.877, -7, 0.589)
- SWEP.IronSightsAng_2XRDS = Vector(0, 0, 0)
- SWEP.IronSightsPos_C79 = Vector(-3.877, -5, 0.166)
- SWEP.IronSightsAng_C79 = Vector(0, 0, 0)
- SWEP.IronSightsPos_PO4X = Vector(-3.79, -5, 0.825)
- SWEP.IronSightsAng_PO4X = Vector(0, 0, 0)
- SWEP.IronSightsPos_Mosin = Vector(-3.85, -6, 1.126)
- SWEP.IronSightsAng_Mosin = Vector(0, 0, 0)
- SWEP.IronSightsPos_MX4 = Vector(-3.89, -6, 0.817)
- SWEP.IronSightsAng_MX4 = Vector(0, 0, 0)
- ]]--
- --[[INSPECTION]]--
- SWEP.InspectPos = Vector(5, -5.619, -2.787)
- SWEP.InspectAng = Vector(22.386, 34.417, 5)
- --[[VIEWMODEL ANIMATION HANDLING]]--
- SWEP.AllowViewAttachment = true --Allow the view to sway based on weapon attachment while reloading or drawing, IF THE CLIENT HAS IT ENABLED IN THEIR CONVARS.
- --[[VIEWMODEL BLOWBACK]]--
- SWEP.BlowbackEnabled = false --Enable Blowback?
- SWEP.BlowbackVector = Vector(0,-1,0) --Vector to move bone <or root> relative to bone <or view> orientation.
- SWEP.BlowbackCurrentRoot = 0 --Amount of blowback currently, for root
- SWEP.BlowbackCurrent = 0 --Amount of blowback currently, for bones
- SWEP.BlowbackBoneMods = nil --Viewmodel bone mods via SWEP Creation Kit
- SWEP.Blowback_Only_Iron = true --Only do blowback on ironsights
- SWEP.Blowback_PistolMode = false --Do we recover from blowback when empty?
- SWEP.Blowback_Shell_Enabled = true --Shoot shells through blowback animations
- SWEP.Blowback_Shell_Effect = "RifleShellEject"--Which shell effect to use
- --[[VIEWMODEL PROCEDURAL ANIMATION]]--
- SWEP.DoProceduralReload = false--Animate first person reload using lua?
- SWEP.ProceduralReloadTime = 1 --Procedural reload time?
- --[[HOLDTYPES]]--
- SWEP.IronSightHoldTypeOverride = "" --This variable overrides the ironsights holdtype, choosing it instead of something from the above tables. Change it to "" to disable.
- SWEP.SprintHoldTypeOverride = "" --This variable overrides the sprint holdtype, choosing it instead of something from the above tables. Change it to "" to disable.
- --[[ANIMATION]]--
- SWEP.StatusLengthOverride = {
- [ACT_VM_RELOAD] = 66 / 30,
- [ACT_VM_RELOAD_EMPTY] = 66 / 30,
- --["foregrip_reload"] = 66 / 30,
- --["foregrip_reload_empty"] = 66 / 30
- } --Changes the status delay of a given animation; only used on reloads. Otherwise, use SequenceLengthOverride or one of the others
- SWEP.SequenceLengthOverride = {} --Changes both the status delay and the nextprimaryfire of a given animation
- SWEP.SequenceRateOverride = {} --Like above but changes animation length to a target
- SWEP.SequenceRateOverrideScaled = {} --Like above but scales animation length rather than being absolute
- SWEP.ProceduralHoslterEnabled = nil
- SWEP.ProceduralHolsterTime = 0.3
- SWEP.ProceduralHolsterPos = Vector(3, 0, -5)
- SWEP.ProceduralHolsterAng = Vector(-40, -30, 10)
- SWEP.Sights_Mode = TFA.Enum.LOCOMOTION_HYBRID -- ANI = mdl, HYBRID = lua but continue idle, Lua = stop mdl animation
- SWEP.Sprint_Mode = TFA.Enum.LOCOMOTION_LUA -- ANI = mdl, HYBRID = ani + lua, Lua = lua only
- SWEP.SprintBobMult = 2
- SWEP.Idle_Mode = TFA.Enum.IDLE_BOTH --TFA.Enum.IDLE_DISABLED = no idle, TFA.Enum.IDLE_LUA = lua idle, TFA.Enum.IDLE_ANI = mdl idle, TFA.Enum.IDLE_BOTH = TFA.Enum.IDLE_ANI + TFA.Enum.IDLE_LUA
- SWEP.Idle_Blend = 0.25 --Start an idle this far early into the end of a transition
- SWEP.Idle_Smooth = 0.05 --Start an idle this far early into the end of another animation
- --MDL Animations Below
- SWEP.IronAnimation = {
- ["shoot"] = {
- ["type"] = TFA.Enum.ANIMATION_ACT, --Sequence or act
- ["value"] = ACT_VM_PRIMARYATTACK_1, --Number for act, String/Number for sequence
- ["value_empty"] = ACT_VM_PRIMARYATTACK_3
- } --What do you think
- }
- SWEP.SprintAnimation = {
- ["loop"] = {
- ["type"] = TFA.Enum.ANIMATION_SEQ, --Sequence or act
- ["value"] = "base_sprint", --Number for act, String/Number for sequence
- ["is_idle"] = true
- }
- }
- --[[EFFECTS]]--
- --Attachments
- SWEP.MuzzleAttachment = "1" -- Should be "1" for CSS models or "muzzle" for hl2 models
- SWEP.ShellAttachment = "2" -- Should be "2" for CSS models or "shell" for hl2 models
- SWEP.MuzzleFlashEnabled = true --Enable muzzle flash
- SWEP.MuzzleAttachmentRaw = nil --This will override whatever string you gave. This is the raw attachment number. This is overridden or created when a gun makes a muzzle event.
- SWEP.AutoDetectMuzzleAttachment = false --For multi-barrel weapons, detect the proper attachment?
- SWEP.MuzzleFlashEffect = "tfa_muzzleflash_sniper_energy" --Change to a string of your muzzle flash effect. Copy/paste one of the existing from the base.
- SWEP.SmokeParticle = nil --Smoke particle (ID within the PCF), defaults to something else based on holdtype; "" to disable
- SWEP.EjectionSmokeEnabled = false --Disable automatic ejection smoke
- --Shell eject override
- SWEP.LuaShellEject = false --Enable shell ejection through lua?
- SWEP.LuaShellEjectDelay = 0 --The delay to actually eject things
- SWEP.LuaShellEffect = "RifleShellEject" --The effect used for shell ejection; Defaults to that used for blowback
- --Tracer Stuff
- SWEP.TracerName = "tfa_tracer_gauss" --Change to a string of your tracer name. Can be custom. There is a nice example at https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/base/entities/effects/tooltracer.lua
- SWEP.TracerCount = 0 --0 disables, otherwise, 1 in X chance
- --Impact Effects
- SWEP.ImpactEffect = nil --Impact Effect
- SWEP.ImpactDecal = "FadingScorch"--Impact Decal
- --[[EVENT TABLE]]--
- --example:
- --SWEP.EventTable = {
- -- [ACT_VM_RELOAD] = {
- -- { ["time"] = 0.1, ["type"] = "lua", ["value"] = function( wep, viewmodel ) end, ["client"] = true, ["server"] = true},
- -- { ["time"] = 0.1, ["type"] = "sound", ["value"] = Sound("x") }
- -- }
- --}
- --[[RENDER TARGET]]--
- SWEP.RTMaterialOverride = nil -- Take the material you want out of print(LocalPlayer():GetViewModel():GetMaterials()), subtract 1 from its index, and set it to this.
- SWEP.RTOpaque = false -- Do you want your render target to be opaque?
- SWEP.RTCode = nil--function(self) return end --This is the function to draw onto your rendertarget
- --[[AKIMBO]]--
- SWEP.Akimbo = false --Akimbo gun? Alternates between primary and secondary attacks.
- SWEP.AnimCycle = 0 -- Start on the right
- --[[ATTACHMENTS]]--
- SWEP.VElements = {
- ["sights_folded"] = { type = "Model", model = "models/weapons/tfa_ins2/upgrades/a_standard_codol_freedom.mdl", bone = "A_Optic", rel = "", pos = Vector(0, 0, 0), angle = Angle(0, 0, 0), size = Vector(0.5, 0.5, 0.5), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {}, active = true, bonemerge = true },
- --[[
- ["sight_kobra"] = { type = "Model", model = "models/weapons/tfa_ins2/upgrades/a_optic_kobra_l.mdl", bone = "A_Optic", rel = "", pos = Vector(0, 0, 0), angle = Angle(0, 0, 0), size = Vector(0.5, 0.5, 0.5), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {}, active = false, bonemerge = true },
- ["sight_kobra_lens"] = (TFA.INS2 and TFA.INS2.GetHoloSightReticle) and TFA.INS2.GetHoloSightReticle("sight_kobra") or nil,
- ["sight_eotech"] = { type = "Model", model = "models/weapons/tfa_ins2/upgrades/a_optic_eotech_l.mdl", bone = "A_Optic", rel = "", pos = Vector(0, 0, 0), angle = Angle(0, 0, 0), size = Vector(0.5, 0.5, 0.5), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {}, active = false, bonemerge = true },
- ["sight_eotech_lens"] = (TFA.INS2 and TFA.INS2.GetHoloSightReticle) and TFA.INS2.GetHoloSightReticle("sight_eotech") or nil,
- ["sight_rds"] = { type = "Model", model = "models/weapons/tfa_ins2/upgrades/a_optic_aimpoint_l.mdl", bone = "A_Optic", rel = "", pos = Vector(0, 0, 0), angle = Angle(0, 0, 0), size = Vector(0.5, 0.5, 0.5), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {}, active = false, bonemerge = true },
- ["sight_rds_lens"] = (TFA.INS2 and TFA.INS2.GetHoloSightReticle) and TFA.INS2.GetHoloSightReticle("sight_rds") or nil,
- ["scope_2xrds"] = { type = "Model", model = "models/weapons/tfa_ins2/upgrades/a_optic_aimp2x_l.mdl", bone = "A_Optic", rel = "", pos = Vector(0, 0, 0), angle = Angle(0, 0, 0), size = Vector(0.5, 0.5, 0.5), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {}, active = false, bonemerge = true },
- ["scope_2xrds_lens"] = { type = "Model", model = "models/rtcircle.mdl", bone = "Lense_RT", rel = "scope_2xrds", pos = Vector(0, 0, -0.108), angle = Angle(-90, 0, -90), size = Vector(0.3, 0.3, 0.3), color = Color(255, 255, 255, 255), surpresslightning = false, material = "!tfa_rtmaterial", skin = 0, bodygroup = {}, active = false },
- ["scope_c79"] = { type = "Model", model = "models/weapons/tfa_ins2/upgrades/a_optic_elcan_l.mdl", bone = "A_Optic", rel = "", pos = Vector(0, 0, 0), angle = Angle(0, 0, 0), size = Vector(0.5, 0.5, 0.5), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {}, active = false, bonemerge = true },
- ["scope_c79_lens"] = { type = "Model", model = "models/rtcircle.mdl", bone = "Lense_RT", rel = "scope_c79", pos = Vector(0, -0.08, 0), angle = Angle(0, 90, 0), size = Vector(0.5, 0.5, 0.5), color = Color(255, 255, 255, 255), surpresslightning = false, material = "!tfa_rtmaterial", skin = 0, bodygroup = {}, active = false },
- ["scope_po4x"] = { type = "Model", model = "models/weapons/tfa_ins2/upgrades/a_optic_po4x24_l.mdl", bone = "ValveBiped.Bip01_Spine4", rel = "", pos = Vector(0, 0, 0), angle = Angle(0, 0, 0), size = Vector(1, 1, 1), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {}, active = false, bonemerge = true },
- ["scope_po4x_lens"] = { type = "Model", model = "models/rtcircle.mdl", bone = "Lense_RT", rel = "scope_po4x", pos = Vector(0, 0, -1.6), angle = Angle(-90, 0, -90), size = Vector(0.3, 0.3, 0.3), color = Color(255, 255, 255, 255), surpresslightning = false, material = "!tfa_rtmaterial", skin = 0, bodygroup = {}, active = false },
- ["scope_mx4"] = { type = "Model", model = "models/weapons/tfa_ins2/upgrades/a_optic_m40_l.mdl", bone = "ValveBiped.Bip01_Spine4", rel = "", pos = Vector(0, 0, 0), angle = Angle(0, 0, 0), size = Vector(0.5, 0.5, 0.5), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {}, active = false, bonemerge = true },
- ["scope_mx4_lens"] = { type = "Model", model = "models/rtcircle.mdl", bone = "RT", rel = "scope_mx4", pos = Vector(0, -0.42, 0), angle = Angle(0, 90, 0), size = Vector(0.522, 0.522, 0.522), color = Color(255, 255, 255, 255), surpresslightning = false, material = "!tfa_rtmaterial", skin = 0, bodygroup = {}, bonemerge = false, active = false },
- ["scope_mosin"] = { type = "Model", model = "models/weapons/tfa_ins2/upgrades/a_optic_mosin_l.mdl", bone = "ValveBiped.Bip01_Spine4", rel = "", pos = Vector(0, 0, 0), angle = Angle(0, 0, 0), size = Vector(0.5, 0.5, 0.5), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {}, active = false, bonemerge = true },
- ["scope_mosin_lens"] = { type = "Model", model = "models/rtcircle.mdl", bone = "RT", rel = "scope_mosin", pos = Vector(0, -0.783, 0), angle = Angle(0, 90, 0), size = Vector(0.421, 0.421, 0.421), color = Color(255, 255, 255, 255), surpresslightning = false, material = "!tfa_rtmaterial", skin = 0, bodygroup = {}, bonemerge = false, active = false},
- ["suppressor"] = { type = "Model", model = "models/weapons/tfa_ins2/upgrades/a_suppressor_sterling.mdl", bone = "A_Suppressor", rel = "", pos = Vector(2, -25, 2), angle = Angle(0, -90, 0), size = Vector(0.7, 0.7, 0.7), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {} , bonemerge = false, active = false },
- ["foregrip"] = { type = "Model", model = "models/weapons/tfa_ins2/upgrades/a_foregrip_sec.mdl", bone = "A_Foregrip", rel = "", pos = Vector(0, -0.245, 0.159), angle = Angle(0, -90, 0), size = Vector(0.611, 0.611, 0.611), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {}, bonemerge = false, active = false},
- ["laser"] = { type = "Model", model = "models/weapons/tfa_ins2/upgrades/a_laser_band.mdl", bone = "A_Underbarrel", rel = "", pos = Vector(0.018, -0.87, 1.044), angle = Angle(0, 0, 90), size = Vector(1, 1, 1), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {}, bonemerge = false, active = false},
- ["laser_beam"] = { type = "Model", model = "models/tfa/lbeam.mdl", bone = "ValveBiped.Bip01_Spine4", rel = "laser", pos = Vector(0, 0, -2.085), angle = Angle(0, 0, 0), size = Vector(0.5, 0.5, 0.5), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {}, bonemerge = false, active = false}
- ]]--
- }
- SWEP.WElements = {
- ["ref"] = { type = "Model", model = SWEP.WorldModel, bone = "oof", rel = "", pos = Vector(0, 0, 0), angle = Angle(0, 0, 0), size = Vector(1, 1, 1), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {}, bonemerge = true, active = false },
- --[[
- ["sight_eotech"] = { type = "Model", model = "models/weapons/tfa_ins2/upgrades/w_eotech.mdl", bone = "ATTACH_ModKit", rel = "ref", pos = Vector(0, 0, 0), angle = Angle(0, 0, 0), size = Vector(1, 1, 1), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {}, bonemerge = true, active = false },
- ["scope_po4x"] = { type = "Model", model = "models/weapons/tfa_ins2/upgrades/w_po.mdl", bone = "ATTACH_ModKit", rel = "ref", pos = Vector(0, 0, 0), angle = Angle(0, 0, 0), size = Vector(1, 1, 1), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {}, bonemerge = true, active = false },
- ["scope_c79"] = { type = "Model", model = "models/weapons/tfa_ins2/upgrades/w_elcan.mdl", bone = "ATTACH_ModKit", rel = "ref", pos = Vector(0, 0, 0), angle = Angle(0, 0, 0), size = Vector(1, 1, 1), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {}, bonemerge = true, active = false },
- ["scope_mosin"] = { type = "Model", model = "models/weapons/tfa_ins2/upgrades/w_scope_mosin.mdl", bone = "ATTACH_ModKit", rel = "ref", pos = Vector(0, 0, 0), angle = Angle(0, 0, 0), size = Vector(1, 1, 1), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {}, bonemerge = true, active = false },
- ["sight_kobra"] = { type = "Model", model = "models/weapons/tfa_ins2/upgrades/w_kobra.mdl", bone = "ATTACH_ModKit", rel = "ref", pos = Vector(0, 0, 0), angle = Angle(0, 0, 0), size = Vector(1, 1, 1), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {}, bonemerge = true, active = false },
- ["scope_mx4"] = { type = "Model", model = "models/weapons/tfa_ins2/upgrades/w_scope_m40.mdl", bone = "ATTACH_ModKit", rel = "ref", pos = Vector(0, 0, 0), angle = Angle(0, 0, 0), size = Vector(1, 1, 1), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {}, bonemerge = true, active = false },
- ["scope_2xrds"] = { type = "Model", model = "models/weapons/tfa_ins2/upgrades/w_magaim.mdl", bone = "ATTACH_ModKit", rel = "ref", pos = Vector(0, 0, 0), angle = Angle(0, 0, 0), size = Vector(1, 1, 1), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {}, bonemerge = true, active = false },
- ["sight_rds"] = { type = "Model", model = "models/weapons/tfa_ins2/upgrades/w_aimpoint.mdl", bone = "ATTACH_ModKit", rel = "ref", pos = Vector(0, 0, 0), angle = Angle(0, 0, 0), size = Vector(1, 1, 1), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {}, bonemerge = true, active = false },
- ["foregrip"] = { type = "Model", model = "models/weapons/tfa_ins2/upgrades/w_foregrip_sec1.mdl", bone = "ATTACH_Foregrip", rel = "ref", pos = Vector(0, 0, 0), angle = Angle(0, 0, 0), size = Vector(1, 1, 1), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {}, bonemerge = true, active = false },
- ]]--
- }
- --traitor check
- --function SWEP:GetViewModelPosition(position, angle)
- --local owner = self.Owner;
- --[[function SWEP:DrawHUD()
- local client = LocalPlayer()
- if client.IsTraitor and client:IsTraitor() then
- print(client)
- //weapon stat changes go here and remember to try and end this script after changes have been made - maybe start it again at start of new
- //round so it's not always running?
- else
- print("not traitor")
- end
- end]]--
- --[[
- SWEP.Attachments = {
- --[1] = { offset = { 0, 0 }, atts = { "ins2_br_supp" }, order = 1 },
- --[7] = { offset = { 0, 0 }, atts = { "ins2_si_kobra", "ins2_si_eotech", "ins2_si_rds", "ins2_si_2xrds", "ins2_si_c79", "ins2_si_po4x", "ins2_si_mosin", "ins2_si_mx4" }, order = 2 },
- --[8] = { offset = { 0, 0 }, atts = { "ins2_fg_grip" }, order = 3 },
- --[9] = { offset = { 0, 0 }, atts = { "ins2_ub_laser" }, order = 4 },
- --[6] = { offset = { 0, 0 }, atts = { "codol_free_bg", "codol_free_ry", "codol_free_sf" }, order = 5 }
- }
- ]]--
- --[[
- SWEP.AttachmentDependencies = {}--{["si_acog"] = {"bg_rail"}}
- SWEP.AttachmentExclusions = {}--{ ["si_iron"] = {"bg_heatshield"} }
- SWEP.MuzzleAttachmentSilenced = 3
- SWEP.LaserSightModAttachment = 1
- SWEP.LaserSightModAttachmentWorld = 1
- SWEP.RTAttachment_2XRDS = 7
- SWEP.ScopeOverlayTransforms_2XRDS = {
- 0, -0.475
- }
- SWEP.ScopeDistanceRange_2XRDS = 16
- SWEP.ScopeDistanceMin_2XRDS = 8
- SWEP.RTAttachment_C79 = 7
- SWEP.ScopeOverlayTransforms_C79 = {
- 0.00,-0.475
- }
- SWEP.ScopeDistanceRange_C79 = 14
- SWEP.ScopeDistanceMin_C79 = 10
- SWEP.RTAttachment_PO4X = 7
- SWEP.ScopeOverlayTransforms_PO4X = {
- -0.008,-0.34
- }
- SWEP.ScopeDistanceRange_PO4X = 12
- SWEP.ScopeDistanceMin_PO4X = 10
- SWEP.RTAttachment_Mosin = 7
- SWEP.ScopeOverlayTransforms_Mosin = {
- 0, -0.305
- }
- SWEP.ScopeDistanceRange_Mosin = 9
- SWEP.ScopeDistanceMin_Mosin = 8
- SWEP.RTAttachment_MX4 = 7
- SWEP.ScopeOverlayTransforms_MX4 = {
- 0, -0.375
- }
- SWEP.ScopeDistanceRange_MX4 = 10
- SWEP.ScopeDistanceMin_MX4 = 9
- ]]--
- DEFINE_BASECLASS( SWEP.Base )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement