[ZS] 'Python' Scoped Magnum



  • “A craftable scoped magnum that trades off the ricochet effect for sniper rounds.”

    Magnum + Stubber
    Holds 2 bullets and uses 357 ammo.
    Designed for a quick burst of damage from long range.


    AddCSLuaFile()
    
    if CLIENT then
    	SWEP.PrintName = "'Python' Scoped Magnum"
    	SWEP.Description = "A scoped magnum that trades off the ricochet effect for sniper rounds."
    	SWEP.Slot = 1
    	SWEP.SlotPos = 0
    
    	SWEP.ViewModelFlip = false
    	SWEP.ViewModelFOV = 60
    
    	SWEP.HUD3DBone = "Python"
    	SWEP.HUD3DPos = Vector(0.85, 0, -2.5)
    	SWEP.HUD3DScale = 0.015
    
    	   SWEP.ViewModelBoneMods = {
                ["Bullet4"] = { scale = Vector(0.009, 0.009, 0.009), pos = Vector(0, 0, 0), angle = Angle(0, 0, 0) },
                ["Bullet3"] = { scale = Vector(0.009, 0.009, 0.009), pos = Vector(0, 0, 0), angle = Angle(0, 0, 0) },
                ["Bullet6"] = { scale = Vector(0.009, 0.009, 0.009), pos = Vector(0, 0, 0), angle = Angle(0, 0, 0) },
                ["Bullet5"] = { scale = Vector(0.009, 0.009, 0.009), pos = Vector(0, 0, 0), angle = Angle(0, 0, 0) }
        }
    
        SWEP.VElements = {
                ["bullet3"] = { type = "Model", model = "models/props_c17/streetsign004e.mdl", bone = "Cylinder_release", rel = "", pos = Vector(0, -0.801, -3), angle = Angle(180, 180, 90), size = Vector(0.029, 0.029, 0.029), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {} },
                ["scope+"] = { type = "Model", model = "models/XQM/deg360.mdl", bone = "Python", rel = "scope", pos = Vector(-5.27, 0, 0), angle = Angle(-180, 180, 0), size = Vector(0.119, 0.029, 0.029), color = Color(220, 240, 200, 255), surpresslightning = false, material = "models/xqm/cellshadedcamo_diffuse", skin = 0, bodygroup = {} },
                ["bullet3++"] = { type = "Model", model = "models/props_c17/streetsign004e.mdl", bone = "Cylinder_release", rel = "", pos = Vector(-0.561, -1.8, -3), angle = Angle(180, 180, 90), size = Vector(0.029, 0.029, 0.029), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {} },
                ["scopeholder"] = { type = "Model", model = "models/props_c17/lampShade001a.mdl", bone = "ValveBiped.Bip01_L_Finger1", rel = "scope", pos = Vector(-1.601, 0, -1.25), angle = Angle(0, 90, 0), size = Vector(0.064, 0.059, 0.1), color = Color(255, 255, 255, 255), surpresslightning = false, material = "models/xqm/cellshadedcamo_diffuse", skin = 0, bodygroup = {} },
                ["mirror"] = { type = "Model", model = "models/props_phx/construct/metal_angle360.mdl", bone = "Cylinder", rel = "scope+", pos = Vector(-2.6, 0, 0), angle = Angle(90, 0, 0), size = Vector(0.016, 0.016, 0.016), color = Color(255, 255, 255, 255), surpresslightning = false, material = "debug/env_cubemap_model", skin = 0, bodygroup = {} },
                ["scopeholder+"] = { type = "Model", model = "models/props_c17/lampShade001a.mdl", bone = "ValveBiped.Bip01_L_Finger1", rel = "scope", pos = Vector(-4, 0, -0.7), angle = Angle(0, 90, 0), size = Vector(0.05, 0.059, 0.079), color = Color(255, 255, 255, 255), surpresslightning = false, material = "models/xqm/cellshadedcamo_diffuse", skin = 0, bodygroup = {} },
                ["cylinder"] = { type = "Model", model = "models/XQM/deg360single.mdl", bone = "Cylinder_release", rel = "", pos = Vector(0, -1.425, -0.5), angle = Angle(90, 120, 0), size = Vector(0.1, 0.041, 0.041), color = Color(255, 255, 255, 255), surpresslightning = false, material = "models/xqm/cellshadedcamo_diffuse", skin = 0, bodygroup = {} },
                ["cylinder++"] = { type = "Model", model = "models/XQM/deg360single.mdl", bone = "Bullet1", rel = "", pos = Vector(0, 0, 1.399), angle = Angle(90, -90, 0), size = Vector(0.059, 0.013, 0.013), color = Color(255, 255, 54, 255), surpresslightning = false, material = "models/xqm/2deg360_diffuse", skin = 0, bodygroup = {} },
                ["tube"] = { type = "Model", model = "models/XQM/cylinderx1huge.mdl", bone = "Python", rel = "", pos = Vector(0, -0.63, 6), angle = Angle(90, 120, 0), size = Vector(0.2, 0.025, 0.025), color = Color(255, 255, 255, 255), surpresslightning = false, material = "models/xqm/deg360", skin = 0, bodygroup = {} },
                ["bullet3+++"] = { type = "Model", model = "models/props_c17/streetsign004e.mdl", bone = "Cylinder_release", rel = "", pos = Vector(-0.561, -1.101, -3), angle = Angle(180, 180, 90), size = Vector(0.029, 0.029, 0.029), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {} },
                ["cylinder++++"] = { type = "Model", model = "models/XQM/deg360single.mdl", bone = "Bullet2", rel = "", pos = Vector(0, 0, 1.399), angle = Angle(90, -90, 0), size = Vector(0.059, 0.013, 0.013), color = Color(255, 255, 54, 255), surpresslightning = false, material = "models/xqm/2deg360_diffuse", skin = 0, bodygroup = {} },
                ["scope"] = { type = "Model", model = "models/XQM/deg360.mdl", bone = "Python", rel = "", pos = Vector(0, -2.6, 3.25), angle = Angle(90, -94.676, 0), size = Vector(0.119, 0.028, 0.028), color = Color(220, 240, 200, 255), surpresslightning = false, material = "models/xqm/cellshadedcamo_diffuse", skin = 0, bodygroup = {} },
                ["cylinder+"] = { type = "Model", model = "models/XQM/deg360single.mdl", bone = "Cylinder", rel = "scope", pos = Vector(-2.35, 0, 0), angle = Angle(0, 0, -125.066), size = Vector(0.019, 0.032, 0.032), color = Color(255, 255, 255, 255), surpresslightning = false, material = "models/xqm/deg360", skin = 0, bodygroup = {} },
                ["bullet3+"] = { type = "Model", model = "models/props_c17/streetsign004e.mdl", bone = "Cylinder_release", rel = "", pos = Vector(0.6, -1.101, -3), angle = Angle(180, 180, 90), size = Vector(0.029, 0.029, 0.029), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {} }
        }
    
        SWEP.WElements = {
                ["tube"] = { type = "Model", model = "models/XQM/cylinderx1huge.mdl", bone = "ValveBiped.Bip01_R_Hand", rel = "cylinder", pos = Vector(5, -0.201, -1), angle = Angle(-5, 1, 180), size = Vector(0.23, 0.025, 0.025), color = Color(255, 255, 255, 255), surpresslightning = false, material = "models/xqm/deg360", skin = 0, bodygroup = {} },
                ["scope++"] = { type = "Model", model = "models/props_phx/construct/metal_angle360.mdl", bone = "ValveBiped.Bip01_Head1", rel = "cylinder", pos = Vector(4.849, -0.101, -2.901), angle = Angle(90, 0, 0), size = Vector(0.013, 0.013, 0.013), color = Color(204, 255, 193, 255), surpresslightning = false, material = "debug/env_cubemap_model", skin = 0, bodygroup = {} },
                ["tube+"] = { type = "Model", model = "models/XQM/cylinderx1huge.mdl", bone = "ValveBiped.Bip01_R_Hand", rel = "tube", pos = Vector(5.099, 0, 0), angle = Angle(0, 0, 0), size = Vector(0.019, 0.021, 0.021), color = Color(0, 0, 0, 255), surpresslightning = false, material = "models/xqm/deg360", skin = 0, bodygroup = {} },
                ["scopeholder+"] = { type = "Model", model = "models/props_c17/lampShade001a.mdl", bone = "ValveBiped.Bip01_R_Hand", rel = "scope", pos = Vector(2, 0, 1), angle = Angle(0, 0, 0), size = Vector(0.1, 0.05, 0.1), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {} },
                ["scope+"] = { type = "Model", model = "models/props_phx/construct/metal_angle360.mdl", bone = "ValveBiped.Bip01_Head1", rel = "cylinder", pos = Vector(-4.801, 0.1, -2.26), angle = Angle(90, 0, 0), size = Vector(0.013, 0.013, 0.013), color = Color(204, 255, 193, 255), surpresslightning = false, material = "debug/env_cubemap_model", skin = 0, bodygroup = {} },
                ["cylinder"] = { type = "Model", model = "models/XQM/deg360single.mdl", bone = "ValveBiped.Bip01_R_Hand", rel = "", pos = Vector(7.9, 1, -3.701), angle = Angle(0, 0, 0), size = Vector(0.1, 0.05, 0.05), color = Color(255, 255, 255, 255), surpresslightning = false, material = "models/xqm/cellshadedcamo_diffuse", skin = 0, bodygroup = {} },
                ["scopeholder"] = { type = "Model", model = "models/props_c17/lampShade001a.mdl", bone = "ValveBiped.Bip01_R_Hand", rel = "scope", pos = Vector(-2, 0, 1), angle = Angle(0, 0, 0), size = Vector(0.1, 0.05, 0.1), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {} },
                ["scope"] = { type = "Model", model = "models/XQM/deg360.mdl", bone = "ValveBiped.Bip01_Head1", rel = "cylinder", pos = Vector(0, 0, -2.6), angle = Angle(-4, 1, 0), size = Vector(0.219, 0.025, 0.025), color = Color(204, 255, 193, 255), surpresslightning = false, material = "models/xqm/cellshadedcamo_diffuse", skin = 0, bodygroup = {} }
        }
    end
    
    SWEP.Base = "weapon_zs_base"
    
    SWEP.HoldType = "revolver"
    
    SWEP.ViewModel = "models/weapons/c_357.mdl"
    SWEP.WorldModel = "models/weapons/w_357.mdl"
    SWEP.UseHands = true
    
    SWEP.CSMuzzleFlashes = false
    
    SWEP.Primary.Sound = Sound("Weapon_357.Single")
    SWEP.Primary.Delay = 0.46
    SWEP.Primary.Damage = 64
    SWEP.Primary.NumShots = 1
    
    SWEP.Primary.ClipSize = 2
    SWEP.Primary.Automatic = false
    SWEP.Primary.Ammo = "357"
    SWEP.Primary.Gesture = ACT_HL2MP_GESTURE_RANGE_ATTACK_PISTOL
    GAMEMODE:SetupDefaultClip(SWEP.Primary)
    
    SWEP.ConeMax = 0.04
    SWEP.ConeMin = 0.0
    
    SWEP.IronSightsPos = Vector(5.015, -8, 2.52)
    SWEP.IronSightsAng = Vector(0, 0, 0)
    
    function SWEP:IsScoped()
    	return self:GetIronsights() and self.fIronTime and self.fIronTime + 0.25 <= CurTime()
    end
    
    function SWEP:EmitFireSound()
    	self:EmitSound(self.Primary.Sound, 85, 100)
    end
    
    if CLIENT then
    	SWEP.IronsightsMultiplier = 0.25
    
    	function SWEP:GetViewModelPosition(pos, ang)
    		if self:IsScoped() then
    			return pos + ang:Up() * 256, ang
    		end
    
    		return self.BaseClass.GetViewModelPosition(self, pos, ang)
    	end
    
    	local matScope = Material("zombiesurvival/scope")
    	function SWEP:DrawHUDBackground()
    		if self:IsScoped() then
    			local scrw, scrh = ScrW(), ScrH()
    			local size = math.min(scrw, scrh)
    			surface.SetMaterial(matScope)
    			surface.SetDrawColor(255, 255, 255, 255)
    			surface.DrawTexturedRect((scrw - size) * 0.5, (scrh - size) * 0.5, size, size)
    			surface.SetDrawColor(0, 0, 0, 255)
    			if scrw > size then
    				local extra = (scrw - size) * 0.5
    				surface.DrawRect(0, 0, extra, scrh)
    				surface.DrawRect(scrw - extra, 0, extra, scrh)
    			end
    			if scrh > size then
    				local extra = (scrh - size) * 0.5
    				surface.DrawRect(0, 0, scrw, extra)
    				surface.DrawRect(0, scrh - extra, scrw, extra)
    			end
    		end
    	end
    end
    
    
    	{
    		Name = "a scoped magnum",
    		callback = function(enta, entb)
    			return enta:IsWeaponType("weapon_zs_magnum") and entb:IsWeaponType("weapon_zs_stubber")
    		end,
    		Result = {"weapon_zs_python"}
    	}	
    


  • “A craftable scoped magnum that trades off the ricochet effect for sniper rounds.”

    Magnum + Stubber
    Holds 2 bullets and uses 357 ammo.
    Designed for a quick burst of damage from long range.


    AddCSLuaFile()
    
    if CLIENT then
    	SWEP.PrintName = "'Python' Scoped Magnum"
    	SWEP.Description = "A scoped magnum that trades off the ricochet effect for sniper rounds."
    	SWEP.Slot = 1
    	SWEP.SlotPos = 0
    
    	SWEP.ViewModelFlip = false
    	SWEP.ViewModelFOV = 60
    
    	SWEP.HUD3DBone = "Python"
    	SWEP.HUD3DPos = Vector(0.85, 0, -2.5)
    	SWEP.HUD3DScale = 0.015
    
    	   SWEP.ViewModelBoneMods = {
                ["Bullet4"] = { scale = Vector(0.009, 0.009, 0.009), pos = Vector(0, 0, 0), angle = Angle(0, 0, 0) },
                ["Bullet3"] = { scale = Vector(0.009, 0.009, 0.009), pos = Vector(0, 0, 0), angle = Angle(0, 0, 0) },
                ["Bullet6"] = { scale = Vector(0.009, 0.009, 0.009), pos = Vector(0, 0, 0), angle = Angle(0, 0, 0) },
                ["Bullet5"] = { scale = Vector(0.009, 0.009, 0.009), pos = Vector(0, 0, 0), angle = Angle(0, 0, 0) }
        }
    
        SWEP.VElements = {
                ["bullet3"] = { type = "Model", model = "models/props_c17/streetsign004e.mdl", bone = "Cylinder_release", rel = "", pos = Vector(0, -0.801, -3), angle = Angle(180, 180, 90), size = Vector(0.029, 0.029, 0.029), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {} },
                ["scope+"] = { type = "Model", model = "models/XQM/deg360.mdl", bone = "Python", rel = "scope", pos = Vector(-5.27, 0, 0), angle = Angle(-180, 180, 0), size = Vector(0.119, 0.029, 0.029), color = Color(220, 240, 200, 255), surpresslightning = false, material = "models/xqm/cellshadedcamo_diffuse", skin = 0, bodygroup = {} },
                ["bullet3++"] = { type = "Model", model = "models/props_c17/streetsign004e.mdl", bone = "Cylinder_release", rel = "", pos = Vector(-0.561, -1.8, -3), angle = Angle(180, 180, 90), size = Vector(0.029, 0.029, 0.029), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {} },
                ["scopeholder"] = { type = "Model", model = "models/props_c17/lampShade001a.mdl", bone = "ValveBiped.Bip01_L_Finger1", rel = "scope", pos = Vector(-1.601, 0, -1.25), angle = Angle(0, 90, 0), size = Vector(0.064, 0.059, 0.1), color = Color(255, 255, 255, 255), surpresslightning = false, material = "models/xqm/cellshadedcamo_diffuse", skin = 0, bodygroup = {} },
                ["mirror"] = { type = "Model", model = "models/props_phx/construct/metal_angle360.mdl", bone = "Cylinder", rel = "scope+", pos = Vector(-2.6, 0, 0), angle = Angle(90, 0, 0), size = Vector(0.016, 0.016, 0.016), color = Color(255, 255, 255, 255), surpresslightning = false, material = "debug/env_cubemap_model", skin = 0, bodygroup = {} },
                ["scopeholder+"] = { type = "Model", model = "models/props_c17/lampShade001a.mdl", bone = "ValveBiped.Bip01_L_Finger1", rel = "scope", pos = Vector(-4, 0, -0.7), angle = Angle(0, 90, 0), size = Vector(0.05, 0.059, 0.079), color = Color(255, 255, 255, 255), surpresslightning = false, material = "models/xqm/cellshadedcamo_diffuse", skin = 0, bodygroup = {} },
                ["cylinder"] = { type = "Model", model = "models/XQM/deg360single.mdl", bone = "Cylinder_release", rel = "", pos = Vector(0, -1.425, -0.5), angle = Angle(90, 120, 0), size = Vector(0.1, 0.041, 0.041), color = Color(255, 255, 255, 255), surpresslightning = false, material = "models/xqm/cellshadedcamo_diffuse", skin = 0, bodygroup = {} },
                ["cylinder++"] = { type = "Model", model = "models/XQM/deg360single.mdl", bone = "Bullet1", rel = "", pos = Vector(0, 0, 1.399), angle = Angle(90, -90, 0), size = Vector(0.059, 0.013, 0.013), color = Color(255, 255, 54, 255), surpresslightning = false, material = "models/xqm/2deg360_diffuse", skin = 0, bodygroup = {} },
                ["tube"] = { type = "Model", model = "models/XQM/cylinderx1huge.mdl", bone = "Python", rel = "", pos = Vector(0, -0.63, 6), angle = Angle(90, 120, 0), size = Vector(0.2, 0.025, 0.025), color = Color(255, 255, 255, 255), surpresslightning = false, material = "models/xqm/deg360", skin = 0, bodygroup = {} },
                ["bullet3+++"] = { type = "Model", model = "models/props_c17/streetsign004e.mdl", bone = "Cylinder_release", rel = "", pos = Vector(-0.561, -1.101, -3), angle = Angle(180, 180, 90), size = Vector(0.029, 0.029, 0.029), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {} },
                ["cylinder++++"] = { type = "Model", model = "models/XQM/deg360single.mdl", bone = "Bullet2", rel = "", pos = Vector(0, 0, 1.399), angle = Angle(90, -90, 0), size = Vector(0.059, 0.013, 0.013), color = Color(255, 255, 54, 255), surpresslightning = false, material = "models/xqm/2deg360_diffuse", skin = 0, bodygroup = {} },
                ["scope"] = { type = "Model", model = "models/XQM/deg360.mdl", bone = "Python", rel = "", pos = Vector(0, -2.6, 3.25), angle = Angle(90, -94.676, 0), size = Vector(0.119, 0.028, 0.028), color = Color(220, 240, 200, 255), surpresslightning = false, material = "models/xqm/cellshadedcamo_diffuse", skin = 0, bodygroup = {} },
                ["cylinder+"] = { type = "Model", model = "models/XQM/deg360single.mdl", bone = "Cylinder", rel = "scope", pos = Vector(-2.35, 0, 0), angle = Angle(0, 0, -125.066), size = Vector(0.019, 0.032, 0.032), color = Color(255, 255, 255, 255), surpresslightning = false, material = "models/xqm/deg360", skin = 0, bodygroup = {} },
                ["bullet3+"] = { type = "Model", model = "models/props_c17/streetsign004e.mdl", bone = "Cylinder_release", rel = "", pos = Vector(0.6, -1.101, -3), angle = Angle(180, 180, 90), size = Vector(0.029, 0.029, 0.029), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {} }
        }
    
        SWEP.WElements = {
                ["tube"] = { type = "Model", model = "models/XQM/cylinderx1huge.mdl", bone = "ValveBiped.Bip01_R_Hand", rel = "cylinder", pos = Vector(5, -0.201, -1), angle = Angle(-5, 1, 180), size = Vector(0.23, 0.025, 0.025), color = Color(255, 255, 255, 255), surpresslightning = false, material = "models/xqm/deg360", skin = 0, bodygroup = {} },
                ["scope++"] = { type = "Model", model = "models/props_phx/construct/metal_angle360.mdl", bone = "ValveBiped.Bip01_Head1", rel = "cylinder", pos = Vector(4.849, -0.101, -2.901), angle = Angle(90, 0, 0), size = Vector(0.013, 0.013, 0.013), color = Color(204, 255, 193, 255), surpresslightning = false, material = "debug/env_cubemap_model", skin = 0, bodygroup = {} },
                ["tube+"] = { type = "Model", model = "models/XQM/cylinderx1huge.mdl", bone = "ValveBiped.Bip01_R_Hand", rel = "tube", pos = Vector(5.099, 0, 0), angle = Angle(0, 0, 0), size = Vector(0.019, 0.021, 0.021), color = Color(0, 0, 0, 255), surpresslightning = false, material = "models/xqm/deg360", skin = 0, bodygroup = {} },
                ["scopeholder+"] = { type = "Model", model = "models/props_c17/lampShade001a.mdl", bone = "ValveBiped.Bip01_R_Hand", rel = "scope", pos = Vector(2, 0, 1), angle = Angle(0, 0, 0), size = Vector(0.1, 0.05, 0.1), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {} },
                ["scope+"] = { type = "Model", model = "models/props_phx/construct/metal_angle360.mdl", bone = "ValveBiped.Bip01_Head1", rel = "cylinder", pos = Vector(-4.801, 0.1, -2.26), angle = Angle(90, 0, 0), size = Vector(0.013, 0.013, 0.013), color = Color(204, 255, 193, 255), surpresslightning = false, material = "debug/env_cubemap_model", skin = 0, bodygroup = {} },
                ["cylinder"] = { type = "Model", model = "models/XQM/deg360single.mdl", bone = "ValveBiped.Bip01_R_Hand", rel = "", pos = Vector(7.9, 1, -3.701), angle = Angle(0, 0, 0), size = Vector(0.1, 0.05, 0.05), color = Color(255, 255, 255, 255), surpresslightning = false, material = "models/xqm/cellshadedcamo_diffuse", skin = 0, bodygroup = {} },
                ["scopeholder"] = { type = "Model", model = "models/props_c17/lampShade001a.mdl", bone = "ValveBiped.Bip01_R_Hand", rel = "scope", pos = Vector(-2, 0, 1), angle = Angle(0, 0, 0), size = Vector(0.1, 0.05, 0.1), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin = 0, bodygroup = {} },
                ["scope"] = { type = "Model", model = "models/XQM/deg360.mdl", bone = "ValveBiped.Bip01_Head1", rel = "cylinder", pos = Vector(0, 0, -2.6), angle = Angle(-4, 1, 0), size = Vector(0.219, 0.025, 0.025), color = Color(204, 255, 193, 255), surpresslightning = false, material = "models/xqm/cellshadedcamo_diffuse", skin = 0, bodygroup = {} }
        }
    end
    
    SWEP.Base = "weapon_zs_base"
    
    SWEP.HoldType = "revolver"
    
    SWEP.ViewModel = "models/weapons/c_357.mdl"
    SWEP.WorldModel = "models/weapons/w_357.mdl"
    SWEP.UseHands = true
    
    SWEP.CSMuzzleFlashes = false
    
    SWEP.Primary.Sound = Sound("Weapon_357.Single")
    SWEP.Primary.Delay = 0.46
    SWEP.Primary.Damage = 64
    SWEP.Primary.NumShots = 1
    
    SWEP.Primary.ClipSize = 2
    SWEP.Primary.Automatic = false
    SWEP.Primary.Ammo = "357"
    SWEP.Primary.Gesture = ACT_HL2MP_GESTURE_RANGE_ATTACK_PISTOL
    GAMEMODE:SetupDefaultClip(SWEP.Primary)
    
    SWEP.ConeMax = 0.04
    SWEP.ConeMin = 0.0
    
    SWEP.IronSightsPos = Vector(5.015, -8, 2.52)
    SWEP.IronSightsAng = Vector(0, 0, 0)
    
    function SWEP:IsScoped()
    	return self:GetIronsights() and self.fIronTime and self.fIronTime + 0.25 <= CurTime()
    end
    
    function SWEP:EmitFireSound()
    	self:EmitSound(self.Primary.Sound, 85, 100)
    end
    
    if CLIENT then
    	SWEP.IronsightsMultiplier = 0.25
    
    	function SWEP:GetViewModelPosition(pos, ang)
    		if self:IsScoped() then
    			return pos + ang:Up() * 256, ang
    		end
    
    		return self.BaseClass.GetViewModelPosition(self, pos, ang)
    	end
    
    	local matScope = Material("zombiesurvival/scope")
    	function SWEP:DrawHUDBackground()
    		if self:IsScoped() then
    			local scrw, scrh = ScrW(), ScrH()
    			local size = math.min(scrw, scrh)
    			surface.SetMaterial(matScope)
    			surface.SetDrawColor(255, 255, 255, 255)
    			surface.DrawTexturedRect((scrw - size) * 0.5, (scrh - size) * 0.5, size, size)
    			surface.SetDrawColor(0, 0, 0, 255)
    			if scrw > size then
    				local extra = (scrw - size) * 0.5
    				surface.DrawRect(0, 0, extra, scrh)
    				surface.DrawRect(scrw - extra, 0, extra, scrh)
    			end
    			if scrh > size then
    				local extra = (scrh - size) * 0.5
    				surface.DrawRect(0, 0, scrw, extra)
    				surface.DrawRect(0, scrh - extra, scrw, extra)
    			end
    		end
    	end
    end
    
    
    	{
    		Name = "a scoped magnum",
    		callback = function(enta, entb)
    			return enta:IsWeaponType("weapon_zs_magnum") and entb:IsWeaponType("weapon_zs_stubber")
    		end,
    		Result = {"weapon_zs_python"}
    	}	
    


  • You could work on the scope and make the barrel larger, maybe you could cut out the scope from the v_ model of the crossbow



  • Those current stats don’t really feel worthwhile to me. For what you craft it with, it just seems like a slightly more efficient stubber with a pretty shit clip size. I think I’d rather keep both the stubber and the magnum, you’re losing a very efficient Tier 2 pistol otherwise.



  • @Raox:

    Those current stats don’t really feel worthwhile to me. For what you craft it with, it just seems like a slightly more efficient stubber with a pretty shit clip size. I think I’d rather keep both the stubber and the magnum, you’re losing a very efficient Tier 2 pistol otherwise.

    I’d presume JetBoom would do his own stats for it.


Log in to reply
 

5
Online

10975
Users

15257
Topics

297326
Posts

Looks like your connection to NoXiousNet was lost, please wait while we try to reconnect.