Skip to content

Instantly share code, notes, and snippets.

View CapsAdmin's full-sized avatar
🌜
Lua

Elias Hogstvedt CapsAdmin

🌜
Lua
View GitHub Profile
local META = FindMetaTable("Player")
local acuracy = 0.95
local min_distance = 30
function META:CanUseNPC()
return ply:EyePos():Distance(npc:EyePos()) < distance and ply:GetAimVector():DotProduct((npc:EyePos() - ply:EyePos()):Normalize() < acuracy)
end
function GAMEMODE:KeyPress()
local i = 0
local last
hook.Add("Think", 1, function()
local t = math.Round(i)
if t == 1 or t == 4 or t == 9 or t == 12 then
if not last then
local pitch = 10
for i=1, 2 do
WorldSound("doors/door_metal_medium_close1.wav", Entity(871):GetPos(), 100, pitch)
Hatsune Miku: IM NEVER COME IN YOUR SERVER
Hatsune Miku: AND YOU IGNORE ME ALL TIME YOU RUN AWAY!!!!!!
Hatsune Miku: I KNOW YOU HATE ME IM DONT HATE YOU YOU DONT WANT TO BE FRIEND ME
Hatsune Miku: you can ban me if you want caps ok?
oh: what is this
Hatsune Miku: what
oh: why are you suddenly upset
["children"] = {
[1] = {
["children"] = {
[1] = {
["children"] = {
},
["self"] = {
["SecondsToArrive"] = 0,
["Follow"] = true,
["UniqueID"] = "2661325882",
hook.Remove("PostDrawTranslucentRenderables", "DrawBoard")
function DrawBoard()
local ply = LocalPlayer()
local pos, ang = LocalToWorld(Vector(32,0,0), Angle(5,0,0), ply:EyePos(), ply:EyeAngles())
cam.Start3D2D(pos, ang, 0.1)
draw.RoundedBox(0,0,0,400,20,Color(0,0,10,200))
local tree = {}
TREE = tree
local function insert(sentence, path)
local words = sentence:Split(" ")
local current = tree
for k, v in pairs(words) do
current[v] = current[v] or {}
current = current[v]
end
["children"] = {
[1] = {
["children"] = {
[1] = {
["children"] = {
[1] = {
["children"] = {
},
["self"] = {
["ParentName"] = "event 2",
[false] = 2,
[true] = {
[1] = {
["str"] = '"
'\,
["text"] = "ha'ns",
["co
l or"] = 'bl"ue',
},
},
["children"] = {
[1] = {
["children"] = {
[1] = {
["children"] = {
},
["self"] = {
["ParentUID"] = "3790470555",
["UniqueID"] = "4182240537",
["Name"] = "",
["children"] = {
[1] = {
["children"] = {
},
["self"] = {
["ParentUID"] = "2898900871",
["UniqueID"] = "3375894473",
["Name"] = "bind i \"pac_event spray\"",
["Arguments"] = "spray@@0.1",
["ParentName"] = "group",