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 DEBUG = true | |
local DEBUG2 = true | |
local ENT = {} | |
ENT.ClassName = "monster_seagull" | |
ENT.Type = "anim" | |
ENT.Base = "base_anim" | |
ENT.Spawnable = true | |
ENT.AdminSpawnable = false |
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 discord = {} | |
local config = assert(file.Read("discordrelay_config.json"), "Discord config file not found...") | |
config = assert(util.JSONToTable(config), "Invalid Discord config!") | |
local endpoints = endpoints or {} | |
endpoints.base = "https://discordapp.com/api" | |
endpoints.channels = endpoints.base .. "/channels" | |
endpoints.guilds = endpoints.base .. "/guilds" | |
endpoints.users = endpoints.base .. "/users" |
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
var fs = new ActiveXObject("Scripting.FileSystemObject") | |
var shell = WScript.CreateObject("WScript.Shell") | |
var arch = (new ActiveXObject("shell.application")).GetSystemInformation("ProcessorArchitecture") == 9 ? "x64" : "x86" | |
var working_dir = fs.GetAbsolutePathName(".") | |
var script_dir = fs.GetParentFolderName(WScript.ScriptFullName) | |
var arg_line = "" | |
for (var i = 0; i < WScript.Arguments.Length; i++) | |
{ | |
arg_line += WScript.Arguments(i); |
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
var fs = new ActiveXObject("Scripting.FileSystemObject") | |
var shell = WScript.CreateObject("WScript.Shell") | |
var arch = (new ActiveXObject("shell.application")).GetSystemInformation("ProcessorArchitecture") == 9 ? "x64" : "x86" | |
var working_dir = fs.GetAbsolutePathName(".") | |
var script_dir = fs.GetParentFolderName(WScript.ScriptFullName) | |
var arg_line = "" | |
for (var i = 0; i < WScript.Arguments.Length; i++) | |
{ | |
arg_line += WScript.Arguments(i); |
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
var fs = new ActiveXObject("Scripting.FileSystemObject") | |
var shell = WScript.CreateObject("WScript.Shell") | |
var env = shell.Environment("PROCESS") | |
var ashell = new ActiveXObject("shell.application") | |
var arch | |
if (ashell.GetSystemInformation("ProcessorArchitecture") == 9) { | |
arch = "x64" | |
} else { | |
arch = "x86" |
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 mpg123 = system.GetFFIBuildLibrary("mpg123") | |
local ffi = require("ffi") | |
local INBUFF = 16384 | |
local OUTBUFF = 32768 | |
if not mpg123 then return end | |
local audio = ... or _G.audio |
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 ffi = require("ffi") | |
ffi.cdef([[typedef enum mpg123_flags{MPG123_CRC=1,MPG123_COPYRIGHT=2,MPG123_PRIVATE=4,MPG123_ORIGINAL=8}; | |
typedef enum mpg123_vbr{MPG123_CBR=0,MPG123_VBR=1,MPG123_ABR=2}; | |
typedef enum mpg123_errors{MPG123_DONE=-12,MPG123_NEW_FORMAT=-11,MPG123_NEED_MORE=-10,MPG123_ERR=-1,MPG123_OK=0,MPG123_BAD_OUTFORMAT=1,MPG123_BAD_CHANNEL=2,MPG123_BAD_RATE=3,MPG123_ERR_16TO8TABLE=4,MPG123_BAD_PARAM=5,MPG123_BAD_BUFFER=6,MPG123_OUT_OF_MEM=7,MPG123_NOT_INITIALIZED=8,MPG123_BAD_DECODER=9,MPG123_BAD_HANDLE=10,MPG123_NO_BUFFERS=11,MPG123_BAD_RVA=12,MPG123_NO_GAPLESS=13,MPG123_NO_SPACE=14,MPG123_BAD_TYPES=15,MPG123_BAD_BAND=16,MPG123_ERR_NULL=17,MPG123_ERR_READER=18,MPG123_NO_SEEK_FROM_END=19,MPG123_BAD_WHENCE=20,MPG123_NO_TIMEOUT=21,MPG123_BAD_FILE=22,MPG123_NO_SEEK=23,MPG123_NO_READER=24,MPG123_BAD_PARS=25,MPG123_BAD_INDEX_PAR=26,MPG123_OUT_OF_SYNC=27,MPG123_RESYNC_FAIL=28,MPG123_NO_8BIT=29,MPG123_BAD_ALIGN=30,MPG123_NULL_BUFFER=31,MPG123_NO_RELSEEK=32,MPG123_NULL_POINTER=33,MPG123_BAD_KEY=34,MPG123_NO |
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 mpg123 = system.GetFFIBuildLibrary("mpg123") | |
local ffi = require("ffi") | |
if not mpg123 then return end | |
local audio = ... or _G.audio | |
--audio.AddDecoder("mpg123", function(path, path_hint) | |
--local file = assert(vfs.Open(path)) | |
local file = assert(vfs.Open("sound/music/hl2_song28.mp3")) |
This file has been truncated, but you can view the full file.
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
mvm/melee_impacts/cbar_hitbod_robo01.wav - gamesound name | |
mvm weapon pipe hitflesh | |
mvm/melee_impacts/cbar_hitbod_robo02.wav - gamesound name | |
mvm weapon pipe hitflesh | |
mvm/melee_impacts/cbar_hitbod_robo03.wav - gamesound name | |
mvm weapon pipe hitflesh | |
mvm/melee_impacts/blade_slice_robo01.wav - gamesound name | |
mvm weapon sword hitflesh | |
mvm/melee_impacts/blade_slice_robo02.wav - gamesound name | |
mvm weapon sword hitflesh |
This file has been truncated, but you can view the full file.
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
translating 440.dat | |
mvm/melee_impacts/cbar_hitbod_robo01.wav | |
gamesound name | |
mvm weapon pipe hitflesh | |
mvm/melee_impacts/cbar_hitbod_robo02.wav | |
gamesound name | |
mvm weapon pipe hitflesh | |
mvm/melee_impacts/cbar_hitbod_robo03.wav | |
gamesound name | |
mvm weapon pipe hitflesh |