AddCSLuaFile( "shared.lua" ) SWEP.Author = "RedWolfTheGamer" SWEP.Contact = "Not Given" SWEP.Purpose = "Death To All" SWEP.Instructions = "Press (primary fire) to shoot." SWEP.ViewModelFOV = 62 SWEP.ViewModelFlip = false SWEP.ViewModel = "models/weapons/v_357.mdl" SWEP.WorldModel = "models/weapons/w_357.mdl" SWEP.AnimPrefix = "python" SWEP.PrintName = "Death Gun" SWEP.Slot = 3 SWEP.SlotPos = 1 SWEP.DrawAmmo = true SWEP.DrawCrosshair = true SWEP.Spawnable = false SWEP.AdminSpawnable = true SWEP.Primary.ClipSize = 6 // Size of a clip SWEP.Primary.DefaultClip = 64 // Default number of bullets in a clip SWEP.Primary.Automatic = false // Automatic/Semi Auto SWEP.Primary.Ammo = "357" /*--------------------------------------------------------- Initialize ---------------------------------------------------------*/ function SWEP:Initialize() end /*--------------------------------------------------------- Reload ---------------------------------------------------------*/ function SWEP:Reload() self:DefaultReload( ACT_VM_RELOAD ); end /*--------------------------------------------------------- Think does nothing ---------------------------------------------------------*/ function SWEP:Think() end /*--------------------------------------------------------- PrimaryAttack ---------------------------------------------------------*/ function SWEP:PrimaryAttack() // Make sure we can shoot first if ( !self:CanPrimaryAttack() ) then return end // Play shoot sound self:EmitSound("Weapon_357.Single") // Shoot 9 bullets, 150 damage, 0.01 aimcone self:ShootBullet( 10000, 1, 0.01 ) // Remove 1 bullet from our clip self:TakePrimaryAmmo( 1 ) // Punch the player's view self.Owner:ViewPunch( Angle( -3, 0, 0 ) ) end /*--------------------------------------------------------- SecondaryAttack ---------------------------------------------------------*/