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
LUA_FUNCTION( Vector_Serialize ) | |
{ | |
LUA->CheckType(1, GarrysMod::Lua::Type::Vector); | |
const Vector& vec = *LUA->GetUserType<Vector>(1, GarrysMod::Lua::Type::Vector); | |
const char* const separator = LUA->GetType(2) <= GarrysMod::Lua::Type::Nil | |
? LUA->CheckString(2) : " "; | |
LUA->PushFormattedString("%u%s%u%s%u", vec.x, separator, vec.y, separator, vec.z); | |
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
// Overengineered script to remove items from an RYM wishlist | |
const DomainLink = "rateyourmusic.com" // Base domain link | |
const WishlistLinkPath = "/collection/username/wishlist,ss.d"; // Link to the wishlist | |
const MinPageNum = 1; // inclusive, <1 == 1 | |
const MaxPageNum = 0; // inclusive, <1 == Max wishlist page | |
const MinRequestTime = 8000; // ms | |
const MaxRequestTime = 10000; |
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
--[=[ | |
// 2019-09-03 - 2:48:49 // | |
[1] Ghettotech/Juke/Footwork - 24:18 | |
1.Feelin - DJ Rashad feat. DJ Spinn & Taso - Double Cup - 4:31 | |
2.Feelin' - DJ Rashad - TEKLIFE Vol. 1: Welcome to the Chi - 4:02 | |
3.Move Da Booty - D.J. Funk - Booty House Anthems 2 - 0:28 | |
4.Have'n Sex ???? Hell Yea!!!!! - D.J. Funk - Booty House Anthems 2 - 1:15 | |
5.Footworkin on Air - Traxman - Da Mind of Traxman - 4:01 | |
6.Itz Crack - Traxman - Da Mind of Traxman - 3:02 |
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
-- gs_common by code_gs | |
-- Last updated 11/10/2018 | |
-- Goes in lua/gs_common.lua | |
-- gs_lib on the way, but for now, here's a common file to dump everything for misc scripts | |
AddCSLuaFile() | |
-- Localise globals to save on global lookups in type checking functions | |
-- Need to eek out as much performance as possible to have a minimal footprint on runtime |
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
/// Lua method declaration /// | |
// Placeholders, better methods probably already defined somewhere | |
bool CheckDefaultValue( int iStackPos, int iType ) | |
{ | |
int iRetType = g_Lua->GetType( iStackPos ); | |
if ( iRetType == iType ) | |
return true; | |