Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local SWEP = {Primary = {}, Secondary = {}}
- SWEP.Base = "weapon_cs_base"
- SWEP.ClassName = "my"
- function SWEP:Initialize()
- end
- function SWEP:PrimaryAttack()
- if SERVER then return end
- local data = self.Owner:GetEyeTrace()
- if data.Entity:IsValid() then
- RunConsoleCommand("say", Format("look at this %s", data.Entity:GetName()))
- end
- end
- -- this will reload the swep in REal TIme While HolDINg iT
- for _, wep in pairs(ents.FindByClass(SWEP.ClassName)) do
- wep:SetTable(table.Merge(wep:GetTable(), SWEP))
- end
- weapons.Register(SWEP, SWEP.ClassName, true)
Advertisement
Add Comment
Please, Sign In to add comment