2014-10-02 08:49:54 +08:00
|
|
|
AddCSLuaFile()
|
|
|
|
|
2018-05-02 06:32:59 +08:00
|
|
|
SWEP.PrintName = "'Waraxe' Handgun"
|
|
|
|
SWEP.Slot = 1
|
|
|
|
SWEP.SlotPos = 0
|
2014-10-02 08:49:54 +08:00
|
|
|
|
|
|
|
if CLIENT then
|
2018-05-02 06:32:59 +08:00
|
|
|
SWEP.ViewModelFOV = 50
|
|
|
|
SWEP.ViewModelFlip = false
|
|
|
|
|
|
|
|
SWEP.HUD3DBone = "v_weapon.Glock_Slide"
|
|
|
|
SWEP.HUD3DPos = Vector(-1.55, 0.25, 0.1)
|
|
|
|
SWEP.HUD3DAng = Angle(90, 0, 0)
|
2014-10-02 08:49:54 +08:00
|
|
|
|
|
|
|
SWEP.VElements = {
|
2018-05-02 06:32:59 +08:00
|
|
|
["barrel"] = { type = "Model", model = "models/props_phx/wheels/drugster_front.mdl", bone = "ValveBiped.Bip01_Spine4", rel = "base", pos = Vector(0, 0, -4.448), angle = Angle(180, 0, 0), size = Vector(0.019, 0.019, 0.025), color = Color(255, 255, 255, 255), surpresslightning = false, material = "models/props_combine/metal_combinebridge001", skin = 0, bodygroup = {} },
|
|
|
|
["base"] = { type = "Model", model = "models/props_trainstation/pole_448Connection002b.mdl", bone = "v_weapon.Glock_Slide", rel = "", pos = Vector(3.292, 0.305, -0.005), angle = Angle(13.053, -90.301, 89.9), size = Vector(0.085, 0.045, 0.02), color = Color(255, 255, 255, 255), surpresslightning = false, material = "models/props_combine/metal_combinebridge001", skin = 0, bodygroup = {} },
|
|
|
|
["sides"] = { type = "Model", model = "models/props_trainstation/Column_Arch001a.mdl", bone = "ValveBiped.Bip01_Spine4", rel = "base", pos = Vector(-0.06, 0, -0.08), angle = Angle(0, 0, 0), size = Vector(0.119, 0.013, 0.09), color = Color(255, 255, 255, 255), surpresslightning = false, material = "models/props_combine/metal_combinebridge001", skin = 0, bodygroup = {} }
|
2014-10-02 08:49:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
SWEP.WElements = {
|
2018-05-02 06:32:59 +08:00
|
|
|
["barrel"] = { type = "Model", model = "models/props_phx/wheels/drugster_front.mdl", bone = "ValveBiped.Bip01_R_Hand", rel = "base", pos = Vector(0, 0, -4.448), angle = Angle(180, 0, 0), size = Vector(0.019, 0.019, 0.025), color = Color(255, 255, 255, 255), surpresslightning = false, material = "models/props_combine/metal_combinebridge001", skin = 0, bodygroup = {} },
|
|
|
|
["base"] = { type = "Model", model = "models/props_trainstation/pole_448Connection002b.mdl", bone = "ValveBiped.Bip01_R_Hand", rel = "", pos = Vector(6, 1.71, -3.711), angle = Angle(87.421, -5.053, 0), size = Vector(0.085, 0.045, 0.02), color = Color(255, 255, 255, 255), surpresslightning = false, material = "models/props_combine/metal_combinebridge001", skin = 0, bodygroup = {} },
|
|
|
|
["sides"] = { type = "Model", model = "models/props_trainstation/Column_Arch001a.mdl", bone = "ValveBiped.Bip01_R_Hand", rel = "base", pos = Vector(-0.06, 0, -0.072), angle = Angle(0, 0, 0), size = Vector(0.119, 0.013, 0.09), color = Color(255, 255, 255, 255), surpresslightning = false, material = "models/props_combine/metal_combinebridge001", skin = 0, bodygroup = {} }
|
2014-10-02 08:49:54 +08:00
|
|
|
}
|
|
|
|
end
|
|
|
|
|
2018-05-02 06:32:59 +08:00
|
|
|
SWEP.Base = "weapon_zs_base"
|
|
|
|
|
|
|
|
SWEP.HoldType = "pistol"
|
|
|
|
|
|
|
|
SWEP.ViewModel = "models/weapons/cstrike/c_pist_glock18.mdl"
|
|
|
|
SWEP.WorldModel = "models/weapons/w_pist_glock18.mdl"
|
|
|
|
SWEP.UseHands = true
|
|
|
|
|
2014-11-07 13:03:40 +08:00
|
|
|
SWEP.Primary.Damage = 14
|
2018-05-02 06:32:59 +08:00
|
|
|
SWEP.Primary.NumShots = 3
|
|
|
|
SWEP.Primary.Delay = 0.3
|
2014-10-02 08:49:54 +08:00
|
|
|
|
2018-05-02 06:32:59 +08:00
|
|
|
SWEP.Primary.ClipSize = 9
|
2014-10-02 08:49:54 +08:00
|
|
|
SWEP.Primary.Automatic = false
|
|
|
|
SWEP.Primary.Ammo = "pistol"
|
2018-05-02 06:32:59 +08:00
|
|
|
SWEP.Primary.Sound = ")weapons/usp/usp_unsil-1.wav"
|
2014-10-02 08:49:54 +08:00
|
|
|
GAMEMODE:SetupDefaultClip(SWEP.Primary)
|
|
|
|
|
2018-05-02 06:32:59 +08:00
|
|
|
SWEP.ConeMax = 2.75
|
|
|
|
SWEP.ConeMin = 1.2
|
|
|
|
SWEP.HeadshotMulti = 2
|
|
|
|
|
|
|
|
SWEP.Tier = 2
|
|
|
|
|
|
|
|
SWEP.IronSightsPos = Vector(-5.75, 10, 2.7)
|
|
|
|
|
|
|
|
GAMEMODE:AttachWeaponModifier(SWEP, WEAPON_MODIFIER_CLIP_SIZE, 1, 1)
|
|
|
|
GAMEMODE:AttachWeaponModifier(SWEP, WEAPON_MODIFIER_HEADSHOT_MULTI, 0.07)
|
|
|
|
GAMEMODE:AddNewRemantleBranch(SWEP, 1, "'Halberd' Handgun", "Deals extra damage to zombies with full health, but less overall damage", function(wept)
|
|
|
|
wept.Primary.Damage = wept.Primary.Damage * 0.85
|
|
|
|
|
|
|
|
wept.BulletCallback = function(attacker, tr, dmginfo)
|
|
|
|
if SERVER then
|
|
|
|
local hitent = tr.Entity
|
|
|
|
if hitent:IsValidLivingZombie() and hitent:Health() == hitent:GetMaxHealthEx() and gamemode.Call("PlayerShouldTakeDamage", hitent, attacker) then
|
|
|
|
hitent:TakeSpecialDamage(hitent:Health() * 0.1, DMG_DIRECT, attacker, attacker:GetActiveWeapon(), tr.HitPos)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end)
|
2014-11-07 13:03:40 +08:00
|
|
|
|
2014-10-02 08:49:54 +08:00
|
|
|
function SWEP:EmitFireSound()
|
2018-05-02 06:32:59 +08:00
|
|
|
self:EmitSound(self.Primary.Sound, 80, math.random(78, 82))
|
2014-10-02 08:49:54 +08:00
|
|
|
end
|