content
stringlengths
5
1.05M
Graphics = {} function Graphics.init() print("Graphics.init()") end Screen = {} function Screen.flip() print("Screen.flip()") end function Screen.waitVblankStart() print("Screen.waitVblankStart()") end
-- Event Logger -- Author: Thalassicus -- (with modifications by robk adding TRACE level and logging -- to a database table) ------------------------------------------------------------ TRACE = "TRACE" DEBUG = "DEBUG" INFO = "INFO" WARN = "WARN" ERROR = "ERROR" FATAL = "FATAL" local LEVEL = { [TRACE] = 1, [DE...
TUTORIALS['en'][#TUTORIALS['en'] + 1] = { name = "Game Options", afterSeparator = true, contents = { {type = CONTENT_TYPES.IMAGE, value = "/images/tutorial/game_options.png"}, {type = CONTENT_TYPES.TEXT, value = "This is the game options window and can be accessed via the button on the top pane...
pg = pg or {} pg.enemy_data_statistics_218 = { [12600106] = { cannon = 0, reload = 150, speed_growth = 0, cannon_growth = 0, pilot_ai_template_id = 20001, air = 0, rarity = 1, dodge = 0, torpedo = 0, durability_growth = 6800, antiaircraft = 0, reload_growth = 0, dodge_growth = 0, speed = 30...
---@class Video C_VideoOptions = {} ---@return GxAdapterInfoDetails adapters function C_VideoOptions.GetGxAdapterInfo() end ---@class GxAdapterInfoDetails ---@field name string ---@field isLowPower bool ---@field isExternal bool local GxAdapterInfoDetails = {}
Locales['en'] = { ['press_collect_coke'] = 'Press ~INPUT_PICKUP~ to collect cocaine', ['press_process_coke'] = 'Press ~INPUT_PICKUP~ to process cocaine', ['press_sell_coke'] = 'Press ~INPUT_PICKUP~ to sell cocaine', ['press_collect_meth'] = 'Press ~INPUT_PICKUP~ to collect meth', ['press_process_meth'] = 'Press ~I...
AddCSLuaFile() SWEP.PrintName = "Magic Wand Rewrite" SWEP.Category = "Harry Potter" SWEP.Purpose = "" SWEP.Weight = 5 SWEP.Spawnable = true SWEP.UseHands = true SWEP.DrawAmmo = false SWEP.ViewModelFOV = 56 SWEP.Slot = 2 SWEP.SlotPos = 5 SWEP.Primary.ClipSize = -1 SWEP.Primary.DefaultClip = -1 SWEP.Primary.Auto...
vRP = Proxy.getInterface("vRP") vRPclient = Tunnel.getInterface("vRP", "vrp_scoreboard") local idVisable = true local jobVisable = true RegisterNetEvent("vrp_scoreboard:firstjoin") AddEventHandler("vrp_scoreboard:firstjoin",function(connectedPlayers) UpdatePlayerTable(connectedPlayers) end) Citizen.CreateThread(...
require "prefabutil" local function onhammered(inst, worker) if inst:HasTag("fire") and inst.components.burnable then inst.components.burnable:Extinguish() end inst.components.lootdropper:DropLoot() SpawnPrefab("collapse_small").Transform:SetPosition(inst.Transform:GetWorldPosition()) inst.SoundEmitter:PlaySoun...
local helpers = require('test.functional.helpers')(after_each) local Screen = require('test.functional.ui.screen') local clear, feed = helpers.clear, helpers.feed local eval, eq, neq = helpers.eval, helpers.eq, helpers.neq local execute, source, expect = helpers.execute, helpers.source, helpers.expect local meths = hel...
if AkDebugLoad then print("Loading Bus ...") end ----------------------- -- Bushaltestellen ----------------------- ---@class Bus Bus = {} --- Oeffnet die Tueren eines Busses (Fahrzeugverband) -- @param bus Fahrzeugverband -- function Bus.openDoors(bus) assert(bus, "bus wurde nicht angegeben.") -- Ikarus Buss...
local dyes = { {"white", "White"}, {"grey", "Grey"}, {"black", "Black"}, {"red", "Red"}, {"yellow", "Yellow"}, {"green", "Green"}, {"cyan", "Cyan"}, {"blue", "Blue"}, {"magenta", "Magenta"}, {"orange", "Orange"}, {"violet", "Violet"}, {"brown", "Br...
local localization = { ATT_STR_STATISTICS = "Estatística", ATT_STR_NAME = "Nome", ATT_STR_GUILD = "Guilda", ATT_STR_TOTAL = "Total", ATT_STR_TAXES = "Taxas", ATT_STR_INTERNAL = "Interno", ...
local replicaset_uuid = {'cbf06940-0790-498b-948d-042b62cf3d29', 'ac522f65-aa94-4134-9f64-51ee384f1a54'} local name_to_uuid = { bad_uuid_1_a = '8a274925-a26d-47fc-9e1b-af88ce939412', bad_uuid_1_b = '3de2e3e1-9ebe-4d0d-abb1-26d301b84633', bad_uuid_2_a = '1e02ae8a-afc0-4e91-ba34-843a356b8ed7', bad_uuid_2_b = '00...
:: # Copyright 2013, Big Switch Networks, Inc. :: # :: # LoxiGen is licensed under the Eclipse Public License, version 1.0 (EPL), with :: # the following special exception: :: # :: # LOXI Exception :: # :: # As a special exception to the terms of the EPL, you may distribute libraries :: # generated by LoxiGen (LoxiGen ...
return {'iddergem'}
local createEnum = import("../createEnum") return createEnum("VirtualInputMode", { None = 0, Recording = 1, Playing = 2, })
local PULSE_SCAN = script:GetCustomProperty("PULSE_SCAN"):WaitForObject() local PULSE_SCAN_ORIGIN_Y = PULSE_SCAN.y function Tick(deltaTime) PULSE_SCAN.y = PULSE_SCAN_ORIGIN_Y + math.sin(time() * 0.35) * 101 end
----------------------------------- -- Area: Western Altepa Desert (125) -- Mob: Maharaja -- Note: Popped by qm1 -- Involved in Quest: Inheritance -- !pos -652.3 0.2 -341.5 125 ----------------------------------- require("scripts/globals/wsquest") require("scripts/globals/status") ----------------------------------- ...
lust = require 'tests/lust' Rx = require 'rx' for _, fn in pairs({'describe', 'it', 'test', 'expect', 'spy', 'before', 'after'}) do _G[fn] = lust[fn] end observableSpy = function(observable) local observer = Rx.Observer.create(_, function() end, _) local onNext = spy(observer, '_onNext') local onError = spy(o...
-- ============================================================================= -- URL: https://github.com/sainnhe/amora -- Filename: lua/lualine/themes/amora.lua -- Author: sainnhe -- Email: sainnhe@gmail.com -- License: MIT License -- ============================================================================= loc...
/******************************************************************************\ Server Information \******************************************************************************/ __e2setcost(1) e2function string map() return game.GetMap() end local hostname = GetConVar("hostname") e2function string hostname() ...
-- example_api的前端展示, 仅用于测试接口数据的展示, 可忽略这个文件 local ngx = require "ngx" local loadfile_to_ram = require "utils".loadfile_to_ram local waf = require "waf" local response = require "response" local ngx_var = ngx.var local ngx_log = ngx.log local ngx_ERR = ngx.ERR local ngx_re_sub = ngx.re.sub local _M = {} _M.name = ...
hs.hotkey.bind({"cmd", "alt"}, "V", function() hs.eventtap.keyStrokes(hs.pasteboard.getContents()) end) -- local function keyCode(key) -- return function() hs.eventtap.keyStroke({}, key) end -- end -- -- hs.hotkey.bind({"shift", "ctrl"}, 'h', keyCode('left') , nil, keyCode('left')) -- hs.hotkey.bind({"shift", "ct...
local ROW_HEIGHT = 20 local COL_WIDTH = 100 local BORDER_WIDTH = 1 local BORDER_COLOR = Color3.new(1,1,1) local STD_BG_COLOR = Color3.new(0.25, 0.75, 0.75) local ALT_BG_COLOR = Color3.new(0.25, 0.25, 0.75) local TEXT_COLOR = Color3.new(1, 1, 1) local SORTED_TITLE_COLOR = Color3.new(1,0,1) local BG_TRANSPARENCY = 0.9 l...
-- RainbowBlades -- -- knob1: -- knob2: -- knob3: -- knob4: -- knob5: COEF_ROTATION_DEG local compat = require("compat") local color = require("color") local lfo = require("lfo") NUM_SAMPLES = 256 W = of.getWidth() H = of.getHeight() W2 = W / 2 H2 = H / 2 W4 = W / 4 H4 = H / 4 C = glm.vec3(W2, H2, 0) -- Mode constan...
f = function (a) return a * 3; end
-- libquvi-scripts v0.9.20131012 -- Copyright (C) 2012 Toni Gundogdu <legatvs@gmail.com> -- -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>. -- -- This program is free software: you can redistribute it and/or -- modify it under the terms of the GNU Affero General Public -- License as published b...
expose( '[setting up tests Globals]', function() require 'cherry.libs.math' _G.inspect = require('cherry.libs.inspect') _G.display = require('mocks.display') _G.App = require('mocks.app') _G.audio = require('mocks.audio') _G.composer = require('mocks.composer') _G.http = require('mocks.h...
local Menu = require("nui.menu") local Text = require("nui.text") local helper = require("tests.nui") local spy = require("luassert.spy") local eq, feedkeys, tbl_pick = helper.eq, helper.feedkeys, helper.tbl_pick describe("nui.menu", function() local callbacks local popup_options before_each(function() cal...
fx_version 'bodacious' games { 'gta5' } author 'Cloudy' description 'Online Interiors' version '1.0.3' dependency 'bob74_ipl' client_scripts{ -- IPL Scripts -- 'files/maps/ipl_edits/after_hours/nightclub/client.lua', 'files/maps/ipl_edits/after_hours/nightclub_exteriors/client.lua', 'files/maps/ipl_edits/bikers/...
Howtoplay = Area:extend() function Howtoplay:new() Howtoplay.super.new(self) self.x = 0 self.y = 0 self.text = Text(0, 10, "Move the cursor(s) with the Arrow Keys\nMove the blocks with WASD", Options.fonts.normal) self.text.color = {0, 0, 0} self.text.align.x = "center" self.text.limit = WIDTH self:addScenery...
require("moonsc").import_tags() -- Testing that in case of early binding variables are assigned -- values at init time, before the state containing them is visited return _scxml{ initial="s0", _state{ id="s0", _transition{ cond="var1==1", target="pass" }, _transition{ target="fail" }, }, _...
VERSION = "1.0.0" PLUGIN_NAME = "prettier" local micro = import("micro") local config = import("micro/config") local shell = import("micro/shell") local ioutil = import("io/ioutil") local filepath = import("path/filepath") function init() -- format on save config.RegisterCommonOption("prettier", "formatOnSave", t...
print("-----Players-----") for i,v in pairs(game:GetService("Players").LocalPlayer:GetChildren()) do print(v.Name) end
tigers_fury_warrior = { cast = function(player) local magic = 90 if (not player:canCast(1, 1, 0)) then return end if (player.magic < magic) then player:sendMinitext("You do not have enough mana.") return end if player:checkIfCast(lesserFuries) or player.rage > 1 then player:sendMinitext("This ...
require 'nn' function createOutputUnit(input_size, output_size) local model = nn.Sequential() model:add(nn.Linear(input_size, output_size)) model:add(nn.LogSoftMax()) return model end
-- Rafraichissement du diff time et du web_cli print("\n time_table.lua aj190408.1924 \n") function get_timetable() -- http.get("http://192.168.4.1/?line1="..zlength.."m", nil, function(code, data) print("get_timetable: ") http.get("http://transport.opendata.ch/v1/connections?from=Cheseaux&to=Lausanne-F...
local R = require "rigel" local SOC = require "generators.soc" local C = require "generators.examplescommon" local harness = require "generators.harnessSOC" local RS = require "rigelSimple" local RM = require "generators.modules" local G = require "generators.core" require "types".export() local SDF = require "sdf" loc...
project "MQWeb" kind "ConsoleApp" language "C++" targetname "mqweb" location ( solution().location ) configuration "Debug" targetsuffix "d" configuration { } files { "src/*.cpp" , "include/**.h" } flags { "NoPCH" } configuration "...
function onCreate() setPropertyFromClass('GameOverSubstate', 'characterName', 'nyu-death'); --Character json file for the death animation setPropertyFromClass('GameOverSubstate', 'deathSoundName', 'fnf_loss_sfx'); --put in mods/sounds/ setPropertyFromClass('GameOverSubstate', 'loopSoundName', 'gameOver'); --put in m...
return { name = "logd/examples", version = "0.0.1", dependencies = { "luvit/luvit@v2.14.2", "creationix/pathjoin@v2.0.0", } }
object_building_mustafar_dungeon_mining_tunnel_02_must_mining_tunnel_02 = object_building_mustafar_dungeon_mining_tunnel_02_shared_must_mining_tunnel_02:new { } ObjectTemplates:addTemplate(object_building_mustafar_dungeon_mining_tunnel_02_must_mining_tunnel_02, "object/building/mustafar/dungeon/mining_tunnel_02/must_mi...
--[[ Container class Use as a parent for controls which can be scrolled. Clips contents. By Phil Garner May 2017 ]]-- local Container = {} Container.__index = Container function Container:new(id, x, y, theme) local win = { props = { id = id ,resizable = fal...
ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) fuelCost = 150 RegisterServerEvent('frfuel:fuelAdded') AddEventHandler('frfuel:fuelAdded', function(amount) TriggerEvent('es:getPlayerFromId', source, function(xPlayer)--ESX if (xPlayer) then TriggerClientEvent('chatMessage', ...
local class = require 'middleclass' local base = class('hj212.params.value.base') function base:initialize(name, value) self._name = name self._value = value end function base:value_name() return self._name end function base:value() return self._value end function base:set_value(value) self._value = value end...
object_tangible_furniture_flooring_tile_frn_flooring_tile_s62 = object_tangible_furniture_flooring_tile_shared_frn_flooring_tile_s62:new { } ObjectTemplates:addTemplate(object_tangible_furniture_flooring_tile_frn_flooring_tile_s62, "object/tangible/furniture/flooring/tile/frn_flooring_tile_s62.iff")
--===================================================================== -- -- bufferline.lua - -- -- Created by liubang on 2022/03/02 16:58 -- Last Modified: 2022/03/02 16:58 -- --===================================================================== local bufferline = require 'bufferline' local options = { options =...
-----------------------------------db oper begin------------------------ --local name = require("game.db.keyNameCfg") --local M = {} --local function getKey(pid,mapId) --return "p"..pid.."_"..name.enemy.."_"..mapId --end --function M.newEnemyTbl(armyId,mapId,timeIdx,armyAttrT,heroAttrT,bleed,maxBleed,food,coin,moral...
local conf = require('conf').t local res = require 'resources' local lg = love.graphics local _=false local X=true local lives=3 local score=88888 local pots={X,X,X,X,X,X,X} local sploshes={X,X,X,X,X,X,X} local foods={ {X,X,X,X,X,X,X}, {X,X,X,X,X,X,X}, {X,X,X,X,X,X,X}, {X,X,X,X,X,X,X}, {X,X,X,X,X,X,X}} function...
-- .npc entry local BAG_VENDOR_IRONFORGE = 5132 local BAG_VENDOR_STORMWIND = 1321 local BAG_VENDOR_DARNASSUS = 4230 local BAG_VENDOR_EXODAR = 16709 local BAG_VENDOR_OGRIMMAR = 3369 local BAG_VENDOR_UNDERCITY = 4590 local BAG_VENDOR_THUNDER_BLUFF = 8364 local BAG_VENDOR_SILVERMOON = 16690 local BAG_NETHERWEAVE = 21841...
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Churacoco -- Type: Standard NPC -- !pos -76.139 -4.499 20.986 94 ----------------------------------- function onTrade(player,npc,trade) end function onTrigger(player,npc) player:startEvent(434) end function onEventUpdate(player,csid,option...
PLUGIN:SetGlobalAlias("cwCTO"); cwCTO.sociostatusColors = { GREEN = Color(0, 255, 0), BLUE = Color(0, 128, 255), YELLOW = Color(255, 255, 0), RED = Color(255, 0, 0), BLACK = Color(128, 128, 128) }; -- Biosignal change enums, used for player/admin command language variations. cwCTO.ERROR_NONE = 0; cwCTO.ERROR_NOT...
--[[ File @description: This class is for system initialization. @version: V0.01 @author: Fangyi Zhang email:gzzhangfangyi@gmail.com @acknowledgement: ARC Centre of Excellence for Robotic Vision (ACRV) Queensland Univsersity of Technology (QUT) @history: V0.00 03/06/2016 developed the first version...
-- NVIM-COMPE PLUGIN -- ----------------- local u = require 'core.utils' local map = u.map require('compe').setup { enabled = true, autocomplete = true, debug = false, min_length = 1, preselect = 'always', -- allow_prefix_unmatch = false, throttle_time = 80, source_timeout = 200, -- resolve_timeout =...
-- example script demonstrating HTTP pipelining init = function(args) local r = {} r[1] = wrk.format(nil, "/") r[2] = wrk.format(nil, "/") r[3] = wrk.format(nil, "/") r[4] = wrk.format(nil, "/") r[5] = wrk.format(nil, "/") r[6] = wrk.format(nil, "/") r[7] = wrk.format(nil, "/") r[8] = wrk.fo...
-- client cvars to control deathmsgs local hud_deathnotice_time = CreateClientConVar("hud_deathnotice_time", "6", true, false) local hud_deathnotice_limit = CreateClientConVar("hud_deathnotice_limit", "5", true, false) local PANEL = {} Derma_Hook(PANEL, "Paint", "Paint", "GameNotice") Derma_Hook(PANEL,"ApplySc...
---@class SandboxOptions.DoubleSandboxOption : zombie.SandboxOptions.DoubleSandboxOption ---@field protected translation String ---@field protected tableName String ---@field protected shortName String ---@field protected bCustom boolean ---@field protected pageName String SandboxOptions_DoubleSandboxOption = {} ---@p...
--[[ *********************************************************** glob.lua This particular file has been released in the public domain and is therefore free of any restriction. You are allowed to credit me as the original author, but this is not required. This file was setup/modified in: 2018 If the law of your countr...
--[[ Avitab Integration for Laminar's 747-400 By Ilias Tselios ]]-- avitabEnable = find_dataref("avitab/panel_enabled") avitabPower = find_dataref("avitab/panel_powered") avitabBrit = find_dataref("avitab/brightness") lowEICASpage = find_dataref("laminar/B747/dsp/synoptic_display") lowEICASbrit = fin...
local player = require("player") local enemy = require("enemy") local Ball = {} Ball.width = 10 Ball.height = 10 Ball.x = WINDOW_WIDTH / 2 - Ball.width / 2 -- place player paddle on the right side Ball.y = WINDOW_HEIGHT / 2 - Ball.height / 2 -- center the ball on screen at start Ball.xVelocity = 100 Ball.yVel...
object_draft_schematic_space_engine_collection_reward_engine_01_mk2 = object_draft_schematic_space_engine_shared_collection_reward_engine_01_mk2:new { } ObjectTemplates:addTemplate(object_draft_schematic_space_engine_collection_reward_engine_01_mk2, "object/draft_schematic/space/engine/collection_reward_engine_01_mk2...
------------------------------------------------------------------------------------------------- -- Grid2 AceGUI widgets to be used in AceConfigTables, using dialogControl property. ------------------------------------------------------------------------------------------------- local AceGUI= LibStub("AceGUI-3.0", tr...
--[[ Skyblock for Minetest Copyright (c) 2015 cornernote, Brett O'Donnell <cornernote@gmail.com> Source Code: https://github.com/cornernote/minetest-skyblock License: GPLv3 ]]-- local modpath = minetest.get_modpath('skyblock_levels') skyblock.max_level = 6 dofile(modpath..'/skyblock.craft_guide.lua') dofile(modp...
package.path = package.path .. ";../src/?.lua" require "NeuralNetwork" require "serialize" function love.load(arg) math.randomseed( os.time() ) nn = NeuralNetwork(2,4,1) count = 0 step = 50 size = 10 dataset = { { input = {1,0}, output ={1} }, { input = {1,1}, output ={0} }, { input = {0,1}, output ={1} },...
apoen = {"новачаницу", "кованицу"} plural = {"новчанице", "кованице"} od = " од " valute = {"динар. ", "динара, "}
-- Pet class local pet = {} local pet_mt = { __name = "pet"; __index = pet; } local function cast_pet(t) return setmetatable(t, pet_mt) end local function new_pet(name) return cast_pet({ name = name; photoUrls = {}; tags = {}; }) end return { cast = cast_pet; new = new_pet; }
-- Mon Jul 16 23:34:53 2018 -- (c) Alexander Veledzimovich -- model KADZEN local Tmr = require('lib/tmr') local cmp = require('lib/lovcmp') local fc = require('lib/fct') local fl = require('lib/lovfl') local imd = require('lib/lovimd') local wrld = require('lib/lovwrld') local obj = require('game/obj') local set = re...
-- See LICENSE for terms local mod_TurnOff local mod_SkipGrids local mod_SkipPassages -- fired when settings are changed/init local function ModOptions() mod_TurnOff = CurrentModOptions:GetProperty("TurnOff") mod_SkipGrids = CurrentModOptions:GetProperty("SkipGrids") mod_SkipPassages = CurrentModOptions:GetPropert...
-- https://zzamboni.org/post/my-hammerspoon-configuration-with-commentary/ hs.loadSpoon("SpoonInstall") spoon.SpoonInstall.use_syncinstall = true Install=spoon.SpoonInstall hs.loadSpoon('ControlEscape'):start() -- Load Hammerspoon bits from https://github.com/jasonrudolph/ControlEscape.spoon require('windows') hs.no...
local puller = require 'lifter_puller.puller' local event = require 'lifter_puller.event' function _assert(test, ...) if not test then error(string.format(...), 2) end end describe('Puller', function () describe('should parse decl', function () it('with all values', function () ...
local Bullet = require("bullet") function love.load() love.keyboard.setKeyRepeat(true) local w, h = love.graphics.getDimensions() local image = love.graphics.newImage("graphics/boss.png") local bulletImage = love.graphics.newImage("graphics/bullet.png") bullet = Bullet(image, bulletImage, math.floor(w/2)-image...
udg_LEADERBOARD = nil udg_LVL = 0 udg_CurrentlyOnMap = 0.0 udg_UnitToSpawn = 0 udg_LevelHero = 0 udg_ConnectedPlayers = nil udg_EmptyPlayers = nil udg_TempUnitGroup = nil udg_Kills = __jarray(0) udg_TempInt = 0 udg_SpawnAreas = {} udg_TempPoint = nil udg_OutsideClockwise = 0 udg_OutsideCounterClockwise = 0 udg_InsideCl...
-- converts an item entirely to another function build(directory, config, parameters, level, seed) if not config.convertsTo then sb.logWarn("Item \"" .. (config.itemName or config.objectName) .. "\" has no conversion specified") return config, parameters end local cfg = { } for k, v in pairs(config)...
Menu = { Name = "MatchEnd", Script = { _class = "MatchEndScript" }, Items = { { Name = "Restart", Text = "Restart", }, { Name = "SelectArena", Text = "Select Arena", }, { Name = "SelectTeam", Text = "Select Team", }, { Name = "MainMenu", Text = "Main Menu", }, }, So...
#!/usr/bin/env lua local unix = require"unix" local tmap = { b = unix.S_ISBLK, c = unix.S_ISCHR, d = unix.S_ISDIR, l = unix.S_ISLNK, s = unix.S_ISSOCK, p = unix.S_ISFIFO, f = unix.S_ISREG, } local function tname(mode) for name, f in pairs(tmap) do if f(mode) then return name end end return "-" end ...
--!A cross-platform build utility based on Lua -- -- 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...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:28' 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...
-- RoactMaterial global configuration. -- Changing these settings affects the functioning of the entire library. local Configuration = { -- The Roact library. Roact = require(script.Parent.Parent.Roact); -- The RoactAnimate library. RoactAnimate = require(script.Parent.Parent.RoactAnimate); -- Various warnings ...
--[[ Author: Noya, physics by BMD Date: 02.02.2015. Spawns spirits for exorcism and applies the modifier that takes care of its logic ]] function ExorcismStart( event ) local caster = event.caster local ability = event.ability local playerID = caster:GetPlayerID() local radius = ability:GetLevelSpecialValueFor( ...
EditorPickupCriminalDeployables = EditorPickupCriminalDeployables or class(MissionScriptEditor) function EditorPickupCriminalDeployables:create_element() self.super.create_element(self) self._element.class = "ElementPickupCriminalDeployables" end function EditorPickupCriminalDeployables:_build_panel() self...
local path = (...):gsub('%.[^%.]+$', '') path = path:sub(1,path:match("^.*()%.")) local Class = require(path.."thirdparty.hump.class") local Element = require(path.."elements.element") local Text = Class {} Text:include(Element) function Text:init(element, parent, gui) Element.init(self, elemen...
local layerBase = require("games/common2/module/layerBase"); --[[ 弹幕 ]] local OnlookerMyBarrageLayer = class(layerBase); OnlookerMyBarrageLayer.ctor = function(self) local seat = PlayerSeat.getInstance():getOnlookerSeat(); if self.m_viewConfig[seat] then self:addView(seat,self.m_viewConfig[seat]); en...
---- -- Different mod utilities. -- -- Most of them are expected to be used in the gameplay console. -- -- **Source Code:** [https://github.com/victorpopkov/dst-mod-keep-moving](https://github.com/victorpopkov/dst-mod-keep-moving) -- -- @module Utils -- -- @author Victor Popkov -- @copyright 2020 -- @license MIT -- @re...
require("games/common2/match/matchMechine/matchMechineConfig"); require("games/common2/mechine/mechineLog"); local MatchMechineOperation = class(); MatchMechineOperation.ctor = function(self,uid) self.m_lastState = MatchMechineConfig.STATUS_NONE; self.m_curState = MatchMechineConfig.STATUS_NONE; self.m_cur...
object_tangible_deed_pet_deed_pit_droid_deed = object_tangible_deed_pet_deed_shared_pit_droid_deed:new { } ObjectTemplates:addTemplate(object_tangible_deed_pet_deed_pit_droid_deed, "object/tangible/deed/pet_deed/pit_droid_deed.iff")
require("dapui").setup() require('dap-go').setup() require("nvim-dap-virtual-text").setup() local dap = require("dap") local dapui = require("dapui") dap.listeners.after.event_initialized["dapui_config"] = function() dapui.open() end dap.listeners.before.event_terminated["dapui_config"] = function() dapui.close()...
local requestQueueSize = 256 ------------------------------------------------- local httpService = game:GetService'HttpService' local replicatedStorage = game:GetService'ReplicatedStorage' local players = game:GetService'Players' local folder = Instance.new("Folder") local event = Instance.new("RemoteEven...
-- ModFreakz -- For support, previews and showcases, head to https://discord.gg/XnJSSUJwnD -- Only edit this. local sellAnywhere = false local useBlip = true local salesYard = vector3(-47.91,-1683.03,29.31) local salesRadius = 20.0 -- Stop editing here... unless you know what you're doing. NewEvent = functi...
local class = require(game.ReplicatedStorage.BehaviorTree.middleclass) local Registry = require(game.ReplicatedStorage.BehaviorTree.registry) local Node = require(game.ReplicatedStorage.BehaviorTree.node_types.node) local BranchNode = class('BranchNode', Node) function BranchNode:start(object) ...
if SERVER then AddCSLuaFile() end fw.dep(SHARED, "notif") fw.dep(SERVER, "hook") file.CreateDir(fw.config.dataDir) local Player = FindMetaTable("Player") -- Player:GetFWData() -- @param amount:number - the amount of money to add -- @ret amount:number player's current balance if SERVER then ndoc.table.fwPlayers = {}...
object_static_structure_content_meatlump_meatlump_graffiti_aur_s02 = object_static_structure_content_meatlump_shared_meatlump_graffiti_aur_s02:new { } ObjectTemplates:addTemplate(object_static_structure_content_meatlump_meatlump_graffiti_aur_s02, "object/static/structure/content/meatlump/meatlump_graffiti_aur_s02.iff")...
function init(virtual) if not virtual then storage.state = storage.state or false self.nodeMap = { "top", "right", "bottom", "left" } checkNodes() end end function onNodeConnectionChange() checkNodes() end function onInboundNodeChange(args) checkNodes() end function checkNodes() if entity.getIn...
--- Buff模块: -- @module BuffMgr -- @copyright Lilith Games, Avatar Team -- @author Dead Ratman ---@module BuffMgr local BuffMgr, this = ModuleUtil.New('BuffMgr', ClientBase) local BuffDataList = {} local buffDataTable = {} local defPlayerData = { AvatarHeadSize = 1, AvatarWidth = 1, AvatarHeight = 1, ...
logger = {} function logger.logEvent(evt) print("Event :: " .. evt) end return logger
-- Addon: WoWeuCN-Quests -- Author: qqytqqyt -- Credit to: Platine (e-mail: platine.wow@gmail.com) https://wowpopolsku.pl -- Local variables local WoWeuCN_Quests_version = GetAddOnMetadata("WoWeuCN_Quests", "Version"); local WoWeuCN_AddonPrefix = "WoWeuCN"; local WoWeuCN_Quests_onDebug = false; local WoWeuC...
function permgen (a, n) n = n or #a -- default for 'n' is size of 'a' if n <= 1 then -- nothing to change? coroutine.yield(a) else for i = 1, n do -- put i-th element as the last one a[n], a[i] = a[i], a[n] -- generate all permutations of the other elements permgen(a...
local api = mines -- Creates a mine given it's name, it's positions, it's list of nodes and their percents, and it's rate at which to regenerate in api.create_mine = function (mine_name, posA, posB, node_list, regen) if _mines.tools.addPercent(node_list) > 100 then _mines.tools.log("Percent exceeds 100, g...
sith_house_loot_deed = { minimumLevel = 0, maximumLevel = -1, customObjectName = "Sith Meditation Room House Blueprint", directObjectTemplate = "object/tangible/loot/loot_schematic/sith_house_loot_schem.iff", craftingValues = { }, customizationStringNames = {}, customizationValues = {} } addLootItemTemplate("si...
local function one(rec) return 1 end local function add(a, b) return a + b end function count(stream) return stream : map(one) : reduce(add) end function count_extra(stream, extra_parameter) return stream : map(one) : reduce(add) end function count_less() return stream : map(one) : reduce(add); ...