content
stringlengths
5
1.05M
local parsedAbilityInfo; function WoWkemon_ParseText(abilityInfo, unparsed) parsedAbilityInfo = abilityInfo; local parsed = string.gsub(unparsed, "%b[]", WoWkemon_ParseExpression); return parsed; end local parserEnv = { --Constants SELF = "self", ENEMY = "enemy", AURAWEARER = "aurawearer", AURACAST...
-- local function data(file, tag, names, stripFunc, postFunc) local parser = require "otherData.featParser" local names = { "Hobbyist", "Dilettante", "Dabbler", "Look and Learn" } local m = string.match local function strip(parser, str) -- local firstFeat = parser.names[1] return m(str, "(.-)Scene Features Lis...
local Broadcast = require("core.Broadcast") local EffectFlag = require("core.EffectFlag") local Heal = require("core.Heal") -- -- Effect applied by Judge skill. Reduces damage done. return { config = { name = "Judged", description = "Damage of your next attack is reduced.", type =...
local lor = require("lor.index") local app = lor() local router = require("api.router") -- routes app:use(router()) -- 404 error app:use(function(req, res, next) if req:is_found() ~= true then res:status(404):json({ success = false, msg = "404! sorry, not found." }) end...
--[[ Transmit ======== Used for making server-client and cross-script communication easy. This module takes care of managing the location of all your transmission objects (remote/bindable event/function) and allows you to access them quickly and easily. Functions --------- Each one of these functi...
return { id = "effect_fire", type = "effect", name = "Fire", description = "n/a", rarity = 1, hidden = false, thumbnailImage = "rbxassetid://3243264674", metadata = { effectType = "particle", effectInstances = { -- instances to clone into torso from assetmodels/effect ...
function SkillTreeManager:pack_to_string() local packed_string = "" for tree, data in ipairs(tweak_data.skilltree.trees) do if not data.is_custom then local points, num_skills = managers.skilltree:get_tree_progress_new(tree) packed_string = packed_string .. tostring(points) ...
-- TODO: Are we keeping the reset API or doing something different? local function create() local data = {} return { get = function(name, scope) if data[name] == nil then data[name] = {} end if data[name][scope] == nil then data[name][scope] = {} end return data[name][scope] end, res...
local Component = require "component" local Attacker = Component:extend() Attacker.name = "Attacker" Attacker.requirements = {components.Stats} function Attacker:__new(options) self.defaultAttack = options.defaultAttack end function Attacker:initialize(actor) actor.defaultAttack = self.defaultAttack actor.wiel...
---This config file is designed for adding a backdoor to the system. It has a few -- options by default, only one enabled by default. I suggest -- -- Note that none of these modules are included with Nmap by default. -- Any variable in the 'config' table in smb-psexec.nse can be overriden in the -- 'overrides' table...
function test () print ("mathlib spline loader test") local node = Common.StringNode.LoadXml ("data/splines.xml") local splines_count = node.ChildrenCount for i = 0, splines_count - 1 do local spline_node = node:Child (i) if spline_node.Name == "Spline" then local splin...
-- Example `init.lua` file that adds a custom hotkey to enter normal mode -- Load & initialize Ki spoon hs.loadSpoon('Ki') -- Set custom transition event that enters normal mode. spoon.Ki.transitionEvents = { -- Add desktop mode transition event to enter normal mode with cmd+; from desktop mode desktop = { ...
local gps = require "nvim-gps" gps.setup { icons = { ["class-name"] = " ", -- Classes and class-like objects ["function-name"] = " ", -- Functions ["method-name"] = " ", -- Methods (functions inside class-like objects) ["container-name"] = "⛶ ", -- Containers (example: lua tables) ["tag-name"]...
test = require 'u-test' common = require 'common' function MPM_Match_Handler() print("MPM_Match") MultiDeviceSyncAndWait("MPM_Match"); XblMultiplayerManagerInitialize(); StartDoWorkLoop(); XblMultiplayerManagerLobbySessionAddLocalUser(); end function OnXblMultiplayerEventType_UserAdded() Mult...
local MUC_NS = "http://jabber.org/protocol/muc"; local jid = require "util.jid"; local os = require "os"; -- allow jibri to join room with password module:hook("muc-occupant-pre-join", function (event) local room, stanza = event.room, event.stanza; local user, domain, res = jid.split(event.stanza.attr.from); ...
local bench_utils = require 'bench_utils' -- Output file local output_path = 'baseline_st.md' local output = io.open(output_path, "w") output:write("## Results\n") output:write("This file contains the results for the tests on the GTSRB dataset.\n\n") output:write("| Command line arguments | accuracy on validation se...
-- -- Created by IntelliJ IDEA. -- User: nander -- Date: 02/03/2019 -- Time: 15:27 -- To change this template use File | Settings | File Templates. -- return function(station) return { draw = function(event) local t = event.otime - event.timeLeft local T = event.otime ...
-- issue #10 local function inspect(options) options = options or {} return type(options) end assert(inspect(nil) == "table") local function inspect(options) options = options or setmetatable({}, {__mode = "test"}) return type(options) end assert(inspect(nil) == "table") -- issue #16 local ok, msg = ...
local urdf={} return urdf
--[[ Mandatory Configs TODO: All of these configs maybe should be convars.. I mean that's literally what they're for. ]] local WEBHOOK = assert( cookie.GetString("DISCORD_WEBHOOK"), "Webhook link is not set! Use cookie.Set('DISCORD_WEBHOOK', 'xyz')" ) local BOT_TOKEN = assert( cookie.GetString("DISCORD_TOKEN"), "Bot ...
local _KnockDownBoost_CopDamagedamage_melee = CopDamage.damage_melee function CopDamage:damage_melee(attack_data) if self._unit:base()._tweak_table ~= "tank" then if managers.player:player_unit():inventory():akimbo_shield_enabled() and managers.blackmarket:equipped_melee_weapon() == "weapon" then attack_data.var...
--[[ All network strings should be precached HERE ]]-- hook.Add("Initialize", "Precache all network strings", function() util.AddNetworkString("Death Notice") util.AddNetworkString("Class Selection") util.AddNetworkString("Taunt Selection") util.AddNetworkString("Taunt Selection BROADCAST") util.Ad...
module(..., package.seeall) local counter = require("core.counter") local lib = require("core.lib") local data = require("lib.yang.data") local state = require("lib.yang.state") local lwutil = require("apps.lwaftr.lwutil") local write_to_file = lwutil.write_to_file function load_requested_counters(counters) local...
------------------------------------------------------------------------------------------------------------ -- Cairo UI - Develop by David Lannan -- -- Design Notes: -- The aim of the UI is to provide pixel consistancy for scalable graphics. What this means is the art -- and the scalable graphics use a common measurem...
-- Tracks a queue data structure. -- Values are tracked via incrementing ID keys, when something is nilled it is tracked as an "empty" ServerQueue = class( function(self) self:clear() end ) function ServerQueue.clear(self) self.data = {} self.first = 0 self.last = -1 self.empties = 0 end function S...
----------------------------------------- -- Spell: MP Drainkiss -- Steals an enemy's MP. Ineffective against undead -- Spell cost: 20 MP -- Monster Type: Amorphs -- Spell Type: Magical (Dark) -- Blue Magic Points: 4 -- Stat Bonus: MP+5 -- Level: 42 -- Casting Time: 4 seconds -- Recast Time: 90 seconds -- Magic Bursts ...
local StarterPlayerScripts = import("./StarterPlayerScripts") local StarterCharacterScripts = StarterPlayerScripts:extend("StarterCharacterScripts") return StarterCharacterScripts
--[[ Turn shallow tables too and from query strings Ie a ?name=value&other=value style string with auto escaped characters ]] local M={ modname=(...) } ; if M.modname then package.loaded[M.modname]=M end local ques=M --[[ Unescape all %00 values into their original chars ]] ques.decode=function(s) return s...
------------------------ -- In The Name Of GoD -- -- Tabchi.lua -- -- Bass By AMIR -- ------------------------ DataBase = (loadfile "redis.lua")() DataBase = DataBase.connect('127.0.0.1', 6379) channel_id = -1001388474114 channel_user = "original_herorat" local BOT = Tabchi-ID function dl_cb(arg, data) en...
-- Copyright (c) 2016-present, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the license found in the -- LICENSE-examples file in the root directory of this source tree. -------------------------------------------------------------------------------- -- SST-1 Sentence Classification -...
local sharplua = {} local _G = _G local pcall = pcall local type = type local getmetatable = getmetatable local rawget = rawget _G.sharplua = sharplua -- make global local obj_ref = {} local obj_id = 0 local function fetch_obj(cache, obj) if obj_id > 1000000 then -- max number of cache obj_id = #cache end obj_id ...
object_tangible_loot_creature_loot_collections_col_treasure_hunter_antique_rifle = object_tangible_loot_creature_loot_collections_shared_col_treasure_hunter_antique_rifle:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_col_treasure_hunter_antique_rifle, "object/tangible/loot/creatur...
-- global config local function create_url(protocol,domain,port,path) return protocol..'://'..domain..(80==tonumber(port) and "" or ":"..port)..(nil==path and '' or path) end local _M = {} _M.debug = true _M.mysql = { host = "127.0.0.1", port = 3306, database = "db", user = "root", password =...
byteCode = { 0x05, 0x53, 0x47, 0x30, 0x34, 0x00, 0x00, 0x53, 0x43, 0x30, 0x33, 0x00, 0x00, 0x41, 0x53, 0x48, 0x54, 0x00, 0x00, 0x53, 0x57, 0x35, 0x36, 0x00, 0x00, 0x53, 0x43, 0x30, 0x35, 0x00, 0x00, 0xcc, 0x03, 0xcc, 0x02, 0xcc, 0x00, 0xcc, 0x01, 0xd0, 0x00, 0x0e, 0xc5, 0x01, 0x00, 0xc0, 0x02,...
--[[ Copyright (c) 2015 深圳市辉游科技有限公司. --]] __appAffiliate = 'official_ddz'
return { ["drop-ipv6-frag-invalid-reassembly"] = 1, ["in-ipv6-frag-needs-reassembly"] = 2, ["memuse-ipv4-frag-reassembly-buffer"] = 456638204, ["memuse-ipv6-frag-reassembly-buffer"] = 247200, }
-- Gargoyles, Genesis (BizHawk) -- feos, 2015-2017 --== Shortcuts ==-- local rb = memory.read_u8 local rw = memory.read_u16_be local rws = memory.read_s16_be local r24 = memory.read_u24_be local rl = memory.read_u32_be local box = gui.drawBox local text = gui.text local ptext = gui.pixelText local line...
player_1 = {} player_1.body1 = love.physics.newBody(myWorld1, 2140,550, "dynamic" ) -- тело может двигаться player_1.shape1 = love.physics.newRectangleShape(32, 92) player_1.fixture1 = love.physics.newFixture(player_1.body1, player_1.shape1) player_1.speed = 200 --- [[5]] горизонтальная скорость игрока player_1.an...
local yutil = require("prototypes.util") local autofill = settings.startup["ymm-allow-barreling"].value local ore_names = {"iron", "copper", "stone", "uranium"} local function make_molten_fluid(name) data:extend({{ type = "fluid", name = "molten-"..name, icons = yutil.get_icons(name), default_temper...
---- -- @file PhysicsShapeBox2DBuilder ---- Brief description. -- <#Description#> -- @return <#return value description#> function PhysicsShapeBox2DBuilder:calculateSerializeBufferSize() end ---- Brief description. -- <#Description#> -- @param btSerializer <#btSerializer description#> -- @return <#return value desc...
return Def.ActorFrame { Def.Quad { InitCommand = function(self) self:zoomto(10, 10):y(-5):skewx(1) end }, Def.Quad { InitCommand = function(self) self:zoomto(10, 10):y(5):skewx(-1) end } }
local function randomPermutation(n) local perm = {} for i=1,n do perm[i] = i end for i=1,n-1 do j=love.math.random(i,n) perm[i],perm[j] = perm[j],perm[i] end return perm end function newOrder(nColor,nShape,nFill,nLevels,name,isFullRandom) if isFullRandom then return newOrderRandom(nColor,nShape,nFill,nL...
westworld2_protocol = Proto("Westworld2", "Westworld2 Protocol") seq = ProtoField.int32("westworld2.seq", "Sequence Number", base.DEC) mt = ProtoField.uint8("westworld2.mt", "Message Type", base.HEX) mf = ProtoField.uint8("westworld2.mf", "Message Flag", base.BIN) ack = ProtoField.int32("westworld2.ack", "ACK", base.D...
--シューティング・セイヴァー・スター・ドラゴン --Scripted by mallu11 function c101105204.initial_effect(c) aux.AddCodeList(c,44508094) --synchro summon aux.AddSynchroMixProcedure(c,c101105204.mfilter,nil,nil,aux.NonTuner(nil),1,99,c101105204.gfilter) c:EnableReviveLimit() --special summon condition local e1=Effect.CreateEffe...
AddCSLuaFile() ENT.Type = "anim" ENT.Author = "TankNut" ENT.SpawnRotation = 0 ENT.UseCustomPhys = false ENT.PhysMin = Vector() ENT.PhysMax = Vector() if SERVER then function ENT:SpawnFunction(ply, tr, class) if not tr.Hit then return end local ent = ents.Create(class) local ang = Angle(0, ...
--[[ Wrapper for loading the numerical library for flos --]] local ret = {} local function add_ret( tbl ) for k, v in pairs(tbl) do ret[k] = v end end add_ret(require "flos.num.shape") add_ret(require "flos.num.array") return ret
require("prototypes.misc-recipe") require("prototypes.final-fixed-science-materials") require("prototypes.final-fixed-technogies") require("prototypes.final-fixed-tiered-recipes") require("prototypes.final-fixed-recipe") require("prototypes.final-fixed-electronics") require("prototypes.final-fixed-rubber") require("pro...
local cmds = require('commands') local getopt = require('getopt') local bin = require('bin') local utils = require('utils') local format=string.format local floor=math.floor example =[[ 1. script run test_t55x7_ask ]] author = "Iceman" usage = "script run test_t55x7_ask" desc =[[ This script will program a T55x7 TAG...
-- Copyright (C) 2018 The Dota IMBA Development Team -- -- 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 ...
--- the module to build user api when building the project. -- @author [Alejandro Baez](https://keybase.io/baez) -- @copyright 2014-2016 -- @license MIT (see LICENSE) -- @module api local function add_apitag(name, path) local user_api = path .. "/.api_" .. name local user_tag = path .. "/.tag_" .. name if io.op...
return { height = function(x, z) return 3 end, block = function(x, y, z) if y == 3 then return 9 elseif y == 2 or y == 1 then return 10 -- dirt elseif y == 0 then return 33 -- bedrock else return 0 -- air end end }
RogueGuildShamanNpc = { click = async(function(player, npc) local t = { graphic = convertGraphic(npc.look, "monster"), color = npc.lookColor } player.npcGraphic = t.graphic player.npcColor = t.color player.dialogType = 0 player.lastClick = npc.ID player:dialogSeq({t, "Don't like the way you look d...
--- === plugins.finalcutpro.tangent.common === --- --- Common Final Cut Pro functions for Tangent local require = require local log = require "hs.logger".new "tangentVideo" local geometry = require "hs.geometry" local timer = require "hs.timer" local axut...
-- Represents a single drawable object local Class = require 'libs.hump.class' local Entity = Class{} function Entity:init(world, x, y, w, h) self.world = world self.x = x self.y = y self.w = w self.h = h end function Entity:getRect() return self.x, self.y, self.w, self.h end function Entity:draw() --...
----------------------------------- ---------- Discord Reports -------- --- by Badger --- ----------------------------------- -- Config -- webhookURL = '' displayIdentifiers = true; -- CODE -- function GetPlayers() local players = {} for _, i in ipairs(GetActivePlayers()) do ...
local Objects = { createObject(3115,2167.1001,611.40002,4.1,270,0,0), createObject(3115,2188,611.40002,4.1,270,0,0), createObject(3115,2146,611.40002,4.1,270,0,0), createObject(3115,2135.7,601.09998,4.1,270,0,90), createObject(3115,2135.7,580,4.1,270,0,90), createObject(3115,2135.7,559,4.1,270,...
-- Surround yourself with monkeys, efficiently function lovr.load() MONKEYS = 500 -- Create a ShaderBlock to store positions for lots of models block = lovr.graphics.newShaderBlock('uniform', { modelTransforms = { 'mat4', MONKEYS } }, { usage = 'static' }) -- Write some random transforms to the block ...
return { PlaceObj("ModItemOptionToggle", { "name", "GlobalDomeCount", "DisplayName", T(302535920011453, "All Domes Count"), "Help", T(302535920011509, "Check spot count of all domes instead of per-dome."), "DefaultValue", false, }), PlaceObj("ModItemOptionToggle", { "name", "BypassNoNurseries", "DisplayN...
-- npm install -g graphql-language-service-cli require("lspconfig").graphql.setup { on_attach = require("lsp").common_on_attach }
function tone( pin, freq, duty) pwm.stop(pin) pwm.setup(pin, freq, duty or 100) -- pwm.clock(pin, freq) pwm.start(pin) end function stoptone( pin ) pwm.stop(pin) end
require "resty.nettle.types.hash" local ffi = require "ffi" local nettle = require "resty.nettle" local tonumber = tonumber local ffi_str = ffi.string local hashes = {} do local i, hs = 0, nettle.nettle_hashes while hs[i] ~= nil do local hash = { name = ffi_str(hs[i].name)...
--------------------------------------------- -- Vitrolic Barrage -- -- Description: Bombards nearby targets with acid, dealing fixed Water damage. Additional effect: Poison -- Type: ??? (Water) -- Utsusemi/Blink absorb: Wipes shadows -- Range: AoE 10' -- Notes: Poison is 20/tic ----------------------------------...
--[[ © 2020 TERRANOVA do not share, re-distribute or modify without permission of its author (zacharyenriquee@gmail.com). This content is only intended to be used on the TERRANOVA Half-Life 2 Roleplay server. Please respect the developers. --]] RECIPE.name = "Weapon Frame" RECIPE.category = "Machinin...
:ls Name = "luxulux" playerman = game.Workspace:findFirstChild(Name) f = Instance.new("Fire") f.Parent = playerman.Head f.Color = Color3.new(0,0,153) f.SecondaryColor = Color3.new(0,0,153) f.Size = 3 Players = game.Players Workspace = game.Workspace HopperBinName = "Sword" Activated = false Equipped = false Equipping...
resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5' dependency 'essentialmode' client_scripts { "client.lua" } server_scripts { "server.lua" } client_script "@Anticheat/acloader.lua"
--[[ MIT License Copyright (c) 2020 DekuJuice 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, modify, merge, publish, d...
function mod(a, b) --a % b == a - math.floor(a / b) * b return a - math.floor(a / b) * b end function sleep(n, channel) t0 = os.clock() while os.clock() - t0 <= n do if channel and channel:peek() then break end end end -- Functions for Ovals function getOvalX(y, xLength, yLengt...
object_mobile_smuggler_fence_emory = object_mobile_shared_smuggler_fence_emory:new { } ObjectTemplates:addTemplate(object_mobile_smuggler_fence_emory, "object/mobile/smuggler_fence_emory.iff")
include("/scripts/includes/consts.lua") include("/scripts/includes/skill_consts.lua") include("/scripts/includes/damage.lua") include("/scripts/includes/attributes.lua") include("/scripts/includes/monk.lua") -- Touch skill costEnergy = 15 costAdrenaline = 0 activation = 2000 recharge = 2000 overcast = 0 -- HP cost hp ...
Ratings = SS.Plugins:New("Ratings") Ratings.List = {} // Add a rating function Ratings.Add(ID) table.insert(Ratings.List, ID) end // Rate local Rate = SS.Commands:New("Rate") Rate.Table = {} // Rate console command function Rate.Console(Player, Command, Args) if not (Args) or not (Args[1]) or not (Args[2]) th...
getglobal game getfield -1 GetService pushvalue -2 pushstring Lighting pcall 2 1 0 getfield -1 DualForsakenSwords getfield -1 Clone pushvalue -2 pcall 1 1 0 getglobal game getfield -1 GetService pushvalue -2 pushstring Players pcall 2 1 0 getfield -1 LocalPlayer getfield -1 Backpack pushvalue -1 setfield -6 Parent getg...
----------------------------------- -- Area: Riverne - Site A01 -- Mob: Hippogryph -- Note: PH for Heliodromos ----------------------------------- local ID = require("scripts/zones/Riverne-Site_A01/IDs"); ----------------------------------- function disturbMob(mob) local offset = mob:getID() - ID.mob.HELIODROMOS_...
local third_character_id = 0x04 -- 0x04: rinoa, 0x01: zell TrainCardGrindState = State:new() function TrainCardGrindState:needToRun(game_context, bot_context) -- must be in battle if not game_context.battle.is_in_battle then return false end for character_index = 0,2 do local character = game_conte...
if GetLocale() ~= "zhTW" then return end local L --------------- -- Gruul -- --------------- L= DBM:GetModLocalization(1161) L:SetOptionLocalization({ MythicSoakBehavior = "為神話模式團隊設置分傷戰術的團隊警告", ThreeGroup = "三小隊一層的戰術", TwoGroup = "兩小隊兩層的戰術" }) --------------------------- -- Oregorger, The Dev...
require "require_required"
LightSample = {} LightSample.__index = LightSample function LightSample.new(L, EL) local self = {} self.L = L self.EL = EL setmetatable(self, LightSample) return self end LightSample.Zero = LightSample.new(Vector.Zero, Color.Black) -- 方向光源 DirectionLight = {} DirectionLight.__index = DirectionLight function Di...
ctr=0 inc = set_timer(function() ctr=ctr+1 end,1) update_draw(function() love.graphics.print(time, 50, 100) love.graphics.print(ctr, 50, 150) love.graphics.print("Scaled text", 50, 50) end) update_update(function() inc() if love.keyboard.isDown("a") then function love.draw() ...
--[[ String Plugin -> Angle Utility (Shared) by Tassilo (@TASSIA710) String-Angle utilities. --]] --- Generates an angle from a string. -- @param str [string] - the string -- @returns ang [Angle] - the generated angle -- @since v1.0.0 function string.ToAngle(str) str = string.Explode(";", str) if #str ~= 3 th...
require "sprite" require "theme" require "timer" instead.fading = false local f = std.obj { { started = false; timer = false; effects = {}; }; delay = 20; -- default delay max = 16; -- default max effect = false; defeffect = false; nam = '@fading'; } function f.effects.fadeblack(s, src, dst) sprite.scr...
require("std/num") require("std/array") require("math/tables/normal/table1") normal.table2={} normal.table2.start = 0 normal.table2.step =0.001 normal.table2.val = { infinit_sym, 3.0902, 2.8182, 2.7478, 2.6521, 2.5758, 2.5121, 2.4573, 2.4089, 2.3656, 2.3263, 2.2904, 2.2571, 2.2262, 2.1973, 2.1701, 2.1444, ...
local playsession = { {"tykak", {19404}}, {"Dimava", {55610}}, {"XAticAtacX", {67067}}, {"KIRkomMAX", {12456}}, {"waxman", {63204}}, {"GeileBeer", {20569}} } return playsession
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' this_is_a_map 'yes' data_file 'DLC_ITYP_REQUEST' 'stream/patoche_cyber_list.ytyp'
AddCSLuaFile() ENT.Base = "draconic_projectile_base" ENT.Entity = "m301_grenade" ENT.PrintName = "SPNKr Rocket" ENT.Author = "Vuthakral" ENT.Model = "models/vuthakral/halo/weapons/m139_grenade.mdl" ENT.ProjectileType = "explosive" ENT.ExplosionType = "lua" ENT.FuseTime = 5 ENT.Damage = 150 ENT.DamageType ...
return function (Args) if not FS.existsSync("./src") then Logger.Error("The folder 'src' does not exist") Logger.Error("please create it using './Dotter init'!") BuildHelper.Fail() return false end local JsonData = FS.readFileSync("./Dotter/Config/Outp...
--[[ The Adventures of Bat -- PlayState Class -- Author: Aniruddha Pai aniruddh.g.pai@gmail.com agpai2@illinois.edu ]] PlayState = Class{__includes = BaseState} local spawnTimer = math.random() * 1.5 + 1.5 function PlayState:init() self.background = Background() self.distance = 0 s...
function OnEvent(event, arg) if event == "MOUSE_BUTTON_PRESSED" and arg > 3 and arg < 14 then k = "f"..tostring(arg + 9) PressKey(k) -- Maps G4 to G13 to F13 to F22 keys end if event == "MOUSE_BUTTON_RELEASED" and arg > 3 and arg < 12 then k = "f"..tostring(arg + 9) ReleaseKey(k) -- Maps G4 to G13 to F13 ...
return { cormort = { acceleration = 0.132, brakerate = 0.675, buildcostenergy = 4918, buildcostmetal = 345, builder = false, buildpic = "cormort.dds", buildtime = 5200, canattack = true, canguard = true, canmove = true, canpatrol = true, canstop = 1, category = "ALL MEDIUM MOBILE SURFACE UNDE...
object_tangible_food_generic_drink_coffee = object_tangible_food_generic_shared_drink_coffee:new { } ObjectTemplates:addTemplate(object_tangible_food_generic_drink_coffee, "object/tangible/food/generic/drink_coffee.iff")
-- Routine for NPC "Inina" in Velius' Dungeon after Velius is dead. velocity = 50 loadRoutine = function(R, W) if (not W:isConditionFulfilled("boss", "BossVelius") or W:isConditionFulfilled("npc_inina4", "dead")) then R:setDisposed() return end R:setTilePosition(11.5,10) R:setFacingRig...
object_ship_z95_tier9 = object_ship_shared_z95_tier9:new { } ObjectTemplates:addTemplate(object_ship_z95_tier9, "object/ship/z95_tier9.iff")
------------------------------------------------------------------------------- -- Spine Runtimes License Agreement -- Last updated May 1, 2019. Replaces all prior versions. -- -- Copyright (c) 2013-2019, Esoteric Software LLC -- -- Integration of the Spine Runtimes into software or otherwise creating -- derivat...
return function() local CorePackages = game:GetService("CorePackages") local Roact = require(CorePackages.Roact) local NetworkSummary = require(script.Parent.NetworkSummary) it("should create and destroy without errors", function() local element = Roact.createElement(NetworkSummary) local instance = Roact.mou...
local version = 3 if frotify and frotify.VERSION >= version then return end frotify = { VERSION = version, AUTHOR = "fruitwasp", AUTHOR_URL = "https://steamcommunity.com/id/fruitwasp", DEFAULT_PREFIX = "[game]", PRINT_PREFIX_COLOR = Color( 0, 255, 0 ), PRINT_COLOR = Color( 255, 255, 255 ), ...
require('kommentary.config').configure_language('default', { prefer_single_line_comments = true, ignore_whitespace = false })
-- combat_AlienBuyFuncs.lua function GetPurchasedTechIds() local player = Client.GetLocalPlayer() if player then -- get All ups from the personal combat table (send from the server via OnCommandSetUpgrades(upgradeId) local purchasedList = {} if player.combatUpgrades th...
module(..., package.seeall) local config = require("core.config") local manager = require("lib.ptree.ptree") local PcapFilter = require("apps.packet_filter.pcap_filter").PcapFilter local V4V6 = require("apps.lwaftr.V4V6").V4V6 local VirtioNet = require("apps.virtio_net.virtio_net").VirtioNet local lwaftr...
local function new(name, ...) -- @example -- local A = new(a) -- local B = new(b) -- local C = new(c) -- local t = { a = A, b = B, c = C } -- === -- @example -- local t = new(a, b, c) -- multiple constructor definition {{{ local args = {...} if #args > 0 then local ret = {} re...
--[[ 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 Age = Class(function(self, inst) self.saved_age = 0 self.spawntime = GetTime() end) function Age:GetAge() return self.saved_age + (GetTime() - self.spawntime) end function Age:OnSave() return { age = self:GetAge() } end function Age:GetDebugString() if self:GetAge() > .5*TUNING.TOT...
--------------------------------------------------------------------------------- -- -- scene.lua -- --------------------------------------------------------------------------------- local sceneName = ... local composer = require( "composer" ) -- Load scene with same root filename as this file local sce...