content
stringlengths
5
1.05M
--[[ © CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). Clockwork was created by Conna Wiles (also known as kurozael.) http://cloudsixteen.com/license/clockwork.html --]] local Clockwork = Clockwork; local COMMAND = Clockwork.command:New("PlySetGroup")...
function onCreate() -- background shit makeLuaSprite('stage', 'impostor-reactor-stage', -1500, -1000); addLuaSprite('stage', false); scaleObject('stage', 0.7, 0.7); -- sprites that only load if Low Quality is turned off if not lowQuality then end close(true); --For performance reasons, close this script once t...
-- Test string.split. local function checkSplit(str, sep, t) local s = string.split(str, sep) if #s ~= #t then return false end for i = 1, #t do if t[i] ~= s[i] then return false end end return true end -- Empty string T.Pass(checkSplit("",nil, {""})) T.Pass(checkSplit("","|", {""})) -- Empty substring...
return { { effect_list = { { type = "BattleBuffAddReloadRequirement", trigger = { "onAttach", "onRemove" }, arg_list = { type = 23, number = -0.55 } }, { type = "BattleBuffCancelBuff", trigger = { "onChargeWeaponReady" }, arg_list = { count =...
local Draw = require("api.Draw") local Ui = require("api.Ui") local IInput = require("api.gui.IInput") local UiList = require("api.gui.UiList") local UiTextGroup = require("api.gui.UiTextGroup") local UiWindow = require("api.gui.UiWindow") local InputHandler = require("api.gui.InputHandler") local ICharaMakeMenu = req...
local class = _G.class return class { funcArray = nil, name = "event", __event = true, active = true, connect = function (self, func) self.funcArray[1] = func return 1 end, bind = function (self, func, key) local funcArray = self.funcArray local ...
-- P51 - [练习 1.43] function compose(f, g) return function (x) return f(g(x)) end end function repeated(f, n) if n == 1 then return f else return compose(f, repeated(f, n - 1)) end end function square(x) return x * x end print(repeated(square, 3)(5)) -- 625
local ObjectManager = require("managers.object.object_manager") local QuestManager = require("managers.quest.quest_manager") require("utils.helpers") FsCrafting1Goto1 = GoToLocation:new { -- Task properties taskName = "FsCrafting1Goto1", -- GoToLocation properties waypointDescription = "@quest/quest_journal/fs_que...
local utils = require("miscUtils") return { name = "cooldown-manager", description = "Removes ping cooldowns.", visible = false, disabledByDefault = false, run = function(self, guildSettings, guild, conn) local row, _ = conn:exec("SELECT * FROM ping_cooldowns WHERE guild_id="..guild.id..";","k") row ...
--Copyright 2016 Alex Iverson --credit to BaconJS for the algorithm local property = require "fr.property" local isObservable = require "fr.isObservable" local function applyStreamValue(key, index) return function(stack, vals) stack[#stack][key] = vals[index] end end local function constantValue(key, value) ...
-- -- simple todo tool, -- -- todo items has a name, description, priority and group. -- only one group is active at a time. -- -- when enabling the tool, a presenter is picked, which is what UI element -- which will provide description and controls. -- local log = suppl_add_logfn("tools"); local load_items, store_item...
local path = mod_loader.mods[modApi.currentMod].scriptPath local getModUtils = require(path .."libs/getModUtils") local hotkey = require(path .."libs/hotkey") local this = {} -- Reset Turn will reset both Vek and Mech actions. -- Let's just hide and suppress it to simplify everything. sdlext.addFrameDrawnHook(functio...
TestUI = {} function TestUI.render( self ) ImGui.Text("But With Live Hot Reload,") ImGui.Text("Not Borad!") local draw_list = ImGui.GetWindowDrawList() draw_list:AddText( ImVec2( 0, 0 ), 0xffeeffff, "Draw List Test." ) end function TestUI.init( self ) AddViewer( "TestUI", function() self:render() end) end
local json = require "json" local util = require "util" local exception = require "exception" local function getMessage (err, locale) if err then local localization = require "localization" if type(err) == "table" then if #err > 0 then local args = {} for i=2,#err do args[#args + 1] = err[i] ...
function sysCall_init() -- Make sure we have version 2.4.13 or above (the particles are not supported otherwise) v=sim.getInt32Parameter(sim.intparam_program_version) if (v<20413) then sim.displayDialog('Warning','The propeller model is only fully supported from V-REP version 2.4.13 and above.&...
add_message_with_pause("TIR_SPEECH_TEXT_SID") clear_and_add_message("TIR_SPEECH2_TEXT_SID")
local tinsert = table.insert local isUsingMicroTask = false local callbacks = {} local pending = false local function flushCallbacks() pending = false local copies = callbacks callbacks = {} for i = 1, #copies do copies[i]() end end ---@param cb Function ---@param ctx Object local functio...
PolyGen = {} function PolyGen:SecondstoHMS (seconds) local h,m,s h = math.floor(seconds / 3600,0) m = math.floor ((seconds - h * 3600) / 60,0) s = seconds - (h * 3600 + m * 60) return h,m,s end function PolyGen:FormatSeconds(seconds) h,m,s = self:SecondstoHMS(seconds) return (m>9 and m or "0" .. m) .. ":" .. ...
buffer = Procedural.TextureBuffer(128) Procedural.Image(buffer):setFile("red_brick.jpg"):process() Procedural.Sharpen(buffer):setType(Procedural.Sharpen_SHARP_GAUSSIAN):process() tests:addTextureBuffer(buffer) dotfile = tests:getDotFile("texture_27b", "Sharpen_gaussian_Demo") dotfile:set("Image", "texture_image", "Shar...
#include "scripts/savedata.lua" #include "scripts/textbox.lua" local modname = "Thruster Tool" function init() saveFileInit() end function draw() UiPush() UiTranslate(UiWidth(), UiHeight()) UiTranslate(-50, 3 * -50) UiAlign("right bottom") UiFont("regular.ttf", 26) UiButtonImageBox("ui/common/box-ou...
local is_restarting = false local function RestartGamemode() game.CleanUpMap() for k,v in ipairs(player.GetAll()) do v:SetPlayerClass(CLASS_BASE) player_manager.SetPlayerClass(v, GAMEMODE.PlayerClasses[CLASS_BASE]) v:SetCurrency(0) v:Spawn() end GAMEMODE:StartVote(VOTE_TYPE_CORE) GAMEMODE:SetWaveNumber(0) ...
-- Specify input and output paths: OUTPUT_FILE = os.getenv("TMP_RST_DIR") .. "/index.rst" INPUT_FILE = os.getenv("DOXYGEN_XML_DIR") .. "/index.xml" FRAME_FILE = "index.rst.in" FRAME_DIR_LIST = { os.getenv("DOXYREST_FRAME_DIR") .. "/cfamily", os.getenv("DOXYREST_FRAME_DIR") .. "/common" } -- Usually, Doxygen-based doc...
function file_exists(name) local f=io.open(name,"r") if f~=nil then io.close(f) return true else return false end end
--[[ Name: 23_counters_with_debounce.lua Desc: This program demonstrates how to configure counters, with debounce, using DIO channels. Note: The debounce time for each counter will be between debounceinterval and 2*debounceinterval milliseconds. The debounce time is determined by the ...
local wk = require('which-key') wk.setup({ key_labels = { ['<space>'] = 'spc' }, icons = { breadcrumb = "›", separator = "→", }, hidden = { 'b%d$' } }) wk.register({ ['<leader>'] = { b = { name = '+buffer', ['1'] = { '<cmd>b1<cr>', 'wh...
local vim = vim local lsp = require 'autocomplete.sources.lsp' local snippet = require 'autocomplete.sources.snippet' local path = require 'autocomplete.sources.path' local util = require 'autocomplete.util' local Var = require 'autocomplete.manager' local M = {} local is_path = '\\f*$' -----------------------------...
--- -- @module IKResourceUtils local IKResourceUtils = {} function IKResourceUtils.createResource(data) assert(type(data) == "table", "Bad data") assert(data.name, "Bad data.name") assert(data.robloxName, "Bad data.robloxName") return data end return IKResourceUtils
local adManager={} local appLovin=require "scripts.externalServices.appLovinManager" local vungle=require "scripts.externalServices.vungleManager" local inMobi=require "scripts.externalServices.inMobiManager" local supersonic=require "scripts.externalServices.supersonicManager" local fbAds=require "scripts.externalServ...
-- This file is automatically generated, do not edit! -- Item data (c) Grinding Gear Games return { ["DeterminationPhysicalDamageReduction"] = { affix = "", "(5-8)% additional Physical Damage Reduction while affected by Determination", statOrderKey = "3998", statOrder = { 3998 }, level = 1, group = "AuraBonus", weigh...
local HighlighterFactory = require("thetto.lib.highlight").HighlighterFactory local windowlib = require("thetto.lib.window") local filelib = require("thetto.lib.file") local vim = vim local M = {} local Sidecar = {} Sidecar.__index = Sidecar M.Sidecar = Sidecar function Sidecar.new() local tbl = {_window = nil, _h...
fx_version 'adamant' game 'gta5' author 'https://github.com/Zhawty/' client_scripts { '@vrp/lib/utils.lua', 'config/*.lua', 'client/*.lua' } server_scripts { '@vrp/lib/utils.lua', 'config/*.lua', 'server/*.lua' }
for index, force in pairs(game.forces) do local technologies = force.technologies local recipes = force.recipes recipes["burner-inserter-upgrade"].enabled = technologies["automation-2"].researched if technologies["automation-2"].researched then recipes["burner-inserter-upgrade"].enabled = true end end
local bbl = require("bbl-twitter") local twitter_config = bbl.twitter_config conf = { state_path = '/tmp', services = {'#home'}, interface = 'pppoe-wan', } --defaults local function read_file(filename) local f = io.open(filename, 'r') if not f then return nil, 'Could not open' end local data, err = f:read...
function create(x, y) entity = getNewEntity("item", x, y, "basketBall") removeEntityFunction(entity, "action") addEntityFunction(entity, "action", "void") removeEntityFunction(entity, "update") addEntityFunction(entity, "update", "void") return entity end timeScored = 0 function update(entity)...
-- -- Copyright (c) 2016, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. -- -- Generic mode...
----------------------------------- -- Area: Port Bastok -- NPC: Kagetora -- Involved in Quest: Ayame and Kaede, 20 in Pirate Years -- !pos -96 -2 29 236 ----------------------------------- require("scripts/globals/settings") require("scripts/globals/quests") ----------------------------------- function onTrade(playe...
WireToolSetup.setCategory( "Detection/Beacon" ) WireToolSetup.open( "locator", "Locator", "gmod_wire_locator", nil, "Locators" ) if ( CLIENT ) then language.Add( "Tool.wire_locator.name", "Locator Beacon Tool (Wire)" ) language.Add( "Tool.wire_locator.desc", "Spawns a locator beacon for use with the wire syste...
-- cartographer/documentation.lua -----Load documentation via doc_helper------------------------ local MP = minetest.get_modpath(minetest.get_current_modname()) local docpath = MP .. DIR_DELIM .. "doc" doc.add_category("cartography", { name = "_Cartography_", description = "Cartography Documentation", build_formspe...
--- shortcuts v3 = Vector3.new cn = CFrame.new ca2 = CFrame.Angles mf = math.floor mran = math.random mrad = math.rad mdeg = math.deg ca = function(x,y,z) return ca2(mrad(x),mrad(y),mrad(z)) end mran2 = function(a,b) return mran(a*1000,b*1000)/1000 end ud=UDim2.new bn = BrickColor.new c3 = Color3.new ---...
local playsession = { {"Ed9210", {34668}}, {"tackorob", {862}}, {"jschuba", {850112}}, {"Miteone", {731}}, {"PogomanD", {643546}}, {"TXL_PLAYZ", {540480}}, {"CrazyCrabEater", {3492}}, {"frostig", {1247}}, {"ultraxan", {42635}}, {"greggk124", {4495}}, {"johnluke93", {18664}}, {"chronodekar", {4262}}, {"Disc...
local Gui3 = ... Gui3.TextInput = class("Gui3.TextInput", Gui3.Element) Gui3.TextInput.padding = 0 function Gui3.TextInput:initialize(x, y, w, lines) x = x or 0 y = y or 0 self.charW = w self.lines = lines or 1 self.text = love.graphics.newText(fontOutlined, "") self.scroll = {0, 0} self...
local class = require 'middleclass' local Event = class('FindEntitiesWithTag') function Event:initialize(tags) self.tags = tags or {} self.result = {} end return Event
--[[ Copyright (c) 2017, Vsevolod Stakhov <vsevolod@highsecure.ru> 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 ...
-- c lib / bindings for libuv local uv = require 'luv' -- tcp local tcp = require 'async.tcp' -- handle local handle = require 'async.handle' -- fiber local fiber = require 'async.fiber' -- repl: local repl = {} -- bind io: local bindok = false local stdin,stdout,stderr local function bindio() if not bindok the...
----------------------------------- -- Area: Northern San d'Oria -- NPC: Arachagnon -- Standard Merchant NPC ----------------------------------- local ID = require("scripts/zones/Northern_San_dOria/IDs") require("scripts/globals/shop") ----------------------------------- function onTrade(player, npc, trade) end func...
-- -- YATM Data Logic -- local mod = foundation.new_module("yatm_data_logic", "2.0.0") mod:require("formspec.lua") mod:require("common.lua") mod:require("data_math.lua") mod:require("nodes.lua") mod:require("items.lua") mod:require("migrations.lua") if foundation.com.Luna then mod:require("tests.lua") end
-- see: https://github.com/Rochet2/lualzw -- MIT License - Copyright (c) 2016 Rochet2 -- Transparent file system compression for non-binary files using lzw -- Files that are compressed will have the first bytes in file set to 'LZWC'. -- If a file does not benefit from compression, the contents will not be altered. l...
--[[ -- author: xjdrew -- date: 2014-07-17 --]] local c = require "levent.socket.c" local errno = require "levent.errno.c" local class = require "levent.class" local hub = require "levent.hub" local timeout = require "levent.timeout" local closed_socket = setmetatable({}, {__index = function(t, key) ...
require 'filesystem' require 'utility' local messagebox = require 'ffi.messagebox' local process = require 'process' local nk = require 'nuklear' local backend = require 'gui.backend' local show_version = require 'gui.show_version' local plugin = require 'gui.plugin' local lni = require 'lni' local currentthem...
--[[ Noise Lua v1.2.1 Port by Glint, https://github.com/eGlint/Warcraft-III-Noise-Library Perlin Noise by Kenneth Perlin, https://mrl.nyu.edu/~perlin/noise/ Open Simplex by Kurt Spencer, https://gist.github.com/KdotJPG/b1270127455a94ac5d19 ]]-- do Noise = {} Noise.version = "1.2.1" Noise.permutation = {} lo...
object_ship_dunelizard_s02_tier9 = object_ship_shared_dunelizard_s02_tier9:new { } ObjectTemplates:addTemplate(object_ship_dunelizard_s02_tier9, "object/ship/dunelizard_s02_tier9.iff")
-- Do not touch this file ! hook.Add("PlayerInitialSpawn","MRB:Hooks:InitializePlayer", function(ply, _) if IsValid(ply) and ply:IsPlayer() then mrobbery.f.BroadcastCFG(ply) mrobbery.f.ClearPaintings(ply) mrobbery.f.BroadcastCache(ply) for k, v in pairs(mrobbery.cachetodownload) do if v == tru...
--- luafp util module. -- @module luafp.util -- @alias util local util = {} --- Function that returns the first value it receives. -- @param o value to return -- @return value the value you sent -- @usage local identity = require 'luafp/util'.identity -- local result = someFailedAction() -- .matchWith({ -- Error =...
-- Medius Wireshark Packet Dissector -- Written by hashsploit <hashsploit@protonmail.com> -- Ref: https://wiki.hashsploit.net/PlayStation_2#Medius and https://wiki.hashsploit.net/PlayStation_3#Medius --------------------------------------------- -- Constants & Enums --------------------------------------------- local...
/*============================================================================================================================================ Expression-Advanced Derma ============================================================================================================================================== Name: ...
-- https://github.com/ImagicTheCat/vRP -- MIT license (see LICENSE or vrp/vRPShared.lua) if not vRP.modules.aptitude then return end local lang = vRP.lang -- define aptitude system (AKA. education, skill system) -- exp notes: -- levels are defined by the amount of xp -- with a step of 5: 5|15|30|50|75 -- total exp f...
minetest.register_tool("rangedweapons:kriss_sv_r", { stack_max= 1, wield_scale = {x=1.75,y=1.75,z=1.15}, description = "", rw_next_reload = "rangedweapons:kriss_sv_rr", load_sound = "rangedweapons_handgun_mag_in", range = 0, groups = {not_in_creative_inventory = 1}, inventory_image = "rangedweapons_kriss_sv_rl...
return function(button_list) local rots= {ParaLeft= 90, ParaUpLeft= 135, ParaUp= 180, ParaUpRight= 225, ParaRight= 270} local tap_states= NoteSkin.single_quanta_state_map{1, 2, 3, 4, 5, 6, 7, 8} local mine_state_map= NoteSkin.single_quanta_state_map{1, 2, 3, 4, 5, 6, 7, 8} local hold_head_active_map= NoteSkin.singl...
--[[ desc: a type of Attri and a part of Renderer. author: Musoucrow since: 2018-3-7 alter: 2019-9-17 ]]-- ---@type Graphics.Renderer.Part local _Base = require("graphics.renderer.part.base") ---@class Graphics.Renderer.Part.Color:Graphics.Renderer.Part local _Color = require("core.class")(_Base) ---@param upper...
--- -- Base definitions required by all the other scripts. -- @copyright 2002-2013 Jason Perkins and the Premake project --- premake = {} premake.modules = {} premake.tools = {} premake.extensions = premake.modules -- Keep track of warnings that have been shown, so they don't get shown twice local _warnings =...
local AwardModule = require "module.AwardModule" local ItemHelper = require"utils.ItemHelper" local ItemModule = require"module.ItemModule" local View = {}; function View:Start(data) self.root = CS.SGK.UIReference.Setup(self.gameObject); self.view = self.root.view; self.awardList = data and data.list or {}...
local ReplicatedStorage = game:GetService("ReplicatedStorage") local profile = require(ReplicatedStorage.ProfileClient) -- profile.Tutorial.whatever can now be used --moving
modifier_bristleback_warpath_lua_stack = class({}) -------------------------------------------------------------------------------- -- Classifications function modifier_bristleback_warpath_lua_stack:IsHidden() return true end function modifier_bristleback_warpath_lua_stack:GetAttributes() return MODIFIER_ATTRIBUTE_...
mtbench.register("load_area", function(executeCondition) local count = 0 while executeCondition() do local pos = { x = math.random(10000), y = math.random(10000), z = math.random(10000) } minetest.load_area(pos) count = count + 1 end return count end)
local p = require "posix" --[[ This example tests sched_setscheduler() / sched_getscheduler() -- The script must be run as privileged process (CAP_SYS_NICE on linux) ]] local mypid = p.getpid'pid' -- get sched params from ps(1) local function get_ps_sched(pid) local fp = io.popen(('ps --no-headers -o "policy,rtprio...
function start (song) strumLine1Visible = true end
/* * @package : rlib * @module : glon * @author : Richard [http://steamcommunity.com/profiles/76561198135875727] * @copyright : (C) 2018 - 2020 * @since : 1.0.0 * @website : https://rlib.io * @docs : https://docs.rlib.io * * MIT License * * THE SO...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:29' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
local event = require("__flib__.event") local gui = require("__flib__.gui-beta") local migration = require("__flib__.migration") local mod_gui = require("__core__.lualib.mod-gui") -- create the GUIs local function create_guis(player) -- location button - kept in the `mod-gui` button flow -- here we demonstrate a m...
Home = require "Home"; Cakes = require "Cakes"; Pastas = require "Pastas"; Soups = require "Soups"; Desserts = require "Desserts"; Snacks = require "Snacks"; Pages = {home = Home:new(), cakes = Cakes:new(), pastas = Pastas:new(), soups = Soups:new(), d...
module("XHeroShape", package.seeall) setmetatable(XHeroShape, {__index=XMoveableShape}) function new(entity, go) local shape = { } setmetatable(shape, {__index=XHeroShape}) shape:Init(entity, go) return shape end function Init(self, entity, go) XMoveableShape.Init(self, entity, go) self.attack...
return { source = { location = 'git@bitbucket.org:bazurbat/ast-firmware-utils.git', name = 'firmware-utils' }, build = { type = 'cmake' } }
drug.id = "lsd" drug.name = "LSD" drug.ingredients = { {"Lysergic Acid", "lysacid", "models/props_lab/jar01b.mdl", 1}, {"Phosphorus Oxychloride", "oxychloride", "models/props_junk/garbage_plasticbottle001a.mdl", 1}, {"Phosphorus Pentachloride", "penchloride", "models/props_junk/garbage_plasticbottle001a.mdl", 1}, {...
CreateObject(1674, -191448.140625, -1157.9134521484, 7381.6059570313, -0.0021993208210915, -144.64668273926, -0.002197265625, 1, 1, 1) CreateObject(1673, -191472.734375, -1184.7093505859, 7381.5859375, 2.0628740787506, 118.87982177734, -0.85818475484848, 1, 1, 1) CreateObject(1354, -190798.578125, -951.76458740234, 738...
SB.Include(Path.Join(SB_VIEW_DIR, "editor.lua")) SB.Include(Path.Join(SB_VIEW_MAP_DIR, "material_browser.lua")) SB.Include(Path.Join(SB_VIEW_MAP_DIR, "saved_brushes.lua")) TextureEditor = Editor:extends{} TextureEditor:Register({ name = "textureEditor", tab = "Map", caption = "Texture", tooltip = "Edit...
local event_manager = require("eventsystem/event_manager") event_dispatcher = class("event_dispatcher") function event_dispatcher:initialize() self.ui_event_manager = event_manager() end function event_dispatcher.instance() if event_dispatcher._instance == nil then event_dispatcher._instance = event_d...
-- Copyright 2021 - Deviap (deviap.com) -- Attribution: https://www.youtube.com/watch?v=CGsEJToeXmA return function() --[[ @description Makes a gridlayout @parameter nil @returns nil ]] local public = {} public.container = core.construct("guiScrollView", { size = guiCoord(1, 0, 1, 0) }) public.r...
local Delay = 1 --The delay you prefer function Stop() game.Lighting.Ambient = Color3.new(0,0,0) end for i=1, 9999 do -- How many times it should loop game.Lighting.Ambient = Color3.new(math.random(), math.random(), math.random()) wait(Delay) end
function printUsage() print( "Usage: monitor <name> <program> <arguments>" ) return end local tArgs = { ... } if #tArgs < 2 then printUsage() return end local sName = tArgs[1] if peripheral.getType( sName ) ~= "monitor" then print( "No monitor named ".. sName ) retu...
return { clock = os.clock, date = os.date, time = os.time }
---@class ac.ConfigProvider local _ac_ConfigProvider = {} ---@param section string ---@param key string ---@param defaultValue boolean|nil ---@return boolean function _ac_ConfigProvider.bool(section, key, defaultValue) end ---@param section string ---@param key string ---@param defaultValue number ---@return number f...
net.Receive("NewsSystem:Stream:State", function() local state = net.ReadBool() NewsSystem.Data.IsLive = state if state then NewsSystem.Data.CameraMan = net.ReadEntity() else NewsSystem.Data.CameraMan = nil NewsSystem.Data.Title = nil NewsSystem.Data.Desc = nil end end) net.Receive("NewsSystem:News:Update...
local present, luasnip = pcall(require, "luasnip") if not present then return end luasnip.config.set_config({ history = true, updateevents = "TextChanged,TextChangedI", }) require("luasnip/loaders/from_vscode").lazy_load()
require("moonsc").import_tags() -- test that done.invoke.id event is the last event we receive. -- the invoked process sends childToParent in the exit handler -- of its final state. We should get it before the done.invoke, -- and we should get no events after the done.invoke. -- Hence timeout indicates success lo...
return require("installer/integrations/ls/helpers").npm.builder({ install_package = "dockerfile-language-server-nodejs", lang = "dockerls", inherit_lspconfig = true, })
local _, ns = ... ---------------------------------------------------------------------------------------- -- Chat Settings for DarkUI Option GUI ---------------------------------------------------------------------------------------- ns.Categories[11] = L_CATEGORIES_CHAT -- optType, group, key, name, horizon, data,...
--[[ Copyright (c) 2017 Optera * Data phase helper functions * * This is free and unencumbered software released into the public domain. --]] function copyPrototype(type, name, newName) if not data.raw[type][name] then error("type "..type.." "..name.." doesn't exist") end local p = table.deepcopy(data.raw[type]...
local S = mobs.intllib -- name tag minetest.register_craftitem("mobs:nametag", { description = S("Name Tag"), inventory_image = "mobs_nametag.png", groups = {flammable = 2}, }) if minetest.get_modpath("dye") and minetest.get_modpath("farming") then minetest.register_craft({ type = "shapeless", output = "mobs...
local screenTarget, bigScreenScaleform = -1, -1 local bigScreenCoords = vector3(1092.75, 264.56, -51.24) local bigScreenRender, isBigScreenLoaded = false, false local function registerTarget(name, objectModel) if not IsNamedRendertargetRegistered(name) then RegisterNamedRendertarget(name, false) Li...
local af = Def.ActorFrame{} local bgm_volume = 10 af[#af+1] = Def.Sound{ File=THEME:GetPathB("ScreenHereInTheDarkness", "overlay/17/Scene 1/Chapter 4.ogg"), OnCommand=function(self) self:sleep(0.5):queuecommand("Play") end, PlayCommand=function(self) self:stop():play() end, FadeOutAudioCommand=function(self) if ...
--------------------------------- require"class" player=require"player" _shader=require"shaders" require"object.object" _ship=require"object.battleship" _enemyship=require"object.enemyship" local game=require"game" win_h=love.graphics.getHeight() win_w=love.graphics.getWidth() function love.load( ... ) playin...
-- AICharacter: Vtol -------------------------------------------------------------------------- -- Crytek Source File. -- Copyright (C), Crytek Studios, 2001-2006. -------------------------------------------------------------------------- -- $Id$ -- $DateTime$ -- Description: Character SCRIPT for Vtol -- ----------...
local CMD_NEORG_START = "NeorgStart" local CMD_NEORG_JOURNAL_TODAY = "Neorg journal today" local find_command = function(name) cmds = vim.api.nvim_get_commands({}) for k,v in pairs(cmds) do if k == name then return v end end return nil end local has_command = function(nam...
-------------------------------------------------------------------------------- -- Module declaration -- local mod, CL = BigWigs:NewBoss("Glubtok", 36, 89) if not mod then return end mod:RegisterEnableMob(47162) -------------------------------------------------------------------------------- -- Initialization -- f...
local mod = DBM:NewMod(193, "DBM-Firelands", nil, 78) local L = mod:GetLocalizedStrings() local sndWOP = mod:SoundMM("SoundWOP") mod:SetRevision(("$Revision: 79 $"):sub(12, -3)) mod:SetCreatureID(52558)--or does 53772 die instead?didn't actually varify this fires right unit_died event yet so we'll see tonight m...
-- Проверка на существование элементов local function AccessCheck(ply) if ( !ply:Alive() ) then return false end if ( !ply.ClothingSystemPlayerIsSpawn ) then return false end if ( ply:IsDormant() ) then return false end if ( ply:GetMoveType() == MOVETYPE_NOCLIP || ply:GetMoveType() == MOVETYPE_OBSERVER ...
----------------------------------- -- Area: Halvung -- NPC: ??? (Spawn Reacton(ZNM T2)) -- !pos 18 -9 213 62 ----------------------------------- local ID = require("scripts/zones/Halvung/IDs") require("scripts/globals/npc_util") ----------------------------------- function onTrade(player, npc, trade) if npcUtil....
ITEM.name = "Baileys Irish Cream, 1l" ITEM.description = "A dark liqour bottle." ITEM.longdesc = "Baileys Irish Cream is an Irish cream liqueur - an alcoholic beverage flavoured with cream, cocoa, and Irish whiskey. It is very popular with coffee drinkers in the zone, and usually fetches a decent price, as it is not of...
function draw.Arc(cx, cy, radius, thickness, startang, endang, roughness, color) surface.SetDrawColor(color) surface.DrawArc(surface.PrecacheArc(cx, cy, radius, thickness, startang, endang, roughness)) end local blur = Material("pp/blurscreen") function draw.Blur(x, y, w, h, layers, density, alpha) local X, Y =...
object_tangible_furniture_all_frn_all_chair_upholstered_s1 = object_tangible_furniture_all_shared_frn_all_chair_upholstered_s1:new { } ObjectTemplates:addTemplate(object_tangible_furniture_all_frn_all_chair_upholstered_s1, "object/tangible/furniture/all/frn_all_chair_upholstered_s1.iff")