--REAL CS BASE
--sorry for no comments to show what everything does im too lazy to do it LOL!
if (SERVER) then
AddCSLuaFile("shared.lua")
SWEP.Weight = 5
SWEP.SetHoldType = "smg"
SWEP.CSMuzzleFlashes = false
SWEP.Penetrating = true
end
if (CLIENT) then
SWEP.PrintName = "H&K MP7"
SWEP.Author = "E"
SWEP.Contact = ""
SWEP.Purpose = ""
SWEP.Instructions = "A fully automatic Submachine Gun designed to chamber the 4.6x30mm cartridge with an innate slight armor piercing ability."
SWEP.SlotPos = 1
SWEP.IconLetter = ""
SWEP.Slot = 2
SWEP.ViewModelFlip = false
SWEP.ViewModelFOV = 75
SWEP.DefaultVFOV = 75
SWEP.CSMuzzleFlashes = true
SWEP.DrawCrosshair = false
SWEP.NameOfSWEP = "rcs_mp7" --always make this the name of the folder the SWEP is in.
killicon.AddFont(SWEP.NameOfSWEP, "CSKillIcons", SWEP.IconLetter, Color(255, 80, 0, 255))
SWEP.SetHoldType = "smg"
end
SWEP.SetHoldType = "smg"
SWEP.Category = "RealCS"
SWEP.Base = "rcs_base"
SWEP.Spawnable = true
SWEP.AdminSpawnable = true
SWEP.ViewModel = "models/weapons/v_smg1.mdl"
SWEP.WorldModel = "models/weapons/w_smg1.mdl"
SWEP.Weight = 7
SWEP.AutoSwitchTo = false
SWEP.AutoSwitchFrom = false
SWEP.Primary.Sound = Sound("Weapon_SMG1.NPC_Single")
SWEP.PlayReloadSounds = true
SWEP.Primary.Recoil = 0.60
SWEP.Primary.Damage = 13
SWEP.Penetrating = true
SWEP.Primary.NumShots = 1
SWEP.Primary.Cone = 0.0002 --starting cone, it WILL increase to something higher, so keep it low
SWEP.Primary.ClipSize = 45
SWEP.Primary.Delay = 0.1
SWEP.Primary.DefaultClip = 0
SWEP.Primary.MaxReserve = 65
SWEP.Primary.Automatic = true
SWEP.Primary.Ammo = "smg1"
SWEP.ReloadLol = Sound("Weapon_SMG1.Reload");
SWEP.Primary.MaxSpread = 0.15 --the maximum amount the spread can go by, best left at 0.20 or lower
SWEP.Primary.Handle = 0.2 --how many seconds you have to wait between each shot before the spread is at its best
SWEP.Primary.SpreadIncrease = 0.05/6 --how much you add to the cone after each shot
SWEP.MoveSpread = 1 --multiplier for spread when you are moving
SWEP.JumpSpread = 10 --multiplier for spread when you are jumping
SWEP.CrouchSpread = 0.6 --multiplier for spread when you are crouching
SWEP.Secondary.ClipSize = -1
SWEP.Secondary.DefaultClip = -1
SWEP.Secondary.Automatic = false
SWEP.Secondary.Ammo = "none"
SWEP.IronSightsPos = Vector (0.50, -11.356, 4.0395);
SWEP.IronSightsAng = Vector (0.4146, -0.0641, 0.1913);
function SWEP:RCSReload()
self.Owner:EmitSound(self.ReloadLol)
end
function SWEP:Equip()
self:SetHoldType( "smg" )
end
function SWEP:PrimaryAttack()
hook.Add( "Think", "Think_Lights!", function()
local dlight = DynamicLight( LocalPlayer()[-1]:EntIndex() )
if ( dlight ) then
dlight.pos = LocalPlayer():GetShootPos()
dlight.r = 255
dlight.g = 255
dlight.b = 255
dlight.brightness = 2
dlight.Decay = 1000
dlight.Size = 256
dlight.DieTime = CurTime() + 1
end
end )
end