parent
4d06c66bbe
commit
04ad7282f3
@ -0,0 +1,67 @@ |
||||
-- __ _ _______ _ __ |
||||
-- / / /\ | | |__ __| | | \ \ |
||||
-- / / / \ | |_ __ ___ | | ___ ___| |__ \ \ |
||||
-- < < / /\ \ | | '_ ` _ \| |/ _ \/ __| '_ \ > > |
||||
-- \ \ / ____ \| | | | | | | | __/ (__| | | | / / |
||||
-- \_\ /_/ \_\_|_| |_| |_|_|\___|\___|_| |_| /_/ |
||||
AddCSLuaFile() |
||||
|
||||
if CLIENT then |
||||
SWEP.PrintName = "Hands" |
||||
SWEP.Slot = 0 |
||||
SWEP.SlotPos = 0 |
||||
SWEP.DrawAmmo = false |
||||
SWEP.DrawCrosshair = false |
||||
end |
||||
|
||||
SWEP.WorldModel = "" |
||||
SWEP.UseHands = true |
||||
|
||||
SWEP.Primary.ClipSize = -1 |
||||
SWEP.Primary.DefaultClip = 0 |
||||
SWEP.Primary.Automatic = false |
||||
SWEP.Primary.Ammo = "" |
||||
SWEP.Primary.Delay = 0.25 |
||||
|
||||
SWEP.Secondary.ClipSize = -1 |
||||
SWEP.Secondary.DefaultClip = 0 |
||||
SWEP.Secondary.Automatic = false |
||||
SWEP.Secondary.Ammo = "" |
||||
SWEP.Secondary.Delay = 0.25 |
||||
|
||||
function SWEP:Initialize() |
||||
if CLIENT || !IsValid(self:GetOwner()) then return true end |
||||
self:SetHoldType( "normal" ) |
||||
end |
||||
|
||||
function SWEP:Deploy() |
||||
--self:GetOwner():DrawWorldModel( false ) |
||||
return true |
||||
end |
||||
|
||||
function SWEP:Holster() |
||||
return true |
||||
end |
||||
|
||||
function SWEP:PreDrawViewModel() |
||||
return true |
||||
end |
||||
|
||||
function SWEP:PrimaryAttack() |
||||
if SERVER then |
||||
local ent = self:GetOwner():GetEyeTraceNoCursor().Entity |
||||
if( IsValid( ent ) && ent:GetPos():Distance( self:GetOwner():GetPos() ) < 100 ) then |
||||
if ( ent:IsPlayerHolding() ) then return end |
||||
self:GetOwner():PickupObject( ent ) |
||||
end |
||||
end |
||||
return false |
||||
end |
||||
|
||||
function SWEP:SecondaryAttack() |
||||
return false |
||||
end |
||||
|
||||
function SWEP:Reload() |
||||
return false |
||||
end |
Loading…
Reference in new issue