content
stringlengths
5
1.05M
function love.conf(t) if love._version_minor <= 9 then --error("This game is designed for Love2D 0.10.0 and up, you are running:"..love._version_major.."."..love._version_minor.."."..love._version_revision) end t.identity = "super_shooter" -- The name of the save directory (string) ...
druidTauntEnabled = true maulActionSlot = 13 enrageActionSlot = 14 lastFeralFaerieFire = 0; function druid_bear_skull() if azs.targetSkull() then druidBearAttack() else stop_autoattack() end end function druid_bear_cross() if azs.targetCross() then druidBearAttack() else stop_autoattack() end end func...
local skynet = require "skynet" require "skynet.manager" local utils = require "utils" local protobuf = require "protobuf" local pb_files = { "../common/proto/login.pb", "../common/proto/game.pb", "../common/proto/HotfixMessage.pb", } local function init() for _,v in ipairs(pb_files) do ...
FAdmin.ScoreBoard.Server.Information = {} -- Compatibility for autoreload FAdmin.ScoreBoard.Server.ActionButtons = {} -- Refresh server buttons when reloading gamemode local function MakeServerOptions() local XPos, YPos, Width = 20, FAdmin.ScoreBoard.Y + 120 + FAdmin.ScoreBoard.Height / 5 + 20, (FAdmin.ScoreBoard....
local shellsort = Deps("third_party/shellsort") local function main() local t = {3, 2, 1} shellsort(t) for _, n in pairs(t) do print(n) end end return main
--region *.lua --Date --此文件由[BabeLua]插件自动生成 game.CAssetTreeState = { ['1'] = { ['name'] = "荒地", ['need_item_id'] = 1 }, ['2'] = { ['name'] = "沃土", ['need_item_id'] = 2 }, ['3'] = { ['name'] = "绿芽", ['need_item_id'] = 3 }, ['4'] = { ['n...
require("modules/events/events") require("modules/bosses/bosses") require("modules/custom_abilities/custom_abilities") require("modules/custom_runes/custom_runes") require("modules/custom_talents/custom_talents") require("modules/duel/duel") require("modules/dynamic_minimap/dynamic_minimap") require("modules/dynamic_we...
--[[A bunch of accessors to set global settings ]] local love = love -- luacheck: ignore local lib = _3DreamEngine -- luacheck: ignore local max, min, ceil, clamp = math.max, math.min, math.ceil, math.clamp -- luacheck: ignore local mat4 = mat4 -- luacheck: ignore local vec3 = vec3 -- luacheck: ignore loca...
local module = { authenticationRequired = true; }; function module.run(authentication,groupId,description) local endpoint = "https://groups.roblox.com/v1/groups/"..groupId.."/description"; local response,body = api.request("PATCH",endpoint,{},{description = description or "N/A"},authentication,true,true); return r...
local renderTemplate = require('render-template') local loadContent = require('load-content') return function (req, res, go) local data = loadContent("pages", req.params.name) if not data then return go() end return renderTemplate(res, "page", data); end
-- -- Testmodule callback functions -- -- To avoid function name collisions, you should use local functions and export them with a unique package name. -- local MenuIDs = { MENU_ID_CLIENT_1 = 1, MENU_ID_CLIENT_2 = 2, MENU_ID_CHANNEL_1 = 3, MENU_ID_CHANNEL_2 = 4, MENU_ID_CHANNEL_3 = 5, MENU_ID_GLOBAL_1 = 6, M...
function HSVtoRGB(Hue, Sat, Val) local h = Hue * 6 local chroma = Val * Sat local mid = chroma * (1 - math.abs(h % 2 - 1)) local Match = Val - chroma --[[for Debug SKIN:Bang('!Log', "h = " .. h, 'Debug') SKIN:Bang('!Log', "Chroma = " .. chroma, 'Debug') SKIN:Bang('!Log', "mid = " .. mid, 'Debug') SKIN:Bang('!Lo...
local ROAM = 1 local AMBUSH = 2 local GOTO_COVER = 3 local ATTACK = 4 local function custom_hq_goto(self, prty, tpos) -- Improved hq_goto local func = function(funcself) if mobkit.is_queue_empty_low(funcself) and funcself.isonground then local pos = self.object:get_pos() local nextpos = pathfinder.find(pos, t...
--SummonSet --summon/Yuzuru_Skill_2--Yuzuru_Skill_2 return { prefab = "Common_Summon (UnityEngine.GameObject)", path = "Model/Summon/Common_Summon", luaPath = "summon/Yuzuru_Skill_2", controller = "Summon_Controller", action = "Yuzuru_Skill_2", skillId = 40100522, lifeTime = Fixed64(3145728) --[[3]], targetFir...
workspace "Tutorial" -- 解决方案 startproject "Tutorial" -- 开始项目 configurations { "Debug", "Release" } platforms { "Win32", "Win64" } filter "platforms:Win32" system "Windows" architecture "x32" filter "platforms:Win64" system "...
-- This is a part of uJIT's testing suite. -- Copyright (C) 2020-2022 LuaVela Authors. See Copyright Notice in COPYRIGHT -- Copyright (C) 2015-2020 IPONWEB Ltd. See Copyright Notice in COPYRIGHT local tables = { { -- empty table t = {}, keys_as_values = {}, values_as_values = {}, }, { -- array with zero index...
--[[ -- Level loader for "B.F. Skinner, Pigeon Fodder" -- Sat 30 Jan 05:25:33 GMT 2016 --This details the level map format A map is a simple ASCII grid, layed out as follows git stash ^------------- | | | S | B |P -------------- For each square on the grid in the map, The given ASCII c...
if PHX then return end -- Initialize shared variable PHX = {} PHX.__index = PHX PHX.ConfigPath = "phx_data" PHX.VERSION = "X" PHX.REVISION = "16.09.21/X2Z" --Format: dd/mm/yy. -- Init Convars first! AddCSLuaFile("sh_convar.lua") include("sh_convar.lua") function PHX.VerboseMsg( text ) -- Very stupid checks: PHX:...
local Path = "/GameData/" .. GetPath() for k,v in pairs(Cache) do if ComparePaths(k, Path, true, true) then Output(v) return end end if not PreLoad then local Original = ReadFile(Path) if ModifierType == 1 then Original = BrightenModel(Original, Modifier, false) elseif ModifierType == 2 then ...
return { ["Init"] = function(baseClass, prereqs) -- [[ Constants ]] -- local Table = prereqs["Table"] local logFormat = "%s priority | %s | RDM - %s | %s" local errorFormat = "%s : Expected - %s : Got - %s" -- [[ Class ]] -- return baseClass:Extend( { -- [[ Low Level Logs ]] -- ["LowLog"] = ...
fx_version "cerulean" games {"gta5"} server_scripts { "dist/server.js" } client_scripts { "dist/client.js" }
--- GENERATED CODE - DO NOT MODIFY -- AWS Identity and Access Management (iam-2010-05-08) local M = {} M.metadata = { api_version = "2010-05-08", json_version = "", protocol = "query", checksum_format = "", endpoint_prefix = "iam", service_abbreviation = "IAM", service_full_name = "AWS Identity and Access Mana...
slot1 = class("EffectAddBuffer", import(".Effect")) slot1.ctor = function (slot0) slot0.super.ctor(slot0) slot0:SetEffectType(DNTG_EffectType.ETP_ADDBUFFER) slot0.m_nParamCount = 5 end slot1.Execute = function (slot0, slot1, slot2, slot3, slot4) if slot1 == nil or slot4 then return 0, slot3 end slot6 = slot...
local Entity = BaseClass() ECS.Entity = Entity ECS.Entity.Name = "ECS.Entity" ECS.Entity.Size = nil --Init In CoreHelper function Entity:Constructor( ) self.Index = 0 self.Version = 0 end return Entity
local colors = require 'src/common/colors' local drawUtils = require 'src/common/drawUtils' local Talkies = require 'libs/talkies' local scene = {} local music function scene.load(messages, musicAsset) for _, v in pairs(messages) do Talkies.say( v.message, v.config ) end music = musicAsse...
return Def.ActorFrame{ Def.Quad{ InitCommand=cmd(Center;FullScreen;diffuse,color("0,0,0,1")); OnCommand=cmd(diffusealpha,1;linear,0.266;diffusealpha,0); }; };
object_building_mustafar_items_must_frn_mining_table_02 = object_building_mustafar_items_shared_must_frn_mining_table_02:new { } ObjectTemplates:addTemplate(object_building_mustafar_items_must_frn_mining_table_02, "object/building/mustafar/items/must_frn_mining_table_02.iff")
--[[ --------------------------------------------------------- Geierwallys dynamic telemetry screen library for DC/DS 14,16 and 24 transmitters dynamic configuration page for app template and screen libray --------------------------------------------------------- V1.1.1 Initial state prepares all functionalities o...
local kernel = {} kernel.language = "glsl" kernel.category = "filter" kernel.name = "bloom" kernel.graph = { nodes = { levels = { effect="filter.levels", input1="paint1" }, blur = { effect="filter.blurGaussian", input1="levels" }, --horizontal = { effect="filter.blurHorizontal", input1="l...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") local se_item_models = { "models/props_c17/pulleywheels_small01.mdl", "models/Combine_Helicopter/helicopter_bomb01.mdl", "models/props_junk/PlasticCrate01a.mdl", "models/props_combine/breenglobe.mdl", "models/props_junk/MetalBucket...
ITEM.Name = "Default CT Knife" .. " | " .. "Golden" ITEM.Price = 20000 ITEM.Model = "models/weapons/w_csgo_default.mdl" ITEM.Skin = 1 ITEM.WeaponClass = "csgo_default_golden" function ITEM:OnEquip(ply) ply:Give(self.WeaponClass) end function ITEM:OnBuy(ply) ply:Give(self.WeaponClass) ply:SelectWeapon(self.WeaponCl...
--[[ ____ _ _ _ / ___| _ _ _ __ ___ / \ __| |_ __ ___ (_)_ __ \___ \| | | | '_ \ / __| / _ \ / _` | '_ ` _ \| | '_ \ ___) | |_| | | | | (__ / ___ \ (_| | | | | | | | | | | |____/ \__, |_| |_|\___/_/ \_\__,_|_| |_| |_|_|_| |_| |___/ ...
local class = require 'me.strangepan.libs.util.v1.class' local lazy = require 'me.strangepan.libs.util.v1.lazy' local ternary = require 'me.strangepan.libs.util.v1.ternary' local builder_lazy = lazy 'me.strangepan.libs.util.v1.builder' local mock_os_lazy = lazy 'me.strangepan.libs.computercraft.mock.v1.os' local mock_t...
return { cordoom1 = { acceleration = 0, activatewhenbuilt = true, brakerate = 0, buildangle = 4096, buildcostenergy = 374809, buildcostmetal = 18828, builder = false, buildpic = "cordoom1.dds", buildtime = 260000, canattack = true, canstop = 1, category = "ALL SURFACE", collisio...
return request("lapis.server")
local TEST_RACE_ENABLED = false addCommandHandler("racetest", function () if not TEST_RACE_ENABLED then return end RaceManager.startRace({ id = 1, map = "drift-4", gamemode = "sprint", players = getElementsByType("player"), rank = 1, readyCount = 1 ...
local extend = require('oop').extend local L = require('signal').L local H = require('signal').H local update_all_connected_gates = require('gate').update_all_connected_gates describe('a Component', function() local ComponentBase = require('component').ComponentBase it('updates itself on creation', function() ...
vim.api.nvim_set_keymap('n', 'Q', ':bd<CR>', { noremap = true, silent = true }) -- resize vim.api.nvim_set_keymap('n', '<C-left>', ':vertical resize +3<CR>', { noremap = true, silent = true }) vim.api.nvim_set_keymap('n', '<C-Right>', ':vertical resize -3<CR>', { noremap = true, silent = true }) vim.api.nvim_set_keyma...
object_tangible_furniture_gcw_gcw_imperial_rug_01 = object_tangible_furniture_gcw_shared_gcw_imperial_rug_01:new { } ObjectTemplates:addTemplate(object_tangible_furniture_gcw_gcw_imperial_rug_01, "object/tangible/furniture/gcw/gcw_imperial_rug_01.iff")
local base = {} function create(size) return setmetatable({data = ("\0"):rep(size), size = size, wb = 0, rb = 0, free = size}, {__index = base}) end function base:write(data) local len = #data if len > self.free then return false end local dataleft = math.min(len, self.size - self.wb) ...
local util = require("dressing.util") local M = {} M.is_supported = function() return true end local _callback = function(item, idx) end local _items = {} local function clear_callback() _callback = function() end _items = {} end M.select = function(config, items, opts, on_choice) _callback = on_choice _it...
common_player_info_layout_name_value=[[Brad Pitt]] common_player_info_layout_total_money_key=[[资产:]] common_player_info_layout_total_money_value=[[999,999,999]] common_player_info_layout_level_key=[[等级:]] common_player_info_layout_level_name=[[LV12]] common_player_info_layout_zhanji_key=[[战绩:]] common_playe...
package.path = package.path .. ';./src/?.lua' package.path = package.path .. ';./src/?/?.lua' local uv = require'luv' local Message = require'losc.message' local Bundle = require'losc.bundle' local Timetag = require'losc.timetag' local function bench(fn, iterations) -- warm up for i = 1, 10 do fn() end local st...
return function() require("winshift").setup({ highlight_moving_win = true, -- Highlight the window being moved focused_hl_group = "Visual", -- The highlight group used for the moving window }) vim.api.nvim_set_keymap('n', '<Leader>w', ':WinShift<cr>', { silent = true }) end
local fs = require('efmls-configs.fs') local linter = 'pylint' local command = string.format('%s --score=no ${INPUT}', fs.executable(linter)) return { prefix = linter, lintCommand = command, lintStdin = false, lintFormats = { '%.%#:%l:%c: %t%.%#: %m' }, rootMarkers = {}, }
--[[---------------------------------------------- Circlular Avatar Mask --------------------------------------------------]] local PANEL = {} local cos, sin, rad, render, draw = math.cos, math.sin, math.rad, render, draw function PANEL:Init() self.Avatar = vgui.Create( 'AvatarImage', self ) self.Avatar:Se...
AddCSLuaFile('cl_init.lua') AddCSLuaFile('shared.lua') include('shared.lua') include("starfall/SFLib.lua") assert(SF, "Starfall didn't load correctly!") ENT.WireDebugName = "Starfall Processor" ENT.OverlayDelay = 0 local context = SF.CreateContext() function ENT:UpdateState(state) if self.name then ...
local Runner = require "nvim-test.runner" local busted = require "nvim-test.runners.busted" local vusted = Runner:init({ command = "vusted", file_pattern = busted.config.file_pattern, find_files = busted.config.find_files, }, { lua = busted.queries.lua, }) function vusted:parse_testname(name) return busted:...
local M = {} function M.setup() local dap = require "dap" dap.configurations.lua = { { type = "nlua", request = "attach", name = "Attach to running Neovim instance", host = function() local value = vim.fn.input "Host [127.0.0.1]: " if value ~= "" then return v...
player_manager.AddValidModel( "PMC2_02", "models/player/PMC_2/PMC__02.mdl" ) list.Set( "PlayerOptionsModel", "PMC2_02", "models/player/PMC_2/PMC__02.mdl" )
--[[ This code falls under the terms of the MIT license. The full license can be found in "license.txt". Copyright (c) 2015 Minh Ngo ]] local MODULE_PATH= (...):match('^.+[%.\\/]') local Class = require(MODULE_PATH .. 'Class') local Grid = require(MODULE_PATH..'Grid') -- 0.8 compatibility local addQuad = ...
-- requires add_requires("tbox master", {debug = true}) add_requires("zlib >=1.2.11") add_requires("pcre2", "luajit", {system = false, optional = true}) -- add modes add_rules("mode.debug", "mode.release") -- add target target("console") -- set kind set_kind("binary") -- add files add_files("src/*....
Player = game:GetService("Players").LocalPlayer Character = Player.Character PlayerGui = Player.PlayerGui Backpack = Player.Backpack Torso = Character.Torso Head = Character.Head LeftArm = Character["Left Arm"] LeftLeg = Character["Left Leg"] RightArm = Character["Right Arm"] RightLeg = Character["Right Leg"] ...
function firedNade() if client then if getPedWeapon(client, 8) == 16 then local ammo = getPedTotalAmmo(client, 8) if ammo > 0 then takeWeapon(client, 16, 8) return true end end end outputDebugString("glauncher Error: Player " .. getPlayerName(client) .. " launched a grenade while being out of am...
object_tangible_quest_menagerie_terminal_33 = object_tangible_quest_shared_menagerie_terminal_33:new { } ObjectTemplates:addTemplate(object_tangible_quest_menagerie_terminal_33, "object/tangible/quest/menagerie_terminal_33.iff")
data:extend({ { type = "recipe", name = "hydraulic-mining", category = "hydraulic-mining", enabled = true, hidden = true, subgroup = "extraction-machine", energy_required = 0.016, ingredients = { {type="fluid", name="water", amount=0.25} }, results = { ...
local Character = game.Players.localPlayer.Character local Humanoid = Character.Humanoid script.Parent = nil wait() if Character:FindFirstChild("Animate") then Character.Animate:Destroy() end Effects = {} Meshes = { Blast = "20329976", Crown = "1323306", Ring = "3270017", Claw = "10681506", Crystal = "97563...
--[[ ################################################################################ # # Copyright (c) 2014-2020 Ultraschall (http://ultraschall.fm) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the ...
local time = ... if not time then time = 0.5; end return Def.ActorFrame{ Def.Quad{ InitCommand=cmd(FullScreen;diffuse,color("#00000000")); OnCommand=cmd(linear,time;diffusealpha,1); }; };
AddCSLuaFile( ) ENT.Base = "gasl_base_ent" ENT.RenderGroup = RENDERGROUP_BOTH ENT.AutomaticFrameAdvance = true function ENT:SpawnFunction( ply, trace, ClassName ) if ( !APERTURESCIENCE.ALLOWING.wall_projector && !ply:IsSuperAdmin() ) then ply:PrintMessage( HUD_PRINTTALK, "This entity is blocked" ) return end if...
local pierce_dmg = DamageType("pierce") skill_manager.RegisterDamageType( pierce_dmg )
local string = require "luv.string" local type, table, ipairs, pairs, io, require = type, table, ipairs, pairs, io, require local loadstring, setfenv, tostring = loadstring, setfenv, tostring local Object = require"luv.oop".Object local fs = require "luv.fs" local exceptions = require "luv.exceptions" local Exception, ...
require('vis') -- require('cursors') vis.events.subscribe(vis.events.INIT, function() vis:command('set autoindent on') vis:command('set expandtab true') vis:command('set tabwidth 8') vis:command('set theme based') vis:command('set syntax on') end) vis.events.subscribe(vis.event...
local ids = {}; hook.Add("InitPostEntity", "AttachmentVendorLocations", function() if (istable(ATTACHMENT_VENDOR.locations)) then for k, v in pairs(ATTACHMENT_VENDOR.locations) do assert(isvector(v.pos), "Location MUST have a \"pos\" vector."); assert(isangle(v.ang), "Location MUST have an \...
-- Validity check to prevent some sort of spam local function IsDelayed(ply) local delay = ply.lastCTauntTime + PHX:GetCVar( "ph_customtaunts_delay" ) return { delay > CurTime(), delay - CurTime() } end local function CheckValidity( sndFile, plyTeam ) return file.Exists("sound/"..sndFile, "GAME") and table.HasValue...
local api = vim.api local uv = vim.loop local Job = require("plenary/job") local M = {} function M.path_from_id(id, neuron_dir, callback) assert(id, "the id should not be nil") Job:new { command = "neuron", args = {"query", "--id", id, "--cached"}, cwd = neuron_dir, on_stderr = M.on_stderr_factor...
class 'Woet' function Woet:__init() Events:Subscribe( "GetOption", self, self.GetOption ) Events:Subscribe( "KeyUp", self, self.KeyUp ) end function Woet:GetOption( args ) self.roll = args.roll self.spin = args.spin self.flip = args.flip end function Woet:KeyUp( args ) if Game:GetState() ~= GUISt...
--local MainScene = class("MainScene", cc.load("mvc").ViewBase) --function MainScene:onCreate() -- amgr.playMusic("bg_menu.mp3", true) -- local layer = require(g_myGameName .. "/app/layer/gameBilliardsMainLayer").new() -- if layer then -- self:addChild(layer) -- end --end --function MainScene:physi...
--[[ That's right! Off we go! We are moving! Note the update function. We are increasing x by 1 for every call of update, but what does that mean? What we are doing here is moving the square by 1 pixel for every frame. It is the same as increasing x in the draw function (try it!) What wo...
local command = require "core.command" local config = require "core.config" command.add(nil, { ["draw-whitespace:toggle"] = function() config.draw_whitespace = not config.draw_whitespace end, ["draw-whitespace:disable"] = function() config.draw_whitespace = false end, ["draw-whitespace:enable"] =...
---------------------------- --版权: 564773807@qq.com --作用: lua的log相关封装 --作者: liubo --时间: 20160129 --备注: ---------------------------- cc.exports.Log = {} --log文件路径 Log.logPath = nil Log.logName = nil Log.dateFormat = "_%Y_%m_%d_" Log.timeFormat = "_%H_%M_%S" function Log.getLogDir() if device.platform == "android"...
local function getArticle(str) return str:find("[AaEeIiOoUuYy]") == 1 and "an" or "a" end local function getMonthDayEnding(day) if day == "01" or day == "21" or day == "31" then return "st" elseif day == "02" or day == "22" then return "nd" elseif day == "03" or day == "23" then return "rd" else return "t...
local N = io.read() local numbers = io.read() local sum = 0 for number in string.gmatch(numbers, "(%d)") do sum = sum + number --print(number) end print(math.floor(sum))
VolumeObject = { type = "VolumeObject", ENTITY_DETAIL_ID = 1, Properties = { file_VolumeObjectFile = "Libs/Clouds/Default.xml", Movement = { bAutoMove = 0, vector_Speed = {x=0,y=0,z=0}, vector_SpaceLoopBox = {x=2000,y=2000,z=2000}, fFadeDistance = 0, } }, Editor = { Model = "Editor/Obje...
function success() print("a") end
local NoobTacoUI, E, L, V, P, G = unpack(select(2, ...)) function NoobTacoUI:SetupChat() E.db["chat"]["useCustomTimeColor"] = false E.db["chat"]["fontSize"] = 14 E.db["chat"]["keywordSound"] = "Simon Chime" E.db["chat"]["tabFont"] = "Montserrat-Bold" E.db["chat"]["panelColor"]["a"] = 0.53608983755112 E.db[...
ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) RegisterServerEvent('lp_bank:deposit') AddEventHandler('lp_bank:deposit', function(amount) local _source = source local xPlayer = ESX.GetPlayerFromId(_source) if amount ~= nil and amount > 0 and amount <= xPlayer.getMoney() then ...
require 'torchx' local _ = require 'moses' require 'nn' local _cuda, _ = pcall(require, 'cunn') -- create global rnn table: rnn = {} rnn.cuda = _cuda rnn.version = 2.7 -- better support for bidirection RNNs -- lua 5.2 compat function nn.require(packagename) assert(torch.type(packagename) == 'string') local suc...
----------------------------------- -- Area: Metalworks -- NPC: Grohm -- Involved In Mission: Journey Abroad -- !pos -18 -11 -27 237 ----------------------------------- require("scripts/globals/missions"); local ID = require("scripts/zones/Metalworks/IDs"); ----------------------------------- function onTrade(player,...
funcs = {} function funcs.showHammerspoonHome() hs.doc.hsdocs.forceExternalBrowser(true) hs.doc.hsdocs.moduleEntitiesInSidebar(true) hs.doc.hsdocs.help() end function funcs.systemLockSreen() hs.caffeinate.lockScreen() end function funcs.systemRestart() hs.caffeinate.restartSystem() end function funcs.to...
ENT.Type = "anim" ENT.PrintName = "Мишень" ENT.Author = "AleXXX_007" ENT.Category = "NutScript" ENT.Spawnable = true ENT.AdminOnly = true if (CLIENT) then function ENT:Draw() local mypos = self:GetPos() local dist = LocalPlayer():GetPos():Distance(mypos) if(dist < 5000) then self.Entity:DrawModel() end e...
-- usb_descriptor_parser.lua local macro_defs = require("macro_defs") local html = require("html") local parser = {} local descTable = {} local fmt = string.format local unpack = string.unpack local last_vid = 0 _G.render_vid = function(vid) last_vid = vid return '<a href="https://usb-ids.gowdy.us/read/UD/'..f...
--[[ This module creates link to games, displaying them in colored background. Examples: {{#invoke: Blackabbrev | UL }} {{#invoke: Blackabbrev | RZS | RFVF}} {{#invoke: Blackabbrev | HGSS | XY | ROZA }} HINT: If you get an Errore Script, try to split an abbreviation into smaller parts. For example: {{#invoke: Blac...
lume = require "libs.lume" oldprint = print print = DEBUG and lume.trace or function () end assert = lume.assert -- autobatch = require "libs.autobatch" lurker = require "libs.lurker" Object = require "libs.classic" lovebird = require "libs.lovebird" flux = require "libs.flux" tick = require "libs.tick" coil = require...
BuildEnv(...) local LFGCreateOptimize = Addon:NewModule('LFGCreateOptimize', 'AceEvent-3.0', 'AceHook-3.0') local EntryCreation = LFGListFrame.EntryCreation function LFGCreateOptimize:OnInitialize() GUI:Embed(self, 'Tab') local ModeLabel = EntryCreation:CreateFontString(nil, 'ARTWORK', 'GameFontN...
package.path = package.path .. ";data/scripts/lib/?.lua" include("stringutility") include("callable") MissionUT = include("missionutility") ESCCUtil = include("esccutil") --Let's try namespacing this. I want to see what happens. --namespace LLTEStory5EmpressBlade1 LLTEStory5EmpressBlade1 = {} local self = LLTEStory5E...
TestAddEnd = { ["test: Should add an element to the end when the array is empty"] = function () local a = array() a:addend("a") luaunit.assertEquals(a.__data, {"a"}) end; ["test: Should add an element to the end"] = function () local a = array("a", "b", "c") a:addend("d") luaunit.assertEquals(a.__data, ...
local Player = game.Players.LocalPlayer local cloud = Instance.new("Part",Player.Character.Torso) cloud.BrickColor = BrickColor.new(320) cloud.Reflectance = 0.5 cloud.Anchored = true cloud.CanCollide = false cloud.FormFactor = Enum.FormFactor.Symmetric cloud.Size = Vector3.new(1,1,1) local mesh = Instance.new("Special...
-- local global = require 'core.global' local u = require 'core.utils' local lspconfig = require 'lspconfig' local luadev = function(on_attach, capabilities) return require('lua-dev').setup { -- Add any options here, or leave empty to use the default settings library = { vimruntime = true, -- Runtime p...
Object = { x = 0, y = 0, width = 32, height = 0, attribute = function(self) print(self.x, self.y, self.width, self.height) end } local rect = Object rect.x = 20 rect.y = 50 rect.width = 25 rect.height = 35 local data = Object rect.x = 100 rect.y = 75 rect.width = 40 rect.height = 40 Objec...
--[[ DO NOT EDIT THIS FILE. --]] local addonName, TriviaBot_Questions = ... local function deepcopy(object) local lookup_table = {} local function _copy(object) if type(object) ~= "table" then return object elseif lookup_table[object] then return lookup_table[object]...
return { fadeOut = 1.5, mode = 3, noWaitFade = true, once = true, id = "T30101", fadeType = 2, fadein = 1.5, scripts = { { dir = -1, side = 0, bgName = "bg_story_5", actorName = "{namecode:91}", bgspeed = 2, blackBg = true, withoutPainting = true, bgm = "story-4", actor = 307010, ...
require "text_control.lua" ---@class Static : ChildControl, ExtendFontControl @게임 내의 Static(Label) 컨트롤을 Wrapping 하는 클래스. 단순히 텍스트를 표현해주는 클래스. Static = Class(ChildControl, ExtendFontControl) ---스태틱 컨트롤을 새로 생성합니다. ---@param parent Window @스태틱 컨트롤이 생성될 부모, 보통 Window ---@return Static function Static:New(parent) local...
local function noop(...) end local function dummy_coords(...) return { x = 123, y = 123, z = 123 } end local noop_object = { __call = function(self,...) return self end, __index = function(...) return function(...)end end, } _G.world = mineunit("world") _G.core.is_singleplayer = function() return true end _G.core.n...
--[[ © 2020 TERRANOVA do not share, re-distribute or modify without permission of its author. --]] local PANEL = {} -- Called when the panel is first initialized. function PANEL:Init() local parent = self self.recordReferences = {} self:Dock(FILL) self:SetDrawBackground(false) self.main = self:Add("DPanel"...
-- Table of system upgrade scripts for use with `findString()` from `lib.cmd.common` return { {function (str) return str:find("^arb") or str:find("^atcs") end, "arbitrarytcs", "arbitrarytcs"}, {function (str) return str:find("^bat") end, "batterybooster", "batterybooster"}, {function (str) return str:find("^car") en...
module("shadows.Functions", package.seeall) Shadows = require("shadows") local sqrt = math.sqrt local min = math.min local max = math.max function Shadows.Normalize(v) local LengthFactor = 1 / sqrt( v[1] * v[1] + v[2] * v[2] ) return { v[1] * LengthFactor, v[2] * LengthFactor } end function Shado...
--[[ name: Pitch Distort description: > graphical pitch distortion, shifts each frequency band by a different factor author: osar.fr --]] require "include/protoplug" require "include/Pickle" stereoFx.init() fftlib = script.ffiLoad("libfftw3.so.3", "libfftw3-3", "libfftw3.3.dylib") ffi.cdef[[ typedef double ff...
--[[ Name: "init.lua". Product: "HL2 RP". --]] KS_GAMEMODE = GM; -- Add a shared Lua file. AddCSLuaFile("cl_init.lua"); -- Derive the gamemode from kuroScript. DeriveGamemode("kuroScript");
class("WorldPortReqCommand", pm.SimpleCommand).execute = function (slot0, slot1) pg.ConnectionMgr.GetInstance():Send(33401, { map_id = slot1:getBody().mapId }, 33402, function (slot0) if ((slot0.port.port_id <= 0 or 0) and 1) == 0 then getProxy(WorldProxy):NetUpdateMapPort(slot0.mapId, slot0.port) else pg...