content
stringlengths
5
1.05M
return { { effect_list = { { type = "BattleBuffFixDamage", trigger = { "onTakeDamage" }, arg_list = { value = 1, rant = 500, target = "TargetSelf", time = 0 } }, { type = "BattleBuffAddAttr", trigger = { "onAttach" }, arg_list = { attr =...
local Ans = select(2, ...); local Leather = {}; Leather.children = { { name = "BFA", ids = "i:152541,i:154164,i:154165,i:153050,i:153051,i:154722,i:152542,i:168649", useMaxPPU = true, useMinLevel = false, useQuality = true, useMinStack = true, usePercent = tr...
local transitioning_out = false local Update = function(self, dt) if not transitioning_out then SL.Global.MenuTimer.ScreenSelectMusic = SCREENMAN:GetTopScreen():GetChild("Timer"):GetSeconds() end end return Def.ActorFrame{ InitCommand=function(self) -- if the MenuTimer is being used, save the current number of...
-- Mask.lua -- Contains the cMask class representing blocks that can be replaced. Used for example in masks and the replace command. cMask = {} local function ParseBlockArray(a_BlockArray) -- Make from the array a table with the blocktypes as keys. -- In there create a table a boolean value called TypeOnly...
add_rules("mode.debug", "mode.release") set_languages("c++17") set_default("AFK") target("AFK") set_kind("static") add_files("src/*.cpp") add_includedirs("include/", {public = true}) target("tests") set_kind("binary") add_files("tests/*.cpp") add_deps("AFK")
--阴影降临 local m=14010090 local cm=_G["c"..m] function cm.initial_effect(c) --activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCondition(cm.con) e1:SetTarget(cm.tg) e1:SetOperation(cm.op) c:RegisterEff...
wk.register({ ['<leader>f'] = { name = '+Fuzzy Find' }, ['<leader>ff'] = { '<cmd>Telescope find_files<cr>', 'Find file' }, ['<leader>fg'] = { '<cmd>Telescope git_files<cr>', 'Find git file' }, ['<leader>fr'] = { '<cmd>Telescope live_grep<cr>', 'Grep every line in current directory' }, ['<leader>fb'] = { '<cmd>Tele...
-- use { -- "Mofiqul/vscode.nvim", -- require "colorschemes.vscode_nvim" -- end -- } vim.g.vscode_style = "dark" -- vim.g.vscode_transparent = 1 vim.cmd("colo vscode") vim.cmd("hi ColorColumn guibg=#444444")
function Create_Hgn_Carrier_Research0(CustomGroup, playerIndex, shipID) if (Player_GetNumberOfSquadronsOfTypeAwakeOrSleeping(playerIndex, "hgn_mothership") == 0) and (Player_GetNumberOfSquadronsOfTypeAwakeOrSleeping(playerIndex, "hgn_mothership_research0") == 0) then if playerIndex == Universe_CurrentPlayer() then...
-- test/test-lace.lua -- -- Lua Access Control Engine -- Tests for the Lace error module -- -- Copyright 2012 Daniel Silverstone <dsilvers@digital-scurf.org> -- -- For Licence terms, see COPYING -- -- Step one, start coverage pcall(require, 'luacov') local error = require 'lace.error' local testnames = {} local re...
package.path = getScriptPath() .. '/?.lua;' .. package.path local RankedWatchList = require('ranked_watch_list') local settings = { color = { new = RGB(0, 255, 0), old = RGB(255, 255, 0), out = RGB(255, 0, 0) }, daysBack = 0, top = 8, period = 5, -- trading week } local getWatchList = function ...
---[FrameXML](https://www.townlong-yak.com/framexml/live/EasingUtil.lua) EasingUtil = {} ---@param percent number Value from 0.0 to 1.0 ---@return number ---[FrameXML](https://www.townlong-yak.com/framexml/live/EasingUtil.lua) function EasingUtil.InQuadratic(percent) end ---@param percent number Value from 0.0 to 1.0...
Config = {} Config.Locale = 'en' Config.progressBars = true -- If your server has progressBars and wants to use vs text for mugging time. Config.MinMoney = 5 -- Min amount of money received from mugging Config.MaxMoney = 100 -- Max amount of money received from mugging. Config...
local fs = require "lemoon.fs" local sys = require "lemoon.sys" local class = require "lemoon.class" local throw = require "lemoon.throw" local filepath = require "lemoon.filepath" local logger = class.new("lemoon.log","gsmake") local langdir = { golang = ".gsmake/golang/src"; }...
local config = require('modutram.config.defaults') local Grid = require('modutram.grid.Grid') local SlotConfigRepository = require('modutram.slot.SlotConfigRepository') local t = require('modutram.types') local SlotFactory = require('modutram.slot.SlotFactory') local GridModuleFactory = require('modutram.grid_modu...
local CONFIG = wmChat.anonyChat.config GM = GM or GAMEMODE local onKeyCodeTyped = wmChat.dTextEntry.OnKeyCodeTyped wmChat.dTextEntry.OnKeyCodeTyped = function(self, code) if code == KEY_ENTER then if string.Trim( self:GetText() ) != "" then RunConsoleCommand("anony_say", self:GetText()) end ...
registerNpc(181, { walk_speed = 180, run_speed = 700, scale = 95, r_weapon = 0, l_weapon = 0, level = 47, hp = 28, attack = 232, hit = 142, def = 146, res = 64, avoid ...
function onSay(player, words, param) player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Server Info:" .. "\nExp rate: " .. Game.getExperienceStage(player:getLevel()) .. "\nSkill rate: " .. configManager.getNumber(configKeys.RATE_SKILL) .. "\nMagic rate: " .. configManager.getNumber(configKeys.RATE_MAG...
function onCreate() makeLuaSprite('whiteVoid','white',-600,-350) addLuaSprite('whiteVoid',false) setLuaSpriteScrollFactor('whiteVoid', 0.95, 0.95); makeLuaSprite('Pshadows','Pshadow',-500,350) addLuaSprite('Pshadows',false) setLuaSpriteScrollFactor('Pshadows', 1, 1); makeAnimatedLuaSprite('popsies',...
--@import see.rt.ClassLoader --@import see.rt.DefaultClassLoader --@native fs --@native loadstring --@extends see.rt.DefaultClassLoader --[[ Load a class from an archive @param string the archive bytes @param string the path of the class @param string name of the class ]] function ArchiveClassLoader:...
opt.regimes = { -- start, end, LR, WD, { 1, 13, 3e-3, 5e-3, }, { 14, 24, 3e-4, 5e-4 }, { 25, 1e8, 3e-5, 0 }, } opt.nEpochs = 26
if debugScenarios == nil then ---@class debugScenarios debugScenarios = {} end debugScenarios.DebugScenario = { name = "Basic Debug Scenario", --forceLaunch = true, -- use this to force the launch of THIS scenario right after main menu was loaded, save more clicks! Don't do multiple scenarii with this...
package.cpath = "luaclib/?.so" -- 执行命令的当前目录 -- ./3rd/lua/lua ./learn/testdhexchange.lua local crypt = require "client.crypt" -- 如果在skynet中使用直接 local crypt = require "skynet.crypt" --产生一个8字节的随机数,一般作为对称加密算法的随机密钥 local randkey= crypt.randomkey() print("crypt.randomkey():\t", crypt.hexencode(randkey)) -- DHexchange密...
object_static_item_eqp_camping_grill_s1 = object_static_item_shared_eqp_camping_grill_s1:new { } ObjectTemplates:addTemplate(object_static_item_eqp_camping_grill_s1, "object/static/item/eqp_camping_grill_s1.iff")
Scorpio "KittyBox.Widget.Layout.Demo" "" import "KittyBox.Layout" import "KittyBox" TestLinearLayoutParent = LinearLayout("TestLinearLayoutParent") TestLinearLayoutParent.Orientation = Orientation.HORIZONTAL TestLinearLayoutParent:SetPoint("CENTER") TestLinearLayout = LinearLayout("TestLinearLayout") TestLinearLayou...
--[[ -- -- TODO: We should actually write the tests here, these are just examples. local Job = require('plenary.job') describe('Job', function() it('should_chain_data', function() local first_job = Job:new(...) local second_job = Job:new(...) -- Different options first_job:chain(second_job) firs...
-- Returns a n x m array initialized to v function new2Darray2v(n,m,v) grid = {} for i = 1, n do grid[i] = {} for j = 1, m do grid[i][j] = v -- Fill the values here end end return grid end function isNumeric(x) if tonumber(x) ~= nil then return true ...
-- -- -- performancebrowser.lua -- -- local bSupportsStats = getPerformanceStats local DEFAULTCOLUMNSIZE = "180px" local httpColumns = {} local httpRows = {} local updateInterval = 5000 local lastUpdateTime = 0 local queryCatagory = "none" local queryFilter = "" local queryOptions = "" local categoryUpdateTime = {} ...
boss_cursed_zeld_mind_crack = {} if IsServer() then function boss_cursed_zeld_mind_crack:OnSpellStart() local caster = self:GetCaster() local health = self:GetSpecialValueFor("clone_health") local modelScale = self:GetSpecialValueFor("clone_model_scale") local armor = caster:GetPhysicalArmorBaseValue() loca...
-------------------------------------------------------------------------------- -- Game mechanics Settings ----------------------------------------------------- -------------------------------------------------------------------------------- require("config/functions") behaviors = "/scripts/behaviors/behaviors.lua"
local skynet = require "skynet" require "skynet.manager" local socket = require "skynet.socket" local crypt = require "skynet.crypt" local websocket = require "chestnut.websocket" local httpd = require "http.httpd" local urllib = require "http.url" local sockethelper = require "http.sockethelper" local log = require "c...
utils = require('utils') local noremap = utils.noremap -- remap the leader key to <Space> vim.api.nvim_set_keymap('n', '<space>', '', {}) vim.g.mapleader = ' ' -- Disable ex mode noremap('n', 'Q', '<nop>') -- Disable undo text in insert mode noremap('i', '<c-u>', '<nop>') -- Remove last search highlight noremap('n'...
return { hand_left = { { {9, 40}, {11, 36}, {11, 37}, {11, 36}, {0, 0}, {9, 40}, {9, 40}, {10, 40}, {10, 39}, {10, 39}, {0, 40}, {-10, 40}, }, { {9, 40}, {9, 36}, {9, 37}, {9, 36}, {0, 0}, {9, 40}, {9, 40}, {-10, 40}, {-10, 39}, {-10, 39}, {-2, 40}, {-9, 40}, }, { {11, 34}, {0, 0}, {0, 0}, {9, 40}, ...
local sieve = require('sieve') describe('sieve', function() local select = select or function(n, ...) return table.pack(...)[n] end local function primes_from(co) local primes = {} while true do local _, prime = coroutine.resume(co) if prime == nil then return primes end table.inse...
--[[ OpenAPI Petstore This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech ]] -- inline_object class local inline_object = {} local inline...
--Created by mpk5lmao Magice gun -- local enabled = true Player = script.Parent.Parent c = Player.Character game:GetService("Chat"):Chat(Player.Character.Head, "Magic Gun Hurrra!!!!!!!!!") --Player:WaitForDataReady() mouse = Player:GetMouse() run = game:GetService("RunService") function onKeyDown(key) if not enabled th...
--[[ Rematch refers to pets as a single number or string, depending on their context. This reference, called a petID, can be one of seven idTypes: idType example petID value description ---------- --------------------- ----------------------------------- "pet" "Battle-0-0000000etc" ...
local util = require "server.account.util" local resty_redis = require "resty.redis" local _M = {} function _M:new(config) config = config or util.config().db.config local db = resty_redis:new() if config.timeout then db:set_timeout(config.timeout) end local ok,err = db:connect(config.host,config.port) assert(...
local ffi = require "ffi" ffi.cdef [[ static const unsigned int XK_VoidSymbol = 0xffffff; /* Void symbol */ /* * TTY function keys, cleverly chosen to map to ASCII, for convenience of * programming, but could have been arbitrary (at the cost of lookup * tables in client code). */ static const unsigned int XK_Ba...
-- SPDX-License-Identifier: BSD-3-Clause -- -- @todo: -- need to handle: on_pre_player_mined_item, on_robot_pre_mined, -- on_entity_died, script_raised_entity_destroy -- for performance at some point split things into active and inactive lists local glog = require("scripts.glog") local assemblers = re...
local class = require("pl.class") local tablex = require("pl.tablex") local EventEmitter = require("core.EventEmitter"); ---@class Quest : EventEmitter ---@field goals table<QuestGoal,boolean> ---@field state table<QuestGoal, boolean> local M = class(EventEmitter) function M:_init(GameState, i...
--- Http library. Requests content from urls. -- @shared local http_library, _ = SF.Libraries.Register("http") local http_interval = CreateConVar("sf_http_interval", "0.5", {FCVAR_ARCHIVE, FCVAR_REPLICATED}, "Interval in seconds in which one http request can be made") local http_max_active = CreateConVar("sf_http_max_a...
Script.Load("lua/Badges_Shared.lua") local ClientId2Badges = {} --cache owned badges local ownedBadges = {} --Assign badges to client based on the hive response function Badges_FetchBadges(_, response) local badges = response or {} for _, badgeid in ipairs(gDLCBadges) do local data = Badges_GetBadge...
local ls = require"luasnip" local c = ls.choice_node local d = ls.dynamic_node local f = ls.function_node local i = ls.insert_node local s = ls.s local sn = ls.snippet_node local t = ls.text_node local fmt = require("luasnip.extras.fmt").fmt local function split_path(path) local parts = vim.split(path, "[./]", false...
-- Impregnates a creature local args = {...} function impregnate () local victim = dfhack.gui.getSelectedUnit() local genes if (victim == nil) then return end genes = victim.appearance.genes:new() if (victim.relations.pregnancy_timer > 0) then print('Already pregnant!') return end vic...
package("wayland") set_homepage("https://wayland.freedesktop.org/") set_description("Wayland is a protocol for a compositor to talk to its clients as well as a C library implementation of that protocol.") set_license("MIT") add_urls("https://wayland.freedesktop.org/releases/wayland-$(version).tar.xz")...
local telescope_ok, telescope = pcall(require, "telescope") if not telescope_ok then return end local trouble_ok, trouble = pcall(require, "trouble") if not trouble_ok then return end telescope.setup({ defaults = { border = true, layout_strategy = "bottom_pane", layout_config = { height = 0.30...
-- -- Created by IntelliJ IDEA. -- User: hexaquat -- Date: 08/11/17 -- Time: 17:48 -- To change this template use File | Settings | File Templates. -- print("run shaders"); vertex_shader:main(); fragment_shader:main();
local skynet = require "skynet" local env = require "faci.env" local agent_info = require("agent.agent_info") local service = env.service function service.login(account) -- 从数据库里加载数据 agent_info:init_agent(account.uid, 0, 1, "", 0, account, skynet.self()) agent_info:load_agent_info() agent_info:update_...
local Helper = require "datanet.helpers"; local Network = require "datanet.network"; local WorkerDaemon = require "datanet.daemon"; local Error = require "datanet.error"; ----------------------------------------------------------------------------- ---------------------------------------------------...
local skynet = require 'skynet' return { post = function(self) if lwf.auth.user == 'Guest' then ngx.print(_('You are not logined!')) return end ngx.req.read_body() local post = ngx.req.get_post_args() local cjson = require 'cjson' local inst = post.inst local ext = post.ext local version = post...
-- This overwrites a hash - intended for small hashes only -- ARGV = [key, hkey1, hval1, (hkey2, hval2, ...)] -- -- This will make the minimal changes required, not triggering -- hset notifications for key<hkey:hval> pairs that arent modified -- or hdel notifications unecessarily local setkeys = {} local hmset = {} f...
--------------------------------------------------------------- -- Copyright 2020 Deviap (https://deviap.com/) -- --------------------------------------------------------------- -- Made available under the MIT License: -- -- https://github.com/deviap/sample-apps/blob/master/LICENSE -- ...
include("shared.lua") function ENT:Initialize() self.PixVis = util.GetPixelVisibleHandle() self.Materials = { "effects/halo3/fire_large", "effects/halo3/fire_small", "effects/halo3/muzzle_flash_round_fiery", "effects/halo3/flash_large", "effects/halo3/muzzle_flash_round_gaseous", "effects/halo3/explos...
-- Zone: La Theine Plateau (102) -- Desc: this file contains functions that are shared by multiple luas in this zone's directory ----------------------------------- local ID = require("scripts/zones/La_Theine_Plateau/IDs"); require("scripts/globals/npc_util"); ----------------------------------- LA_THEINE_PLATEAU = { ...
--[[ Copyright 2014 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
local replacements = require "src.replacements" local helper = require "test.helper" -- luarocks install luaunit luaunit = require('luaunit') -- lua test/test_replacements.lua -v TestReplacements = {} -- class function TestReplacements:test_tansform_headers() local headers = { h1="v1", h2={ ...
-------------------------------- -- @module ToggleVisibility -- @extend ActionInstant -------------------------------- -- @function [parent=#ToggleVisibility] create -- @param self -- @return ToggleVisibility#ToggleVisibility ret (return value: cc.ToggleVisibility) -------------------------------- -- @funct...
--[[-- variables type --]] print(type("Hello, world!")) print(type(1.4 * 3)) print(type(print)) print(type(type)) print(type(true)) print(type(nil)) print(type(type(_not_exists_variable))) --[[-- common operations --]] do local a = {x = 1} local b = {x = 1} print(a == b) --> false (different pointers) pr...
--[[ Copyright (c) 2015 Calvin Rose 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 Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, s...
--function containers local game = {} --variables data = {} aimable_spell = nil direction = DIRECTIONS.none --init function game.new_game(class) local class_factory = require("resources/script/classes") local dun_gen = require("game/dungeon/dungeongen") console.setFullscreen(config.fullscreen) data.c...
local fail = false print("Test: rshift...") if a8 >> a8 ~= uint.u8(0) then print("\tFail: a8 >> a8 ~= 0") fail = true end if b8 >> 4 ~= uint.u8(8) then print("\tFail: b8 >> 4 ~= 8") fail = true end if (9923 >> c8):asnumber() ~= 0 then print("\tFail: 9 >> c8 ~= 0") fail = true end if not fai...
local parser = require'pegparser.parser' local first = require'pegparser.first' local unique = require'pegparser.unique' local pretty = require'pegparser.pretty' local label = require'pegparser.label' local ban = require'pegparser.ban' local newNode = parser.newNode local calcfirst = first.calcfirst local disjoint = ...
return require "skynet.socketchannel"
local fs = require("stardust/filesystem") local io = {} function io.open(filename, mode) if not fs.isDirectory(filename) then local h, err = fs.open(filename, mode) if not h then return nil, err end return require("buffer").from(h) end return nil, "is directory" end function io.input(file) if not file ...
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]] local ____exports = {} local ____hud = require("constants.hud") local HUD = ____hud.default local ____events = require("constants.events") local Events = ____events.default local ____main_2Dhud = require("gui.main-hud") local toggleInterface = __...
solution "muduo" projectdir = basedir() builddir = path.join(projectdir, '../build') installdir = path.join(projectdir, '../install') bindir = path.join(installdir, 'bin') libdir = path.join(installdir, 'lib') includedir = path.join(installdir, 'include') curheadersdir = includedir ...
-- SquigDemos -- Play around with Squigs! -- -- Scott Lawrence - yorgle@gmail.com ------------------------------------------------- -- standard stuffs import "CoreLibs/object" import "CoreLibs/graphics" import "CoreLibs/sprites" import "CoreLibs/math" import "CoreLibs/timer" -- our classes import "Cursor/cursor" i...
--[[ Save Table to File Load Table from File v 1.0 Lua 5.2 compatible Only Saves Tables, Numbers and Strings Insides Table References are saved Does not save Userdata, Metatables, Functions and indices of these ---------------------------------------------------- table.save( table , f...
-- sponsorblock.lua -- -- This script skips sponsored segments of YouTube videos -- using data from https://github.com/ajayyy/SponsorBlock local ON_WINDOWS = package.config:sub(1,1) ~= "/" local options = { server_address = "https://sponsor.ajay.app", python_path = ON_WINDOWS and "python" or "python3", ...
local Helper = require( 'lctags.Helper' ) local mqueue = Helper.createMQueue( "test" ) print( mqueue:get() )
-- TEMP FILES SHOULD NOT BE LOADED FROM HERE function ClearTempFiles() local WriteFile = "$TMG_tempsquadmenu.lua" writeto(WriteFile) write("") writeto() WriteFile = "$TMG_tempsectormap.lua" writeto(WriteFile) write("") writeto() WriteFile = "$TMG_tempdialoguestatus.lua" writeto(WriteFile) write("")...
function start (song) print("Song: " .. song .. " @ " .. bpm .. " donwscroll: " .. downscroll) setActorAlpha(0, 'tordBG') end local defaultHudX = 0 local defaultHudY = 0 local defaultWindowX = 0 local defaultWindowY = 0 local lastStep = 0 function update (elapsed) local currentBeat = (songPos / 1000)*(bpm...
-- Slope Environment -- -- local Base = require 'src.entities.entity' -- local Slope = Base:extend() -- -- New slope bounds -- -- -- function Slope:new(name, data) -- assert(data.shape == 'polyline', 'Must be a polyline shape.') -- -- -- -- properties -- self.segment = Segment( -- Vec2(data.polyline[1]), -- ...
--====================================================================-- -- Styled TextField -- -- Shows styled use of the DMC TextField Widget -- -- Sample code is MIT licensed, the same license which covers Lua itself -- http://en.wikipedia.org/wiki/MIT_License -- Copyright (C) 2015 David McCuskey. All Rights Reserve...
globals = getfenv(0) MUI_GLOBAL_FONT_TABLE = { "Interface\\AddOns\\minimalUI\\fonts\\8_Bit_Madness.ttf", "Interface\\AddOns\\minimalUI\\fonts\\alterebro.ttf", "Interface\\AddOns\\minimalUI\\fonts\\apple.ttf", "Interface\\AddOns\\minimalUI\\fonts\\Asai-Analogue.ttf", "Interface\\AddOns\\minimalUI\\fonts\\big_nood...
local M = {} function M.starts_with(str, start) return str:sub(1, #start) == start end function M.end_with(str, ending) return ending == "" or str:sub(-#ending) == ending end function M.split(s, delimiter) local result = {} for match in (s .. delimiter):gmatch("(.-)" .. delimiter) do table.insert(result,...
local PlayersInGarage = {} AddEvent("OnDimensionCreated", function(id, name) if name == "base" then for i, v in ipairs(garages) do local obj = CreatePickupTrigger(2, v.entrance[1], v.entrance[2], v.entrance[3], false) AddPickupInDimension(obj, id) local text = CreateText3D("...
----------------------------------- -- Area: Batallia Downs (105) -- Mob: Skirling Liger ----------------------------------- require("scripts/globals/status"); ----------------------------------- function onMobEngaged(mob,target) mob:setMod(tpz.mod.REGAIN, 50); end; function onMobDisengage(mob) mob:setMod(tp...
--[[ ################################################################################ # # Copyright (c) 2014-2016 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 th...
local hex={ u8=function(num) return string.format("%02X",num) end, s8=function(num) return string.format("%02X",num) end, u16=function(num) return string.format("%04X",num) end, s16=function(num) return string.format("%04X",num) end, u32=function(num) return string.format("%08X",num) end, s32=function(num) return...
local KEYS = require('constants').KEYS local resizeMappings = { h = {x = 0, y = 0, w = 0.5, h = 1}, j = {x = 0.25, y = 0.35, w = 0.5, h = 0.65}, u = {x = 0, y = 0, w = 0.5, h = 0.5}, o = {x = 0.5, y = 0, w = 0.5, h = 0.5}, m = {x = 0.5, y = 0.5, w = 0.5, h = 0.5}, l = {x = 0.5, y = 0, w = 0.5, ...
--[[ Hazardous EnVironment Suit Voice Pack ]] RegisterSuitVoicePack( "Opposing Force", "opfor", "////////////////////////////////////////////////////////////////\n// H.E.V. Suit Voice Pack - Opposing Force\n////////////////////////////////////////////////////////////////\n\n// Initialization\nHEV_OPFOR_AAx player/pcv_...
math.randomseed( os.time() ) -- Fisher-Yates shuffle from http://santos.nfshost.com/shuffling.html function shuffle(t) for i = 1, #t - 1 do local r = math.random(i, #t) t[i], t[r] = t[r], t[i] end end -- builds a width-by-height grid of trues function initialize_grid(w, h) local a = {} for i = 1, h do...
BASE.name = "Base Vehicle" BASE.uniqueID = "base_vehicle" BASE.weight = 1 BASE.category = "Vehicle" BASE.functions = {} BASE.cantdrop = true BASE.rotate = 90 BASE.seats = {} BASE.CanTransfer = false BASE.sellFactor = .5 BASE.numplate = { } local function honk_init( vehicle ) vehicle.snd_honk = CreateSound( vehicle, "...
SoundManager.deploy = function (slot0) return end SoundManager.unloadGameEffect = function (slot0, slot1) slot4 = slot0 slot7 = slot1 slot0.unloadEffect(slot3, ResConfig.getSoundPath(slot6)) end SoundManager.preloadGameEffect = function (slot0, slot1) slot4 = slot0 slot7 = slot1 slot0.preloadEffect(slot3, Re...
local vmf = get_mod("VMF") -- #################################################################################################################### -- ##### Locals and Variables ######################################################################################### -- #################################################...
wrk.method = "POST" wrk.body = '{ "token": "tuturu" }' wrk.headers["Content-Type"] = "application/json" --[[ wrk -c 32 -t 16 -s ./benchmark/Route.lua -d 10s http://localhost:3000/ --]]
package.loaded.utils = nil local utils = require "utils" local classInstantiate = utils.classInstantiate local function createWindow(options) -- Create Cheat Engine window local window = createForm(true) -- Window position {xpixels, ypixels}; if nil, put at center of screen if options.windowPosition ~= nil ...
return {'zwitser','zwitserland','zwitsers','zwitserse','zwichten','zwichtstelling','zwiep','zwiepen','zwieper','zwieping','zwiepplank','zwier','zwierbol','zwierbollen','zwieren','zwierf','zwierig','zwierigheid','zwierven','zwijgen','zwijger','zwijggeld','zwijgplicht','zwijgrecht','zwijgzaam','zwijgzaamheid','zwijmel','...
--[[ KeyPool provides a pool of objects suitable for use as map keys. Create a new KeyPool, then call pool:get() to get a new key. Once you're done with it, call key:release(). Example: local pool = KeyPool.new("foo") ... local key1 = pool:get() local key2 = pool:get() map[key1] = thing1 map[key2] = th...
--X・HERO ワンダー・ドライバー --Xtra HERO Wonder Driver --Scripted by Eerie Code function c1948618.initial_effect(c) --c:EnableReviveLimit() --aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0x8),2,2) --set --local e1=Effect.CreateEffect(c) --e1:SetProperty(EFFECT_FLAG_CARD_TARGET) --e1:SetDescription(aux.Stri...
object_tangible_dungeon_mustafar_valley_battlefield_turret_concussion_weapon = object_tangible_dungeon_mustafar_valley_battlefield_shared_turret_concussion_weapon:new { } ObjectTemplates:addTemplate(object_tangible_dungeon_mustafar_valley_battlefield_turret_concussion_weapon, "object/tangible/dungeon/mustafar/valley_ba...
local playsession = { {"gespenstdermaschine", {310692}}, {"foggyliziouz", {1401137}}, {"EPO666", {202975}}, {"tykak", {50257}}, {"MovingMike", {840626}}, {"Karakut", {252453}}, {"010110", {561}}, {"raskl", {19616}}, {"MegaKillBot", {326639}}, {"Akhrem", {2525}}, {"cawsey21", {1097874}}, {"TiTaN", {390990}},...
require("player") require("background") require("entities") function love.load() -- Var elapsedTime = 0 playing = false firstTime = true bestScore = 0 titleAlpha = 1 scaleParams = { scale = 1, translate = {x=0, y=0} } pause = false lifeSprite = love.graphics.newImage("assets/life.png") logo = love....
--Resource Extractor/Coin Currency GUI Handler by DevSenju --[[ HOW TO ADD NEW RESORUCES' GUI ON THE SCREEN AND ON THE PLAYER'S HEAD 1) Add the model of the currency to ReplicatedStorage.Assets. Make sure the model contains a Billboard GUI with an ImageLabel and is tagged with ONLY 1 CollectionService tag cont...
local class = require 'middleclass' local TException = require 'thrift.TException' local TProtocolExceptionType = require 'thrift.protocol.TProtocolExceptionType' local TProtocolException = class('TProtocolException', TException) function TProtocolException:initialize(message, code) TException.initialize(self, mess...
local help = require("mod.helpers") local pauseState = {} function pauseState:enter(from) self.from = from love.graphics.clear() end function pauseState:draw() local str = "PAUSE" local font = love.graphics.getFont() local text = love.graphics.newText(font, str) local w, h = love.graphics.getDimensions()...
--SFX Editor local sfxobj = require("Libraries.sfx") --The sfx object local eapi = select(1,...) --The editors api local sw, sh = screenSize() --The screensize local volColors = {1,2,13,6,12,14,15,7} local se = {} --sfx editor local sfxSlots = 64 --The amount of sfx slots local sfxNotes = 32 --The number of notes ...
local helper = require("thetto.lib.testlib.helper") local thetto = helper.require("thetto") describe("thetto", function() before_each(helper.before_each) after_each(helper.after_each) it("can open ui in list buffer", function() thetto.start("line", {opts = {insert = false}}) assert.filetype("thetto") ...