Skip to content

Instantly share code, notes, and snippets.

View CapsAdmin's full-sized avatar
🌜
Lua

Elias Hogstvedt CapsAdmin

🌜
Lua
View GitHub Profile
https://beta.unity3d.com/download/db9a69dc5569/public_download.html
because the website doesn't always load
--[[object:GetParent()
object:GetTransform() -- find nearest transform in parents
uid
networking
transform can have a box which is meters in 3d and pixels in 2d
transform
physics
collision model
This file has been truncated, but you can view the full file.
package.preload.luajit = function(...) local ffi = require("ffi")
ffi.cdef([[struct lua_State {};
struct lua_Debug {int event;const char*name;const char*namewhat;const char*what;const char*source;int currentline;int nups;int linedefined;int lastlinedefined;char short_src[60];int i_ci;};
struct luaL_Reg {const char*name;int(*func)(struct lua_State*);};
struct luaL_Buffer {char*p;int lvl;struct lua_State*L;};
void(luaL_buffinit)(struct lua_State*,struct luaL_Buffer*);
void(lua_setfield)(struct lua_State*,int,const char*);
double(luaL_optnumber)(struct lua_State*,int,double);
void(lua_xmove)(struct lua_State*,struct lua_State*,int);
void(luaL_pushresult)(struct luaL_Buffer*);
This file has been truncated, but you can view the full file.
package.preload.luajit = function(...) local ffi = require("ffi")
ffi.cdef([[struct lua_State {};
struct lua_Debug {int event;const char*name;const char*namewhat;const char*what;const char*source;int currentline;int nups;int linedefined;int lastlinedefined;char short_src[60];int i_ci;};
struct luaL_Reg {const char*name;int(*func)(struct lua_State*);};
struct luaL_Buffer {char*p;int lvl;struct lua_State*L;};
void(luaL_buffinit)(struct lua_State*,struct luaL_Buffer*);
void(lua_setfield)(struct lua_State*,int,const char*);
double(luaL_optnumber)(struct lua_State*,int,double);
void(lua_xmove)(struct lua_State*,struct lua_State*,int);
void(luaL_pushresult)(struct luaL_Buffer*);
local OS = jit and jit.os:lower() or "unknown"
local ARCH = jit and jit.arch:lower() or "unknown"
local start_time = os.clock()
if not os.getenv("GOLUWA_CLI") then
if os.getenv("GOLUWA_CLI_TIME") then
io.write("[runfile] ", os.getenv("GOLUWA_CLI_TIME"), " seconds spent in ./goluwa", OS == "windows" and ".cmd" or "", "\n")
end
let a = [500,
248,
248,
248,
500,
248,
500,
248,
248,
248,
local global_can_play = true
local _wowozela_volume = CLIENT and CreateClientConVar("wowozela_volume","0.5",true,false)
local wowozela_volume = 0.5
wowozela = {}
local wowozela = wowozela
wowozela.thinkers = {}
local thinkers = wowozela.thinkers
local DEBUG = GetConVarNumber("developer") > 0
local DEBUG2 = true
do
local MOVED = {}
local MOVE_REF = {}
local function net_write(ent, vec, ang)
net.WriteEntity(ent)
local SWEP = weapons.Get("gmod_tool")
local TOOL = getmetatable(SWEP.Tool.weld):Create()
TOOL.Mode = "test"
do
-- Remove this to add it to the menu
TOOL.AddToMenu = true
-- Define these!
TOOL.Category = "My Category" -- Name of the category
local DEBUG = true
local DEBUG2 = true
local ENT = {}
local MOVED = {}
ENT.ClassName = "monster_seagull"
ENT.Type = "anim"
ENT.Base = "base_anim"
ENT.Spawnable = true