content
stringlengths
5
1.05M
--scifi_nodes by D00Med --the builder node local builder_formspec = "size[8,9]" .. default.gui_bg .. default.gui_bg_img .. default.gui_slots .. "list[current_name;input;1,1;1,1;]" .. "list[current_name;output;3,0;4,3;]" .. "list[current_player;main;0,4.85;8,1;]" .. "list[current_player;main;0,6.08;8,3;8]" ....
local API_NPC = require(script:GetCustomProperty("API_NPC")) local API_DS = require(script:GetCustomProperty("APIDifficultySystem")) local EFFECT_TEMPLATE = script:GetCustomProperty("EffectTemplate") local TELEGRAPH_TEMPLATE = script:GetCustomProperty("TelegraphTemplate") local WHIRL_RANGES = {180.0, 200.0, 250...
--配置管理 local log = require("base/log") function Init(self, path, callback) log:Info("InitModule:setting, %s", path) self.m_Data = {} self.m_Callback = callback self:LoadSetting(path) end function LoadSetting(self, path) local req = uv.fs_scandir(path) if not req then return self:LoadFinish() end local funct...
require "player" require "blip" updateList = {} function wait(sec, blip) local time = love.timer.getTime() + sec + 0.02 -- Sem o 0.02 os blips 2 e 3 ficavam sincronizados(não sei se apenas no meu computador) local newUpdate = {time, blip} table.insert(updateList, newUpdate) coroutine.yield() end function ...
local PANEL = {} local MIN_X, MIN_Y = 800, 600 function PANEL:Init() self:SetSize(MIN_X, MIN_Y) self.modelview = vgui.Create('DModelPanel', self) self.modelview:SetSize(80, 80) self.modelview:SetPos(20, 30) self.modelview:SetModel( "models/missiles/bgm_71e.mdl" ) self.modelview.LayoutEntity = function() end ...
-- foo.server.lua
--[[ Okazjonalnie uzywany zasob do przeprowadzania wyborów w ekipie @author Lukasz Biegaj <wielebny@bestplay.pl> @author Karer <karer.programmer@gmail.com> @author WUBE <wube@lss-rp.pl> @copyright 2011-2013 Lukasz Biegaj <wielebny@bestplay.pl> @license Dual GPLv2/MIT @package MTA-XyzzyRP @link https://github.com/lpiob/...
local abs = assert(math.abs) local M = {} -- See: http://love2d.org/wiki/HSL_color function M.hslToRgb(h, s, l) if s <= 0 then return l, l, l end h, s, l = h * 6, s, l local c = (1 - abs(2 * l - 1)) * s local x = (1 - abs(h % 2 - 1)) * c local m, r, g, b = (l - 0.5 * c), 0, 0, 0 if h < 1 then ...
local po = require("po") local u = require("luaunit") function test_Message_new() local msg = po.Message:new(13) u.assertEquals(msg.id, 13) u.assertEquals(#msg.comments, 0) u.assertEquals(msg.fuzzy, false) u.assertEquals(msg.msgid, nil) u.assertEquals(msg.msgstr, nil) u.assertEquals(msg.raw, "") end fu...
local Colors = require "colors" local Bricks = require "bricks" local setup = require "setup" function love.load(arg) setup() end function love.update(dt) -- body... end function love.draw() love.graphics.setColor(Colors.unpack(COLOR.background)) love.graphics.rectangle("fill", 0, 0, WIN_W, WIN_H) love.grap...
------------------------TCP CLIENT---------------------------- local moon = require("moon") local socket = require("moon.net.socket") local function send(session,data) if not session then return false end local len = #data return session:send(string.pack(">H",len)..data) end local function ses...
NPC.PureName = "Announcer" NPC.LevelFile = "goldenrod.dat" NPC.Facing = 3 NPC.Position = Vector3(9, 0, 22) NPC.Skin = "20" NPC.PokemonVisible = false local ClientExtraData = {} local Tournament = {} Tournament.Name = "Shitarment" --[[--------------------------------------------------------- Name: Update ...
-- nvim-hardline -- By Olivier Roques -- github.com/ojroques -------------------- VARIABLES ----------------------------- local fn, cmd, vim = vim.fn, vim.cmd, vim local g, o, wo = vim.g, vim.o, vim.wo local fmt = string.format local common = require('hardline.common') local bufferline = require('hardline.bufferline')...
--[[ # Copyright 2001-2014 Cisco Systems, Inc. and/or its affiliates. All rights # reserved. # # This file contains proprietary Detector Content created by Cisco Systems, # Inc. or its affiliates ("Cisco") and is distributed under the GNU General # Public License, v2 (the "GPL"). This file may also include Detector Co...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('XTemplate', { group = "Infopanel Sections", id = "ipColonist", PlaceObj('XTemplateTemplate', { '__context_of_kind', "Colonist", '__template', "Infopanel", 'Description', T{10, --[[XTemplate ipColonist Description]] "<Description>"}, ...
loadLevel("data/Levels/TurretTest")
--[[ # Copyright 2001-2014 Cisco Systems, Inc. and/or its affiliates. All rights # reserved. # # This file contains proprietary Detector Content created by Cisco Systems, # Inc. or its affiliates ("Cisco") and is distributed under the GNU General # Public License, v2 (the "GPL"). This file may also include Detector Co...
require 'math' local Point = require 'util'.point local factory = require 'datafactory' local function Tetromino(shape_type, board) local self = { board = board, shape_type = shape_type, position = Point(0, 0) } local _data = factory(shape_type) local _rotation = 0 local property_getters = { rotation = fu...
-- hercelot - kit kat fat cat chat -- clean up temporary vfx level:clearevents({ 'MoveRoom', 'ReorderRooms', 'FadeRoom', 'SetBackgroundColor', 'SetRoomContentMode', 'ShowStatusSign', 'TintRows' }) level:setuprooms() -- set row visibility level.rows[2]:setvisibleatstart(false) level.rows[3]:setvisiblea...
local _2afile_2a = "fnl/conjure/bridge.fnl" local _2amodule_name_2a = "conjure.bridge" local _2amodule_2a do package.loaded[_2amodule_name_2a] = {} _2amodule_2a = package.loaded[_2amodule_name_2a] end local _2amodule_locals_2a do _2amodule_2a["aniseed/locals"] = {} _2amodule_locals_2a = (_2amodule_2a)["aniseed/...
return loadfile(THEME:GetPathB("Fade","In"))()
Plugin.HasConfig = false -- Plugin.ConfigName = "serverstart.json" local md = TGNSMessageDisplayer.Create() local serverStartTempfilePath = "config://tgns/temp/serverStart.json" local NUMBER_OF_ACTIVE_MODS_INDICATIVE_OF_A_SERVER_RESTART = 15 local NUMBER_OF_PLAYERS_BEFORE_SCHEDULED_RESTART = 22 local NUMBER_OF_HOURS_S...
-- Internal custom properties local EQUIPMENT = script:FindAncestorByType('Equipment') if not EQUIPMENT:IsA('Equipment') then error(script.name .. " should be part of Equipment object hierarchy.") end local ABILITY = script:FindAncestorByType('Ability') if not ABILITY:IsA('Ability') then error(script.name .. "...
#!/usr/bin/env lua do end package.path = package.path..";?/init.lua;" local M = require("appUmolflowFramework") return M
local ReplicatedStorage = game:GetService("ReplicatedStorage") local lib = ReplicatedStorage:WaitForChild("lib") local PizzaAlpaca = require(lib:WaitForChild("PizzaAlpaca")) local Logger = PizzaAlpaca.GameModule:extend("Logger") local LOG_FORMAT_STRING = "[%s][%s]: %s" local logtype = { OUTPUT = 1, WARNING...
local metal_caster = table.deepcopy(data.raw['assembling-machine']['oil-refinery']) metal_caster.crafting_categories = {"melting"} metal_caster.name = "melter" metal_caster.placeable_by = {type="ItemToPlace", item="melter", count=1} metal_caster.minable = {mining_time = 1, result = "melter"} local item = { ty...
local function enum(tbl) local call = {} for k, v in pairs(tbl) do if call[v] then return error(string.format('enum clash for %q and %q', k, call[v])) end call[v] = k end return setmetatable({}, { __call = function(_, k) if call[k] then return call[k] else return error('invalid...
--[[ Time Gates ]] GateActions("Time") local CurTime = CurTime local min = math.min local max = math.max local date = os.date GateActions["accumulator"] = { name = "Accumulator", inputs = {"A", "Hold", "Reset"}, timed = true, output = function(gate, A, Hold, Reset) local DeltaTime = CurTime(...
local SKIP_ANIMATION = script:GetCustomProperty("SkipAnimation"):WaitForObject() local BUTTON = script:GetCustomProperty("SkipButton"):WaitForObject() BUTTON.clickedEvent:Connect(function() Events.Broadcast("SkipAnimation") end) Events.Connect("ShowSkipButton", function() SKIP_ANIMATION.visibility = Visibility.FORCE_...
local lSettings = {} do local strBaseDir = "/home/ameen/mygithub/depos/DeepPep/" lSettings.strFilenameInputSparse = string.format("%s/input_sparseList.csv", strBaseDir) lSettings.strFilenameTarget = string.format("%s/target.csv", strBaseDir) lSettings.nInputWidth=50104 return lSettings end
local ASL = LibStub("AceLocale-3.0"):NewLocale("AddOnSkins", "frFR") if not ASL then return end ASL["About/Help"] = "À Propos/Aide" ASL["AddOn Skins"] = "Skins d'AddOn" ASL["Attach CoolLine to action bar"] = "Attacher CoolLine à la barre d'action" ASL["Attach SexyCD to action bar"] = "Attacher SexyCD à la barre d'acti...
local socket = require "socket" local readbytes = socket.read local writebytes = socket.write local sockethelper = {} local socket_error = setmetatable({} , { __tostring = function() return "[Socket Error]" end }) sockethelper.socket_error = socket_error function sockethelper.readfunc(fd) return function (sz) lo...
import("packages", {alias = "get_packages"}) function main(...) -- get packages local packages = get_packages({onlyhost = true}) local tables = {} local col = 1 local row_max = 0 for _, pkgs in pairs(packages) do for row, pkg in ipairs(pkgs) do tables[row] = tables[row]...
local mapQuests = {} local states = { None = 0x0, Perform = 0x1, Complete = 0x2, PartyQuest = 0x3, No = 0x4 } local questIcons = { questIcon4 = "UI/UIWindow.img/QuestIcon/4/0", questIcon8 = "UI/UIWindow.img/QuestIcon/8/0", } local quests = { -- Adventurer Tutorial -- Reactor1 = 1008, Reactor2 = 1020, Roge...
cnfg = require "config" game = require "game" mf = require "mathFunctions" ff = require "fileFunctions" nf = require "neatFunctions" Inputs = cnfg.InputSize+1 Outputs = #cnfg.ButtonNames form = forms.newform(450, 650, "Metroid-Learning") netPicture = forms.pictureBox(form, 5, 300, 420, 300) event.onexit(onExit) fun...
Player = Class{} require 'Animation' local MOVE_SPEED = 120 local JUMP_VELOCITY = 400 local GRAVITY = 40 function Player:init(map) self.width = 16 self.height = 20 self.x = map.tileWidth * 10 self.y = map.tileHeight * (map.mapHeight / 2 - 1) - self.height self.dx = 0 self.dy = 0 self.map = map --...
---@class MockService local M = {} ---@class MockContext table key protocName value args ---@type table<string, MockContext> local responseMocks = {} ---@type table<string, MockContext> local requestMocksAfterRequest = {} function M.Init() end ---@param context MockContext function M.MockClientRequestResponse(prot...
local helper = require("curstr.lib.testlib.helper") local curstr = helper.require("curstr") describe("file/search", function() before_each(helper.before_each) after_each(helper.after_each) it("file_one", function() curstr.setup({ sources = { ["file/search"] = {opts = {source_pattern = "\\v^([...
PLUGIN.name = "Alcohol" PLUGIN.author = "AleXXX_007, Frosty" PLUGIN.description = "Adds alcohol with effects." ix.lang.AddTable("english", { itemBeerDesc = "An alcoholic drink brewed from cereal grains—most commonly from malted barley, though wheat, maize (corn), and rice are also used.", itemBourbonDesc = "A bottle...
-- luacheck: globals __LEMUR__ local ServerStorage = game:GetService("ServerStorage") local TestEZ = require(ServerStorage.TestEZ) local results = TestEZ.TestBootstrap:run(ServerStorage.TestDataStoreService, TestEZ.Reporters.TextReporter) if __LEMUR__ then if results.failureCount > 0 then os.exit(1) end end
local util = require 'lspconfig.util' return { default_config = { cmd = { 'bal' }, filetypes = { 'bal' }, root_dir = util.root_pattern('Ballerina.toml') } }
local state = { variables = {} } -- | 500 | -- Техника -- Стейт для реализации механики ручных печатей --------------------------------------------------------------------- function state:Load(object) state.variables.code = "" end --------------------------------------------------------------------- function state:Pro...
-- Parts of this file are adapted from the ljsyscall project -- The ljsyscall project is licensed under the MIT License, -- and copyrighted as: -- Copyright (C) 2011-2016 Justin Cormack. All rights reserved. local ffi = require "ffi" local log = require "kong.cmd.utils.log" ffi.cdef [[ extern char **environ; ]] ...
--[[ Name: "sv_hooks.lua". Product: "kuroScript". --]] local MOUNT = MOUNT; -- Called when kuroScript has loaded all of the entities. function MOUNT:KuroScriptInitPostEntity() self:LoadParentData(); self:LoadDoorData(); end;
local math = require 'math' local pairs, print, table = pairs, print, table local maxLineLength = 80 local maxFunctionNesting = 0 local maxTableNesting = 1 local maxTableFields = 5 local maxUpvalues = 5 --- Function compares 2 table entries by LOSC -- @param functionA First table entry -- @param functionB Second ta...
----------------------------------- -- -- Zone: Hall_of_the_Gods (251) -- ----------------------------------- local ID = require("scripts/zones/Hall_of_the_Gods/IDs") require("scripts/globals/conquest") require("scripts/globals/missions") require("scripts/globals/zone") ----------------------------------- function onI...
--[[ desc: Grass, a article of grass. author: Musoucrow since: 2018-5-30 alter: 2018-8-10 ]]-- local _RESMGR = require("actor.resmgr") ---@class Actor.Component.Article.Grass ---@field public frameaniDatas table<number, Lib.RESOURCE.FrameaniData> local _Grass = require("core.class")() function _Grass.HandleData(...
migasiSIM_sorter = require("migasiSIM_sorter")
local initiative = param.get("initiative", "table") local member = param.get("member", "table") or app.session.member -- TODO performance local initiator if member then initiator = Initiator:by_pk(initiative.id, member.id) end local initiators_members_selector = initiative:get_reference_selector("initiating_members...
local L = select(2, ...).L('deDE') L['ALT key'] = ALT_KEY L['ALT + CTRL key'] = ALT_KEY_TEXT .. ' + ' .. CTRL_KEY L['ALT + SHIFT key'] = ALT_KEY_TEXT .. ' + ' .. SHIFT_KEY -- config L['Drag items into the window below to add more.'] = 'Ziehe Gegenstände in das Fenster, um sie hinzuzufügen.' L['Items blacklisted from ...
local helpers = require('test.functional.helpers') local clear, feed = helpers.clear, helpers.feed local eval, eq, neq = helpers.eval, helpers.eq, helpers.neq local execute, source, expect = helpers.execute, helpers.source, helpers.expect describe('completion', function() before_each(function() clear() end) ...
-- You probably shouldnt touch these. local AnimationDuration = -1 local ChosenAnimation = "" local ChosenDict = "" local IsInAnimation = false local MostRecentChosenAnimation = "" local MostRecentChosenDict = "" local MovementType = 0 local PlayerGender = "male" local PlayerHasProp = false local PlayerProps = {} local...
local wk = require 'which-key' local map = require('me.settings.map').cmd_map wk.register({ f = 'Fuzzy find a note', }, { prefix = ';z' }) _G.my_zk = {} _G.my_zk.find = function() local pickers = require 'telescope.pickers' local finders = require 'telescope.finders' local conf = require('telescope.config')....
---@class LossOfControl C_LossOfControl = {} ---@param index number ---@return LossOfControlData|nil event function C_LossOfControl.GetActiveLossOfControlData(index) end ---@param unitToken string ---@param index number ---@return LossOfControlData|nil event function C_LossOfControl.GetActiveLossOfControlDataByUni...
win = { text = { "You made it :)", "Be proud of yourself!", "", "", "Press ESC to quit", "", "Press any key to return to the menu" } } function win:enter() love.graphics.setFont(fonts.text) end function win:draw() local linesTotalHeight = (fonts.text:getHeight() * #self.text) local textOffsetY = (...
--ZFUNC-last-v1 local function last( arr ) --> val return arr[ #arr ] end return last
--[[ ########################################################## S V U I By: Munglunch ########################################################## LOCALIZED LUA FUNCTIONS ########################################################## ]]-- --[[ GLOBALS ]]-- local _G = _G; local unpack = _G.unpack; local select = _G.se...
return{ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x7e,0x81,0xa5,0x81,0xbd,0x99,0x81,0x7e, 0x7e,0xff,0xdb,0xff,0xc3,0xe7,0xff,0x7e, 0x6c,0xfe,0xfe,0xfe,0x7c,0x38,0x10,0x00, 0x10,0x38,0x7c,0xfe,0x7c,0x38,0x10,0x00, 0x38,0x7c,0x38,0xfe,0xfe,0x7c,0x38,0x7c, 0x10,0x10,0x38,0x7c,0xfe,0x7c,0x38,0x7c, 0x00,0x00,0x18,0x3c,0x3c,...
local concord = require("lib.concord") local components = require("components") local updateViewSectors = concord.system({components.viewSector}) local insert, tau, cos, sin = table.insert, math.tau, math.cos, math.sin local function generate(e, collider, viewSector) local vertices = {} local falloff = viewSector....
local argparse = grin.getPackageAPI("Team-CC-Corp/Grin", "argparse") local parser = argparse.new() parser :switch"n" parser :argument"args" :count"*" local options = parser:parse({args={}}, ...) if not options then return end if options.n then write(table.concat(options.args, " ")) else print...
local path = require 'pl.path' local hasMoon, moonscript = pcall(require, 'moonscript') return function() local loadOutputHandler = function(busted, output, options) local handlers = {} local success, err = pcall(function() for word in output:gmatch("%a+") do if word:match('%.lua$') then ...
local Stack = require 'stack' describe('Stack', function() describe(':push', function() it('adds an element to the stack', function() local stack = Stack:new() stack:push(1) assert.are.equal(1, #stack._stack) end) it('records minimum values when inserted', function() local stack...
local checkpoints = require("Checkpoints/checkpoints") local key_blocks = require("Modules.GetimOliver.key_blocks") local volcana3 = { identifier = "volcana3", title = "Volcana 3: Fire Walker", theme = THEME.VOLCANA, width = 4, height = 4, file_name = "volc-3.lvl", world = 3, level = 3,...
local fs = require("fs") local separator = package.config:match("^([^\n]*)") local moduleDir = "node_modules" local packageFile = "package.json" local function getMain (modulePath) local packagePath = modulePath..separator..packageFile if not fs.isFile(packagePath) then return end local content = fs.read(p...
--- GENERATED CODE - DO NOT MODIFY -- AWS CodeBuild (codebuild-2016-10-06) local M = {} M.metadata = { api_version = "2016-10-06", json_version = "1.1", protocol = "json", checksum_format = "", endpoint_prefix = "codebuild", service_abbreviation = "", service_full_name = "AWS CodeBuild", signature_version = "...
local _={} _[12]={} _[11]={} _[10]={tags=_[11],text="ne"} _[9]={tags=_[12],text="ye"} _[8]={tags=_[11],text="ok"} _[7]={_[10]} _[6]={_[9]} _[5]={_[8]} _[4]={_[6],_[7]} _[3]={"return"} _[2]={"text",_[5]} _[1]={"choice",_[4]} return {_[1],_[2],_[3]} --[[ { "choice", { { { tags = {}, text = "ye" } },...
--[[Author: YOLOSPAGHETTI Date: February 5, 2016 Puts Riki behind the target, if the target is an enemy, applies the bonus damage, and queues up an attack order on the target]] function BlinkStrike( keys ) local caster = keys.caster local target = keys.target local ability = keys.ability local ability_level = a...
-- test_hostconnection.lua package.path = package.path..';../?.lua' local Connection = require("hostconnection") local Domain = require("domain") local function printAttributes(conn) print("==== printAttributes ====") print("Host Name: ", conn:getHostName()); print("Encrypted: ", conn:isEncrypted()); print(" S...
cfg = { classDamageMultiplier = { [0] = 0.7,0.7,0.7,0.7,0.7,0.7,0.7,0.7,0.30,0.7,0.30,0.7,0.7,0.7,0.05,0.05,0.05,0.5,0.5,0.2,0.7,0.05 } }
require('neorg').setup { load = { ['core.defaults'] = {}, ['core.norg.concealer'] = {}, ['core.norg.dirman'] = { config = { workspaces = { default = '~/notes' } } } }, }
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. module("luci.controller.admin.index", package.seeall) local debugger = require "luci.debugger" -- Shellfire Box modifications index function --[[ function index() local root = node() if not root.target then ...
BP = { --SETTINGS P_CYLINDER_MAX = 3.8, --max cylinder pressure [at] P_CYLINDER_ATTACK = 0.4, --max cylinder pressure attack per second [at/s] P_CYLINDER_RELEASE = 0.2, --max cylinder pressure release per second [at/s] CYLINDER_VOLUME_RATIO = 0.1, --volume ratio cylinder:resevoir [Na...
local class = require('middleclass') --[[ This component provider always returns the same instance of the component. The instance is passed to the provider at initialisation. ]] local ComponentInstanceProvider = class('ComponentInstanceProvider') --[[ Constructor @param instance The instance to return whenever a com...
--Torch lib for mpi commnication local ffi = require("ffi") ffi.load("libmpi",true) require 'mpiT' mpiT.Init() print('init') _rank = torch.IntStorage(1) mpiT.Comm_rank(mpiT.COMM_WORLD,_rank) rank = _rank[1] _size = torch.IntStorage(1) mpiT.Comm_size(mpiT.COMM_WORLD,_size) size = _size[1] assert(size>1) print('si...
local menu = {} function menu:enter(previous, game) self.game = game end function menu:mousereleased(x, y, button) if button ~= 1 then return end for option, menuButton in pairs(self.game.ui.buttons) do if menuButton:isClicked(x, y) then local ratios = { easy = 0.11, ...
--[[ © 2018 Thriving Ventures AB do not share, re-distribute or modify without permission of its author (gustaf@thrivingventures.com). ]] -- -- Common Prop Protection Interface Support -- http://ulyssesmod.net/archive/CPPI_v1-1.pdf -- local randomNumber = math.Round(math.random() * 50000) CPPI = CPPI or {} CPPI.CPP...
--shorthand lg = love.graphics local shaders = require("src.shaders") local ui = nil local detail_scale = 1 local terrain_res = 256 local terrain_size = 200 local terrain_height = 32 local chunky_pixels = 2 function send_uniform_table(shader, t) for k, v in pairs(t) do if shader:hasUniform(k) then shader:se...
--====================================================================-- -- Config.lua -- -- references -- http://developer.coronalabs.com/content/configuring-projects -- http://www.coronalabs.com/blog/2012/12/04/the-ultimate-config-lua-file/ --====================================================================-- ap...
-- -*- Mode: Lua; -*- -- -- loadpkg.lua load an RPL module, which instantiates a run-time package -- -- © Copyright IBM Corporation 2017, 2018. -- LICENSE: MIT License (https://opensource.org/licenses/mit-license.html) -- AUTHOR: Jamie A. Je...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('XTemplate', { group = "InGame", id = "GamepadCheatsDlg", PlaceObj('XTemplateTemplate', { '__template', "OverlayDlg", }, { PlaceObj('XTemplateWindow', { '__class', "XLabel", 'Dock', "top", 'HAlign', "right", 'TextStyle', "Ov...
--logfile=io.open("C:\\SBERBANK\\QUIK_SMS\\LuaIndicators\\qlua_log.txt", "w") min_price_step = 0 sec_code = "" timescale = "" local w32 = require("w32") Settings= { Name = "*StepNRTR", Length = 5, value_type = "ATR", Kv = 1.5, StepSize = 0, Percentage = 0, Switch = 1, --1 - HighLow, 2 - CloseClose ShowLine = ...
local Players = game:GetService("Players") local AgeRestrictionWhitelist = require(script.Parent.AgeRestrictionWhitelist) local AgeRestrictor = require(script.AgeRestrictor) local GAME_MINUMUM_AGE_REQUIREMENT = 5000 -- in days local EVALUATION_RESULT_TYPES = AgeRestrictor.enums.evaluationResultTypes local GameAgeRes...
--Screens require 'ui.ui_button' require 'screen.mainmenu_screen' require 'screen.gameplay_screen' require 'screen.gameover_screen' require 'button' DEBUG_MODE = false --Game state -- 0 - mainmenu -- 1 - play -- 2 - lose STATE = 0 --Buttons color (r, g, b, a) COLOR_RED = {0.8, 0, 0, 1} COLOR_YELLOW = {0.8, 0.8, 0,...
-- This file is generated by proto-gen-lua. DO NOT EDIT. -- The protoc version is 'v3.19.2' -- The proto-gen-lua version is 'Develop' return { name = [[nopackage/nopackage.proto]], message_type = { { name = [[Message]], field = { { name = [[st...
local AdjacencyGraph = { nodes = nil, edges = nil, } function AdjacencyGraph:new(o) o = o or {} setmetatable(o, self) self.__index = self self.nodes = {} self.edges = {} return o end function AdjacencyGraph:addNode(val) self.nodes[#self.nodes+1] = val return #self.nodes end function AdjacencyGraph:add...
local visitor = require("kotaro.visitor") local print_visitor = require("kotaro.visitor.print_visitor") local utils = require("kotaro.utils") local tree_utils = {} function tree_utils.dump(node, stream) visitor.visit(print_visitor:new(stream), node) end local leaf_mutator_visitor = {} function leaf_mutator_visitor...
-- The Computer Language Benchmarks Game -- http://benchmarksgame.alioth.debian.org/ -- contributed by Wim Couwenberg -- -- requires LGMP "A GMP package for Lua 5.1" -- -- 21 September 2008 local gmp, aux = {}, {} require "c-gmp"(gmp, aux) local add, mul, div = gmp.mpz_add, gmp.mpz_mul_ui, gmp.mpz_fdiv_q local addmul,...
-- Resources: -- ********** -- IPL list: https://wiki.rage.mp/index.php?title=Interiors_and_Locations fx_version 'cerulean' game 'gta5' author 'Bob_74' description 'Load and customize your map' version '2.0.10a' client_scripts { "lib/common.lua" , "lib/observers/interiorIdObserver.lua" , "lib/observers/officeSafe...
local cwThirdPerson = cwThirdPerson; Clockwork.config:AddToSystem("EnableThirdPerson", "enable_third_person", "EnableThirdPersonDesc"); if (!cwThirdPerson.addedSettings) then Clockwork.setting:AddCheckBox("ThirdPerson", "EnableThirdPersonView", "cwThirdPerson", "EnableThirdPersonViewDesc"); Clockwork.setting:AddNum...
local fio = require('fio') local files = {} -- class File local File = {} function File:new(opts) assert(type(opts.path) == 'string') assert(type(opts.content) == 'string' or opts.content == nil) local file = {} file.path = opts.path file.content = opts.content or '' file.content_was_read ...
require("firecast.lua"); local __o_rrpgObjs = require("rrpgObjs.lua"); require("rrpgGUI.lua"); require("rrpgDialogs.lua"); require("rrpgLFM.lua"); require("ndb.lua"); require("locale.lua"); local __o_Utils = require("utils.lua"); local function constructNew_frmGerencPluginItem() local obj = GUI.fromHandle(_obj_new...
TOOL.Category = "NPC Tools 2" TOOL.Name = "NPC Notarget" TOOL.Command = nil TOOL.ConfigName = "" if(CLIENT) then TOOL.Information = { { name = "left" }, { name = "right" } } language.Add("tool.npctool_notarget.name","No Target") language.Add("tool.npctool_notarget.desc","Enable/Disable notarget for ...
local get_map_options = function(custom_options) local options = { noremap = true, silent = true } if custom_options then options = vim.tbl_extend('force', options, custom_options) end return options end local M = {} M.map = function(mode, target, source, opts) vim.api.nvim_set_keymap(mode, target, sour...
class 'piranha_plant_turned' local AI_SHOWING_UP = 0 local AI_SHOWING_IDLE = 1 local AI_HIDING_DOWN = 2 local AI_HIDING_IDLE = 3 function piranha_plant_turned:hideSprite() self.npc_obj:setSpriteWarp(1.0, 1, true) end function piranha_plant_turned:updateWarp() self.npc_obj:setSpriteWarp(1....
--[[========================================= _ _ _ | | | | | | /\ /\ | | | | | | / \ _ __ _ __ / \ _ __ ___ | | | | | |/ /\ \ | '_ \| '_ \ / /\ \ | '__/ __| | |___| |__| / ____ \| |_) | |_) / ____ \| | | (__ |______\____/_/ \_\ .__/| .__/_/ \_\_| \___| Scripting Pro...
require "ISUI/ISUIElement" ---@class ISLabel : ISUIElement ISLabel = ISUIElement:derive("ISLabel"); --************************************************************************-- --** ISPanel:initialise --** --************************************************************************-- function ISLabel:initialise() IS...
local query = {} local utils = require('utils') ----- -- query (id, title, host, port, type, user, password) ----- function query.model() local model = {} model.SPACE_NAME = 'query' model.PRIMARY_INDEX = 'primary' model.ID = 1 model.TITLE = 2 model.HOST = 3 model.PORT = 4 model.TYPE =...
--[=[ @Author: Gavin "Mullets" Rosenthal @Desc: Internal Modular Component System ]=] local Components = {} Components._Name = "Modular Component System" Components._Bindings = {} local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Loader")) local Manager = require("Manager") local RunService...
-- Created by Elfansoer --[[ - TEXTS Bounce ACTIVE: Releases a bolt that bounces against enemies and dealing damage. UPGRADE: Bounces or repeats the main function. PASSIVE: Damage reflect Breach ACTIVE: Shot a long distance arrow that deals damage. UPGRADE: Increases range of the main function. PASSIVE: I...
local handsUp = false CreateThread(function() while not HasAnimDictLoaded("random@mugging3") do RequestAnimDict("random@mugging3") Citizen.Wait(0) end while true do Citizen.Wait(0) if Ped.Active then local status = true if Ped.Available and not Ped.InVehicle and Ped.Visible and Ped.Collecti...