content
stringlengths
5
1.05M
-- luacheck: globals ignore QuickApp quickApp plugin api net setTimeout clearTimeout setInterval clearInterval json class -- luacheck: globals ignore hc3_emulator HUEv2Engine fibaro -- luacheck: globals ignore ColorLight Zone Room MotionDevice HueDevice Switch -- luacheck: ignore 212/self _=loadfile and loadfile("TQAE...
local PSBT = PSBT local AnimationPool = PSBT.AnimPoolProto local Fade = AnimationPool:Subclass() function Fade:New( to, from ) local result = AnimationPool.New( self ) result:Initialize( to, from ) return result end function Fade:Initialize( to, from ) self._target = to self._...
-- clientmods/counter/init.lua -- ================= -- See README.md for licensing and other information. local mod_storage = minetest.get_mod_storage() local ip = minetest.get_server_info().ip local port = minetest.get_server_info().port local timer = 0 local function get_id(action) if ip == "localhost" or ip == "1...
--- -- Object data type base class. -- -- @datatype ObjectType local ffi = require('ffi') local msgpack = require('radio.thirdparty.MessagePack') local json = require('radio.thirdparty.json') local class= require('radio.core.class') local ObjectVector = require('radio.core.vector').ObjectVector local ObjectType = c...
---@class CommentatorFrame C_Commentator = {} ---@param playerName string ---@param overrideName string function C_Commentator:AddPlayerOverrideName(playerName, overrideName) end ---@param spellIDs number function C_Commentator:AddTrackedDefensiveAuras(spellIDs) end ---@param spellIDs number function C_Commentat...
class 'Koopa' function Koopa:__init(npc_obj) self.npc_obj = npc_obj end function Koopa:onTransform(id) self.npc_obj.speedX = 0 self.npc_obj.speedY = math.abs(self.npc_obj.speedY)/4 end return Koopa
-- Copyright 2017 Stephen Gaito. See License.md local M = { } local function buildConTeXt() -- -- save buffer -- io.save_file() local origBuffer = buffer local origFileName = buffer.filename local masterFileName = origFileName -- -- open the master file (if any) -- local firstLine = origBuffer:...
--[[----------------------------------------------------------------------- * | Copyright (C) Shaobo Wan (Tinywan) * | Github: https://github.com/Tinywan * | Blog: http://www.cnblogs.com/Tinywan * |------------------------------------------------------------------------ * | Date: 2017/5/19 23:25 * | Function: To c...
-- A simple scene with some miscellaneous geometry. mat1 = gr.material({0.7, 1.0, 0.7}, {0.5, 0.7, 0.5}, 25) mat2 = gr.material({0.5, 0.5, 0.5}, {0.5, 0.7, 0.5}, 25) mat3 = gr.material({1.0, 0.6, 0.1}, {0.5, 0.7, 0.5}, 25) mat4 = gr.material({0.9, 0.6, 0.0}, {0.5, 0.4, 0.8}, 25) scene_root = gr.node('root') b4 = gr...
local json = require "cjson" local http = require "resty.http" local rstrip = require("pl.stringx").rstrip local split = require("pl.stringx").split local ck = require("resty.cookie") local rate_limiting = require("kong.plugins.mithril.rate-limiting") local uuid = require "kong.tools.utils".uuid local kong = kong loca...
local M = {} M.config = function() O.lang.java = { java_tools = { active = false, }, formatter = { exe = "prettier", args = { "--stdin-filepath", vim.api.nvim_buf_get_name(0), "--single-quote" }, }, } end M.format = function() vim.cmd "let proj = FindRootDirectory()" local ro...
local bytes = require('lib.bytes') local english = require('lib.english') local vectors = require('lib.vectors') local sorting = require('lib.sorting') function score_string_as_word(text) --[[ Returns a score for a given text. Higher score implies lower likelihood -- of the input text to be a valid English text. ...
return {'duits','duitse','duitser','duitsland','duitstalig','duidelijk','duidelijkheid','duidelijkheidshalve','duiden','duider','duiding','duidingsmagazine','duif','duifachtig','duig','duighout','duik','duikbommenwerper','duikboot','duikbootbasis','duikbootjager','duikbril','duikelaar','duikelen','duikeling','duiken','...
--- Provides functions to play a loaded sound. -- A sound can be started, paused and resumed. It also provides information if the sound has finished playing. -- @classmod sound -- @author Patrick Lang -- @copyright 2022 Patrick Lang local sound = {} local utils = require "audiochecklist.utils" --- Creates a new sound...
-- Enclenche le mode configuration WIFI print("\nzf180718.1107\n") function get_ip() if wifi.sta.getip() == nil then print("Connecting to AP...") else tmr.stop(0) print("Connected! IP: ",wifi.sta.getip()) tmr.alarm(0,3000,tmr.ALARM_SINGLE, function() node.restart() end) end ...
--------------- -- gm_navigation -- Spacetech --------------- do return end require("navigation") require("sassilization") -- If running clientside hold down alt to see it. local GridSize = 12 -- Space between the nodes local Nav = nav.Create(GridSize) local Diagonal = true -- Diagonal Linking ...
include( "contentheader.lua" ) local PANEL = {} Derma_Hook( PANEL, "Paint", "Paint", "Tree" ) PANEL.m_bBackground = true -- Hack for above function PANEL:Init() self:SetOpenSize( 200 ) self:DockPadding( 5, 5, 5, 5 ) local label = vgui.Create( "DTextEntry", self ) label:Dock( TOP ) label:SetZPo...
PoolStateName = "Temp.pool" SaveName = "PacMan" StateName = "Pac-Man-2" LevelName = "Pac-Man.lvl" InputRadius = 6 InputSize = (InputRadius*2+1)*(InputRadius*2+1) totalPellets = 192 ButtonNames = { "Up", "Down", "Left", "Right", } Inputs = InputSize+1 Outputs = #ButtonNames Population = 200 --[...
RegisterCommand('setvoiceintent', function(source, args) if GetConvarInt('voice_allowSetIntent', 1) == 1 then local intent = args[1] if intent == 'speech' then MumbleSetAudioInputIntent(GetHashKey('speech')) elseif intent == 'music' then MumbleSetAudioInputIntent(GetHashKey('music')) end end end) -- TO...
local skynet = require 'skynet' local log = require 'lnlog' local snax = require 'snax' local kafka = require 'kafkaapi' require 'util' local pusher LADDER_RANGE = 100 LADDER_LINE_NUM = 3 local ladder = {} ladder.lines = {} --queue ladder.linemap = {} ladder.lid = 1 function notifyLine( line,msg ) -- body for k,v...
-- Copyright (c) 2020, The Pallene Developers -- Pallene is licensed under the MIT license. -- Please refer to the LICENSE and AUTHORS files for details -- SPDX-License-Identifier: MIT local typedecl = require "pallene.typedecl" -- Pallene IR is a lower level representation of Pallene that is easier for the optimizer...
--------------------------------------------------------------------------------- -- cookie_jar.lua: web cookie archive -- This file is a part of lua-aplicado library -- Copyright (c) lua-nucleo authors (see file `COPYRIGHT` for the license) ------------------------------------------------------------------------------...
local Aye = Aye; if not Aye.addModule("Aye.PullTime") then return end; Aye.modules.PullTime.OnEnable = function() RegisterAddonMessagePrefix("Aye"); -- Aye RegisterAddonMessagePrefix("D4"); -- DBM -- Pull Time meters cointaining information Who Pulled and When Pulled by certain ways -- .count contains number of ...
local skynet = require "skynet" skynet.start(function ( ) -- 启动loginserver监听8001 local loginserver = skynet.newservice("test-loginserver2") -- 启动msgserver传递loginserver地址 local gate = skynet.newservice("test-msgserver2", loginserver) -- 网关服务器需要发送lua open来打开,open是保留命令 skynet.call(gate, "lua", "o...
workspace "Eternal" architecture "x64" configurations { "Debug", "Release", "Dist" } startproject "Doomed_Editor" outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" -- Include directories relative to root folder (in our case solution directory) IncludeDir = {} IncludeDir["GLFW"] = "Eternal/v...
local this = {} this.sideEffects = { local function stuntedStamina() tes3spell.create( "a3_stuntedStamina", "Stunted Stamina") local spell = tes3.getObject("a3_stuntedStamina") spell.effects[1].id = 20 spell.effects[1].rangeType = 0 spell.effects[1].type = 1 spell.effects[1].min = stuntEffect ...
------------------------------------------------------------------------------- -- Copyright (c) 2006-2013 Fabien Fleutot and others. -- -- All rights reserved. -- -- This program and the accompanying materials are made available -- under the terms of the Eclipse Public License v1.0 which -- accompanies this distributi...
local function transformContent(content, transformFunction, extraArgs) local newContent = {} for k, v in SU.sortedpairs(content) do if type(k) == "number" then if type(v) == "string" then local transformed = transformFunction(v, content, extraArgs) if type(transformed) == "table" then ...
-- Copyright (c) 2016-2017 Intel Corporation -- -- 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 ...
--[[ < CATHERINE > - A free role-playing framework for Garry's Mod. Development and design by L7D. Catherine is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) an...
Object.Terrain = {}; Object.TerrainElements = {}; function inASpawnZone(x, y) if not (x == 1 and y == 1) and not (x == 2 and y == 1) and not (x == 1 and y == 2) and not (x == 11 and y == 9) and not (x == 10 and y == 9) and not (x == 11 and y == 8) and not (x == 11 and y == 1) and not (x == 10 and y == 1) ...
-- See LICENSE for terms return { PlaceObj("ModItemOptionToggle", { "name", "QueueCount", "DisplayName", T(302535920011471, "Show Number in Queue"), "Help", T(302535920011537, "Show a count of the number of technologies currently in the research queue."), "DefaultValue", false, }), PlaceObj("ModItemOptionTo...
local E, C, L = select(2, ...):unpack() if IsAddOnLoaded("OpenAll") or IsAddOnLoaded("Postal") or IsAddOnLoaded("TradeSkillMaster_Mailing") or not C.blizzard.style then return end ---------------------------------------------------------------------------------------- -- Grab mail in 1 button(OpenAll by Kemayo) ----...
--ダイノルフィア・シェル -- --Script by Trishula9 function c101107071.initial_effect(c) --activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(0,TIMING_BATTLE_START) e1:SetCountLimit(1,101107071+EFFECT_...
local config = { bind = true, -- This is mandatory, otherwise border config won't get registered. -- If you want to hook lspsaga or other signature handler, pls set to false doc_lines = 2, -- will show two lines of comment/doc(if there are more than two lines in doc, will be truncated); -- set to 0 if you DO NOT wa...
--[[ Client-Server Example HawDevelopment 27/05/2021 --]] local ReplicatedStorage = game:GetService("ReplicatedStorage") local express = require(ReplicatedStorage.express) local app: App = express.App.new() local Money = {} app:get("/GetMoney", function(req: Request, res: Response) -- Response Status ...
constants = {} constants.PACKET_HEADER_LEN = 9 constants.BLOCK_HEADER_LEN = 236 constants.MAGIC_NETWORK = { [1533997779] = "mainnet", [2974944722] = "testnet", [2922943951] = "regtest", [241471196] = "simnet" } constants.PAYLOAD_TYPE_BY_VAL = { [0] = "VERSION", [1] = "VERACK", [2] = "PING...
AddCSLuaFile() SWEP.Base = "weapon_gwbase" SWEP.Name = "Shrink" SWEP.AbilitySound = "gwabilities/smb2_shrink.wav" SWEP.AbilityDuration = 7 SWEP.AbilityDamagePercentageString = "60%" SWEP.AbilityDamageSpeedBonusString = "twice" SWEP.AbilityDescription = "Shrinks you and your health by $AbilityDamagePercentageString fo...
local function is_connecting(mapblock_pos, group, direction) local inverse_direction = vector.multiply(direction, -1) local neighbor_mapblock = vector.add(mapblock_pos, direction) local neighbor_building_def = building_lib.get_building_at_pos(neighbor_mapblock) if not neighbor_building_def or not neighbor_building...
----------------------------------- -- -- Zone: Navukgo_Execution_Chamber (64) -- ----------------------------------- local ID = require("scripts/zones/Navukgo_Execution_Chamber/IDs") require("scripts/globals/missions") ----------------------------------- function onInitialize(zone) end; function onZoneIn(player,prev...
--[[ Gamepad API: gamepad:onConnect(callback) gamepad:onDisconnect(callback) gamepad:enabled() gamepad:onPress(key, callback) gamepad:destroy() ]] local UserInputService = game:GetService("UserInputService") local KEYS = { ["a"] = Enum.KeyCode.ButtonA, ["b"] = Enum.KeyCode.But...
local JUMP_TIME_MAX = 0.5 return { name = 'Player', moving = false, h = SZ_DBL_TILE, w = SZ_TILE, xspeed = 0, yspeed = 0, max_speed = P_MAX_SPEED, jump_time_max = JUMP_TIME_MAX, attack_time_max = 0.5, health_max = 5, base_damage = 1, damage_time_max = 0.5, xacc = 35, ...
-- https://olivinelabs.com/busted/ _G.core = {} _G.learntocount = {} local builtin_path="../../builtin" dofile(builtin_path.."/common/misc_helpers.lua") function startsWith(String, Start) return string.sub(String,1,string.len(Start))==Start end testutils = { nodes={}, get_node = function(pos) --print('minete...
endor_squill_noxious_neutral_small = Lair:new { mobiles = {{"noxious_squill",1}}, spawnLimit = 15, buildingsVeryEasy = {"object/tangible/lair/base/poi_all_lair_mound_large_fog_green.iff"}, buildingsEasy = {"object/tangible/lair/base/poi_all_lair_mound_large_fog_green.iff"}, buildingsMedium = {"object/tangible/lair...
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local gmatch = string.gmatch; local t_concat, t_insert = table.concat, table.insert; local to_byte, to_cha...
Locales['fr'] = { ['activated'] = 'activé', ['deactivated'] = 'désactivé', }
AddCSLuaFile() ENT.Type = "anim" ENT.PrintName = "Magnade" ENT.Category = "Pill Pack Entities" //ENT.Spawnable = true //ENT.AdminSpawnable = true //ENT.AutomaticFrameAdvance = true //loop npc/scanner/combat_scan_loop2.wav //stick weapons/strider_buster/strider_buster_stick1.wav //det weapons/strider_buster/stride...
-- These need to be correct for the addon to function Streamline.Strings.StoreText = "I want to see what you have for sale" Streamline.Strings.GuildDefenceText = "Gain |cffff0000Perfect Defense|r buff" Streamline.Strings.GuildAttackText = "Gain |cffff0000Invincible Attack|r buff" Streamline.Strings.GuildLuckText = "G...
-- Override the default node dropping function to create an item instead local gravity = tonumber(core.settings:get("movement_gravity")) local item_scale = 0.25 local item_grab_radius = 0.1 -- one tenth block? local item_flyto_radius = 2 -- two blocks? local break_flyto_time = 20 -- In MC 1.2.5 it's 10 update calls ...
local cjson = require("cjson.safe") local original_ngx = ngx local function reset_ngx() _G.ngx = original_ngx end local function mock_ngx(mock) local _ngx = mock setmetatable(_ngx, { __index = ngx }) _G.ngx = _ngx end local function mock_ngx_socket_tcp() local tcp_mock = {} stub(tcp_mock, "connect", true...
local serverCallbacks = {} local callbacksRequestsHistory = {} local dbg = rdebug() function registerCallback(cbName, callback) dbg.debug(string.format('[rcore] register callback %s',cbName)) serverCallbacks[cbName] = callback end exports('registerCallback',registerCallback) RegisterNetEvent('rcore:callCallb...
return { tag = 'headset', summary = 'Get the Texture containing a view of what\'s in the headset.', description = [[ Returns a Texture that contains whatever is currently rendered to the headset. Sometimes this can be `nil` if the current headset driver doesn't have a mirror texture, which can happen...
--- -- @author wesen -- @copyright 2020 wesen <wesen-ac@web.de> -- @release 0.1 -- @license MIT -- local Callable = require "Callable" --- -- Example Callable class that accesses instance attributes in the instances __call handler. -- -- @type WithObjectAttributeAccessInCallHandler -- local WithObjectAttributeAccessI...
local _={} _[11]={} _[10]={} _[9]={} _[8]={tags=_[11],text="da"} _[7]={tags=_[10],text="ye"} _[6]={tags=_[9],text="yes"} _[5]={_[7],_[8]} _[4]={_[6]} _[3]={"return"} _[2]={"text",_[5]} _[1]={"text",_[4]} return {_[1],_[2],_[3]} --[[ { "text", { { tags = {}, text = "yes" } } } { "text", { { tags = ...
local tl = require("tl") describe("assignment to nominal record", function() it("accepts empty table", function() local tokens = tl.lex([[ local Node = record b: boolean end local x: Node = {} ]]) local _, ast = tl.parse_program(tokens) local errors = t...
local Concord = require("lib.concord") local Class = require("lib.class") local Vector = require("lib.vector") local Camera = require("src.camera") local SpellBase = require("src.classes.spells.spellBase") local C = require("src.components") local A = require("src.assemblages") local SpellBurst = Class("SpellBurst"...
--- Simple binding to proj.4: https://github.com/OSGeo/proj.4 -- (c) Copyright 2015-2016 Geoff Leyland. -- See LICENSE for license information local shortcuts = require"proj.shortcuts" local ok, ffi = pcall(require, "ffi") if not ok then ffi = nil end local PJ, q, r if ffi then -- Scratch space for passing numb...
-- ============================================= -- This file contains all logic around warn handling -- ============================================= local isRDR = not TerraingridActivate and true or false local dismissKey = isRDR and 0xD9D0E1C0 or 22 local dismissKeyGroup = isRDR and 1 or 0 local function openWarn...
local PathfindingService = game:GetService("PathfindingService") local Cardinoid local AgentService = {} function AgentService:Spawn(agentData) local agent = Cardinoid.new(agentData) if type(agentData) == "table" then local position = agentData.Position if position then agent.Cha...
local M = {} local tbl = require "utils.table" function M.is_client_active(name) local clients = vim.lsp.get_active_clients() return tbl.find_first(clients, function(client) return client.name == name end) end function M.get_active_clients_by_ft(filetype) local matches = {} local clients = vim.lsp.get_...
local storage = game:GetService("ReplicatedStorage") local players = game:GetService("Players") local player = players.LocalPlayer local keyboard = require(script.Parent.Parent.Keyboard) local network = require(script.Parent.Parent.NetworkClient) local camera = workspace.CurrentCamera -- local deploy = {} local ui...
local ui = {} local conf = require("modules.ui.config") ui["kyazdani42/nvim-web-devicons"] = { opt = false, config = conf.web_icons } ui["sainnhe/edge"] = { opt = false, config = conf.edge } ui["hoob3rt/lualine.nvim"] = { opt = true, after = "nvim-gps", config = conf.lualine, } ui["arkav/lualine-lsp-progress"] = { ...
--[[ The turbo colormap data has its origins here: https://ai.googleblog.com/2019/08/turbo-improved-rainbow-colormap-for.html The current data file was created for Lua and is Copyright 2019 William A Adams ]] local turbo = { [0] = {48, 18, 59}; [1] = {50, 21, 67}; [2] = {51, 24, 74}; [3] = {52, 27, 81}...
require "IrrLua" --[[ This Tutorial shows how to move and animate SceneNodes. The basic concept of SceneNodeAnimators is shown as well as manual movement of nodes using the keyboard. --]] MyEventReceiver = {} function MyEventReceiver:OnEvent(Event) if Event.EventType == irr.EET_KEY_INPUT_EVENT then return self:...
local node_id_to_name_cache = {} local wallmounted = { [90] = {0, 1, 5, 4, 2, 3, 0, 0}, [180] = {0, 1, 3, 2, 5, 4, 0, 0}, [270] = {0, 1, 4, 5, 3, 2, 0, 0} } local facedir = { [90] = { 1, 2, 3, 0, 13, 14, 15, 12, 17, 18, 19, 16, 9, 10, 11, 8, 5, 6, 7, 4, 23, 20, 21, 22}, [180] = { 2, 3, 0, 1, 10, 11,...
local mnist_cluttered = require 'mnist_cluttered' local trainDataConfig = { datasetPath = 'mnist/train.t7', task = 'spatial_transform', megapatch_w = 64, nDigits = 1, border = 0, scale = {0.5,1.5}, angle = 60, affine_angle = 60, seed = 1, threshold = 0.3 } trainDataInfo = mnist_cluttered.createData...
-- This script minimises and pauses the window when -- the boss key (default 'b') is pressed. -- Can be overwriten in input.conf as follows: -- KEY script-binding boss-key -- xdotool is required on Xorg(Linux) local platform = nil --set to 'linux', 'windows' or 'macos' to override automatic assign if not platform then...
require('plenary.reload').reload_module('telescope') local telescope = require('telescope') -- What is a finder? -- Finders return a list of stuff that you want to fuzzy look through. -- Finders can be static or not. -- Static finders just return a list that never changes -- Otherwise they return a new list on ea...
local removeTechDataValue = "CompModRemoveTechData" local function GetTechToAdd() return { { [kTechDataId] = kTechId.AdvancedSwipe, [kTechDataCategory] = kTechId.Fade, [kTechDataCostKey] = kAdvancedSwipeCost, [kTechDataResearchTimeKey] = kAdvancedSwipeResearc...
--- Provides an interruptable timer with customizable delta callbacks. mrequire "src/class" --- The Timer class. -- Constructor signature is (duration, rep, callback, deltacallback). -- @newclass Timer newclass("Timer", function(duration, rep, callback, deltacallback) local timer = { alive = true } ...
-- Outlaw local _BladeFlurry = 13877; local _RolltheBones = 193316; local _TrueBearing = 193359; local _SharkInfestedWaters = 193357; local _GhostlyStrike = 196937; local _CurseoftheDreadblades = 202665; local _AdrenalineRush = 13750; local _MarkedforDeath = 137619; local _RunThrough = 2098; local _Broadsides = 193356...
-- ===== ===== ===== ===== ===== -- Copyright (c) 2017 Lukas Grünwald -- License MIT License -- ===== ===== ===== ===== ===== -- Import new functions: require( "libErrorFunctions" ) require( "libDebugFunctions" ) -- Import new classes: require( "cEvent" ) require( "cPlanet" ) cEvent_Type_OrbitalBombardmentBurst...
local bit = require("bit") local to_hex = require("resty.string").to_hex local tohex = bit.tohex local band = bit.band local bor = bit.bor local lshift = bit.lshift local rshift = bit.rshift local fmt = string.format local random = math.random local find, sub, append = string.find, string.sub, table.insert lo...
--!The Make-like Build Utility based on Lua -- -- 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 L...
--[[ © 2018 Thriving Ventures AB do not share, re-distribute or modify without permission of its author (gustaf@thrivingventures.com). ]] -- -- Default ranks. -- serverguard.ranks:AddRank(unique, name, immunity, color, texture, data) -- serverguard.ranks:AddRank("user", "Guest", 0, Color(100, 150, 245, 255), "icon...
function onEvent(name, value1, value2) if name == 'bgchange' then makeLuaSprite(value2, value1); addLuaSprite(value2, false); end end
object_mobile_npc_dressed_corellia_kyran_silene = object_mobile_shared_npc_dressed_corellia_kyran_silene:new { } ObjectTemplates:addTemplate(object_mobile_npc_dressed_corellia_kyran_silene, "object/mobile/npc_dressed_corellia_kyran_silene.iff")
--[[ Lockbox - crude performance tests Based off of test_perf.lua from https://github.com/philanc/plc Modified to work with Lockbox's API. ]] local Lockbox = require("lockbox") Lockbox.ALLOW_INSECURE = true ------------------------------------------------------------ local Stream = require("lockbox.util.strea...
Weapon.PrettyName = "Millenium Hawk" Weapon.WeaponID = "arccw_deagle357" Weapon.DamageMultiplier = 0.7 Weapon.WeaponType = WEAPON_SECONDARY
-- Localization for enUS & enGB clients -- Actionbar Localization L_GUI_ACTIONBAR_BAGS_BAR = "Enable bags bar" L_GUI_ACTIONBAR_BAGS_BAR_HIDE = "Hide the bags bar" L_GUI_ACTIONBAR_BAGS_BAR_MOUSEOVER = "Show bags bar on mouseover" L_GUI_ACTIONBAR_ENABLE = "Enable action bars" L_GUI_ACTIONBAR_MICRO_MENU = "Enable micro m...
local easylua = requirex("easylua") local luadev = {} local Tag="luadev" --net_retdata = Tag..'_retdata' if SERVER then util.AddNetworkString(Tag) --util.AddNetworkString(net_retdata) end do -- enums local enums={ TO_CLIENTS=1, TO_CLIENT=2, TO_SERVER=3, TO_SHARED=4, } local revenums={} -- lookup lua...
local m = require 'lpeg' local re = require 're' return re.compile([[ {| {:data: %SINGLE_QUOTED :} {:primitive: '' -> 'scalar' :} {:tag: %QUOTED_TAG :} |} ]], { SINGLE_QUOTED = require 'parse.yaml.read.scalar.quoted.single'; QUOTED_TAG = m.Carg(2); })
-- No regen allowed! --
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('StoryBit', { ActivationEffects = { PlaceObj('ForEachExecuteEffects', { 'Label', "FusionReactor", 'Filters', {}, 'Effects', { PlaceObj('SetBuildingEnabledState', nil), }, }), }, Effects = {}, Enables = { "TheIncident_4...
---------------------------------------------------------------- -- This is a class to manage the MOAIUntzSound. ---------------------------------------------------------------- local ResourceManager = require("hp/manager/ResourceManager") local M = {} local cache = {} M.initialized = false function M:initialize() ...
local compe = require("compe") local Source = {} function Source.new() return setmetatable({}, { __index = Source }) end function Source.get_metadata(self) return { priority = 3, menu = "[cmake]", filetypes = {"cmake"} } end function Source.determine(self, context) return compe....
if SERVER then util.AddNetworkString( "DeathMenu" ) hook.Add( "PlayerDeath", "blah", function( victim, inflictor, attacker ) net.Start( "DeathMenu" ) net.WriteEntity( inflictor ) net.WriteEntity( attacker ) net.Send( victim ) end ) end if CLIENT then net.Receive( "DeathM...
--[[ MIT License Copyright (c) 2022 Michael Wiesendanger 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, mod...
local Functions = {} local opt = {} opt.tommy = {} opt.tommy.f = require(PATH.opt .. 'tommy/functions') Functions.getWhiteListTable = function(key) local whiteListTable = { position = { 'up_half', 'down_half', 'left_half', 'right_half', 'max' }, direction = { 'up', ...
--百人牛牛 local skynet = require "skynet" local datacenter = require "skynet.datacenter" local mysocket = require "mysocket" local StrLink = require "myfunlib.StrLink" local mjlib = require "myfunlib.base_tips.mjlib" local utils = require "myfunlib.base_tips.utils" local tips_lib = require "myfunlib.base_tips.tipslib" lo...
local CURRENCIES = { "SCRAP", "FIRE", "ICE", "ELECTRIC", } Wallet = Class { init = function(self) self.currencies = { ["SCRAP"] = Currency("SCRAP", {0.7,0.7,0.7}, constants.CURRENCY.STARTING_SCRAP, assets.ui.iconScrap), ["FIRE"] = Currency("FIRE", {1,0.6,0}, constant...
object_tangible_loot_creature_loot_kashyyyk_loot_uller_teeth_01 = object_tangible_loot_creature_loot_kashyyyk_loot_shared_uller_teeth_01:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_kashyyyk_loot_uller_teeth_01, "object/tangible/loot/creature_loot/kashyyyk_loot/uller_teeth_01.iff")
if SheetManager.Config == nil then SheetManager.Config = {} end SheetManager.Config.Calls = { Tooltip = { Ability = "showAbilityTooltipCustom", Talent = "showTalentTooltipCustom", Stat = "showStatTooltipCustom" }, TooltipController = { Ability = "selectAbilityCustom", Talent = "selectTalentCustom", Prim...
Circle = Object:extend() function Circle:new(x, y, radius) self.x = x or 400 self.y = y or 300 self.radius = radius or 50 self.creation_time = love.timer.getTime() end function Circle:update(dt) end function Circle:draw() love.graphics.circle("fill", self.x, self.y, self.radius) end -- return Circle
local globalevent = GlobalEvent("Player Record") function globalevent.onRecord(current, old) addEvent(Game.broadcastMessage, 150, "New record: " .. current .. " players are logged in.", MESSAGE_LOGIN) return true end globalevent:register()
setMilestone(MS_LEFT_SEASIDE_BY_BOAT, false) setMilestone(MS_LEFT_EAST_BY_BOAT, false) music = "seaside_repaired.ogg" talked_to_captain = false captain_moved = false local loops = 0 local tiggy_scene_started = false function end_captain_walk() captain_moved = true descriptifyPlayer() end function party_appear() ...
#**************************************************************************** #** #** File : /units/UEL0310/UEL0310_script.lua #** Author(s): neagix #** #** Summary : Terran Unit Script #** #** Copyright © 2020 neagix - licensed under a BSD 3-clause license #*****************************************...
local lfs = require ("lfs") local widget = require("widget") local json = require("json") local users = {} local properties = {} local imageUrls = images local images = {} local scrollView, usersList, userName, renderUsers, deleteUser local showBlur, closeBlur, delayCloseBlur, showTextOnBlur --------------------------...
--Variables --local GameAnalyticsSendMessage = game:GetService("ReplicatedStorage"):WaitForChild("GameAnalyticsSendMessage") --Services local GS = game:GetService("GuiService") local UIS = game:GetService("UserInputService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local Postie = require(Replicat...
local serializer = require "kong.plugins.moesif.moesif_ser" local governance = require "kong.plugins.moesif.moesif_gov" local BasePlugin = require "kong.plugins.base_plugin" local log = require "kong.plugins.moesif.log" local req_set_header = ngx.req.set_header local string_find = string.find local req_read_body = ngx....