All pastes #483164 Raw Edit

Someone

public lua v1 · immutable
·published 2007-05-11 16:17 UTC
rendered paste body
SWEP.Author			= "Demivion"SWEP.Contact		= ""SWEP.Purpose		= ""SWEP.Instructions	= "Left click to select an NPC, right click to move the NPC"SWEP.Spawnable			= trueSWEP.AdminSpawnable		= trueSWEP.ViewModel			= "models/weapons/v_pistol.mdl"SWEP.WorldModel			= "models/weapons/w_pistol.mdl"SWEP.Primary.ClipSize		= -1SWEP.Primary.DefaultClip	= -1SWEP.Primary.Automatic		= falseSWEP.Primary.Ammo			= "none"SWEP.Secondary.ClipSize		= -1SWEP.Secondary.DefaultClip	= -1SWEP.Secondary.Automatic	= falseSWEP.Secondary.Ammo			= "none"local Player = LocalPlayer()if (SERVER) then	AddCSLuaFile("shared.lua")	ConCommand.Add("selectnpc", selectnpc)	ConCommand.Add("movenpc", movenpc)endfunction SWEP:Reload()endfunction SWEP:Think()endfunction SWEP:PrimaryAttack()		Player.ConCommand("selectnpc\n")endfunction SWEP:SecondaryAttack()	Player.ConCommand("movenpc\n")	endfunction selectnpc() 	game.ConsoleCommand("npc_select\n") endfunction movenpc() 	game.ConsoleCommand("npc_go\n") end