content
stringlengths
5
1.05M
local a a = b < c or d < e or f
local function log(s,prefix) if not CONFIG.debug then return end -- for i=1,#CONFIG.ignore do if (prefix..debug.getinfo(2).name)==CONFIG.ignore[i] then return end end prefix = prefix and prefix or "" print(prefix..debug.getinfo(2).name..":: "..s) end return log
-- -- DklCircNumAxis.lua -- -- Döiköl Data Visualization Library -- -- Copyright (c) 2017-2018 Armando Arce - armando.arce@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. require "dkl/DklUtilities" function DklCirc...
print("HR Decisions") tReligionEvents_1.RELIGION_BIRD_FIGURE = {[3] = "BIRD_FIGURE"} tReligionEvents_1.RELIGION_AKATTU = {[3] = "AKATTU"} tReligionEvents_1.RELIGION_SAMAN = {[3] = "SAMAN"} tReligionEvents_1.RELIGION_INTIISM = {[3] = "INTIISM"} tReligionEvents_1.RELIGION_PUTA_TUPUNA = {[3] = "PUTA_TUPUNA"} tReligionEve...
local Entity = require(_G.engineDir .. "middleclass")("Entity"); local ComponentList = { require(_G.componentDir .. "transform"), require(_G.componentDir .. "text"), require(_G.componentDir .. "rigidbody"), require(_G.componentDir .. "component"), require(_G.componentDir .. "sprite") } Entity.stat...
local M = {} function M.close(id) vim.validate({id = {id, "number"}}) if not vim.api.nvim_win_is_valid(id) then return end vim.api.nvim_win_close(id, true) end function M.enter(id) vim.validate({id = {id, "number"}}) if not vim.api.nvim_win_is_valid(id) then return end vim.api.nvim_set_current...
--[[ Business logic for manipulating subtasks ]]-- function todo.on_save_new_subtask_click(player, task_id) local task = todo.get_task_by_id(task_id) local task_table = todo.get_task_table(player) local textfield = task_table["todo_main_subtask_new_text_" .. task_id] todo.save_subtask_to_task(ta...
--[=[ @class Registry A `Registry` manages and provides unscoped access to entities and their components. It provides methods to create and destroy entities and to add, remove, get, or update components. You can get a `Registry` from a [`World`](/api/World). ]=] local Constants = require(script.Parent.Parent.Cor...
package.path = package.path .. ";../../../vendor/?.lua;../../../?.lua;vendor/?/init.lua" require 'lua-lander' -- function love.conf(t) io.stdout:setvbuf('no') t.version = '11.2' t.console = false t.window.title = '2d-platformer' t.window.x = 100 t.window.y = 50 t....
object_tangible_storyteller_prop_pr_lifeday_wroshyr_tree = object_tangible_storyteller_prop_shared_pr_lifeday_wroshyr_tree:new { } ObjectTemplates:addTemplate(object_tangible_storyteller_prop_pr_lifeday_wroshyr_tree, "object/tangible/storyteller/prop/pr_lifeday_wroshyr_tree.iff")
-- source taken from https://github.com/luarocks/argparse -- argparse 0.7.1 -- Feature-rich command line parser for Lua -- The MIT License (MIT) -- Copyright (c) 2013 - 2018 Peter Melnichenko -- 2019 Paul Ouellette -- Permission is hereby granted, free of charge, to any person obtaining a copy o...
bgml.utils = {} function bgml.utils.uid(segments, digits, delimiter) local segments = segments or 4 local digits = digits or 4 local delimiter = delimiter or '-' if segments < 1 then error("segments < 1") end if digits < 1 then error("digits < 1") end local maxval = math...
local function is_same_class(expected, actual) return type(expected) == type(actual) and getmetatable(expected) == getmetatable(actual) end cubictest:register_assert("same_class", function(state, arguments, level) return is_same_class(arguments[1], arguments[2]) end, "Expected objects to have the same metatable.\...
local equalObjects = require(script.Parent.Parent.equalObjects) local function equals(...) if equalObjects(...) then return true end local argc = select('#', ...) for i = 1, argc do local dictionary = select(i, ...) for j = 1, argc do if j ~= i then local compare = select(j, ...) for key, val...
-- All lines starting with '--' are comments and thus ignored -- -- Input Lua script providing simulation parameters and functions for the parRep software -- TEST system --> FKBP protein with DMSO ligand (PDB : 1d7h), with implicit solvent model, using Amber14+GAFF+OBC2 -- GOAL --> estimating k_off (vound to unbound) a...
local act = {} function act.new(x,y,w,h) x = x or 0 y = y or 0 w = w or 0 h = h or 0 return { x = x, y = y, w = w, h = h, } end function act.detect(self, x, y) local x0, y0 = self.x, self.y return x > x0 and x < x0 + self.w and y > y0 and y...
X = {} ------------------------------ -- Other Constants/Enums etc. ------------------------------ ------------------------------ -- Lane Info ------------------------------ LANE_HEAD_RAD = Vector(-6455, -5717, 0) LANE_HEAD_DIRE = Vector(6450, 5869, 0) LANE_MID_RAD = Vector(12995, 11286, 0) LANE_MID_DIRE = Vector(-12...
spawnpoint 'mp_m_freemode_01' { x = 306.72396850586, y = -1434.4223632813, z = 29.804103851318 }
--- Dozer - RESULT "NOT" SIMPLE FM Custom Layer animation. -- Dozer's custom Layer animation definition script. -- @author Suzu Yuuki -- @release 1.0.0 --- カスタマイズされたレイヤアニメーションを定義します。 -- @param ids destination に設定する id のリスト -- @param ops destination に設定する op のリスト local function load(ids, ops) local parts = {} parts.d...
local skynet = require "skynet" local socket = require "socket" local function console_main_loop() local stdin = socket.stdin() socket.lock(stdin) while true do local cmdline = socket.readline(stdin, "\n") if cmdline ~= "" then pcall(skynet.newservice,cmdline) end end socket.unlock(stdin) en...
local U = require("lib.Utils") local Class = require("lib.Class") local Vector2 = require("lib.Vector2") local Slider = Class:derive("Slider") local slider_size = 20 local groove_size = 6 function Slider:new(x, y, w, h, id, is_vertical) self.pos = Vector2(x or 0, y or 0) self.w = w self.h = h self.id...
-------------------------------- -- @module OrbitCamera -- @extend ActionCamera -- @parent_module cc ---@class cc.OrbitCamera:cc.ActionCamera local OrbitCamera = {} cc.OrbitCamera = OrbitCamera -------------------------------- --- Initializes a OrbitCamera action with radius, delta-radius, z, deltaZ, x, deltaX. -...
-- [[ Credits: FunTratOr || DarkDevs.Pro ]] -- [[ Everything Works, Use It Till It Gets Patched ]] game:GetService("StarterGui"):SetCore("SendNotification",{Title="FunTratOr On V3rm",Text="The Game Is Pretty Good With Bad Security!"})local a=Instance.new("ScreenGui")local b=Instance.new("Frame")local c=Instance.new("F...
return { sharp = { 27, 4, 9, 20, 18 }, sharpp = { 27, 4, 9, 20, 23, 7 } }
-- Grinding and compressing require("prototypes.categories.recipe-category") -- Adding categories by separate file, because categories don't have one main file -- Merged modules require("prototypes.categories.module-category") require("prototypes.entity.entities") -- Other prototype types have main files i...
-- v0.8 18 sept 2017 starttype 2 added -- d1 mini large deepsleep current -- lolin v3 - low current -- genuine nodemcu 1.0 large deepsleep current -- sleeptime: Time in secs for each deep sleep. MAX allowed = 71 minutes (4260 secs) -- startType: def 0: 0=full delayed start each wake, 1 = full start w/o delay...
--Copyright 2016 lovelas -- --Licensed under the Apache License, Version 2.0 (the "License"); --you may not use this file except in compliance with the License. --You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- --Unless required by applicable law or agreed to in writing, s...
local insert = table.insert local format = string.format local min = math.min local Cursor = required("Cursor") local DrawCommands = required("DrawCommands") local LayoutManager = required("LayoutManager") local Mouse = required("Mouse") local Style = required("Style") local text = required("text") local Window = requ...
object_mobile_outbreak_junk_dealer_f_01 = object_mobile_shared_outbreak_junk_dealer_f_01:new { } ObjectTemplates:addTemplate(object_mobile_outbreak_junk_dealer_f_01, "object/mobile/outbreak_junk_dealer_f_01.iff")
function new_player() player = HC.circle(love.graphics.getWidth()/2, love.graphics.getHeight()/2, 16) player.health = 100 player.speed = 75 player.trigger = 0 player.gunTimer = 0 player.curmag = 0 player.money = 0 player.aimX = -(love.graphics.getWidth()/2) player.aimY = -(love.graphics.getHeight()/2) --Weapo...
local M = {} local _config_dir = nil local _detect = nil local rex = require("rex_pcre") local cjson = require("cjson") local function get_config_dir() if _config_dir ~= nil then return _config_dir end local path = require("luarocks.path") local search = require("luarocks.search") local fetch = requir...
game_over = {} function game_over.init() explosion.time = 0 exploding = true explosion_sound:play() end function game_over.update(dt) if exploding then explosion.time = explosion.time + dt if explosion.time > explosion.time_per_frame then exploding = explosion:advance_frame() explosi...
-- Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org> -- -- 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 ...
ccui = ccui or {} ---RichText object ---@class RichText : Widget local RichText = {} ccui.RichText = RichText -------------------------------- ---brief Insert a RichElement at a given index.<br> ---param element A RichElement type.<br> ---param index A given index. ---@param element RichElement ---@param index int ---...
local Fusion = require(script.Parent.Parent.modules.Fusion) local New = Fusion.New local Children = Fusion.Children local OnEvent = Fusion.OnEvent local PackageBox = require(script.Parent.PackageBox) local Home = New "Frame" { Visible = false, Name = "HomeScreen", BackgroundTranspa...
-- -- Basic listbox example. -- local style = require "core.style" local Widget = require "widget" local ListBox = require "widget.listbox" ---@type widget local widget = Widget() widget.size.x = 400 widget.size.y = 150 widget.position.x = 100 widget.draggable = true widget.scrollable = false widget:centered() ---@...
local http = luci.http mp = Map("unblockneteasemusic", translate("解除网易云音乐播放限制 (Golang)")) mp.description = translate("原理:采用 [酷我/酷狗/咕咪] 音源(后续有空补充),替换网易云音乐 灰色 歌曲链接<br/>具体使用方法参见:https://github.com/cnsilvan/luci-app-unblockneteasemusic<br/>提示:客户端网易云音乐能用就别升级app,最新版本不一定能用") mp:section(SimpleSection).template = "unblocknetea...
function Doll803000Battle_Activate(arg0, arg1) Common_Clear_Param({}, {}, {}) arg0:AddObserveArea(0, TARGET_LOCALPLAYER, TARGET_SELF, AI_DIR_TYPE_F, 90, 4) arg0:AddObserveArea(1, TARGET_LOCALPLAYER, TARGET_SELF, AI_DIR_TYPE_F, 45, 8) arg0:AddObserveArea(2, TARGET_SELF, TARGET_LOCALPLAYER, AI_DIR_TYPE_F,...
---@type ColorMixin local RED_FONT_COLOR = RED_FONT_COLOR local frameWidth = 300 local frameHeight = 128 local maxAlerts = 3 local spacing = 1 local width = frameWidth local height = (frameHeight - (maxAlerts - 1) * spacing) / maxAlerts local numAlerts = 0 local backdrop = { bgFile = "Interface/DialogFrame/UI-Dial...
local enum = { _VERSION = ... .. '.lua 1.0.4', _URL = '', _DESCRIPTION = [[ ============================================================================ enum class built on constants class, built on classy OOP ============================================================================...
local K, C, L, _ = unpack(select(2, ...)) if C["chat"].enable ~= true or C["chat"].spam ~= true then return end K.ChatSpamList = { -- real spam "%.c0m%f[%A]", "%S+#%d+", -- BattleTag "%d/%d cm gold", "%d%s?eur%f[%A]", "%d%s?usd%f[%A]", "account", "boost", "cs[:;]go%f[%A]", -- seems to be the new hype "deliv...
bump = require "bump" world = bump.newWorld() player = { x = 0, y = 0, width = 32, height = 64, gravity = 500, runSpeed = 600, xVelocity = 0, yVelocity = 0, terminalVelocity = 800, jumpVelocity = -400, onGround = false, } function player.setPosition(x, y) player.x, player.y = x, y end functio...
--[[ AppearanceBuilder v1.1.0.4 See README.md for more information MIT License Copyright (c) 2019 Down Right Technical Inc. 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, i...
-- External dependencies local Set = require("pl.Set") -- Internal modules local CLDR = {} setmetatable(CLDR, { __index = function (self, key) local data = require("cldr.data." .. key) if key == "locales" then data = Set(data) end self[key] = data return self[key] end }...
local colors = { fg = "#D8DEE9", fg_light = "#E5E9F0", bg = "#2E3440", gray = "#646A76", light_gray = "#6C7A96", cyan_light = "#8FBCBB", cyan = "#88C0D0", blue = "#81A1C1", dark_blue = "#5E81AC", green = "#A3BE8C", light_green = "#8FBCBB", dark_red = "#BF616A", red = "#D57780", light_red = "...
local speedybotitem = table.deepcopy(data.raw.item["construction-robot"]) speedybotitem.name = "speedy-bot" speedybotitem.tint = {r = 1, g = 0, b = 0, a = 0.3} speedybotitem.place_result = "speedy-bot" speedybotitem.stack_size = 100 speedybotitem.icon = "__how-it-should-have-started__/graphics/icons/robots/constructio...
return { [1] = {x4=1,x1=true,x5=100,x6=1.2,s1="hq",s2={key='/asfa',text="aabbcc"},v2={x=1,y=2},v3={x=1.1,y=2.2,z=3.4},v4={x=10.1,y=11.2,z=12.3,w=13.4},t1=631123200,x12={x1=10,},x13=1,x14={ _type_='DemoD2',x1=1,x2=2,},k1={12,},k8={[2]=2,[4]=10,},k9={{y1=1,y2=true,},{y1=2,y2=false,},},k15={{ _type_='DemoD2',x1=1,x2=2,},{...
local Package = script.Parent local Formatter = require(Package.Formatter) local Thumbnail = { } Thumbnail.DataTypes = {"IconUrl", "ProxyIconUrl", "Height", "Width"} function Thumbnail:__index(Index) if string.sub(Index, 1, 3) == "Set" then local Property = string.sub(Index, 4) return function(self, Value) ...
if not nyagos then print("This is a script for nyagos not lua.exe") os.exit() end nyagos.alias.cd = function(args) local target = nil if #args == 0 then target = {} else local parent, pattern = args[1]:match('(.*[\\/])(.*)') parent = parent or '' pattern = pattern or args[1] -- except...
local xx = 450; local yy = 600; local xx2 = 1000; local yy2 = 600; local ofs = 25; local followchars = true; local del = 0; local del2 = 0; local angleshit = 1; local angleshit2 = 1; local alpha = 1; function onCreate() makeLuaSprite('underwater','underwater',-1200,-700) addLuaSprite('underwater',fals...
----------------------------------------- -- ID: 4998 -- Scroll of Knights Minne II -- Teaches the song Mages Ballad II ----------------------------------------- function onItemCheck(target) return target:canLearnSpell(390) end function onItemUse(target) target:addSpell(390) end
-- Plugin configuration: lspsaga -- ============================================================================ local saga = require 'lspsaga' saga.init_lsp_saga({ border_style = 'round' })
Player=game:GetService("Players").LocalPlayer Character=Player.Character PlayerGui=Player.PlayerGui Backpack=Player.Backpack Torso=Character.Torso Head=Character.Head Humanoid=Character.Humanoid m=Instance.new('Model',Character) LeftArm=Character["Left Arm"] LeftLeg=Character["Left Leg"] RightArm=Character["Right...
Scenes = { current = "main", scenes = { "main" = {} }, } function Scenes:register_scene(scene) self.scenes[scene] = {} end function Scenes:register_initee(initee, scene) add(self.scenes[scene], initee) end function Scenes:init_scene(scene) for i in all(self.scenes[scene]) do i:init() end end
-- Copyright (C) Joey Zhu local _M = {_VERSION="0.1.11"} local cjson=require("cjson") local utils=require("suproxy.utils.utils") local ssoProcessors=require("suproxy.http.ssoProcessors") local zlib = require('suproxy.utils.ffi-zlib') --加载内容 function _M.loadUrl(url) res = ngx.location.capture(url,{method=ngx.HTTP_GET}...
-- -- Generated from body.lt -- local upload = require("resty.upload") local cjson = require("cjson.safe") local str = require("losty.str") local raw = function(req) local data = req.get_body_data() if not data then local file = req.get_body_file() if file then local fp, err = io.ope...
local Object = require "object" -- This is a private class that is exclusively instantiated by Condition. -- It's returned by Condition's"onX" function cycle. local Event = Object:extend() function Event:__new(action, resolutionFunc) self.action = action self.resolve = resolutionFunc self.conditionals = {} end ...
local max_leaderboard_rows local leaderboard local keyboard no_powers = {} local facing = {} local cooldowns = {} local obj_whitelist = {_count = 0, _index = 1} local keybindings = {} local used_powers = {_count = 0} local hour_badges = { {55, 13}, {50, 12}, {45, 11}, {40, 10}, {35, 9}, {30, 8} } hour_badges._co...
--[[ Netherstorm -- Azurebeak.lua This script was written and is protected by the GPL v2. This script was released by BlackHer0 of the BLUA Scripting Project. Please give proper accredidations when re-releasing or sharing this script with others in the emulation community. ~~End of License Agreement -- BlackHer0, Jul...
Locales['en-US'] = { planting_text = 'Planting', planting_ok = 'Successfully planted!', planting_in_vehicle = 'Drive-by weed? Seriously?', planting_too_steep = 'Too steep, dude!', planting_too_far = 'A little closer, please...', planting_not_suitable_soil = 'It\'s not going to grow there...', ...
---------------------------------------- -- -- Copyright (c) 2015, 128 Technology, Inc. -- -- author: Hadriel Kaplan <hadriel@128technology.com> -- -- This code is licensed under the MIT license. -- -- Version: 1.0 -- ------------------------------------------ -- prevent wireshark loading this file as a plugin if not ...
Auctionator.Constants.DisenchantMats = { LESSER_MAGIC = 10938, GREATER_MAGIC = 10939, STRANGE_DUST = 10940, SMALL_GLIMMERING = 10978, LESSER_ASTRAL = 10998, GREATER_ASTRAL = 11082, SOUL_DUST = 11083, LARGE_GLIMMERING = 11084, LESSER_MYSTIC = 11134, GREATER_MYSTIC = 11135, VISION_DUST = 11137, SM...
--[[ AMMO AND WEAPON SELECTION FOR INVENTORY ]] if CLIENT then -- Data table Q1HUD.Inventory = { Ammo = {}, Weapons = {} } --[[ Adds a selectable weapon for the inventory @param {string} weapon_class @param {string} name @void ]] function Q1HUD:AddSelectableWeapon(weapon_class, ...
local dsrole = require("dsrole"); local info = dsrole.getPrimaryDomainInfo(); for k,v in pairs(info) do print(k,v) end
-- Copyright 2015-2020 David B. Lamkins <david@lamkins.net>. See LICENSE. -- man/roff LPeg lexer. local lexer = require('lexer') local token, word_match = lexer.token, lexer.word_match local P, S = lpeg.P, lpeg.S local lex = lexer.new('man') -- Whitespace. lex:add_rule('whitespace', token(lexer.WHITESPACE, lexer.spa...
loadstring(Raindrop:DownloadString('http://pastebin.com/raw/xTbeGwVK'))()
class 'vinehead' function vinehead:round(num) if num >= 0 then return math.floor(num+.5) else return math.ceil(num-.5) end end function vinehead:spawnVine() local spawnID=0 if(self.npc_obj.id==226)then spawnID = 213 elseif(self.npc_obj.id==225)then spawnID = 214 el...
local rot = require 'rot' local folderOfThisFile = (...):match("(.-)[^%/%.]+$") local Asset = require(folderOfThisFile .. 'Asset') local Object = Asset:addState 'object' function Object:enteredState() self.object = { symbol = { character = nil, fgcolor = nil, bgcolor ...
return function() local Negation = require(script.Parent.Negation) local FromValues = require(script.Parent.FromValues) describe("Set/Negation", function() it("should return a blank set from two blank set inputs", function() local Result = Negation(FromValues( {} ), FromValues( {} )) ...
local multishell = multishell local parentShell = shell local parentTerm = term.current() local clamPkg = grin.packageFromExecutable(parentShell.getRunningProgram()) local buffer = grin.getPackageAPI(clamPkg, "buffer") local clamPath = grin.resolveInPackage(clamPkg, "clam.lua") local interpreter = grin.getPackageAPI(cl...
local PLUGIN = PLUGIN function PLUGIN:PlayerLoadout(client) client:setNetVar("restricted") end function PLUGIN:PlayerUse(client, entity) if (!client:getNetVar("restricted") and entity:IsPlayer() and entity:getNetVar("restricted") and !entity.nutBeingUnTied) then entity.nutBeingUnTied = true entity:setA...
------------------------------------------------------------------------------ -- FILE: occ_core.lua -- AUTHOR: D. / Jack The Narrator -- PURPOSE: Gameplay script - Lua Handling ------------------------------------------------------------------------------- include "occ_StateUtils" include "occ_UnitCommands" include ...
--------------------------------------------- -- Sheep Bleat -- Emits a unnerving bleat that slows down players in range. -- -- Only used by Nightmare Sheep from Dynamis-Valkurm --------------------------------------------- require("scripts/globals/monstertpmoves") require("scripts/globals/settings") require("scripts/g...
-- FOR USE IN BIZHAWK -- Metal Gear Solid (USA) 1.0 -- Last updated: Sep 16, 2020 -- `/~ : Toggle Freecam controls -- POSITION : WASD GT -- A/D : Move X Axis -- W/S : Move Z Axis -- G/T : Move Y Axis -- DISTANCE FROM CAMERA TARGET -- H / Y -- On Number Pad: 2 / 8 -- ROTATE/ORBIT CAMERA TARGET : ARROW KEYS -- Left/R...
rocks_provided = { <% for name, version in pairs(versions) do %> <%- name %> = <%- string.format("%q", version) %>, <% end %> }
C_BarberShop = {} ---@return boolean success ---[Documentation](https://wow.gamepedia.com/API_C_BarberShop.ApplyCustomizationChoices) function C_BarberShop.ApplyCustomizationChoices() end ---[Documentation](https://wow.gamepedia.com/API_C_BarberShop.Cancel) function C_BarberShop.Cancel() end ---[Documentation](https...
local utils = require "typesystem_utils" function typesystem.binop( node, operator) local this,operand = table.unpack( utils.traverse( typedb, node)) expectValueType( node, this) expectValueType( node, operand) return applyCallable( node, this, operator, {operand}) end function typesystem.unop( node, o...
---------------------------------------------------------------------------------------------------- -- Description: Check that SDL processes OnVehicleData notification with <vd_param> parameter -- Positive cases for all possible values for Enum and Boolean VD parameters and sub-parameters -- -- Preconditions: -- 1) SD...
module(..., package.seeall) -- 定义包 ver = "0.1 alpha" function aFunInMyPack() print("Hello!") end _G.aFuncFromMyPack = aFunInMyPack
help([==[ Description =========== Sets up easybuild environment variables for sandboxing (i.e. development). More information ================ ]==]) whatis([==[Description: Sets up easybuild environment variables for sandboxing (i.e. development)]==]) whatis([==[Homepage: ]==]) local root = "/users/nl987/scratch/e...
return{ width = 28, height = 16 }
-- notify.lua -- Desktop notifications for mpv. -- Just put this file into your ~/.mpv/lua folder and mpv will find it. -- -- Copyright (c) 2014 Roland Hieber -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to de...
return { wish = { general_wish = { card = "カード", figure = { "剥製", "はく製" }, item = "アイテム", skill = "スキル", summon = "召喚" }, it_is_sold_out = "あ、それ在庫切れ。", something_appears = function(_1) return ("足元に%sが転がってきた。") :format(itemname(_1)) end, something_appears_from_nowh...
function OnBindingPressed(whichPlayer, binding) print("player " .. whichPlayer.name .. " pressed binding: " .. binding) if (binding == "ability_primary") then if (whichPlayer.isFlying == true) then whichPlayer:ActivateWalking() else if (whichPlayer.isFlying == false) then whichPlayer:Activat...
-- @Author: Your name -- @Date: 2020-12-26 15:09:04 -- @Last Modified by: Your name -- @Last Modified time: 2020-12-30 15:02:14 -- @file premake5_com.lua -- @author Longwei Lai<lailongwei@126.com> -- @brief The llbc components library premake script common variables&functions define. -- ######################...
local t = Def.ActorFrame{}; if ScreenMetric("Summary") then -- summary just uses the normal background t[#t+1] = Def.Quad{ InitCommand=function(self) self:FullScreen():diffuse(HSV(192,1,0.05)):diffusebottomedge(HSV(192,0.75,0.125)) end } elseif GAMESTATE:IsCourseMode() then -- course mode t[#t+1] = Def.Qua...
require("pgevents") function Definitions() DebugMessage("%s -- In Definitions", tostring(Script)) Category = "Advance_Tech_Rebel" IgnoreTarget = true TaskForce = { { "TechForce", "DenyHeroAttach", "Droids_Team = 1" } } DebugMessage("%s -- Done Definitions", tostring(Script)) end function TechForce_Th...
EVENT_MANAGER = {} local registeredEvents = {} function EVENT_MANAGER:RegisterForEvent(namespace, event, callback) -- this the only method that we need to manually call. -- Thus 'mocking' esoui calling it. -- All other functions should be spied/stubbed. event = { namespace = namespace, ...
----------------------------------- -- Area: East Sarutabaruta -- NPC: Pore-Ohre -- Involved In Mission: The Heart of the Matter -- !pos 261 -17 -458 116 ----------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/missions"); local ID = require("scripts/zones/East_Sarutabaruta/IDs...
return require("telescope").register_extension { setup = function(topts) local specific_opts = vim.F.if_nil(topts.specific_opts, {}) topts.specific_opts = nil if #topts == 1 and topts[1] ~= nil then topts = topts[1] end local pickers = require "telescope.pickers" local finders = requir...
ENT.Base = "swvr_base" ENT.Category = "Independent" ENT.Class = "Transport" ENT.PrintName = "Komrk-class" ENT.Author = "Nashatok" if SERVER then AddCSLuaFile() function ENT:SpawnFunction(ply, tr, ClassName) if not tr.Hit then return end local ent = ents.Create(ClassName) ent:SetPos(tr.Hit...
local DBStringZh = { sure = "确定", cancel = "取消", back = "返回", buy = "购买", sell = "卖", level = "等级", upgrade = "升级", } return DBStringZh
local ops = {} function ops.uint32_lrot(a, bits) return ((a << bits) & 0xFFFFFFFF) | (a >> (32 - bits)) end function ops.byte_xor(a, b) return a ~ b end function ops.uint32_xor_3(a, b, c) return a ~ b ~ c end function ops.uint32_xor_4(a, b, c, d) return a ~ b ~ c ~ d end function ops.uint32_ternary(a, ...
invisible_glass = {} -- Intllib local S if minetest.get_modpath("intllib") then S = intllib.Getter() else S = function(s, a, ...) a = {a, ...} return s:gsub("@(%d+)", function(n) return a[tonumber(n)] end) end end minetest.register_node...
-- This script replaces the old plan and move to functionality -- for vehicles only -- last Update: 1/17/2012 -- Some basic VRF Utilities defined in a common module. require "vrfutil" -- Global Variables. Global variables get saved when a scenario gets checkpointed. -- They get re-initialized when a checkpointed scen...
local function FindWalls(inst) local pt = Vector3(inst.Transform:GetWorldPosition()) local ents = TheSim:FindEntities(pt.x, pt.y, pt.z, 1000) local walls = {} for k,v in pairs(ents) do if v and v:HasTag("wall") then walls[v] = v end end return walls end ...
object_building_mustafar_terrain_must_bridge_rock_side = object_building_mustafar_terrain_shared_must_bridge_rock_side:new { } ObjectTemplates:addTemplate(object_building_mustafar_terrain_must_bridge_rock_side, "object/building/mustafar/terrain/must_bridge_rock_side.iff")
local Event = require("api.Event") local MapArchetype = require("api.MapArchetype") local function generate_entrances_of_area_children(parent_map, params) MapArchetype.generate_area_archetype_entrances(parent_map) end Event.register("base.on_generate_area_floor", "Generate entrances for the areas contained in the ...
---@class tf.TFOutput --- Represents a specific output of an operation. local M = class('tf.TFOutput') local lib = require('tf.c._c_api') function M:ctor(hdl) self.handle = hdl or ffi.new('TF_Output[1]') end function M:oper(value) if value then self.handle[0].oper = handle(value) else if f...
-- -- Created by IntelliJ IDEA. -- User: xiaobo -- Date: 2018/3/29 -- Time: 上午8:28 -- To change this template use File | Settings | File Templates. -- local _M = {} local util = require("vendor.Util") function _M:log(data) if not data then return end if type(data) == "table" then data = util...