Quantum is a Garry's Mod RPG framework.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
quantum/entities/weapons/quantum_tool/shared.lua

61 lines
1.3 KiB

5 years ago
-- __ _ _______ _ __
-- / / /\ | | |__ __| | | \ \
-- / / / \ | |_ __ ___ | | ___ ___| |__ \ \
-- < < / /\ \ | | '_ ` _ \| |/ _ \/ __| '_ \ > >
-- \ \ / ____ \| | | | | | | | __/ (__| | | | / /
-- \_\ /_/ \_\_|_| |_| |_|_|\___|\___|_| |_| /_/
5 years ago
5 years ago
AddCSLuaFile()
if CLIENT then
5 years ago
SWEP.PrintName = "Quantum Tool"
5 years ago
SWEP.Slot = 0
5 years ago
SWEP.SlotPos = 1
5 years ago
SWEP.DrawAmmo = false
SWEP.DrawCrosshair = false
end
5 years ago
SWEP.WorldModel = "models/weapons/w_crowbar.mdl"
SWEP.ViewModel = "models/weapons/c_crowbar.mdl"
5 years ago
SWEP.UseHands = true
5 years ago
SWEP.Weight = 4
5 years ago
SWEP.Primary.ClipSize = -1
5 years ago
SWEP.Primary.DefaultClip = -1
5 years ago
SWEP.Primary.Automatic = false
SWEP.Primary.Ammo = ""
SWEP.Secondary.ClipSize = -1
5 years ago
SWEP.Secondary.DefaultClip = -1
5 years ago
SWEP.Secondary.Automatic = false
SWEP.Secondary.Ammo = ""
function SWEP:Initialize()
5 years ago
self:SetHoldType( "melee" )
5 years ago
end
function SWEP:Deploy()
if( CLIENT || !IsValid(self:GetOwner()) ) then return true end
5 years ago
self:GetOwner():DrawWorldModel( self.WorldModel != "" && self.WorldModel != nil )
5 years ago
return true
end
function SWEP:Holster()
return true
end
function SWEP:PreDrawViewModel()
return true
end
function SWEP:PrimaryAttack()
5 years ago
return
5 years ago
end
function SWEP:SecondaryAttack()
5 years ago
return
5 years ago
end
function SWEP:Reload()
return false
end