[Gmod] Custom SWEPS for Mally, using M9K
This is the custom HK 416:
if SERVER then
AddCSLuaFile( "shared.lua" )
end
SWEP.Gun = ("custom_hk416")
SWEP.Category = "Soul's Guns"
SWEP.Author = "Mad Cow, modded by Bloodluss"
SWEP.Contact = "thenerdsinaction@gmail.com"
SWEP.Purpose = ""
SWEP.Instructions = "Point. Shoot. Watch them drop like flies."
SWEP.MuzzleAttachment = "1"
SWEP.ShellEjectAttachment = "2"
SWEP.PrintName = "HK 416"
SWEP.Slot = 2
SWEP.SlotPos = 19
SWEP.DrawAmmo = true
SWEP.DrawWeaponInfoBox = false
SWEP.BounceWeaponIcon = false
SWEP.DrawCrosshair = true
SWEP.Weight = 30
SWEP.AutoSwitchTo = true
SWEP.AutoSwitchFrom = false
SWEP.HoldType = "ar2"
-- normal, melee, melee2, fist, knife, smg, ar2, pistol, rpg, physgun, grenade, shotgun, crossbow, slam, passive.
-- using ar2, smg, shotgun or pistol. rpg and crossbow make for good sniper rifles
SWEP.ViewModelFOV = 70
SWEP.ViewModelFlip = false
SWEP.ViewModel = "models/weapons/v_hk416rif.mdl"
SWEP.WorldModel = "models/weapons/w_hk_416.mdl"
SWEP.Base = "bobs_gun_base"
SWEP.Spawnable = true
SWEP.AdminSpawnable = true
SWEP.FiresUnderwater = false
SWEP.Primary.Sound = Sound("weapons/ump45/ump45-1")
SWEP.Primary.RPM = 600
SWEP.Primary.ClipSize = 30
SWEP.Primary.DefaultClip = 9999
SWEP.Primary.KickUp = 0.4
SWEP.Primary.KickDown = 0.4
SWEP.Primary.KickHorizontal = 0.6
SWEP.Primary.Automatic = true
SWEP.Primary.Ammo = "ar2"
SWEP.Primary.Damage = 15
SWEP.Primary.NumShots = 1
SWEP.Secondary.IronFOV = 70
SWEP.data = {}
SWEP.data.ironsights = 1
SWEP.Primary.Spread = .04
SWEP.Primary.IronAccuracy = .01
SWEP.IronSightsPos = Vector(-2.892, -2.132, 0.5)
SWEP.IronSightsAng = Vector(-0.033, 0.07, 0)
SWEP.SightsPos = Vector(-2.892, -2.132, 0.5)
SWEP.SightsAng = Vector(-0.033, 0.07, 0)
SWEP.RunSightsPos = Vector(2.125, -0.866, 1.496)
SWEP.RunSightsAng = Vector(-18.08, 30.59, 0)
This is the AK 74 (also kind of a simple SWEP tutorial, shows what most stuff does):
if SERVER then
AddCSLuaFile( "shared.lua" )
end
SWEP.Gun = ("soul_ak74") -- Name of gun, used to spawn it in.
SWEP.Category = "Soul's Guns"
SWEP.Author = "bloodluss1445"
SWEP.Contact = "thenerdsinaction@gmail.com"
SWEP.Purpose = ""
SWEP.Instructions = "Point. Shoot. Watch them drop like flies."
SWEP.MuzzleAttachment = "1" -- Should be "1" for CSS models or "muzzle" for hl2 models
SWEP.ShellEjectAttachment = "2" -- Should be "2" for CSS models or "1" for hl2 models
SWEP.PrintName = "AK-74" -- Weapon name (Shown on HUD)
SWEP.Slot = 2 -- Slot in the weapon selection menu
SWEP.SlotPos = 19 -- Position in the slot
SWEP.DrawAmmo = true -- Should draw the default HL2 ammo counter
SWEP.DrawWeaponInfoBox = false -- Should draw the weapon info box
SWEP.BounceWeaponIcon = false -- Should the weapon icon bounce?
SWEP.DrawCrosshair = true -- set false if you want no crosshair
SWEP.Weight = 30 -- rank relative ot other weapons. bigger is better
SWEP.AutoSwitchTo = true -- Auto switch to if we pick it up
SWEP.AutoSwitchFrom = false -- Auto switch from if you pick up a better weapon
SWEP.HoldType = "ar2" -- how others view you carrying the weapon
-- 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.ViewModelFOV = 75
SWEP.ViewModelFlip = true
SWEP.ViewModel = "models/weapons/v_tct_ak47.mdl" -- Weapon view model, what you see.
SWEP.WorldModel = "models/weapons/w_tct_ak47.mdl" -- Weapon world model, what other people see.
SWEP.Base = "bobs_gun_base"
SWEP.Spawnable = true
SWEP.AdminSpawnable = true
SWEP.FiresUnderwater = false
SWEP.Primary.Sound = Sound("Tactic_AK47.Single") -- Script that calls the primary fire sound
SWEP.Primary.RPM = 700 -- This is in Rounds Per Minute
SWEP.Primary.ClipSize = 40 -- Size of a clip
SWEP.Primary.DefaultClip = 9999 -- Bullets you start with
SWEP.Primary.KickUp = 0.05 -- Maximum up recoil (rise)
SWEP.Primary.KickDown = 0.05 -- Maximum down recoil (skeet)
SWEP.Primary.KickHorizontal = 0.05 -- Maximum up recoil (stock)
SWEP.Primary.Automatic = true -- Automatic = true; Semi Auto = false
SWEP.Primary.Ammo = "smg1"
SWEP.Primary.NumShots = 1 -- How many bullets to shoot per trigger pull
SWEP.Primary.Damage = 15 -- pistol, 357, smg1, ar2, buckshot, slam, SniperPenetratedRound, AirboatGun
-- Pistol, buckshot, and slam always ricochet. Use AirboatGun for a light metal peircing shotgun pellets
SWEP.Secondary.IronFOV = 55 -- How much you 'zoom' in. Less is more!
SWEP.data = {} --The starting firemode
SWEP.data.ironsights = 1
-- Base damage per bullet
SWEP.Primary.Spread = .04 -- Define from-the-hip accuracy 1 is terrible, .0001 is exact)
SWEP.Primary.IronAccuracy = .02 -- Ironsight accuracy, should be the same for shotguns
-- Enter iron sight info and bone mod info below
SWEP.IronSightsPos = Vector (2.0378, -3.8941, 0.8809)
SWEP.IronSightsAng = Vector (0, 0, 0)
SWEP.SightsPos = Vector (2.0378, -3.8941, 0.8809)
SWEP.SightsAng = Vector (0, 0, 0)
SWEP.RunSightsPos = Vector (-2.3095, -3.0514, 2.3965)
SWEP.RunSightsAng = Vector (-19.8471, -33.9181, 10)
No comments:
Post a Comment