content
stringlengths
5
1.05M
object_static_worldbuilding_vehicles_shared_pv_snowspeeder = SharedStaticObjectTemplate:new { clientTemplateFileName = "object/static/worldbuilding/vehicles/shared_pv_snowspeeder.iff" } ObjectTemplates:addClientTemplate(object_static_worldbuilding_vehicles_shared_pv_snowspeeder, "object/static/worldbuilding/vehicle...
object_tangible_furniture_jedi_frn_all_dark_throne_hue = object_tangible_furniture_jedi_shared_frn_all_dark_throne_hue:new { } ObjectTemplates:addTemplate(object_tangible_furniture_jedi_frn_all_dark_throne_hue, "object/tangible/furniture/jedi/frn_all_dark_throne_hue.iff")
--[[ Copyright 2013 Patrick Grimm <patrick@lunatiki.de> Copyright 2013 André Gaul <gaul@web-yard.de> 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 ]]-...
local M = {} ---Get the highlight groups for the plugin ---@param theme table ---@return table function M.get(theme) return { -- https://github.com/hrsh7th/nvim-cmp/blob/main/doc/cmp.txt CmpDocumentation = { fg = theme.colors.fg, bg = theme.colors.menu }, CmpDocumentationBorder = { fg = the...
-- R_Debug_01 -- Generated with Blend2HPMS batch on date 2021/09/12 dependencies = { 'Framework.lua', 'libs/logic/models/Player.lua', 'inst/charas/players/Player_Dummy.lua', 'libs/backend/HPMSFacade.lua', 'libs/utils/Utils.lua', 'thirdparty/JsonHelper.lua', 'thirdparty/Inspect.lua' } scene...
local require = require local builder = require "oil.builder" local arch = require "oil.arch.basic.client" module "oil.builder.lua.client" ProxyManager = arch.ProxyManager{require "oil.kernel.lua.Proxies"} function create(comps) return builder.create(_M, comps) end
#!/usr/bin/env bluejay -- TODO: Meta this. function cleanup() print('In cleanup after Script:exit().') end Script:exit() assert(false, 'Did not exit script.')
function one() print ("one") end function two() one() print("two") end function three() two() print("three") debug.getinfo(1) print (debug.name) end
--[[ Description: Task utilities Author: Sceleratis Date: 12/04/2021 --]] local Root, Utilities local ActiveTasks = {} local TaskSchedulers = {} local ObjectMethods = { --// TaskScheduler methods TaskScheduler = { Trigger = function(self, ...) self.Event:Fire(...) end; Delete = function(self) if n...
--- Octree implementation -- @classmod Octree local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore")) local OctreeRegionUtils = require("OctreeRegionUtils") local OctreeNode = require("OctreeNode") local EPSILON = 1e-9 local Octree = {} Octree.ClassName = "Octree" Octree.__index = Oc...
require('cutorch') require('nn') require('cunn') include('TripletCriterion.lua')
who = "luxulux" if script.Parent.className ~= "HopperBin" then Tool = Instance.new("HopperBin") Tool.Name = "Press F To Create Turret" Tool.Parent = game.Players[who].Backpack script.Parent = Tool end vip = game.Players[who] char = vip.Character pi = math.pi Turret = Instance.new("Part") On = false function Clicked(Mo...
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. ...
--- -- @module BTAquireTarget -- -- ------------------------------------------------ -- Required Modules -- ------------------------------------------------ local Log = require( 'src.util.Log' ) local BTLeaf = require( 'src.characters.ai.behaviortree.leafs.BTLeaf' ) -- -----------------------------------------------...
ISEquippedItem = {} ISEquippedItem.prerender = function(self) end
CDriveInManager = inherit(cSingleton) function CDriveInManager:constructor() local start = getTickCount() local qh = CDatabase:getInstance():query("Select * From drivein") for i,v in ipairs(qh) do local drivein = createMarker(v["X"], v["Y"], v["Z"], "corona", 4, 255, 0, 0) enew(drivein, CDriveIn, v["ID"], v["Ty...
-------------------------------------------------------------------------------- -- Панель управления E -------------------------------------------------------------------------------- Metrostroi.DefineSystem("81_701_Panel") function TRAIN_SYSTEM:Initialize() -- Выключатель батареи (ВБ) self.Train:LoadSystem...
-- Copyright (c) 2018 Redfern, Trevor <trevorredfern@gmail.com> -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT describe("moonpie.math", function() local math_ext = require "moonpie.math" it("can clamp a value to a range", function() assert.equals(4, math_ext.clamp...
local LU = require( "adoc_cmd_ext.lpeg_util" ) local cmdDef = [=[/=sub_def[:name: final]-->== {name}[[{name}]]=/]=] describe( "lpeg_util", function() test( "extract_pattern", function() local p = LU.extract_pattern( "/=", "=/" ) local content = p:match( cmdDef ) assert.is.same( "sub_def[:name: f...
local HotReloader = {} HotReloader.__index = HotReloader function HotReloader.new(fabric) return setmetatable({ fabric = fabric; staticUnits = {}; }, HotReloader) end function HotReloader:giveModule(module, initialValue) self.staticUnits[module] = initialValue module.Changed:Connect(function() local newSta...
require('general.reloads') require('general.options') require('general.commands') require('general.variables') require('general.keybinds') require('general.functions')
--license: --: strsubst - string substitution engine --: Copyright (C) Pipapo Project --: 2015, Christian Thaeter <ct@pipapo.org> --: --: This program is free software: you can redistribute it and/or modify --: it under the terms of the GNU General Public License as...
local ffi = require("ffi") ffi.cdef[[ typedef enum { XML_ERR_NONE = 0, XML_ERR_WARNING = 1, /* A simple warning */ XML_ERR_ERROR = 2, /* A recoverable error */ XML_ERR_FATAL = 3 /* A fatal error */ } xmlErrorLevel; typedef enum { XML_FROM_NONE = 0, XML_FROM_PARSER, /* The XML parser */ X...
-- Auto-generated bindings for component 'beacon' beacon = {} beacon.type = "beacon" beacon.address = "00000000-0000-0000-0000-000000000000" beacon.slot = 0 --- -- Get the number of levels for this beacon. -- Returns number -- @return number function beacon.getLevels() return 0 end --- function beacon.pullItemIn...
return {'cake','cakebeslag','cakeblik','cakemeel','cakevorm','cakewalk','cakejes','cakes','cakeje','cakeblikken','cakewalks','cakevormpjes','cakevormen'}
#!/usr/bin/env tarantool local tap = require('tap') local uri = require('uri') local ffi = require('ffi') local static_alloc = require('buffer').static_alloc local function test_parse(test) -- Tests for uri.parse() Lua bindings. -- Parser itself is tested by test/unit/uri unit test. test:plan(28) loc...
return {'woog','woon','woonachtig','woonadres','woonark','woonbebouwing','woonbegeleiding','woonbeleid','woonbestemming','woonbeurs','woonblok','woonboerderij','woonboot','woonbuurt','wooncarriere','wooncentrum','wooncomfort','wooncomplex','woonconcentratie','woonconsument','wooncontainer','wooncultuur','woonduur','woo...
---------------------------------------------------------------------------- -- 81-703, 81-707 intherim electric schemes -------------------------------------------------------------------------------- -- Copyright (C) 2013-2018 Metrostroi Team & FoxWorks Aerospace s.r.o. -- Contains proprietary code. See license.txt f...
require("prototypes.item") require("prototypes.recipe") require("prototypes.technology") require("prototypes.equipment")
local MP = minetest.get_modpath("eco_mapgen") eco_mapgen.register_biome({ name = "desert_1", match = { temperature = 80, humidity = 20 }, flat = MP .. "/schematics/base/grass_flat", slope_upper = MP .. "/schematics/base/grass_slope_upper", slope_lower = MP .. "/schematics/base/grass_slope_lower", slope_i...
require "entitas.object" require "entitas.delegate_event" require "entitas.entity" require "entitas.matcher" require "entitas.group" require "entitas.entity_index" require "entitas.collector" require "entitas.context" require "entitas.reactive_system" require "entitas.systems"
require "prefabutil" local assets = { Asset("ANIM", "anim/firepit.zip"), } local prefabs = { "campfirefire", } local function onhammered(inst, worker) inst.components.lootdropper:DropLoot() local ash = SpawnPrefab("ash") ash.Transform:SetPosition(inst.Transform:GetWorldPosition()) SpawnPrefab("collapse_...
-- << Services >> -- local ReplicatedStorage = game:GetService("ReplicatedStorage") -- << Constants >> -- local CLIENT = script.Parent.Parent local MODULES = CLIENT.Parent:WaitForChild("Modules") local CUT_FOLD = ReplicatedStorage.Models:WaitForChild("Cutscenes") -- << Modules >> -- local SOCKET = require(MO...
return { no_consumer = true, fields = { message = {required = false, type = "string"} } }
print("begin") if math.random(100) <= chance then print("then") end print("end")
--[[ Copyright (c) 2013 David Young dayoung@goliathdesigns.com This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, ...
-- Copyright 2020-2022 The Defold Foundation -- Copyright 2014-2020 King -- Copyright 2009-2014 Ragnar Svensson, Christian Murray -- Licensed under the Defold License version 1.0 (the "License"); you may not use -- this file except in compliance with the License. -- -- You may obtain a copy of the License, together wi...
--[[ Mouse API Provides mouse position and button information ]]-- local mouse = {} local args = {...} local computer = args[1] local love = args[2] function mouse.isDown(button) expect( button, "number" ) return love.mouse.isDown(button) end setmetatable( mouse, {__index = function(t,k) if k == "x" then ...
local status_ok, toggleterm = pcall(require, "toggleterm") if not status_ok then return end toggleterm.setup({ size = 20, open_mapping = [[<c-\>]], hide_numbers = true, shade_filetypes = {}, shade_terminals = true, shading_factor = 2, start_in_insert = true, insert_mappings = true, persist_size = true, dire...
-- ---------------------------------------------------- -- tcbn_update.lua -- -- Nov/08/2010 -- ---------------------------------------------------- function update_proc () end -- ---------------------------------------------------- print ("*** 開始 ***") file_in=arg[1] id_in=arg[2] population_in=arg[3] print (id_in...
ITEM.name = "Beretta 92" ITEM.description= "A semi-automatic pistol chambered for 9x19mm." ITEM.longdesc = "The Beretta 92, also known as the M9, is the Italian-made replacement for the M1911 pistol in the American army.\nIt is a semi-automatic pistol firing the 9x19mm cartridge.\nIt's popular with many stalkers as a s...
require "import" import "mlua.muk" JSON=import "mlua.json" local debug_time_create_n=os.clock() _link=... _title="新建笔记" _but="创建" if _link~=nil then _,title=_link:match("(.+)/(.+)") _title="重命名 "..title _but="重命名" end function onCreate() layout={ RelativeLayout; layout_width="-1"; background=bac...
config = { pool_id = "mongodb_test", size = 1, w_mode = "safe", -- hopefully there's no monbodb instance on this port port = 12345 } assert(mongodb.ensure_pool(config)) function auth_on_register(reg) -- if not connected to mongo this should abort the script and -- return an error to the hook...
function on_activate(parent, ability) local targets = parent:targets():visible():hostile():attackable() local targeter = parent:create_targeter(ability) targeter:set_selection_attackable() targeter:add_all_selectable(targets) targeter:add_all_effectable(targets) targeter:activate() end functio...
-- haproxy_mqtt.lua -- -- Copyright (c) 2018 Baptiste Assmann bedis9@gmail.com -- -- This library is free software; you can redistribute it and/or modify it -- under the terms of the MIT license. See LICENSE for details. -- local mqtt = require 'mqtt' local debug = false --[[-- type: converter purpose: ensures a ...
-------------------------------------------------------------------- -- Setup package path package.path = package.path .. ( ';' .. LIB_FRAMEWORK_LUA_PATH .. '/?.lua' ) .. ( ';' .. LIB_EDITOR_LUA_PATH .. '/?.lua' ) .. ( ';' .. LIB_JUMA_LUA_PATH .. '/?.lua' ) ---------------------------------------------------------...
local lfs = require("lfs") local respond_to = require("lapis.application").respond_to return function(app) app:match("upload", "/admin/depot/upload", respond_to({ before = function(self) if not self.session.current_author then self.errors = self.params.error == "true" self:write({ redirect...
CreateClientConVar("loadout_primary", "weapon_ak47", true, true, "Your primary weapon.") CreateClientConVar("loadout_secondary", "weapon_pistol", true, true, "Your secondary weapon.") CreateClientConVar("loadout_melee", "weapon_crowbar", true, true, "Your melee weapon.")
local Objects = require ('map.file.objects') local W3U = {} function W3U.unpack (input) return Objects.unpack (input) end function W3U.pack (input) return Objects.pack (input) end return W3U
local planet=class(object) function planet:ctor() self.id=0 self.locate_x=0 self.locate_y=0 self.defence_size=0 end function planet:update() self.x end function planet:draw_onmap() love.graphics.draw(self.img_onmap,self.x,self.y,self.size/2,self.size/2) love.graphics.draw(self.station_i...
object_static_structure_general_cave_stalactite_snow_style_01 = object_static_structure_general_shared_cave_stalactite_snow_style_01:new { } ObjectTemplates:addTemplate(object_static_structure_general_cave_stalactite_snow_style_01, "object/static/structure/general/cave_stalactite_snow_style_01.iff")
local class = require('class') local constants = require('constants') local MS_PER_S = constants.MS_PER_S local MS_PER_MIN = MS_PER_S * constants.S_PER_MIN local MS_PER_HOUR = MS_PER_MIN * constants.MIN_PER_HOUR local MS_PER_DAY = MS_PER_HOUR * constants.HOUR_PER_DAY local MS_PER_WEEK = M...
require("mod.omake_overhaul.event.engine")
local assets = { Asset("ANIM", "anim/sch_markfx.zip"), } local function PlayerProxOnClose(inst) inst.AnimState:PlayAnimation("weak_fx") inst.AnimState:PushAnimation("weak_fx", true) end local function PlayerProxOnFar(inst) inst:DoTaskInTime(1, inst.Remove) end local function kill_fx(inst) ...
-- This is basically just a wrapper around the built-in Core ability system. Most animation objects have very short cast -- times so they don't run into each other. A few are suffixed with "_start" and those have very long cast times. See -- FinishAnimation() below for details. Only long animations can be Finished or...
local vga local sin = math.sin local ceil = math.ceil local sincounter = -1 local default_y = 30 local wiggleprops = {} local function wiggle_letters(i, props) if i == 1 then sincounter = sincounter + 1 props = { x = 10, } end if sincounter == (26) then sincounter = 0 end return { ...
local L = BigWigs:NewBossLocale("Utgarde Pinnacle Trash", "zhTW") if not L then return end if L then --L.berserker = "Ymirjar Berserker" end
function fwrite(fmt, ...) return io.write(string.format(fmt, ...)) end fwrite("%d%d%s\n", 5, 6, "hello")
--this file will be a language loader --it will be used to format text from localization files
--[[ Copyright (C) 2016 "IoT.bzh" Author Fulup Ar Foll <fulup@iot.bzh> 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...
local string = string string.oldupper = string.oldupper or string.upper string.oldlower = string.oldlower or string.lower local lowers = {['А']='а',['Б']='б',['В']='в',['Г']='г',['Д']='д',['Е']='е',['Ё']='ё',['Ж']='ж',['З']='з',['И']='и',['Й']='й',['К']='к',['Л']='л',['М']='м',['Н']='н',['О']='о',['П']='п',['Р']='р',...
ruwan_warrant_officer = Creature:new { objectName = "@mob/creature_names:imperial_warrant_officer_ii", socialGroup = "imperial", faction = "imperial", level = 18, chanceHit = 0.32, damageMin = 170, damageMax = 180, baseXp = 1426, baseHAM = 4100, baseHAMmax = 5000, armor = 0, resists = {5,5,5,5,5...
local L = LibStub("AceLocale-3.0"):NewLocale("BestInSlotNG", "ptBR") if L then L["%1$s from raid tier: %2$s"] = "%1$s do tier de raide: %2$s" L["%1$s needs nothing from %2$s %3$s"] = "%1$s n\195\163o precisa de nada de %2$s %3$s" L["%1$s needs the following bosses from %2$s %3$s"] = "%1$s precisa dos seguintes bosses d...
-- --------------------------------------------- -- FrameBufferObject.lua 2014/06/05 -- Copyright (c) 2013-2014 Jun Mizutani, -- released under the MIT open sondurce license. -- --------------------------------------------- local ffi = require("ffi") local gl = require("gles2") local png = require("png") requir...
local util = require("__bztungsten__.util"); -- Lamps util.add_prerequisite("optics", "tungsten-processing") util.set_tech_recipe("optics", {{"automation-science-pack", 1}, {"logistic-science-pack", 1}}) util.add_ingredient("small-lamp", "tungsten-plate", 1) -- Rail signals use lamps util.add_prerequisite("rail-signa...
#! /usr/bin/env lua -- -- libtest-fltvar.lua -- Copyright (C) 2015 Adrian Perez <aperez@igalia.com> -- -- Distributed under terms of the MIT license. -- local libtest = require("eol").load("libtest") for _, varname in ipairs { "var_flt", "var_dbl" } do local variable = libtest[varname] assert.Not.Nil(variable) ass...
local M = {} local colors = { background = "#2d2a2a", foreground = "#e9d7aa", red = "#de6763", green = "#8ec07c", yellow = "#e5aa1f", blue = "#88b4a3", magenta = "#d4879c", } M.builder = { active = "Mode|FileName|Diagnostics|=|FileType", inactive = "FileName|=|FileType", } M.theme = { ModeNormal ...
lol = {} for line in io.lines(arg[1]) do if not n then n = line else for i = 1, n do if not lol[i] then lol[i] = line break elseif #line > #lol[i] then lol[i], line = line, lol[i] end end end end print(table.concat(lol, "\n"))
--local M = {} local home = _ENV._HOME --print("in config.lua",home) if not home then local lfs = require "lfs" if not lfs then print("! You must set '_HOME' or put lfs.dll under the same dir as config.lua") return nil end home = lfs.currentdir() end package.cpath=string.format( '%s/?.dll;%s/?53.dll;%...
function onSongStart(elapsed) debugPrint('WARNING-press the different notes or else you die') end
DLConfig = {} DLConfig.MaxPlayers = GetConvarInt("sv_maxclients", 64) DLConfig.IdentifierType = "steam" DLConfig.DefaultSpawn = {x = -1035.71, y = -2731.87, z = 12.86, a = 0.0} DLConfig.Money = {} DLConfig.Money.MoneyTypes = {["cash"] = 0, ["bank"] = 2500 } DLConfig.Money.DontAllowMinus = {"cash"} DLConfig.Player = ...
---分割字符串 ---@param input string 要分割的原串 ---@param delimiter string 按此字符分割 ---@return table function string.split(input, delimiter) input = tostring(input) delimiter = tostring(delimiter) if (delimiter=='') then return false end local pos,arr = 0, {} for st,sp in function() return string.find(input, delimiter, ...
local typedefs = require "kong.db.schema.typedefs" return { name = "jwt-backend", fields = { { consumer = typedefs.no_consumer }, { protocols = typedefs.protocols_http }, { config = { type = "record", fields = { { api_validate_url = { type = "string", default = "/authenticati...
function storyline.is_valid_event(evt) if type(evt) ~= "table" then return false end if not evt.description or type(evt.description) ~= "string" or not evt.on_run or type(evt.on_run) ~= "function" then return false end return true end function storyline.is_valid_script(script) if not script or type(scri...
return {'bmw','bmws'}
local lua = { extract_function = function(opts) return { create = string.format( [[ local function %s(%s) %s return %s end ]], opts.name, table.concat(opts.args, ", "), type(opts.body) == "ta...
local function testReferer(refererConf, refererToTest) if refererConf == refererToTest then return true end local authorizedReferer = string.gsub(refererConf, "%.", "%%.") authorizedReferer = string.gsub(authorizedReferer, "*", "[^.]*") local test = string.match(refererToTest, authorizedReferer) if ...
function ACF_GetGunValue(BulletData, Value) BulletData = istable(BulletData) and BulletData.Id or BulletData local Class = ACF.Weapons.Guns[BulletData] if Class then local Result = Class.round and Class.round[Value] or Class[Value] if Result ~= nil then return Result end local GunClass = ACF.Classes.GunCl...
function Marwyn_OnCombat (pUnit, Event) local chance = math.random(1,5) if(chance == 1) then pUnit:SendChatMessage(12, 0, "As you wish, my lord.") elseif(chance == 2) then pUnit:SendChatMessage(12, 0, "The master surveyed his kingdom and fount it... Lacking. His judgement was swift and without mercy: DEATH TO ALL...
--- 材料道具类 -- @module MaterialItem -- @copyright Lilith Games, Avatar Team -- @author Dead Ratman local MaterialItem = class("MaterialItem", ItemBase) function MaterialItem:initialize(_baseData, _derivedData) ItemBase.initialize(self, _baseData, _derivedData) --print("MaterialItem:initialize()") end --在背包中使用 f...
ENT.Type = "anim" ENT.Base = "base_rd3_entity" ENT.PrintName = "Suit Dispenser" list.Set("LSEntOverlayText", "other_dispenser", { resnames = {"oxygen", "energy", "water", "nitrogen"} })
--氷結界の晶壁 --LUA by Kohana♡ function c100340027.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,100340027+EFFECT_COUNT_CODE_OATH) e1:SetTarget(c100340027.target) c:RegisterEffect(e1) --Unaffected local e2=Effect.CreateE...
local _ba='1.6.1'local aba,bba,cba,dba=next,type,select,pcall;local _ca,aca=setmetatable,getmetatable local bca,cca=table.insert,table.sort;local dca,_da=table.remove,table.concat local ada,bda,cda=math.randomseed,math.random,math.huge;local dda,__b,a_b=math.floor,math.max,math.min;local b_b=rawget local c_b=table.unpa...
local Date = require('orgmode.objects.date') local utils = require('orgmode.utils') ---@class Calendar ---@field win number ---@field buf number ---@field callback function ---@field namespace function ---@field date Date ---@field month Date local Calendar = { win = nil, buf = nil, callback = nil, namespace =...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> 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 h...
-- Only required if you have packer in your `opt` pack vim.cmd [[packadd packer.nvim]] -- custom scripts require('script.lynx') -- means: ~/.config/nvim/lua/script/lynx.lua return require('packer').startup(function() use {'wbthomason/packer.nvim', opt = true} use 'ihsanturk/vim-grave-navigation' -- navigate windo...
require("slam.slam") require("StringUtils") require("mymath") class = require("middleclass.middleclass") gamestate = require("hump.gamestate") timer = require("hump.timer") tween = require("tween.tween") Scene = require("Scene") Entity = require("Entity") Keyboard = require("input.Keyboard") Animation = require("anima...
-- Copyright 2021 SMS -- License(Apache-2.0) project "Gobang" kind "ConsoleApp" language "C++" cppdialect "C++latest" staticruntime "on" targetdir("%{wks.location}/build/" .. outputdir .. "/%{prj.name}/bin") objdir ("%{wks.location}/build/" .. outputdir .. "/%{prj.name}/obj") files {"**.h", "**.cpp",...
--- @module PlainModule -- A simple Module used by Modules.test local mod = {} mod.name = "PlainModule" return mod
-- https://www.roblox.com/games/12109643/Fencing game:GetService('RunService').Stepped:connect(function() for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do if v.Name == "Spray" then if v.Handle.Mesh then v.Handle.Mesh:Destroy() end v.Parent = workspace end end end) local function paint() for i,v in...
return {'wayne','waynes'}
--------------------------------------------- -- Healing Stomp -- -- Description: Stomps the ground to apply regeneration. -- Type: Enhancing -- Utsusemi/Blink absorb: N/A -- Range: Self -- Notes: Only used by notorious monsters. --------------------------------------------- require("scripts/globals/monstertpmoves") re...
require "object.character" require "tool.function" -- run to the character and explode at his contact redmonster={ nbr=0, } function create.redmonster(world,x,y,gid) local nrm={} redmonster.nbr=redmonster.nbr+1 nrm.nbr=redmonster.nbr nrm.name="redmonster" nrm.sound=gid.sound or "redmonster" if not sound[nrm....
EFFECT.Mat = Material("thrusteraddon/sperm") --[[--------------------------------------------------------- Initializes the effect. The data is a table of data which was passed from the server. ---------------------------------------------------------]] function EFFECT:Init(data) local size = 16 self:Set...
-- -- Copyright (c) 2018 Milos Tosic. All rights reserved. -- License: http://www.opensource.org/licenses/BSD-2-Clause -- local params = { ... } local SOURCE_FILES = params[1] or false local IS_LIBRARY = params[2] or false local IS_SHARED_LIBRARY = params[3] or false local COPY_QT_DLLS = params[4] or false local W...
---@meta ---* 所谓阻塞模式,实际上是利用了 lua 的 coroutine 机制。当你调用 socket api 时,服务有可能被挂起(时间片被让给其他业务处理),待结果通过 socket 消息返回,coroutine 将延续执行。 ---* socketdrver 的 Lua 层表示 ---* 注意与 gateserver 的区别, 他们都会接管 socket 类型的消息 ---@class socket local socket = {} ---* 作为客户端,连接到一个 IP和端口 ---* 会返回一个代表了 skynet 内部和系统套接字文件描述符相关的结构索引 ---@param addr string @可...
return function (path) assert(#path > 0) local shell = require "core.shell" local LUAC = '' if shell.OS == 'osx' then LUAC = "../bin/osx/luac" elseif shell.OS == 'linux' then LUAC = "../bin/linux/luac" else error('not support yet: ' .. shell.OS) end LUAC = shel...
local autocommands = {} local config = require "config" lvim.autocommands = { _general_settings = { { "Filetype", "*", "lua require('utils.ft').do_filetype(vim.fn.expand(\"<amatch>\"))", }, { "FileType", "qf", "nnoremap <silent> <buffer> q :q<CR>", }, { "...
orgate = class("orgate") function orgate:init(x, y, r) self.x = x self.y = y self.cox = x self.coy = y self.visible = false self.r = {unpack(r)} table.remove(self.r, 1) table.remove(self.r, 1) --VISIBLE if #self.r > 0 and self.r[1] ~= "link" then self.visible = (self.r[1] == "true") table.remove(self.r...
local iPN = ...; assert(iPN,"[Graphics/PaneDisplay text] No PlayerNumber Provided."); local t = Def.ActorFrame {}; local function GetRadarData( pnPlayer, rcRadarCategory ) local tRadarValues; local StepsOrTrail; local fDesiredValue = 0; if GAMESTATE:GetCurrentSteps( pnPlayer ) then StepsOrTrail = GAMESTATE:GetCu...