This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
["children"] = { | |
[1] = { | |
["children"] = { | |
[1] = { | |
["children"] = { | |
}, | |
["self"] = { | |
["SecondsToArrive"] = 0, | |
["Follow"] = true, | |
["UniqueID"] = "2661325882", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
["children"] = { | |
[1] = { | |
["children"] = { | |
[1] = { | |
["children"] = { | |
[1] = { | |
["children"] = { | |
}, | |
["self"] = { | |
["ParentName"] = "event 2", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[false] = 2, | |
[true] = { | |
[1] = { | |
["str"] = '" | |
'\, | |
["text"] = "ha'ns", | |
["co | |
l or"] = 'bl"ue', | |
}, | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
["children"] = { | |
[1] = { | |
["children"] = { | |
[1] = { | |
["children"] = { | |
}, | |
["self"] = { | |
["ParentUID"] = "3790470555", | |
["UniqueID"] = "4182240537", | |
["Name"] = "", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
["children"] = { | |
[1] = { | |
["children"] = { | |
}, | |
["self"] = { | |
["ParentUID"] = "2898900871", | |
["UniqueID"] = "3375894473", | |
["Name"] = "bind i \"pac_event spray\"", | |
["Arguments"] = "spray@@0.1", | |
["ParentName"] = "group", |