Skip to content

Instantly share code, notes, and snippets.

View magicoal-nerb's full-sized avatar
💭
leelee,e

magical_noob magicoal-nerb

💭
leelee,e
View GitHub Profile
@magicoal-nerb
magicoal-nerb / quakec-bhop-rbx.lua
Last active April 17, 2025 22:50
really simple quake movement in roblx
-- poopbarrel/magical_noob
-- @submodule quakec
-- @description another quake movement reimplementation ig
-- Physics
local XZ = Vector3.new(1.0, 0.0, 1.0);
local CAPSULE_FLOOR_ANGLE = 0.7;
-- Convars
local PL_HITBOX_SIZE = Vector3.new(4, 6, 4);
local function pprintHelper(buff, value, depth, mem)
-- >_>
local t = type(value);
if(t == "string")then
-- String
table.insert(buff, '"');
table.insert(buff, value);
return table.insert(buff, '"');
elseif(t == "number")then
-- Number
-- Average stack based JSON parser i guess
local LEX_CLASSIFIER = {
8, 8, 8, 8, 8, 8, 8, 8, 8, 40, 40, 40, 40, 40, 8, 8, 8,
8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 160, 16, 16, 16,
16, 16, 16, 16, 16, 16, 16, 16, 16, 66, 16, 16, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 16, 16, 16, 16, 16, 16, 16, 65, 65, 65, 65, 65,
65, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 16, 16, 16, 16, 16, 16, 66, 66, 66, 66, 66, 66, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 16, 16, 16, 16,
8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
local API_DUMP_URL = "https://raw.githubusercontent.com/MaximumADHD/Roblox-Client-Tracker/roblox/API-Dump.txt";
local HttpService = game:GetService("HttpService");
local Reflection = {};
Reflection.__index = Reflection;
local function reflQuery(name)
return function(self, className)
local root = className;
local output = {};
--[[
This mesher only handles 16x16x16 chunks!
Uses a more optimal approach towards creating
chunks. Checks plane intersections of the chunk
for greedy meshing.
This type of plane-intersection greedy meshing is
useful for fixing certain problems w/ voxel based
greedy meshing, where transparent objects may be
see through.
@magicoal-nerb
magicoal-nerb / marceloOctree.js
Last active June 18, 2023 03:03
marcelo codget octree [ the best one]
var octantVecs = [
[-1, -1, -1],
[-1, -1, 1],
[-1, 1, -1],
[-1, 1, 1],
[1, -1, -1],
[1, -1, 1],
[1, 1, -1],
[1, 1, 1]
];
@magicoal-nerb
magicoal-nerb / pool.lua
Last active May 20, 2023 20:00
codget lua pool
local RunService = game:GetService("RunService");
local Effects = Instance.new("Folder");
Effects.Name = "Effects";
Effects.Parent = workspace;
--[[
this is ap ool
assumes that everything inserted
has the same lifetime
if not then ur gonna make ap riority queue LOL[tweaker shit cuh]!