This file contains hidden or 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 ENTITY = FindMetaTable("Entity") | |
local CSENTITY = FindMetaTable("CSEnt") | |
local PLAYER = FindMetaTable("Player") | |
local WEAPON = FindMetaTable("Weapon") | |
function ENTITY:__tostring() | |
if not IsValid(self) then | |
return "Entity [Invalid]" | |
end |
This file contains hidden or 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
#pragma once | |
#include <string> | |
#include <xstring> | |
#include <codecvt> | |
#include <locale> | |
#define FOREIGN_OPERATOR(TA, TB) \ | |
TA& operator += (TB B) \ | |
{ \ |
This file contains hidden or 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
ErrorVar = ErrorVar or {} | |
require("debug") -- https://github.com/bjurd/gm_debug | |
local _R = debug.getregistry() | |
ErrorVar.OriginalErrorHandler = ErrorVar.OriginalErrorHandler or _R[1] | |
function ErrorVar.ErrorHandler(...) | |
local Level = 1 |