content
stringlengths
5
1.05M
ys = ys or {} ys.Battle.BattleTorpedoUnit = class("BattleTorpedoUnit", ys.Battle.BattleWeaponUnit) ys.Battle.BattleTorpedoUnit.__name = "BattleTorpedoUnit" ys.Battle.BattleTorpedoUnit.Ctor = function (slot0) slot0.Battle.BattleTorpedoUnit.super.Ctor(slot0) end ys.Battle.BattleTorpedoUnit.TriggerBuffOnFire = function...
--------------------------------------------- -- Blood Drain -- Steals an enemy's HP. Ineffective against undead. --------------------------------------------- require("scripts/globals/monstertpmoves") require("scripts/globals/settings") require("scripts/globals/status") --------------------------------------------- f...
__g_module_function__ = {} __g_function_name__ = {} __g_all_processer_request__ = {} __g_result_value_to_name__ = {} function require_ex( _mname ) if package.loaded[_mname] then print( string.format("require_ex module[%s] reload", _mname)) end package.loaded[_mname] = nil return require( _mname ) end fu...
local classes = require('../classes') local base = require('./base') local Channel = require('./Channel') local constants = require('../constants') local User = classes.new(base) function User:__constructor () self.servers = classes.Cache() end function User:sendMessage (...) if not self.channel then local data...
data:extend({ -- Speed { type = "recipe", name = "speed-module-4", enabled = false, ingredients = { {"speed-module-3", 5}, {"advanced-circuit", 10}, {"processing-unit", 10} }, energy_required = 120, result = "speed-modul...
local saws = {}; local sawTimer = nil; local saw3SliderJoint = scene:getJoints("saw3_slider_joint")[1]; local saw6SliderJoint = scene:getJoints("saw6_slider_joint")[1]; local spike1Joint = scene:getJoints("spike1_joint")[1]; local spike4Joint = scene:getJoints("spike4_joint")[1]; local spike6Joint = scene:getJoints("sp...
match_reward_layout_2= { name="match_reward_layout_2",type=0,typeName="View",time=0,x=0,y=0,width=1280,height=720,visible=1,nodeAlign=kAlignTopLeft,fillParentWidth=1,fillParentHeight=1, { name="contentBg",type=0,typeName="Image",time=103127199,x=0,y=0,width=497,height=358,nodeAlign=kAlignCenter,visible=1,fillParent...
--[[ This script is under MIT license For more details, please read this https://github.com/Bilal2453/Chapter-Genrator/blob/master/LICENSE For instructions about using this plugin https://github.com/Bilal2453/Chapter-Genrator/blob/master/readme TODO: Support chapter merging on MacOS & Linux -- ?B...
MODULE.Name = "Network" MODULE.Libraries = { "NazaraCore" } MODULE.OsFiles.Windows = { "../src/Nazara/Network/Win32/**.hpp", "../src/Nazara/Network/Win32/**.cpp" } MODULE.OsFiles.Posix = { "../src/Nazara/Network/Posix/**.hpp", "../src/Nazara/Network/Posix/**.cpp" } MODULE.OsFiles.Linux = { "../src/Nazara/Netw...
require "x_functions"; if not x_requires then -- Sanity check. If they require a newer version, let them know. timer = 1; while (true) do timer = timer + 1; for i = 0, 32 do gui.drawbox( 6, 28 + i, 250, 92 - i, "#000000"); end; gui.text( 10, 32, string.format("This Lua script requires the x_functions lib...
local PATH = (...):gsub('%.[^%.]+$', '') local Component = require(PATH .. '.component') local StateMachine = Component:extend() function StateMachine:new() StateMachine.super.new(self) self.states = {} end function StateMachine:add(name, state) self.states[name] = state if not self.initial then self.ini...
local ControllerAction = require('Action.ControllerAction') local PlayTransitionAction = class('PlayTransitionAction', ControllerAction) function PlayTransitionAction:enter(controller) local trans = controller.parent:getTransition(self.transitionName) if trans ~= nil then if self._currentTransition ~= nil ...
--[[ This addon designed to be as lightweight as possible. It will only track, Mine, Herb, Fish, Gas and some Treasure nodes. This mods whole purpose is to be lean, simple and feature complete. ]] -- Mixin AceEvent local GatherMate = LibStub("AceAddon-3.0"):NewAddon("GatherMate2","AceConsole-3.0","AceEvent-3.0") loc...
-- RGB API version 1.0 by CrazedProgrammer -- You can find info and documentation on these pages: -- -- You may use this in your ComputerCraft programs and modify it without asking. -- However, you may not publish this API under your name without asking me. -- If you have any suggestions, bug reports or questions then...
local async = {} async._error = error local function dummyFunc() end -- Call only once -- local function onlyOnce(fn) local called = false return function(...) if called then error("Callback was already called.") end called = true fn(...) end end async.onlyOnce...
test_run = require('test_run').new() fiber = require('fiber') net_box = require('net.box') net_msg_max = box.cfg.net_msg_max box.cfg{net_msg_max = 64} box.schema.user.grant('guest', 'read,write,execute', 'universe') s = box.schema.space.create('test') _ = s:create_index('primary', {unique=true, parts={1, 'unsigned'...
local ffi = require("ffi") local exports = {} ffi.cdef[[ /* The ovs_be<N> types indicate that an object is in big-endian, not * native-endian, byte order. They are otherwise equivalent to uint<N>_t. */ typedef uint16_t ovs_be16; typedef uint32_t ovs_be32; typedef uint64_t ovs_be64; ]] exports.OVS_BE16_MAX = f...
require 'io' require 'lfs' -- POSTSCRIPT for an image download -- This script runs after an image is downloaded -- to tell the user the size of their cache directory -- arguments are: the image directory, the downloaded file, and the module name local images_dn_abs = arg[1] local target_fn = arg[2] local my_module_na...
object_tangible_furniture_decorative_wod_sm_potted_plant_01 = object_tangible_furniture_decorative_shared_wod_sm_potted_plant_01:new { } ObjectTemplates:addTemplate(object_tangible_furniture_decorative_wod_sm_potted_plant_01, "object/tangible/furniture/decorative/wod_sm_potted_plant_01.iff")
-- ============================================================= -- Copyright Roaming Gamer, LLC. 2008-2018 (All Rights Reserved) -- ============================================================= -- Actions Library - Move Functions -- ============================================================= local move = {} _G.ssk....
local Concord = require("lib.concord") return Concord.component()
local Screen = require "widgets/screen" local Button = require "widgets/button" local AnimButton = require "widgets/animbutton" local ImageButton = require "widgets/imagebutton" local Text = require "widgets/text" local Image = require "widgets/image" local UIAnim = require "widgets/uianim" local Widget = require "widg...
RegisterNetEvent('pma-voice:syncRadioData') AddEventHandler('pma-voice:syncRadioData', function(radioTable) radioData = radioTable for tgt, enabled in pairs(radioTable) do if tgt ~= playerServerId then toggleVoice(tgt, enabled) end end playerTargets(radioData, callData) end) RegisterNetEvent('pma-voice:setT...
function start() play_music("music/castle.mid"); process_outline() add_wall_group(3, 10, 6, 2, 3, 0) pig = add_npc("pig_guard", 3, 119, 134) set_character_role(pig, "wander", 48, 0.25, 1.0) going_down = Active_Block:new{x=1, y=10, width=3, height=2} going_out = Active_Block:new{x=5, y=13, width=3, height=2} ...
---------------------------------------- -- Group Calendar 5 Copyright (c) 2018 John Stephen -- This software is licensed under the MIT license. -- See the included LICENSE.txt file for more information. ---------------------------------------- ---------------------------------------- GroupCalendar._WhisperLog ...
------------------------------------------------ -- Copyright © 2013-2020 Hugula: Arpg game Engine -- -- author pu ------------------------------------------------ local require = require local rawset = rawset local rawget = rawget local setmetatable = setmetatable local VMConfig = require("vm_config")[1] ---根据 W...
local C = hog.C local HOG, parent = torch.class('hog.HOG', 'nn.Module') function HOG:__init(sbin) parent.__init(self) self.sbin = sbin or 8 self.grad_v = torch.CudaTensor() self.grad_i = torch.CudaTensor() self.hist = torch.CudaTensor() self.norm = torch.CudaTensor() self.output = torch.CudaTen...
local highlight = function(group, color) local style = color.style and 'gui=' .. color.style or 'gui=NONE' local fg = color.fg and 'guifg=' .. color.fg or 'guifg=NONE' local bg = color.bg and 'guibg=' .. color.bg or 'guibg=NONE' local sp = color.sp and 'guisp=' .. color.sp or '' local hl = 'highlig...
local opts = { noremap = true, silent = true } local term_opts = { silent = true } -- shorten function name local keymap = vim.api.nvim_set_keymap -- Remap space as leader key keymap("", "<Space>", "<Nop>", opts) vim.g.mapleader = " " vim.g.maplocalleader = " " -- Modes -- normal_mode = "n", -- insert_mode = "i"...
position = {x = 48.2880554199219, y = 0.947854280471802, z = 15.9168872833252} rotation = {x = 1.17175068226061E-05, y = 269.985107421875, z = 2.19253470277181E-05}
function i(n) if n < 12 then return n; end return i(n - 1); end print(i(1)); print(i(100));
-- AreaPreview.lua -- Implements the AreaPreview class providing area previews for webadmin --[[ The webadmin handlers use this class to request images of the areas. This class uses a network connection to MCSchematicToPng to generate the images, and stores them in the Storage DB as a cache. Since the webadmin needs ...
require "scripts.core.item" require "gamemode.Spark.modifiers.modifier_armor" require "gamemode.Spark.modifiers.modifier_all_stats"; require "gamemode.Spark.modifiers.modifier_attack_speed"; require "gamemode.Spark.modifiers.modifier_aura_movement_speed"; AegisOfTheHound = class(Item) function AegisOfTheHound:OnCreat...
local vehicles = {} local particles = {} function IsVehicleLightTrailEnabled(vehicle) return vehicles[vehicle] == true end function SetVehicleLightTrailEnabled(vehicle, enabled) if IsVehicleLightTrailEnabled(vehicle) == enabled then return end if enabled then local ptfxs = {} ...
-- Natural Selection 2 Competitive Mod -- Source located at - https://github.com/xToken/CompMod -- lua\CompMod\Structures\Alien\Shift\shared.lua -- - Dragon -- SHIFT local networkVars = { energizing = "boolean" } AddMixinNetworkVars(InfestationMixin, networkVars) local originalShiftOnInitialized originalShiftOnI...
require("deepcore/std/class") require("deepcore/std/callable") ---@class SpawnHeroBuilder SpawnHeroBuilder = class() ---@param hero_name string function SpawnHeroBuilder:new(hero_name) self.hero_name = hero_name ---@type PlayerObject self.faction = nil ---@type string self.planet = nil end ---@...
------------------------------------------------------------------------------- -- AdiBags - Korthian Relics By Crackpot (US, Arthas) ------------------------------------------------------------------------------- local addonName, addon = ... local L = setmetatable( {}, { __index = function(self, key) ...
-- vim: ft=lua ts=2 sw=2 et: local function obj(self, new) local function order(t) table.sort(t); return t end local function str(t, u,ks) ks={}; for k,v in pairs(t) do ks[1+#ks] = k end u={}; for _,k in pairs(order(ks)) do u[1+#u]= #t>0 and tostring(t[k]) or fmt("%s=%s",k,t[k]) end ...
local status_ok, grammar_guard = pcall(require, "grammar_guard") if not status_ok then return end grammar_guard.setup({ settings = { ltex = { enabled = { "latex", "txt", "tex", "bib", "markdown", "text" }, language = "en", diagnosticSeverity = "information", setenceCacheSize = 2000, additionalRules ...
#!/usr/bin/env lua -- MoonFLTK example: fonts.lua -- -- Derived from the FLTK test/fonts.cxx example (http://www.fltk.org) -- fl = require("moonfltk") function FontDisplay (B, X, Y, W, H, L) local t = {} t.widget = fl.widget_sub(X, Y, W, H, L) t.font = 0 t.size = 14 t.widget:box(B) t.widget:override...
while true do print(io.read("*n")+1) end
minetest.register_privilege("lavastone_remove", { description = "Can remove lavastone in an area" }) minetest.register_privilege("lava_remove", { description = "Can remove flowing lava in an area" }) minetest.register_privilege("water_remove", { description = "Can remove flowing water in an area" }) if minetest....
-- == File Module == -- Copyright (c) 2018 by Rene K. Mueller <spiritdude@gmail.com> -- -- License: MIT (see LICENSE file) -- -- Description: -- basic file operations, alike io with some slight alterations like file.read() -- -- History: -- 2018/02/27: 0.0.3: fh:*() cleaner setup using file.*(self,[...]) and argumen...
local fs = fs or {} -- props to capsadmin for dis -- https://raw.githubusercontent.com/CapsAdmin/goluwa/master/src/lua/modules/fs.lua if WINDOWS then local ffi = require("ffi") ffi.cdef([[ typedef struct hexed_file_time { unsigned long high; unsigned long low; } hexed_file_time; typedef struct hexed_f...
-- Tests for avg.lua (Mathematical class library) -- Written by Michiel Fokke <michiel@fokke.org> -- MIT license, http://opensource.org/licenses/MIT -- use with 'shake' (http://shake.luaforge.net) package.path = package.path..';../?.lua' require 'mcl' a = newRingbuffer() assert (type(a) == 'table', "a should be a tab...
--[[ Copyright (c) 2019 Void Works See LICENSE in the project directory for license information. Most of the credit for this mod goes to authors below whose code was compiled: Original "Fluid Void" mod by Rseding91 - redesigned by Nibuja05 (control code used for fluid voiding) "High Pressure Pipe" mod by ken...
Stat = Object:extend() function Stat:new(base) self.base = base self.additive = 0 self.additives = {} self.value = self.base*(1 + self.additive) end function Stat:update(dt) for _, additive in ipairs(self.additives) do self.additive = self.additive + additive end if self.additive >= 0 then s...
local Bar = script:GetCustomProperty("Bar"):WaitForObject() local Cursor = script:GetCustomProperty("Cursor"):WaitForObject() local Root = script:GetCustomProperty("Root"):WaitForObject() local GetAbsoluteUI = require(script:GetCustomProperty("GetAbsoluteUI")) local LOCAL_PLAYER = Game.GetLocalPlayer() local EventSetUp...
--[[ 代理服务器 ]] local skynet = require "skynet" local socket = require "skynet.socket" local cjson = require("cjson"); require("LuaKit._load"); local WATCHDOG local host local send_request local Agent = {} local client_fd local function send_package(cmd,data) local struct = string; local body = cjson.encode(data) ...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by norguhtar. --- DateTime: 26.02.19 13:02 --- local lapis = require('data-mapper.db.lapis') local postgres = require('data-mapper.db.postgres') local mysql = require('data-mapper.db.mysql') local pg = require("data-mapper.db.pg") local db = {} loc...
#!/usr/bin/env luajit require 'ext' local env = setmetatable({}, {__index=_G}) if setfenv then setfenv(1, env) else _ENV = env end require 'symmath'.setup{env=env, MathJax={title='Platonic Solids'}} printbr[[ $n =$ dimension of manifold which our shape resides in.<br> $\tilde{T}_i \in \mathbb{R}^{n \times n} =$ i'th i...
slot0 = class("BattleAirFightResultLayer", import(".BattleResultLayer")) slot0.getUIName = function (slot0) return "BattleAirFightResultUI" end slot0.init = function (slot0) slot0._grade = slot0:findTF("grade") slot0._levelText = slot0:findTF("chapterName/Text22", slot0._grade) slot0._main = slot0:findTF("main") ...
return {'joechjachen','joeg','joego','joekel','joelen','joelfeest','joep','joepen','joepie','joetje','joegoslavische','joegoslavisch','joegoslavie','joegoslavier','joep','joes','joel','joe','joeke','joel','joelle','joeri','joerie','joey','joelle','joegoslaven','joegen','joekels','joel','joelde','joelden','joelend','joe...
----------------------------------- -- Area: North Gustaberg (S) (F-8) -- NPC: ??? -- Involved in Quests -- !pos -232 41 425 ----------------------------------- require("scripts/globals/quests") ----------------------------------- function onTrade(player, npc, trade) end function onTrigger(player, npc) if (play...
SKILL.name = "Incinerate" SKILL.LevelReq = 5 SKILL.SkillPointCost = 2 SKILL.Incompatible = { } SKILL.RequiredSkills = { } SKILL.icon = "vgui/skills/spell_fire_burnout.png" SKILL.category = "Psychic Powers"-- Common Passives, Warrior, Lore of Light, Dark Magic SKILL.slot = "AOE" -- ULT, RANGED, MELEE, AOE, PASSIVE S...
-- On one pin, a button that has 3 (callback) functions for short or 1-sec or 3-sec presses. -- BL Oct 2015 _tstamps={} smartButton = function(pin, k0, k1, k3) _tstamps[pin+1]=0 gpio.mode(pin,gpio.INT) gpio.trig(pin, "both", function(level) local dur = tmr.now() - _tsta...
--[[ Author: Jagoba Marcos Date: 01/08/2014 Description: Simple Games ]] function main () -- Guess the number math.randomseed( os.time() ); math.random(); local number = math.random ( 100 ); local count = 0; local guess; io.write( "Guess my number (1-100): " ); guess = io.read( "*n" ); count = count +...
-- tostring() functions for Tensor and Storage local function Storage__printformat(self) local intMode = true local type = torch.typename(self) if type == 'torch.FloatStorage' or 'torch.DoubleStorage' then for i=1,self:size() do if self[i] ~= math.ceil(self[i]) then intMode = false ...
return (require 'util').requirer(...) { 'Character', 'CharacterClass', 'Chest', 'Item', 'Monster', 'Race', }
-- main.lua -- Implements the main plugin entrypoint -- Configuration -- Use prefixes or not. -- If set to true, messages are prefixed, e. g. "[FATAL]". If false, messages are colored. g_UsePrefixes = true -- Called by Cuberite on plugin start to initialize the plugin function Initialize(Plugin) Plugin:SetNam...
collectgarbage(); local TimeFiles = {} if Hour() > 20 or Hour() < 8 then --Night TimeFiles[1] = "Cricket.ogg" TimeFiles[2] = color("0,0,0,1") TimeFiles[3] = color("1,1,1,1") else --Day TimeFiles[1] = "Bird.ogg" TimeFiles[2] = color("1,1,1,1") TimeFiles[3] = color("0,0,0,1") end local...
PLAYER1 = Core.class() function PLAYER1:init(xworld, xobjpath, xobjname, xparams, xBIT, xCOLBIT) -- the params local params = xparams or {} params.posx = xparams.posx or 0 params.posy = xparams.posy or 0 params.posz = xparams.posz or 0 -- the obj self.obj = loadObj(xobjpath, xobjname) local minx, miny, minz = ...
local room_recruitWnd = require("view/kScreen_1280_800/games/common2/room_recruitWnd"); --[[ 招募玩家的确认弹框 ]] local RecruitWnd = class(CommonGameLayer,false); --------------------------------------------------------------------- ----------------- config tables ------------------------------------- -------...
local _M = {} _M["1"] = { ["id"] = 1, ["comment"] = "背包模块", ["opentype"] = 1, ["level"] = 1, } _M["2"] = { ["id"] = 2, ["comment"] = "", ["opentype"] = 1, ["level"] = 1, } _M["3"] = { ["id"] = 3, ["comment"] = "", ["opentype"] = 1, ["level"] = 1, } _M["4"] = { ["id"] = 4, ["comment"] = ...
--# selene: allow(unused_variable) ---@diagnostic disable: unused-local -- **WARNING**: EXPERIMENTAL MODULE. DO **NOT** USE IN PRODUCTION. -- This module is *for testing purposes only*. It can undergo breaking API changes or *go away entirely* **at any point and without notice**. -- (Should you encounter any issues, p...
return PlaceObj("ModDef", { "title", "Change Rocket Skin", "id", "ChoGGi_ChangeRocketSkin", "steam_id", "1570126808", "pops_any_uuid", "16b2049c-41cb-42de-9c26-6b21c0311967", "lua_revision", 1007000, -- Picard "version", 9, "version_major", 0, "version_minor", 9, "image", "Preview.jpg", "author", "ChoGGi", "...
classtools = require 'classtools' tools = require 'tools' Vector = require 'classes/Vector' local MovingThing = {} function MovingThing:constructor(velocity) self.velocity = velocity or Vector() end function MovingThing:new_coords() return self.coords + self.velocity end function MovingThing:update_coords() self...
local mt = {} function mt.__newindex() error("attempt to modify a Null value.", 2) end function mt.__index() error("attempt to index a Null value.", 2) end return setmetatable({}, mt)
-- add requires add_requires("coroutine", {optional = true}) -- add target target("coroutine_switch_coroutine") -- set kind set_kind("binary") -- add files add_files("*.c") -- add package add_packages("coroutine", "tbox") -- enable to build this target? on_load(function (target) ...
QG = require("QGame") ET = require("EasyTool") MIN_SIZE = {width = 627, height = 627} -- 定义窗口最大尺寸 TEXT_COLOR = {R = 185, G = 185, B = 185, A = 255} -- 定义文字颜色 DRAW_COLOR = {R = 34, G = 34, B = 34, A = 255} -- 定义绘图颜色 MARGIN_WIDTH = 40 -- 定义显示图片的面板与窗口边框间的距离 BUTTON_WIDTH = MARGIN_WIDTH -- 定义按钮宽度 BUTTON_HEIGHT = ...
--[[ A module allowing accsess to the one instance allowed of any singleton module. The module's themselves do not enforce that only one instance can be instantiated, but rather through accessing the modules through this interface, only one instance of the selected class is needed. The instances are created...
local playsession = { {"ronnaldy", {1954}}, {"Menander", {298461}}, {"VincentMonster", {83784}}, {"Asorr", {1278}}, {"naniboi", {6587}}, {"Conan_Doyil", {12687}}, {"rlidwka", {43879}}, {"longda88", {326}}, {"ETK03", {29145}}, {"rocifier", {425831}}, {"Fingerdash", {18847}}, {"Immo", {84891}} } return playse...
function start (song) math.randomseed(os.time()) microList = {'warm up!', 'spooky dance', 'help tankman is stuttering', 'stay fresh', 'break hearts'}; curSong = 0; end function update (elapsed) -- example https://twitter.com/KadeDeveloper/status/1382178179184422918 -- do nothing end function beatHit (beat) --if ...
--- === plugins.core.tangent.commandpost.functions === --- --- CommandPost Functions for Tangent. local require = require local i18n = require("cp.i18n") local plugin = { id = "core.tangent.commandpost.functions", group = "core", dependencies = { ["core.tangent.commandpost"] = "cpGroup", ...
pfUI:RegisterModule("buff", function () -- Hide Blizz BuffFrame:Hide() BuffFrame:UnregisterAllEvents() TemporaryEnchantFrame:Hide() TemporaryEnchantFrame:UnregisterAllEvents() local function RefreshBuffButton(buff) buff.id = buff.gid - (buff.btype == "HELPFUL" and pfUI.buff.buffs.offset or 0) buff....
-- This script uses writes to 0x7fd, 0x7fe, and 0x7ff to determine when to store the start of an IRQ, game loop, or NMI respectively. -- If you write the value 2 to the address when you start the area you'd like to time, you then write the value 1 to that same address -- to stop the timer and calculate the cycles elaps...
-- Generated by CSharp.lua Compiler local System = System System.namespace("Slipe.Client.Enums", function (namespace) -- <summary> -- Represents a room used in setInteriorFurnitureEnabled -- </summary> namespace.enum("RoomFurniture", function () return { Shop = 0, Office = 1, Lounge = 2, ...
require "Window" local TrackLineGroup = {} setmetatable(TrackLineGroup, { __call = function (cls, ...) return cls.new(...) end, }) TrackLineGroup.TrackMode = { Line = 1, Circle = 2 } function TrackLineGroup.new(parent) local self = setmetatable({}, { __index = TrackLineGroup }) self.Enabled = false...
--Template for addition of new protocol 'overlay' --[[ Necessary changes to other files: -- - packet.lua: if the header has a length member, adapt packetSetLength; -- if the packet has a checksum, adapt createStack (loop at end of function) and packetCalculateChecksums -- - proto/proto.lua: add PROTO.lua to the ...
--[[ 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 print = print local tostring = tostring local type = type local pairs = pairs local insert_table = table.insert local concat_table = table.concat local rep_str = string.rep local function is_table(t, name) if "table" ~= type(t) then if name then print(tostring(name) .. " = [" .. tostring(t) .. "...
function ulx.spark(calling_ply, target_plys) for _, ply in ipairs(target_plys) do if not ply:Alive() then return ULib.tsay(calling_ply, ply:Nick() .. " is dead", true) elseif ply.jail then return ULib.tsay(calling_ply, ply:Nick() .. " is in jail", true) elseif ply.ragdoll then return ULib.tsay(calling_p...
-- ============================================= -- Server PlayerList handler -- ============================================= --Check Environment if GetConvar('txAdminServerMode', 'false') ~= 'true' then return end local oneSyncConvar = GetConvar('onesync', 'off') local onesyncEnabled = oneSyncConvar == 'on' or ...
-- Buff Lead 3 seablock.lib.substresult('anode-lead-smelting', 'slag', 'quartz', 1) seablock.lib.substingredient('anode-lead-smelting', 'liquid-hexafluorosilicic-acid', nil, 20) -- Compost void recipe angelsmods.functions.make_void('solid-compost', 'bio', 5) -- Remove recipe Wood pellets > Carbon dioxide -- Move reci...
Librw = os.getenv("LIBRW") Librwgta = os.getenv("LIBRWGTA") workspace "rwio" configurations { "Release", "Debug" } platforms { "x86", "amd64" } location "build" system "Windows" filter { "platforms:x86" } architecture "x86" filter { "platforms:amd64" } architecture "x86_64" filter {} files { "src/*.*" } ...
require("plugins") require("opts") vim.cmd('colo one') require("setup") require("binds") require("lsp") -- Plugins require("plugins.compe") require("plugins.treesitter") require("plugins.lspsaga") -- LSP require("lsp.servers") require('hardline').setup {}
require("src/State") require("src/Util") require("src/Bind") require("src/Scene") require("src/Camera") require("src/AudioManager") require("src/FieldAnimator") require("src/Animator") require("src/AssetLoader") require("src/Asset") local M = def_module("STUBScene", { bind_table = nil, bind_group = nil, -- Single...
local RunService = game:GetService("RunService") local MessagingService = game:GetService("MessagingService") local MockMessagingService = {} local topics = {} function MockMessagingService:PublishAsync(topicName, message) local topic = topics[topicName] if topic then topic:Fire( { Sent = tick(), Data ...
game 'rdr3' fx_version 'adamant' rdr3_warning 'I acknowledge that this is a prerelease build of RedM, and I am aware my resources *will* become incompatible once RedM ships.' author 'szymczakovv#1937' client_script 'client.lua'
-- Natural Selection 2 Competitive Mod -- Source located at - https://github.com/xToken/CompMod -- lua\CompMod\Weapons\Marine\Shotgun\shared.lua -- - Dragon -- Recalc this Shotgun.kSpreadVectors = { GetNormalizedVector(Vector(-0.1, 0.1, kShotgunSpreadDistance)), GetNormalizedVector(Vector(0.1, -0.1, kShotgunSp...
local S = homedecor_i18n.gettext local longsofa_cbox = { type = "wallmounted", wall_side = {-0.5, -0.5, -0.5, 0.5, 0.5, 2.5}, } minetest.register_node("lrfurn:longsofa", { description = S("Long Sofa"), drawtype = "mesh", mesh = "lrfurn_sofa_long.obj", tiles = { "lrfurn_upholstery.png", { name = "lrfurn_s...
fx_version 'bodacious' game 'gta5' shared_scripts{ "config.lua" } client_scripts{ '@PolyZone/client.lua', '@PolyZone/BoxZone.lua', 'client.lua', "jobs/legal.lua", "jobs/zones.lua" }
workspace "Dodo" architecture "x64" startproject "Dodeditor" outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" configurations { "Debug", "Release" } group "Dependencies" include "Dodo/lib/glad" include "Dodo/lib/imgui" include "Dodo/lib/assimp" group "" -- Go to root level proje...
--[[ Copyright (c) 2014, Hardcrawler Games LLC This library is free software; you can redistribute it and/or modify it under the terms of the MIT license. See LICENSE for details. I haven't actually read the MIT license. I think it's permissive and stuff. Send me a keg of Newcastle beer if this makes you rich. us...
local opts = {noremap = true, silent = true} local map = vim.api.nvim_set_keymap -- Files map("n", "<leader>ff", "<cmd>lua require'telescope.builtin'.find_files{}<CR>", opts) map("n", "<leader>fg", "<cmd>lua require'telescope.builtin'.live_grep{}<CR>", opts) map("n", "<leader>fb", "<cmd>lua require'telescope.builtin'....
local Ui = require("api.Ui") local IUiLayer = require("api.gui.IUiLayer") local IInput = require("api.gui.IInput") local InputHandler = require("api.gui.InputHandler") local UiTheme = require("api.gui.UiTheme") local UiMousePanel = require("mod.mouse_ui.api.gui.UiMousePanel") local UiMouseButton = require("mod.mouse_u...
return { { effect_list = { { type = "BattleBuffAddAttrBloodrage", trigger = { "onAttach", "onHPRatioUpdate" }, arg_list = { threshold = 0.3, value = 2, attr = "damageRatioBullet" } } } }, { effect_list = { { type = "BattleBuffAddAttrBloodrage", trig...
module(..., package.seeall) NODE = { title="Templates", category="_special_pages", prototype="@Lua_Config", } NODE.search_form = [===[ ]===] NODE.content=[=====[--- this is the template that generates the outer tags of the page --- TRANSLATIONS = "Translations:Main" ---------------------------------...
--アメイズメント・スペシャルショー --Amazement Special Show --Scripted by Kohana Sonogami function c101104057.initial_effect(c) --tohand and spsummon local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOHAND) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_CHAINING) e1:SetCondition(c101104057.spcon...
local Player = { color = {255,255,255} } function Player.new(x,y,width,height) local self = {x=x,y=y,width=width,height=height,_speed=400,speed=400,keys={right='right',left='left'}} self.lastx = x self.lasty = y setmetatable(self, {__index=Player}) return self end function Player:update(dt) self.lastx = self.x...