mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-29 21:33:02 +05:00
sort weapons and change names
This commit is contained in:
parent
d5ad410759
commit
54e2e82901
5 changed files with 47 additions and 40 deletions
|
@ -22,7 +22,7 @@ SWEP.Secondary.Ammo = "none"
|
||||||
|
|
||||||
SWEP.UseHands = true
|
SWEP.UseHands = true
|
||||||
|
|
||||||
SWEP.Spawnable = true
|
SWEP.Spawnable = false
|
||||||
SWEP.BobScale = 0
|
SWEP.BobScale = 0
|
||||||
SWEP.SwayScale = 0
|
SWEP.SwayScale = 0
|
||||||
SWEP.ViewModelFOV = 70
|
SWEP.ViewModelFOV = 70
|
||||||
|
@ -30,6 +30,7 @@ SWEP.ViewModelFOV = 70
|
||||||
SWEP.PrintName = "357"
|
SWEP.PrintName = "357"
|
||||||
SWEP.Author = "datae"
|
SWEP.Author = "datae"
|
||||||
SWEP.Instructions = ""
|
SWEP.Instructions = ""
|
||||||
|
SWEP.Category = "Beatrun"
|
||||||
|
|
||||||
SWEP.BulletData = {}
|
SWEP.BulletData = {}
|
||||||
SWEP.Damage = 150
|
SWEP.Damage = 150
|
||||||
|
|
|
@ -27,9 +27,10 @@ SWEP.BobScale = 0
|
||||||
SWEP.SwayScale = 0
|
SWEP.SwayScale = 0
|
||||||
SWEP.ViewModelFOV = 70
|
SWEP.ViewModelFOV = 70
|
||||||
|
|
||||||
SWEP.PrintName = "AE"
|
SWEP.PrintName = "Beatrun SMG?"
|
||||||
SWEP.Author = "datae"
|
SWEP.Author = "datae"
|
||||||
SWEP.Instructions = ""
|
SWEP.Instructions = ""
|
||||||
|
SWEP.Category = "Beatrun"
|
||||||
|
|
||||||
SWEP.BulletData = {}
|
SWEP.BulletData = {}
|
||||||
SWEP.Damage = 15
|
SWEP.Damage = 15
|
||||||
|
|
|
@ -22,14 +22,15 @@ SWEP.Secondary.DefaultClip = -1
|
||||||
SWEP.Secondary.Automatic = false
|
SWEP.Secondary.Automatic = false
|
||||||
SWEP.Secondary.Ammo = "none"
|
SWEP.Secondary.Ammo = "none"
|
||||||
|
|
||||||
SWEP.Spawnable = true
|
SWEP.Spawnable = false
|
||||||
SWEP.BobScale = 0
|
SWEP.BobScale = 0
|
||||||
SWEP.SwayScale = 0
|
SWEP.SwayScale = 0
|
||||||
SWEP.ViewModelFOV = 70
|
SWEP.ViewModelFOV = 70
|
||||||
|
|
||||||
SWEP.PrintName = "AE"
|
SWEP.PrintName = "idk"
|
||||||
SWEP.Author = "datae"
|
SWEP.Author = "datae"
|
||||||
SWEP.Instructions = ""
|
SWEP.Instructions = ""
|
||||||
|
SWEP.Category = "Beatrun"
|
||||||
|
|
||||||
SWEP.BulletData = {}
|
SWEP.BulletData = {}
|
||||||
SWEP.Damage = 15
|
SWEP.Damage = 15
|
||||||
|
|
|
@ -16,7 +16,7 @@ if CLIENT then
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
SWEP.Author = ""
|
SWEP.Author = "datae"
|
||||||
SWEP.Contact = ""
|
SWEP.Contact = ""
|
||||||
SWEP.Purpose = ""
|
SWEP.Purpose = ""
|
||||||
SWEP.Instructions = ""
|
SWEP.Instructions = ""
|
||||||
|
@ -28,9 +28,9 @@ SWEP.HoldType = "fist"
|
||||||
|
|
||||||
SWEP.Spawnable = true
|
SWEP.Spawnable = true
|
||||||
SWEP.AdminSpawnable = true
|
SWEP.AdminSpawnable = true
|
||||||
|
SWEP.Category = "Beatrun"
|
||||||
|
|
||||||
|
-- Just don't draw the hands, we don't need 'em
|
||||||
--[[Just don't draw the hands, we don't need 'em]]
|
|
||||||
SWEP.UseHands = false
|
SWEP.UseHands = false
|
||||||
|
|
||||||
SWEP.ViewModel = "models/runnerhands.mdl"
|
SWEP.ViewModel = "models/runnerhands.mdl"
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
SWEP.PrintName = "X"
|
SWEP.PrintName = "ShapeDrawer"
|
||||||
SWEP.Slot = 0
|
SWEP.Slot = 0
|
||||||
SWEP.SlotPos = 1
|
SWEP.SlotPos = 1
|
||||||
SWEP.DrawAmmo = false
|
SWEP.DrawAmmo = false
|
||||||
SWEP.DrawCrosshair = true
|
SWEP.DrawCrosshair = true
|
||||||
|
|
||||||
|
SWEP.Author = "datae"
|
||||||
SWEP.Author = ""
|
|
||||||
SWEP.Contact = ""
|
SWEP.Contact = ""
|
||||||
SWEP.Purpose = ""
|
SWEP.Purpose = ""
|
||||||
SWEP.Instructions = ""
|
SWEP.Instructions = ""
|
||||||
|
@ -24,7 +23,7 @@ SWEP.UseHands = true
|
||||||
SWEP.ViewModel = "models/weapons/c_pistol.mdl"
|
SWEP.ViewModel = "models/weapons/c_pistol.mdl"
|
||||||
SWEP.WorldModel = "models/weapons/w_crossbow.mdl"
|
SWEP.WorldModel = "models/weapons/w_crossbow.mdl"
|
||||||
|
|
||||||
SWEP.ViewModelFOV=75 --65 75
|
SWEP.ViewModelFOV = 75 --65 75
|
||||||
|
|
||||||
SWEP.Primary.ClipSize = -1
|
SWEP.Primary.ClipSize = -1
|
||||||
SWEP.Primary.DefaultClip = -1
|
SWEP.Primary.DefaultClip = -1
|
||||||
|
@ -41,8 +40,9 @@ end
|
||||||
|
|
||||||
function SWEP:Deploy()
|
function SWEP:Deploy()
|
||||||
self:CallOnClient("Deploy")
|
self:CallOnClient("Deploy")
|
||||||
self:SetHoldType( self.HoldType )
|
self:SetHoldType(self.HoldType)
|
||||||
self:SendWeaponAnim(ACT_VM_DRAW)
|
self:SendWeaponAnim(ACT_VM_DRAW)
|
||||||
|
|
||||||
self.points = {}
|
self.points = {}
|
||||||
self.center = Vector()
|
self.center = Vector()
|
||||||
end
|
end
|
||||||
|
@ -51,10 +51,8 @@ function SWEP:Initialize()
|
||||||
end
|
end
|
||||||
|
|
||||||
function SWEP:Think()
|
function SWEP:Think()
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function SWEP:Holster()
|
function SWEP:Holster()
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
@ -64,31 +62,37 @@ end
|
||||||
|
|
||||||
function SWEP:Reload()
|
function SWEP:Reload()
|
||||||
self:CallOnClient("Reload")
|
self:CallOnClient("Reload")
|
||||||
|
|
||||||
table.Empty(self.points)
|
table.Empty(self.points)
|
||||||
end
|
end
|
||||||
|
|
||||||
function SWEP:PrimaryAttack()
|
function SWEP:PrimaryAttack()
|
||||||
self:CallOnClient("PrimaryAttack")
|
self:CallOnClient("PrimaryAttack")
|
||||||
local ply = self.Owner
|
local ply = self.Owner
|
||||||
if !self.points[#self.points] or (ply:EyePos()+ply:EyeAngles():Forward()*50):Distance(self.points[#self.points]) > 5 then
|
|
||||||
table.insert(self.points, ply:EyePos()+ply:EyeAngles():Forward()*50)
|
if not self.points[#self.points] or (ply:EyePos() + ply:EyeAngles():Forward() * 50):Distance(self.points[#self.points]) > 5 then
|
||||||
|
table.insert(self.points, ply:EyePos() + ply:EyeAngles():Forward() * 50)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function SWEP:SecondaryAttack()
|
function SWEP:SecondaryAttack()
|
||||||
self:CallOnClient("SecondaryAttack")
|
self:CallOnClient("SecondaryAttack")
|
||||||
|
|
||||||
local ply = self.Owner
|
local ply = self.Owner
|
||||||
|
|
||||||
self.center:Set(ply:GetEyeTrace().HitPos)
|
self.center:Set(ply:GetEyeTrace().HitPos)
|
||||||
end
|
end
|
||||||
|
|
||||||
hook.Add("PostDrawTranslucentRenderables","ShapeGun",function()
|
hook.Add("PostDrawTranslucentRenderables", "ShapeGun", function()
|
||||||
local ply = Entity(1)
|
local ply = Entity(1)
|
||||||
local wep = ply:GetActiveWeapon() or nil
|
local wep = ply:GetActiveWeapon() or nil
|
||||||
if IsValid(wep) and wep:GetClass()=="shapedrawer" then
|
|
||||||
for k,v in ipairs(wep.points) do
|
if IsValid(wep) and wep:GetClass() == "shapedrawer" then
|
||||||
render.DrawWireframeBox(v,angle_zero,Vector(-1,-1,-1),Vector(1,1,1))
|
for k, v in ipairs(wep.points) do
|
||||||
|
render.DrawWireframeBox(v, angle_zero, Vector(-1, -1, -1), Vector(1, 1, 1))
|
||||||
end
|
end
|
||||||
render.DrawWireframeBox(wep.center,angle_zero,Vector(-2,-2,-2),Vector(2,2,2))
|
|
||||||
|
render.DrawWireframeBox(wep.center, angle_zero, Vector(-2, -2, -2), Vector(2, 2, 2))
|
||||||
end
|
end
|
||||||
end)
|
end)
|
Loading…
Reference in a new issue