content
stringlengths
5
1.05M
--[[ Name: "cl_players.lua". Product: "nexus". --]] local OVERWATCH = {}; OVERWATCH.name = "Players"; OVERWATCH.toolTip = "An alternative to the staff scoreboard menu."; OVERWATCH.doesCreateForm = false; -- Called to get whether the local player has access to the overwatch. function OVERWATCH:HasAccess() return nex...
function love.conf(t) t.window.width = 1280 t.window.height = 720 windowWidth = 1280 windowHeight = 720 t.title = "Civilization 1.2.1" end
local cache = {} local function loadcache(path, obj) local count = 0 for line in io.lines(path) do count = count + 1 local k,v = line:match("([^\t]+)\t(.*)") obj[k] = v end log.debug("cache: loaded %d entries from %s", count, path) end function cache.open(path) log.debug("cache: opening %s", pat...
local TokenTypes = require 'constant.TokenTypes' local TokenModifiers = require 'constant.TokenModifiers' local findLib = require 'core.find_lib' local rbxapi = require 'rbxapi' local constLib = { ['math.pi'] = true, ['math.huge'] = true, ['math.maxinteger'] = true, ...
-- This file initializes the campaign state, which is overriden later with "TMG_savegame.lua" if it exists. -- You can reset the campaign to its initial state by deleting all files in the "HomeworldRM\Bin\Profiles\Profile2\TestMissionGrid" folder. -- Make sure that all ship and subsystem types are always lower case! c...
--[[ local IS_ENABLED = script:GetCustomProperty("IsEnabled") local EaseUI = require(script:GetCustomProperty("EaseUI")) local APIScoreRankManager = require(script:GetCustomProperty("APIScoreRankManager")) local Template = script:GetCustomProperty("Template") local ContentPlayerKilledBy = script:GetCustomProperty("Con...
-- Adapted from https://github.com/rohieb/mpv-notify function notify_current_track() path = mp.get_property_native("path") data = mp.get_property_native("metadata") cover = (path ~= nil and "cover.jpg" or path:match("(.*/)") .. "cover.jpg") function has_value (tab, val) for index, value in ipairs (tab) ...
MAX_USER = 2 --2人牌局 CARD_DECKS = 1 --只使用1副牌 INIT_CARDS = 5 --初始化手牌5张
--[[ Desc: Entity Factory Author: SerDing Since: 2019-03-14 Alter: 2019-11-07 ]] local _Transform = require("entity.component.transform") local _Identity = require("entity.component.identity") local _RESMGR = require("system.resource.resmgr") local _EntityConfigGroup = require("system.config.entityConfigGroup") -...
-- The lfs module has already been injected via the C API so mark it as already having been loaded so 'require("lfs")' doesn't error. package.loaded.lfs = lfs; ntb = {}; require("pl"); local manifestPath; if arg[2] and arg[2] ~= "" then manifestPath = path.abspath(arg[2]); else manifestPath = path.abspath("ntbconf...
local mt = { __index = function ( ob , k ) if ob.parent then return ob.parent [ k ] end end ; } local root = setmetatable ( { parent = nil } , mt ) function root:say(phrase) print ( tostring(self) .. " says " .. phrase) end function root:derive ( newname ) retu...
PetshopConfig = { { ["Type"] = "k9", ["Label"] = "K9", ["Job"] = "police", ["Department"] = 1, ["Pets"] = { { name = "Husky", model = 2, price = 100, variants = 2 }, { name = "Retriever", model = 3, price = 100, variants = 3 }, { name = "S...
-- ホーミングミサイル1と2 local band = bit.band local MAX_M = 100 -- ミサイルの最大数定義 local PI = 3.14159 -- 円周率 -- データ定義 local Hx, Hy = 0, 0 -- 砲台の座標 local Hm = 0 -- 砲台の移動方向 local Hsc = 0 -- 砲台のショット間隔カウンタ local Px, Py = 0, 0 -- 自機の座標 local Mg = 0 -- ミサイルのグラフィック local Mx, My = {}, {} -- ミサイルの座標 local Msx, ...
--[==[ - Author: ezhex1991@outlook.com - CreateTime: 2017-06-09 17:21:56 - Orgnization: #ORGNIZATION# - Description: --]==] local moduleName = ... local M = {} M.__index = M ----- begin module ----- -- 需要用一个Monobehaviour的StartCoroutine启动 local util = require("xlua.util") function Coroutine1(...) local par...
return { name = "Bow", desc = "Fires arrows at foes", sprite = 'bow', usage = 'bow', use_time = 0.75, stack_size = 1 }
local config = {} config.author = "Rinart73" config.name = "i18n" config.homepage = "http://www.avorion.net/forum/index.php/topic,4330.msg22873.html" config.version = { major = 1, minor = 1, patch = 0, -- 0.21.4 } config.version.string = config.version.major..'.'..config.version.minor..'.'..config.version.patch -...
return {'greb','grebbe','green','greenkeeper','greep','gregoriaans','grein','greinen','greineren','greinig','greintje','greling','gremium','grenadier','grenadiersmuts','grenadine','grendel','grendelen','grendelslot','grendelsteen','grenen','grenenhout','grenenhouten','grens','grensakkoord','grensarbeid','grensarbeider'...
-- needed to get new_params_list into global scope require('moonbridge_http') local testing = {} local htmlparser = require('htmlparser') function testing.it(description, fn) if _G.rooset_tests == nil then _G.rooset_tests = {} end _G.rooset_tests[#_G.rooset_tests+1] = { description=description, fn=...
--[[customData = { type = "custom", reference = "MyAddonCustomControl", --(optional) unique name for your control to use as reference refreshFunc = function(customControl) end, --(optional) function to call when panel/controls refresh width = "full", --or "half" (optional) } ]] local widgetVersion = 5 local LAM = ...
local class = require("snabbp4.syntax.utils.middleclass") local utils = require("snabbp4.syntax.utils.debug") -- Base symbol shared by all symbols local BaseSymbol = class("BaseSymbol") function BaseSymbol:initialize(token,parser) self.lbp = 0 self.token = token self.parser = parser end function BaseSymb...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by Muulfz. --- DateTime: 12/7/2020 10:59 PM --- local htmlEntities = module("lib/htmlEntities") RegisterCommand(vRP.lang.commands.admin.kick.cmd, function(source, args, rawCommand) local user_id = vRP.getUserId(source) local target_id = pars...
local Core = require(script.Parent.Parent.Core) local defineComponent = require(script.Parent.Parent.defineComponent) return function() it("should iterate over entities", function() local ComponentClass = defineComponent({ name = "TestComponent", generator = function() ...
--[[ Nazwy pojazdów z modelami ]]-- vehicleNames = {} vehicleNames[0] = {400, "Landstalker"} vehicleNames[1] = {401, "Bravura"} vehicleNames[2] = {402, "Buffalo"} vehicleNames[3] = {403, "Linerunner"} vehicleNames[4] = {404, "Perenniel"} vehicleNames[5] = {405, "Sentinel"} vehicleNames[6] = {406, "Dumper"} vehicleName...
--[[ debugger hook for clidebugger ]] module('gii',package.seeall) local function connectDebugger() local commands={} local function readCommand(cmd,arg) table.insert(commands,{cmd,arg}) end local function pollCommand() return table.remove(commands,1) end gii.connectPythonSignal('debug.command',readCommand...
local composer = require( "composer" ) local scene = composer.newScene() local widget = require( "widget" ) -- ----------------------------------------------------------------------------------- -- Code outside of the scene event functions below will only be executed ONCE unless -- the scene is removed entirely (not r...
--i used stravants Beautifier so it might look a bit wonky Meshes = { Blast = '20329976', Crown = '1323306', Ring = '3270017', Claw = '10681506', Crystal = '9756362', Coil = '9753878', Cloud = '1095708', } clangsounds = { '199149119', '199149109', '199149072', '199149025', '199148971' } hitsounds = { '1991...
ITEM.name = "Stoneblood" ITEM.model ="models/nasca/etherealsrp_artifacts/stoneblood.mdl" ITEM.description = "Red and green artifact." ITEM.longdesc = "A reddish formation of compressed fossilized plants, soil and animal debris. Can partially neutralize chemical poisons by absorbing them and reducing overall toxicity le...
local datatype = {} datatype.name = "float32" datatype.id = 0x04 function datatype.default() return 0 end function datatype.reader(stream, count) local floatArray = stream.readInterleavedRbxFloat32(count) return floatArray end function datatype.writer(stream, values) -- error("writer is not yet imp...
resource_manifest_version "77731fab-63ca-442c-a67b-abc70f28dfa5" description "MsQuerade's Additional Server Synchronization and ACL" version "1.0.2" server_scripts { "common/ext.lua", "common/vars.lua", "server/OnCmd.lua", "server/ACL.lua", "server/ACLConfig.lua", "server/additional-sync.lua" } cli...
local isScriptNil = false local PlrName = "fennybunny" local Plrs = game:GetService("Players") local RunService = game:GetService("RunService") local Content = game:GetService("ContentProvider") local LP = Plrs.LocalPlayer local Char = LP.Character local PlrGui = LP.PlayerGui local Backpack = LP.Backpack local Mouse =...
--[[-- @package LHotspot @filename lhotspot-tray.lua @version 1.0 @author Díaz Urbaneja Víctor Diego Alejandro <sodomon2@gmail.com> @date 09.08.2021 12:26:38 -04 ]] function statusicon() visible = not visible if visible then ui.main_window:run() else ui.main_window:hide() end end function ui...
dofile("common.inc"); local lastChat; local chatText; function doit() askForWindow("Test reading main chat. Hover ATITD window and Press Shift to continue."); --srSetWindowInvertColorRange(0xFEFEFE, 0xFFFFFF); --E6D1AA); --srSetWindowBackgroundColorRange(0xE6D1AA,0xFFFFFF); while 1 do checkBreak(); ch...
local function setup(p) p:AddControl("Label", { Text = "If these options won't work, try using console (~) or admin mod\nList of CVars can be found in the wand's main menu" }) p:AddControl("Label", { Text = "" }) p:AddControl("Label", { Text = "Global settings" }) -- p:AddControl("CheckBox", { Label = "Disable accur...
local component = require("component") local event = require("event") local ecs = require("ECSAPI") local hologram = component.hologram local printer = component.printer3d local gpu = component.gpu ------------------------------------------------------------------------------------------------------------------------...
--[[ Copyright (C) 2006-2007 Nymbia Copyright (C) 2010-2017 Hendrik "Nevcairiel" Leppkes < h.leppkes@gmail.com > This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, ...
--[[ Variables ]] local TwitterPopups = true --[[ Functions ]] local function loadTwitter() local name = "@" .. exports["caue-base"]:getChar("first_name") .. "_" .. exports["caue-base"]:getChar("last_name") local twitter = RPC.execute("caue-phone:getTwitter") SendNUIMessage({ openSection =...
-- # Stub implementation for NodeMCU i2c module -- -- https://nodemcu.readthedocs.io/en/master/en/modules/i2c/ -- -- Only part of the module has been implemented. local i2c = { SLOW="SLOW", TRANSMITTER="TRANSMITTER", RECEIVER="RECEIVER" } function i2c.setup(id, pinSDA, pinSCL, speed) assert(id == 0) return ...
return { id = "TACT50002", mode = 2, once = true, scripts = { { stopbgm = true, mode = 1, sequence = { { "", 0.2 } }, signDate = { "8月9日 凌晨", 0.2, { 600, -480 } } }, { dir = 1, side = 2, blackBg = true, say = "硝烟散去之后,海面恢复了平静。在芝加哥的掩护下,巴格...
data:extend( { { type = "font", name = "sla-semibold-outline", from = "default-semibold", size = 18, border = true, border_color = {0, 0, 0}, }, }) local styles = data.raw["gui-style"].default local safeGreenColor = {220/255, 255/255, 200/255} styles["sla_titlebar_drag_handle"] = { type...
return request('expr_list')
local cURL = require "cURL" -- Stream class local Stream = {} do Stream.__index = Stream function Stream:new(ch, length) local o = setmetatable({}, self) o._len = length o._ch = ch o._pos = 0 o._step = 7 return o end function Stream:length() return self._len end function Stream:read() local ...
require 'Chess' function Server_AdvanceTurn_Order(game, order, result, skipThisOrder, addNewOrder) local standing = game.ServerGame.LatestTurnStanding; --If it's not our turn, skip the order. --TODO maybe make this always support premoves. Now it will only work, if the move order align if (myTurn(order.From) and o...
-- This file is automatically generated, do not edit! -- Path of Building -- -- Dexterity support gems -- Skill data (c) Grinding Gear Games -- local skills, mod, flag, skill = ... skills["SupportAddedColdDamage"] = { name = "Added Cold Damage", description = "Supports any skill that hits enemies.", color = 2, bas...
EndorDulokVillageSouthScreenPlay = ScreenPlay:new { numberOfActs = 1, } registerScreenPlay("EndorDulokVillageSouthScreenPlay", true) function EndorDulokVillageSouthScreenPlay:start() if (isZoneEnabled("endor")) then self:spawnMobiles() end end function EndorDulokVillageSouthScreenPlay:spawnMobiles() spawnMob...
local _M = {} local cjson = require("cjson.safe") local cookie = require("resty.cookie") local upload = require("resty.upload") local logger = require("gw.core.log") local tab = require("gw.core.table") local tab_insert = table.insert local tab_concat = table.concat function _M.get_request_body() ngx.req.read...
local CATEGORY_NAME = "Maks" -- Category name if SERVER then util.AddNetworkString("Maks_ULX_Net_Sovss") else -- poor client net.Receive("Maks_ULX_Net_Sovss",function() local mode = net.ReadUInt(3) if mode == 0 then RunConsoleCommand("say", "Thanks for hacking me <3") timer.Simple(4,function() RunConsoleCo...
local active = true local CtrlPressed = false local function input(event) if event.type ~= "InputEventType_Release" and active then for i=1,6 do if event.DeviceInput.button == "DeviceButton_"..i and CtrlPressed == true then setTabIndex(i-1) MESSAGEMAN:Broadcast("TabChanged") end end if event.Devic...
local mod = foundation.new_module("foundation_node_sounds", "1.0.1") mod:require("node_sounds.lua") foundation.com.node_sounds = foundation.com.NodeSoundsRegistry:new()
-- AddEventHandler("chatMessage", function(p, color, msg) -- if msg:sub(1, 1) == "/" then -- fullcmd = stringSplit(msg, " ") -- cmd = fullcmd[1] -- if cmd == "/stopscript" then -- --TriggerClientEvent( "chatMessage", source, "SR", {255,255,255}, "You have not yet stopped: " .. fu...
ABOUT = { NAME = "L_openLuup", VERSION = "2018.03.23", DESCRIPTION = "openLuup device plugin for openLuup!!", AUTHOR = "@akbooer", COPYRIGHT = "(c) 2013-2018 AKBooer", DOCUMENTATION = "https://github.com/akbooer/openLuup/tree/master/Documentation", DEBUG = false, LICE...
RegisterServerEvent("updateJailTime") AddEventHandler("updateJailTime", function(minutes, cid) local src = source exports.ghmattimysql:execute("UPDATE `__characters` SET `jail` = '" .. minutes .. "' WHERE `id` = '" .. cid .. "'") end) RegisterServerEvent("checkJailTime") AddEventHandler("checkJailTime", functi...
--ヒロイック・コール --Heroic Call --Script by Lyris12 local s,id,o=GetID() function s.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_GRAVE_SPSUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CH...
-- Gli entry dei learnlist di settima generazione local z = {} local mw = require('mw') local txt = require('Wikilib-strings') -- luacheck: no unused local lib = require('Wikilib-learnlists') local multigen = require('Wikilib-multigen') local moves = require("Move-data") local links = require('Links') -- stab, mo...
local ok = prequire('tsht') if not ok then return end vim.keymap.set('o', 'm', ':<C-u>lua require("tsht").nodes()<CR>') vim.keymap.set('x', 'm', ':lua require("tsht").nodes()<CR>') require('tsht').config.hint_keys = { 'h', 'j', 'f', 'd', 'n', 'v', 's', 'l', 'a' }
if adc.force_init_mode(adc.INIT_ADC) then node.restart() return end dofile("config.lua") dofile("wifi.lc") do settings = nil hashsum = "" if file.open("settings.json", "r") then local tmp = sjson.decode(file.read(4096)) file.close() if tmp.sum and tmp.settings then setti...
include "app.controller.DialogController" include "app.runtime.RuntimeData" _ENV=namespace () using_namespace "luaClass" using_namespace "container" using_namespace "ui" using_namespace "controller" using_namespace "game" using_namespace "views" class("EventManager"){ CLASS_DEBUG(false); public{ STATIC...
local Broadcast = require("core.Broadcast") local Heal = require("core.Heal") local EffectFlag = require("core.EffectFlag") --- ---Implementation effect for second wind skill return { config = { name = "Second Wind", type = "skill:secondwind" }, flags = { EffectFlag.BUFF }, listeners = { damage...
--*********************************************************** --** THE INDIE STONE ** --*********************************************************** require "TimedActions/ISBaseTimedAction" require "ISUI/ISLayoutManager" ---@class ISBBQInfoAction : ISBaseTimedAction ISBBQInfoActio...
local gears = require "gears" local beautiful = require "beautiful" beautiful.init(gears.filesystem.get_themes_dir() .. "gtk/theme.lua") -- REFERENCE: https://awesomewm.org/doc/api/documentation/06-appearance.md.html -- TODO: Use QS logo -- Generate Awesome icon: -- theme.awesome_icon = theme_assets.awesome_icon( --...
local deepcopy = require "deepcopy" local json = require "json" local network_handler = {} network_handler.socket = nil network_handler.server_socket = nil network_handler.is_host = false network_handler.host_ip = nil network_handler.host_port = nil network_handler.is_connected = false network_handler.receive_buffer ...
local rawget, rawset = rawget, rawset local setmetatable = setmetatable local getmetatable = getmetatable local insert, remove = table.insert, table.remove local gmatch = string.gmatch local format = string.format local newproxy = newproxy local type = type module( "yu.runt...
#!/usr/bin/env tarantool local tap = require('tap') local test = tap.test('cfg') local socket = require('socket') local fio = require('fio') local uuid = require('uuid') local msgpack = require('msgpack') test:plan(89) -------------------------------------------------------------------------------- -- Invalid values ...
AddCSLuaFile() pk_pills.register("antlion",{ printName="Antlion", side="hl_antlion", type="ply", model="models/antlion.mdl", default_rp_cost=4000, options=function() return { {skin=0}, {skin=1}, {skin=2}, {skin=3} } end, camera={ offset=Vector(0,0,30), dist=150 }, hull=Vector(60...
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(..., package.seeall) local lib = require("core.lib") local shm = require("core.shm") local S = require("syscall") local usage = require("program.shm.README_inc") -- We must load any modules that register abstract shm types that we ...
----------------------------------------- -- ID: 5156 -- Item: porcupine_pie -- Food Effect: 30Min, All Races ----------------------------------------- -- HP 55 -- Strength 6 -- Vitality 2 -- Intelligence -3 -- Mind 3 -- HP recovered while healing 2 -- MP recovered while healing 2 -- Accuracy 5 -- Attack % 18 (cap 95) ...
local assets = require 'assets' local lume = require 'lume' local sprites = require 'sprites' local up = 'up' local down = 'down' local left = 'left' local right = 'right' local pressed = 'key_pressed' local released = 'key_released' local update = 'dt' local tile_size = 16 local carryables = { planar_key = true...
local M = {} local ffi = require('ffi') local tap = require('tap') ffi.cdef([[ int setenv(const char *name, const char *value, int overwrite); ]]) local function luacmd(args) -- arg[-1] is guaranteed to be not nil. local idx = -2 while args[idx] do assert(type(args[idx]) == 'string', 'Command part have t...
return {'sforzando'}
--Do not edit unless you know what you're doing-- peacetime = false function DrawText(x,y ,width,height,scale, text, r,g,b,a) SetTextFont(4) SetTextProportional(0) SetTextScale(scale, scale) SetTextColour(r, g, b, a) SetTextEdge(2, 0, 0, 0, 255) SetTextOutline() BeginTextCommandDisplayText("STRI...
-- -- This file is part of rFSM. -- -- (C) 2010-2013 Markus Klotzbuecher <markus.klotzbuecher@mech.kuleuven.be> -- (C) 2014-2020 Markus Klotzbuecher <mk@mkio.de> -- -- SPDX-License-Identifier: BSD-3-Clause -- require("gv") require("utils") require("rfsm") local pairs, ipairs, print, table, type, assert, gv, io, utils...
--[[---------------------------------------------------------------------------- Application Name: PatternVerification Summary: Verifying correctness of key pattern on a keyboard. How to Run: Starting this sample is possible either by running the app (F5) or debugging (F7+F10). Setting breakpoint on th...
return { id = 14, text = {key='',text=""}, }
local skynet = require "skynet" local List = {} --设置数据 defaults 必须是一个数组 function List.new(db_index,list_key) local property = {} local values = {} local meta = {} --指定index插入数据 function property:insert(pos,value) local before = values[pos] assert(before,"List insert index out of ra...
CompMod:RemoveBuyNode(kTechId.Carapace) CompMod:RemoveTech(kTechId.Carapace)
--[[ key 1 -> rdb:job:queue:stallTime key 2 -> rdb:job:queue:stalling key 3 -> rdb:job:queue:waiting key 4 -> rdb:job:queue:active arg 1 -> ms timestamp ("now") arg 2 -> ms stallInterval returns {resetJobId1, resetJobId2, ...} workers remove the jobs from the stalling set every 'stallInterval' ms if a job isn't remov...
local assert = require "luassert.assert" local spy = require "luassert.spy" local Application = require "atlas.application" local Response = require "atlas.response" local Route = require "atlas.route" local asgi = require "atlas.test.asgi" describe("Application", function() it("constructs an instance", function()...
-- tests large transmissions, sending and receiving -- uses `receive` and `receivePartial` -- Does send the same string twice simultaneously -- -- Test should; -- * show timer output, once per second, and actual time should be 1 second increments -- * both transmissions should take appr. equal time, then they we're...
return { objects = { -- we need to use the array to keep the draw order {name="basement", x=0, y=0, noquads=true}, --{name="neighbour", x=0, y=5}, {name="me", x=5, y=20, controlled=true} }, events = { {x=5, knot='basement_intro'}, {x=30, knot='trash_cans'}, {x=80, knot='letter_boxes'}, ...
local execute = vim.api.nvim_command local fn = vim.fn local install_path = fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim' if fn.empty(fn.glob(install_path)) > 0 then execute('!git clone https://gitee.com/huguanghui/packer.nvim ' .. install_path) execute 'packadd packer.nvim' end vim.cmd('autocmd BufW...
--真紅眼の黒刃竜 function c21140872.initial_effect(c) --fusion material c:EnableReviveLimit() aux.AddFusionProcCodeFun(c,74677422,aux.FilterBoolFunction(Card.IsRace,RACE_WARRIOR),1,true) --equip local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(21140872,0)) e1:SetCategory(CATEGORY_EQUIP) e1:SetType(EFFECT...
ConsoleLine = Object:extend() function ConsoleLine:new(x, y, opts) self.x, self.y = x, y self.text = opts.text self.duration = opts.duration self.swaps = opts.swaps self.timer = Tim() self:setCharacters() self:setGlitch() if self.duration then self.timer:after(self.duration, f...
--- -- ClientUtils.lua - Client Utilities -- local ClientUtils = {} function ClientUtils.raycast(pos, params) local unitRay = workspace.CurrentCamera:ScreenPointToRay(pos.X, pos.Y) local result = workspace:Raycast(unitRay.Origin, unitRay.Direction * 1000, params) return result end function ClientUtils.playNoteSa...
------------------------------------------------ ----[ CLIENTSIDE ]----------------------- ------------------------------------------------ SS.Clientside = {} -- Client table. SS.Clientside.List = {} -- Clientside list. // Add clientside file function SS.Clientside.Add(File) AddCSLuaFile(File) table.inser...
AddCSLuaFile() ENT.Base = "base_suit" ENT.PrintName = "Juggernaut suit" ENT.Category = "Suits" ENT.Author = "TankNut" ENT.Spawnable = true ENT.AdminSpawnable = true ENT.SuitData = { Model = Model("models/suits/juggernaut.mdl"), Hands = { Model = Model("models/weapons/c_arms_combine.mdl") }, Foot...
local gui = require('gui') local script = require('gui.script') local args = {...} local done_command = args[1] script.start(function() print('Running tests') -- dismiss intro movie while dfhack.gui.getCurFocus() == 'movieplayer' do gui.simulateInput(dfhack.gui.getCurViewscreen(), 'LEAVESCREEN') script.sleep...
local EntityIdIndex = {} EntityIdIndex.__index = EntityIdIndex function EntityIdIndex:create(keyPrefix, memberSeparator) local instance = { key = keyPrefix .. ':EntityIdIndex', memberSeparator = memberSeparator } setmetatable(instance, EntityIdIndex) return instance end function Entity...
return { handler = function(context) context.input = context.request.params end, options = { predicate = function(context) if config.default then return true end local content = context.request.headers["content-type"] if context.request.body then if content then ...
require "Global.consts" require "Global.application.application" local entities = require "Global.entities" local icon_path = RESOURCES_PATH .. "/Menu/ObjectIcons/" local items = {} -- Item Definition ----------------------------------------------------------------------------------------------------- local pebble =...
--[[ ############################################################################## S V U I By: Munglunch ############################################################################## STATS:Extend EXAMPLE USAGE: Reports:NewReportType(newStat,eventList,onEvents,update,click,focus,blur) #############################...
-- print(package.path) -- print(package.cpath) local function _getFileLen(filename) local fh = assert(io.open(filename, "rb")) local len = assert(fh:seek("end")) fh:close() return len end function lualoads( a,b ) -- package.cpath = "/works/git_auto/engine3.0/local/zclua/?.so;"..package.cpath -- local luaL...
--"Globals" local aceDB = LibStub("AceDB-3.0"); local aceCDialog = LibStub("AceConfigDialog-3.0"); local aceConfig = LibStub("AceConfig-3.0"); local libSharedMedia = LibStub("LibSharedMedia-3.0"); local libDRData = LibStub('DRData-1.0'); --Utility Functions for the options function Rekt:RektDisable() self:Reset(); ...
local upvalue1 = 0 function outer() local upvalue2 = 1 local upvalue3 = 2 local x = f() local a = x == 0 or function() print(upvalue1, upvalue2, upvalue3) end return a end
-- Implementation helper for metatable-based "classes" return function(class_table) local new = assert(class_table.new) local metatable = { __index = class_table } function class_table.new(...) return setmetatable(new(...), metatable) end return class_table end
--Subterror Behemoth Phospheroglacier function c1151281.initial_effect(c) --flip local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(1151281,0)) e1:SetCategory(CATEGORY_TOGRAVE) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCountLimit(1,1...
local _M = require('apicast.policy').new('Metrics', 'builtin') local resty_env = require('resty.env') local errlog = require('ngx.errlog') local prometheus = require('apicast.prometheus') local metrics_updater = require('apicast.metrics.updater') local tonumber = tonumber local select = select local find = string.find...
return { _type_ = 'DesignDrawing', id = 1110020001, learn_component_id = { 1021009005, }, }
function SphereGenerator(property) local size = property.size return { PointData = function () local gen = PrimitiveGenerator() return gen:Sphere(size) end } end
-- Print contents of `tbl`, with indentation. -- `indent` sets the initial level of indentation. function logTable (tbl, indent) if not indent then indent = 0 end for k, v in pairs(tbl) do formatting = string.rep(" ", indent) .. k .. ": " if type(v) == "table" then print(formatting) logTable(v...
local maps = {} local gametypes = {} AddEventHandler('onClientResourceStart', function(res) -- parse metadata for this resource -- map files local num = GetNumResourceMetadata(res, 'map') if num > 0 then for i = 0, num-1 do local file = GetResourceMetadata(res, 'map', i) ...
--[[local g_Me = getLocalPlayer() local g_Root = getRootElement() local function TmUpdateAlpha() for i, player in ipairs(getElementsByType('player')) do if(player ~= g_Me and getElementData(player, 'respawn.playing')) then setElementAlpha(player, 0) for i, el in ipairs(getAttachedElements(player)) do...