content
stringlengths
5
1.05M
---@class BaseGameCharacterDetails BaseGameCharacterDetails = {} BaseGameCharacterDetails.CreateCharacterInstance = function(s) local desc = s:getDescriptor(); --print(desc); --- if(desc:hasObservation("Tough") or desc:hasObservation("Aggressive")) then -- do combat fit... local r = ZombRand(0, 6)...
-- tree.lua, Lua representation of trees with edge lengths -- Copyright (C) 2015 Boris Nagaev -- See the LICENSE file for terms of use. return function(it) local clone = {} for item in it do table.insert(clone, item) end return clone end
--[[ location object prototype for the Kollos project according to https://github.com/rns/kollos-luif-doc/blob/master/etc/internals.md --]] --[[ The blob name. Required. Archetypally a file name, but not all locations will be in files. Blob name must be suitable for appearing in messages. start() and end() --...
local Class = require 'lib.hump.class' local Component = getClass 'wyx.component.Component' -- ViewComponent -- local ViewComponent = Class{name='ViewComponent', inherits=Component, function(self, newProperties) Component.construct(self, newProperties) end } -- destructor function ViewComponent:destroy() Compon...
-- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may ...
require("util") require("tiled/tilesets") Sector=Class() local S = Sector Sector.speed = 10 --[[-- A sector is basically all the content that can be viewed at once in the world map. A rectangular area. Scrollable and such @param data data of the sector @return new sector ]] function Sector.new(data) ...
test_run = require('test_run').new() REPLICASET_1 = { 'storage_1_a', 'storage_1_b' } REPLICASET_2 = { 'storage_2_a', 'storage_2_b' } test_run:create_cluster(REPLICASET_1, 'storage') test_run:create_cluster(REPLICASET_2, 'storage') util = require('util') util.wait_master(test_run, REPLICASET_1, 'storage_1_a') util.wait...
local env = GAMESTATE:Env() local charP1Name = env.SNCharacterP1 or "" local charP1Path = Characters.GetPath(charP1Name) local charP2Name = env.SNCharacterP2 or "" local charP2Path = Characters.GetPath(charP2Name) local t = Def.ActorFrame{ Def.Quad{ BeginCommand=function(self) ...
-- fixed-point operator Z = function (le) local function a (f) return le( function (x) return f(f)(x) end ) end return a(a) end -- non-recursive factorial F = function (g) return function (n) if n == 0 then return 1 ...
#! /usr/bin/lua require( "common" ) local DataPath = "charms/charms.csv" local Classes = { [ "Queen Talisman" ] = "queen", [ "King Talisman" ] = "king", [ "Dragon Talisman" ] = "dragon", } local Charms = { } io.input( DataPath ) -- \r because io.lines() only removes \n... for line in io.lines() do if line ~=...
event_nsqueen = Creature:new { customName = "Nightsister Queen Boss", socialGroup = "mercenary", faction = "nightsister", level = 300, chanceHit = 50.0, damageMin = 3000, damageMax = 6000, baseXp = 128549, baseHAM = 3900000, baseHAMmax = 4000000, armor = 3, resists = {195,195,195,195,195,195,195,195,200}, ...
local Vector = require('./vector') local Particle = {} Particle.__index = Particle function Particle.new(location) local t = {} setmetatable(t, Particle) t.acceleration = Vector.new(0, 1) t.velocity = Vector.new(love.math.random(-30, 30), love.math.random(-50,0)) t.location = location:clone() t.lifespan ...
#! /usr/bin/env luajit -- -- pcap.lua -- Copyright (C) 2016-2017 Adrian Perez <aperez@igalia.com> -- -- Distributed under terms of the Apache License 2.0. -- local ffi = require("ffi") local pcap = ffi.load("pcap") local C = ffi.C ffi.cdef [[ typedef struct pcap pcap_t; struct pcap_pkthdr { uint64_t ts_sec; ...
local World = {} World.NO_COLLISION = 0 World.COLLISION = 1 function World:new(...) local instance = {} setmetatable( instance, self ) self.__index = self self._init( instance, ... ) return instance end function World:_init(image) self.pasted = love.image.newImageData(256, 256) -- Dirty hack ...
----------------------------------------------------------------------------------------- -- -- main.lua -- ----------------------------------------------------------------------------------------- -- Require the built-in Physics module and start simulation local physics = require( "physics" ) physics.start() ...
local find = import('utils/find') local monitors = import('utils/monitors').configuredMonitors local position = import('utils/position') local fnutils = hs.fnutils local hotkey = hs.hotkey local function getWindow(arrangementTable) if arrangementTable.appTitle ~= nil then return find.window.byApplicationTi...
local M = {} -- Set your own! local apiKey = "" M.frameTime = 512 -- in milliseconds M.sda, M.scl, M.sla = 2, 1, 0x3c -- Default for WeMos D1 mini OLED Shield V1 M.coins = { [1] = "BCH", [2] = "BTC", [3] = "ETH", [4] = "LTC", [5] = "XLM", [6] = "XRP" } -- Default for v1 CMC API function M.getURL() local...
-- Regression test for #2251 test_run = require('test_run').new() engine = test_run:get_cfg('engine') box.execute('pragma sql_default_engine=\''..engine..'\'') -- box.cfg() box.execute("CREATE TABLE t1(a integer primary key, b INT UNIQUE, e INT);") box.execute("INSERT INTO t1 VALUES(1,4,6);") box.execute("INSERT INTO...
local import = make_import(BEDROCK_ROOT) local o, u = import("usecases.renderer"), import("usecases.ui") local r_port, rblueprint = o[1], o[2] local u_port, u_blueprint = u[1], u[2] local l = import("drivers.lib") print("DAIGN") local d = import("drivers.diagnostics") local uniq, nest = l.uniq, l.nest -- local vcs, ...
player_manager.AddValidModel( "PMC5_05", "models/player/PMC_5/PMC__05.mdl" ) list.Set( "PlayerOptionsModel", "PMC5_05", "models/player/PMC_5/PMC__05.mdl" )
cc.c4fFromc4b = function (c4b) return cc.c4f(c4b.r/255.0, c4b.g/255.0, c4b.b/255.0, c4b.a/255.0) end -- SpriteBatchNode cc.Node.reorderChild = function(self, sp, zorder) sp:setLocalZOrder(zorder) end utils = {} if cc.NVGDrawNode then utils.useNVGDrawNode = true end function utils.drawCircle(radius, params) if...
local ProFi = require 'examples.vendor.ProFi' local List = require 'list' local mountme = require 'mountme' local exf = { current = nil, available = {}, exdir = 'examples', } local function getn(n) local s = "" n = tonumber(n) local r = n if r <= 0 then error("Example IDs must be bigger than 0. (...
local commands = {} local customSpawnTable = false local allowedStyles = { [4] = true, [5] = true, [6] = true, [7] = true, [15] = true, [16] = true, } local internallyBannedWeapons = -- Fix for some debug warnings { [19] = true, [20] = true, [21] = true, } local server = setmetatable( {}, ...
local compat = {} return compat
return {'ijzerbedevaart','ijzel','ijzelen','ijzen','ijzer','ijzeraarde','ijzerachtig','ijzerbeslag','ijzerbijter','ijzerboor','ijzerchloride','ijzerconstructie','ijzerdraad','ijzeren','ijzerenheinig','ijzererts','ijzergaas','ijzergaren','ijzergebrek','ijzergehalte','ijzergieter','ijzergieterij','ijzerglans','ijzerhande...
--[[ This file was generated by 'EsoLuaGenerator' at '2021-09-04 16:42:29' using API version '101031'. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! ]] ABILITY_PROGRESSION_RESULT_ABILITY_NOT_KNOWN = 1 ABILITY_PROGRESSION_RESULT_INVALID_LINE = 3 ABILITY_PROGRESSION_RESULT...
--[[============================================================ --= --= App Environment --= --=------------------------------------------------------------- --= --= MyHappyList - manage your AniDB MyList --= - Written by Marcus 'ReFreezed' Thunström --= - MIT License (See main.lua) --= --==========================...
---@class CloseWindowState : zombie.ai.states.CloseWindowState ---@field private _instance CloseWindowState CloseWindowState = {} ---@private ---@param arg0 IsoGameCharacter ---@param arg1 IsoWindow ---@return void function CloseWindowState:onSuccess(arg0, arg1) end ---@public ---@param arg0 IsoGameCharacter ---@para...
function Doc (doc) local meta = {} local hello = { pandoc.Str "Hello,", pandoc.Space(), pandoc.Str "World!" } local blocks = { pandoc.Para(hello) } return pandoc.Pandoc(blocks, meta) end
local file = io.open( "etc/tokentube/keys/luks.key", "r" ) result = file:read("*all"); file:close()
--[[--------------------------------------------------------------------------- gName-Changer | CLIENT SIDE CODE This addon has been created & released for free by Gaby Steam : https://steamcommunity.com/id/EpicGaby -----------------------------------------------------------------------...
require('base') require('mappings') require('theme') require('plugins')
HUD = {} --- Sets blurriness or something `Citizen.InvokeNative(0xBA3D65906822BED5, 1, 1, 0.0, 0.0, 0.0, 100.0)` function HUD:Fov(p1, p2, nearPlaneOut, nearPlaneIn, farPlaneOut, farPlaneIn) Citizen.InvokeNative(0xBA3D65906822BED5, p1, p2, nearPlaneOut + 0.0, nearPlaneIn + 0.0, farPlaneOut + 0.0, farPlaneIn + 0.0) ...
local utils = require "kong.tools.utils" local type = type local fmt = string.format local find = string.find local pcall = pcall local remove = table.remove local concat = table.concat local assert = assert local tonumber = tonumber local encode_base64 = ngx.encode_base64 local decode_base64 = ngx.decode_base64 lo...
-- entity menu button local PANEL = {} AccessorFunc(PANEL, "callback", "Callback") function PANEL:Init() self:SetTall(ScrH() * 0.1) self:Dock(TOP) end function PANEL:DoClick() local bStatus = true local parent = self:GetParent() local entity = parent:GetEntity() if (isfunction(self.callback)) then bStatus ...
//________________________________ // // NS2 CustomEntitesMod // Made by JimWest 2012 // //________________________________ // TeleportTrigger.lua // Entity for mappers to create teleporters class 'PortalGunTeleport' (TeleportTrigger) PortalGunTeleport.kMapName = "portalgun_teleport" local kPortalLoopingCinema...
local fg = table.deepcopy(data.raw["item"]["gate"]) fg.name = "fastGate" fg.icon = "__FastGate__/graphics/icon.png" fg.place_result = "fastGate" data:extend{fg}
hook.Add("PlayerSay", "server_hopper", function(ply, text, public) text = string.lower(text) if ( text == "!hop" || text == "!servers" || text == "!hopper" ) then ply:ConCommand("server_hop") return "" end end )
bc.input = {} local i = bc.input include( "betterchat/client/input/autocomplete.lua" ) hook.Add( "BC_initPanels", "BC_initInput", function() i.history = {} i.historyIndex = 0 i.historyInput = "" end ) hook.Add( "BC_keyCodeTyped", "BC_inputHook", function( code, ctrl, shift, entry ) if code == KEY_UP t...
temp = {} cifre = {}; reply1 = {""} reply2 = {""} dig = 4 cifre[1] = math.random(10) - 1 value = cifre[1] for i = 2,dig do cifre[i] = math.random(9) value = value * 10 + cifre[i] end ind = math.random(dig) for i=1,4 do temp[i] = cifre[i] * 10^(4-i) end if (cifre[1] ~= 0) then if (ind == 1) then ...
return { ["id"]=21004, ["name"]="天台", ["groupName"]="001-开放世界-四糸乃", ["playStartAnimation"]=true, ["fadeIn"]=true, ["sceneName"]="VirusCity_002_Rooftop.unity", ["sceneFile"]="Assets/Scenes/VirusCity_002_Rooftop.unity", ["soundEventName"]="", ["desc"]="", ["cameraEffect"]={ ["templateId"]=0, ["appoint"]=fal...
local cwd = (...):gsub("%.[^%.]+$", "") .. "." require(cwd .. "entergame") require(cwd .. "characterlist") local _M = {} function _M.init() EnterGame.init() CharacterList.init() end function _M.terminate() EnterGame.terminate() CharacterList.terminate() end return _M
--- @type ClickedInternal local _, Addon = ... local frameCache = {} -- Local support functions --- @param frame table local function EnsureCache(frame) if frameCache[frame] ~= nil then return end frameCache[frame] = { pending = {}, applied = {} } end --- @param register table<string,string> --- @param p...
local computer = require("computer") local unicode = require("unicode") local buffer = {} function buffer.new(mode, stream) local result = { mode = {}, stream = stream, bufferRead = "", bufferWrite = "", bufferSize = math.max(512, math.min(8 * 1024, computer.freeMemory() / 8)), bufferMode = ...
local t = Def.ActorFrame{} local sm5SongProgressEnabled = playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).sm5SongProgressStyle if not sm5SongProgressEnabled then return t end local maxSegments = 150 local function CreateSegments(Player) local t = Def.ActorFrame { }; local bars = Def.ActorFrame{ }; local b...
----------------------------------- -- Area: Caedarva Mire -- Mob: Peallaidh ----------------------------------- require("scripts/globals/hunts") function onMobDeath(mob, player, isKiller) tpz.hunts.checkHunt(mob, player, 468) end;
--------projectile ring wand------ minetest.register_tool("minerdream:magic_wand2", { description = "".. core.colorize("#BFFFFF", "magic wand2 (testing)\n")..core.colorize("#A0A0A0", "tier: 2 (uncommon)\n")..core.colorize("#A0A0A0", "projectile speed: 15\n")..core.colorize("#A0A0A0", "projectile gravity: 10...
VV:WaitToRegisterCommands(function(Chat) Chat:RegisterCommand('volume', { linter = { description = "Modifica o volume da rádio/telefone", params = { { name = "volume", help = "Valor <0-100>" } } ...
require("trycatch") require("@vue/compiler-dom") require("@vue/compiler-ssr") require("template-explorer/src/options") require("@vue/runtime-dom") require("source-map") local ssrCompile = compile global = {} window.init = function() local monaco = window.monaco local persistedState = JSON:parse((decodeURIComponen...
local level = BaseLevel:extend({ txlimit = 0 }) function level:constructor () self:load('level1umap.lua', {0,0,0}) Sounds.underworld:play() end return level
ITEM.name = "Plastic (OOC)" ITEM.desc = "A short introduction to a Plastic character.\nThis book is OOC." ITEM.price = 0 ITEM.flag = "3" ITEM.value = 20 ITEM.iconCam = { pos = Vector(0, 200, 6), ang = Angle(0, 270, 0), fov = 4.5, } ITEM.contents = [[ <p align="center"><font color='black' size='6'>Plastic</font></...
if (CLIENT) then local CHAT_FADETIME = 0 local CHAT_FADEDELAY = 5 local OUTLINE_COLOR = Color(0, 0, 0, 150) local NUT_CVAR_CHATMESSAGES = CreateClientConVar("nut_chatmessages", "8", true) nut.chat.panel = nut.chat.panel or {} nut.chat.open = nut.chat.open or false local PANEL = {} function PANEL:Init() se...
Online_Plugins = { --Kernel { name = "Kubridge v.01 by TheOfficialFloW", id = "KUBRIDGE.png", path = "kubridge.skprx", section = "KERNEL", version = "0001", desc = LANGUAGE["INSTALLP_DESC_KUBRIDGE"], KEY = "INSTALLP_DESC_KUBRIDGE", }, { name = "NoNpDrm by TheOfficialFloW v1.2", id = "NONPDRM.png", path = "nonpdrm.skpr...
local container = script.Parent.Parent local roactModule = container:FindFirstChild("Roact") if not roactModule then error("Roact Router failed to find Roact. Did you make sure Roact is in the same folder?") end return require(roactModule)
local cosock = require "cosock" local Packet = require "lumina.protocol.packet" local ConnAckRetCode = require "lumina.protocol.packet.variable_header.connect_ret_code" local utils = require "lumina.utils" local Client = {} Client.__index = Client function Client.new(config) return setmetatable({ config =...
ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) ESX.RegisterServerCallback('night_garage:checkmoney', function(source,cb, money) local xPlayer = ESX.GetPlayerFromId(source) local has = xPlayer.getMoney() if money ~= nil then if has >= money then print('good...
local CollectMe = LibStub("AceAddon-3.0"):GetAddon("CollectMe") local PetBattle = CollectMe:NewModule("PetBattle", "AceEvent-3.0") local db local enemies = {} local function ResetEnemyTable() enemies = {} end local function IsInEnemyTable(id, quality, level) for i = 1, #enemies do if enemie...
--- Eva saver module -- Carry on saving and loading game profile -- Any save contains from different parts -- Every part should be described via protobuf -- -- If save filename in settings.json ends with .json, -- save file will be in json format -- -- @submodule eva local semver = require("eva.libs.semver") local a...
function love.conf(t) t.screen.width = 480 t.screen.height = 480 t.console = false t.title = "Maze Game" t.author = "Lucas Black" end
local lockName = KEYS[1] local lockValue = ARGV[1] local result = redis.call('get', lockName) if result == lockValue then return redis.call('del', lockName) else return 0 end
padawan_politician_01_convo_template = ConvoTemplate:new { initialScreen = "", templateType = "Lua", luaClassHandler = "padawan_politician_01_conv_handler", screens = {} } intro = ConvoScreen:new { id = "intro", leftDialog = "@conversation/padawan_politician_01:s_e16a4410", -- Hello there, you are a perfect matc...
BigWigs:AddSounds("Gu Cloudstrike", { [-5630] = "Alarm", [102573] = "Alert", ["stages"] = "Info", }) BigWigs:AddSounds("Master Snowdrift", { [106434] = "Alert", [118961] = "Alarm", ["stages"] = "Info", }) BigWigs:AddSounds("Sha of Violence", { [-5813] = {"Info","Long"}, [106872] = "Alarm", }) BigWigs:AddSou...
-- CREATED BY CHEEZ -- all rights reserved -- --[[TO DO Modify SetMetatable; Add inheritance; done Add variable support with __newindex metamethod; done ]] -- VARIABLES -- local ScreenSizeX,ScreenSizeY = GuiElement.getScreenSize(); local IsElement,IsTimer = isElement,isTimer; local GetMetatable,Indexed...
--SAFETRIM print("Last failure", node.bootreason()); DEBUG = false PDEBUG = false tmr.create():alarm(1000, tmr.ALARM_SINGLE, function() -- turn off led strip -- node.output(nil, 0) ws2812.init(ws2812.MODE_DUAL) ws2812.write(string.char(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
local parser = require "luacheck.parser" local linearize = require "luacheck.linearize" local analyze = require "luacheck.analyze" local reachability = require "luacheck.reachability" local inline_options = require "luacheck.inline_options" local utils = require "luacheck.utils" local check_whitespace = require "luache...
local utils = require 'utils' local updateScheme = utils.updateScheme local theme = { colorscheme = 'material', -- xresources lightline_theme = 'palenight', } function theme.plugins(use) use 'phenax/palenight.vim' use 'ryanoasis/vim-devicons' use 'kyazdani42/nvim-web-devicons' use { 'kaicataldo/material.v...
return { name = "rect", x = 0, y = 0, w = 0, h = 0, mode = "fill", extend = function (_, rsl, x, y, w, h) rsl.x, rsl.y, rsl.w, rsl.h = x, y, w, h return rsl end}
-- Copyright (C) 2015 Luke San Antonio -- Released under the 3-clause BSD License found in the mod root (LICENSE.txt) return function(map, params) map:set_tile({x = 1, y = 1}, "land") end
local u = require("utils") require("hop").setup() u.nmap("q", ":HopChar1<CR>") u.omap("q", ":HopChar1<CR>") -- command doesn't work in visual mode u.map("v", "q", '<cmd> lua require("hop").hint_char1()<CR>') u.nmap("Q", "q")
local text_color = "|cffafdfd0"; local debugFlag = false; local enabled = true; local spored_output = "SOUND"; -- Addon setup SLASH_SPORED1 = '/spored' local function slashUsage() print("SPORED. Written by Sorny of Defias Brotherhood."); print("Detects Sinister Spores, Glitter bomb, Skyterror and Aviana's Feather."...
local skynet = require "skynet" -- You should use skynet.coroutine instead of origin coroutine in skynet local coroutine = require "skynet.coroutine" local profile = require "skynet.profile" local function status(co) repeat local status = coroutine.status(co) print("STATUS", status) skynet....
ModAssetsModule._providers.payday2concepts = {} local pd2c = ModAssetsModule._providers.payday2concepts pd2c.version_api_url = "http://payday2maps.net/crimenet/checkversion/$id$.txt" pd2c.download_url = "http://payday2maps.net/crimenet/downloads/$id$.zip" pd2c.version_is_number = true
BUI_STORE_SCENE_NAME = "gamepad_store" BUI.Store.Class = ZO_GamepadStoreManager:Subclass() local DONT_ACTIVATE_LIST_ON_SHOW = false function BUI.Store.Class:New(...) return ZO_GamepadStoreManager.New(self, ...) end function BUI.Store.Class:RebuildHeaderTabs() local function OnCategoryChanged(component) ...
--[[ This is the script that the other scripts will require. Once it is required, it will execute ONCE. Future requires() will just return the result of the first execution. Usually it returns a table of functions and/or values. It's a good way to share functions! Also since it only has one "instance" it's a...
-- Copyright 2014 Paul Kulchenko, ZeroBrane LLC; All rights reserved local G = ... local id = G.ID("analyzeall.analyzeall") local function path2mask(s) return s :gsub('([%(%)%.%%%+%-%?%[%^%$%]])','%%%1') -- escape all special symbols :gsub("%*", ".*") -- but expand asterisk into sequence of any symbols ...
if _G.CBLib ~= nil then return _G.CBLib end --Prevent Lua refresh. local CBLib = {} --[[------------------------------------------------------------------------- Helper functions ---------------------------------------------------------------------------]] CBLib.Helper = {} --Formats a number as a string with commas...
-- Telescope (taken from minetest_game binocular mod) local function update_player_property(player) local name = player:get_player_name() local new_zoom_fov = 0 if player:get_wielded_item():get_name() == "pirate:telescope" then new_zoom_fov = 10 end if player:get_properties().zoom_fov ~= new_zoom_fov then play...
#!/usr/bin/env lua -- Sorry for how ugly this script is! It's not really meant to be maintained. local bigint = require("bigint") local bigint_extra = require("bigint-extra") local comparisons = {">", "<", "==", "~=", ">=", "<="} math.randomseed(os.time()) function printf(...) print(string.format(...)) end func...
--[[*]]-- RotatorsLib --[[*]]-- require "rLib.Shared" rLib.Commands = rLib.Commands or {} function rLib.Commands.Server_SetVehicleBattery(player, args) assert(rLib.arg(args.vehicleId, "number")) assert(rLib.arg(args.battery, "number")) local vehicle = getVehicleById(args.vehicleId) if not vehicle then return ...
return { summary = 'Write frames to the Sound.', description = 'Writes frames to the Sound.', arguments = { t = { type = 'table', description = 'A table containing frames to write.' }, blob = { type = 'Blob', description = 'A Blob containing frames to write.' }, sound =...
#!/usr/bin/luajit --[[************************************************************************* ** ** Copyright (C) 2016 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Milian Wolff <milian.wolff@kdab.com> ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the QtWebChann...
----------------------------------- -- Area: Western Adoulin -- NPC: Oka Qhantari -- Type: Standard NPC and Quest NPC -- Involved With Quest: 'Order Up' -- !pos -30 3 -6 256 ----------------------------------- require("scripts/globals/quests"); ----------------------------------- function onTrade(player,npc,trade) e...
return { id = 20, }
-- code from http://luajit.org/ext_ffi.html require 'torch' local t = torch.Timer() t:reset() local floor = math.floor local function image_ramp_green(n) local img = {} local f = 255/(n-1) for i=1,n do img[i] = { red = 0, green = floor((i-1)*f), blue = 0, alpha = 255 } end return img end local functi...
-- In this file you can set up all the properties and settings for your game mode. USE_DEBUG = true -- Should we print statements on almost every function/event call? For debugging. BUTTINGS = { -- These will be the default settings shown on the Team Select screen. GAME_TITLE = "Dota 2 but...",...
-- Threading simulation module -- Task.sleep() -- @author Valansch and Grilledham -- github: https://github.com/Refactorio/RedMew -- ======================================================= -- local Queue = require 'utils.queue' local PriorityQueue = require 'utils.priority_queue' local Event = require 'utils.event' lo...
-- require 'cunn' require 'nn' -- depth to normal -- require '../models/world_coord_to_normal' -- require '../models/img_coord_to_world_coord_focal' -- sub criterions require './relative_depth_cpu' require './normal_negative_cos_cpu' local relative_depth_negative_cos_focal, parent = torch.class('nn.relative_depth_ne...
-------------------------------------------------- -- Spore Tree -- Teal -- raining spores -- Max trunk height 5 -- depth 2-3 local S = df_trees.S minetest.register_node("df_trees:spore_tree", { description = S("Spore Tree Stem"), _doc_items_longdesc = df_trees.doc.spore_tree_desc, _doc_items_usagehelp = df_tree...
--[[--------------------------------------------------------- Name: gamemode:PlayerTraceAttack( ) Desc: A bullet has been fired and hit this player Return true to completely override internals -----------------------------------------------------------]] function GM:PlayerTraceAttack( ply, dmginfo, dir, tra...
-- ======================================================================== -- $File: jcslove_scenemanager.lua $ -- $Date: 2016-09-16 13:48:05 $ -- $Revision: 1.3.0 $ -- $Creator: Jen-Chieh Shen $ -- $Notice: See LICENSE.txt for modification and distribution information $ -- Copyright (c) 2016 by Shen...
local noise_layer = { type = "noise-layer", name = "yaiom-orichalcum" } local control = { type = "autoplace-control", name = "yaiom-orichalcum", richness = true, order = "b-b-z[yaiom]-b[orichalcum]", category = "resource" } local entity = { type = "resource", name = "yaiom-orichalcum", icon = "__y...
local oo = require "loop.base" local json = require "json" local log = require "log" local socket = require "socket" METHOD = { POST = "POST", GET = "GET", PUT = "PUT", DELETE = "DELETE" } CONTENTS = { JSON = "json", XML = "xml", QUERY = "x-www-form-urlencoded" } PROTOCOLS = { HTTP = "http", ...
local OAuth = require "OAuth" module(..., lunit.testcase, package.seeall) function test() local client = OAuth.new("anonymous", "anonymous", { RequestToken = "https://www.google.com/accounts/OAuthGetRequestToken", AuthorizeUser = {"https://www.google.com/accounts/OAuthAuthorizeToken", method = "GET"}, ...
local dirname = require('lspconfig.util').path.dirname local util = require'lean._util' local lsp = require'lean.lsp' local components = require('lean.infoview.components') local subprocess_check_output = util.subprocess_check_output local html = require('lean.html') local lean3 = {} --- Detect whether the current...
object_draft_schematic_space_reactor_collection_reward_reactor_02_mk3 = object_draft_schematic_space_reactor_shared_collection_reward_reactor_02_mk3:new { } ObjectTemplates:addTemplate(object_draft_schematic_space_reactor_collection_reward_reactor_02_mk3, "object/draft_schematic/space/reactor/collection_reward_reacto...
if minetest.registered_nodes["tnt:tnt"] then tnt.register_tnt({ name = "tnt:tnt", description = "Pius' TNT", radius = tonumber(minetest.settings:get("tnt_radius")) or 3, strength = 1000, time = 4, jump = 3, ignite_sound = {name = "tnt_ignite"}, boom_sound = {name = "tnt_explode", def = {gain = 2.5, max...
object_tangible_wearables_necklace_necklace_wookiee_freedom_wke_f = object_tangible_wearables_necklace_shared_necklace_wookiee_freedom_wke_f:new { } ObjectTemplates:addTemplate(object_tangible_wearables_necklace_necklace_wookiee_freedom_wke_f, "object/tangible/wearables/necklace/necklace_wookiee_freedom_wke_f.iff")
local sgui = slib.Components.GUI local function ExecuteListener(panel, action_name, ...) local listeners = panel.sgui_listeners[action_name] for i = 1, #listeners do listeners[i](...) end end function sgui.SystemParentListener(PANEL) PANEL.sgui_listeners_enabled = {} PANEL.sgui_listeners = {} function PANEL:Add...
local assets = { Asset("ANIM", "anim/goosemoose_nest_fx.zip") } local function fn() local inst = CreateEntity() inst.entity:AddTransform() inst.entity:AddAnimState() inst.entity:AddSoundEmitter() inst.AnimState:SetBank("goosemoose_nest_fx") inst.AnimState:SetBuild("goosemoose_nest_fx") inst.AnimState:PlayAni...
-- CURRENCY: The currency used for the gamemode local CURRENCY = "£" -- category: The name of the spawnmenu category -- This is done with language.Add since it's already handled by gmod if CLIENT then language.Add("spawnmenu.category.basewars", "BaseWars") end -- GO NO FURTHER IF YOU ARE NOT AT LEAST SEMI-EXPERIENCE...