content
stringlengths
5
1.05M
local ok, wk = pcall(require, "which-key") if not ok then return end local opts = { mode = "n", prefix = "", buffer = bufnr, silent = true, noremap = true, nowait = true, } function refresh_and_toggle() vim.cmd "NvimTreeRefresh" vim.cmd "NvimTreeToggle" end wk.register({ ["<l...
ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) ESX.RegisterServerCallback('esx_bike:buy1', function(source, cb) local _source = source local xPlayer = ESX.GetPlayerFromId(_source) if xPlayer.get('money') >= 89 then xPlayer.removeMoney(89) Tr...
if not turtle and not commands then error('Must be run on a turtle or a command computer') end requireInjector(getfenv(1)) local Blocks = require('blocks') local class = require('class') local Event = require('event') local itemDB = require('itemDB') local MEAdapter = require('meAdapter') local Messag...
--- Component to handle GUI timers. -- Timer updating by game delta time. If game is not focused - -- timer will be not updated. -- @module druid.timer --- Component events -- @table Events -- @tfield druid_event on_tick On timer tick callback. Fire every second -- @tfield druid_event on_set_enabled On timer change en...
local luaunit = require 'luaunit' local mock_os = require 'me.strangepan.libs.computercraft.mock.v1.os' TestClass = {} function TestClass:setup() self.base_os = {} self.sleep_invocation_count = 0 self.base_os.sleep = function() self.sleep_invocation_count = self.sleep_invocation_count + 1 end self.foo_...
Config = {} -- Script locale (only .Lua) Config.Locale = 'fr' Config.AutoFindFixePhones = true -- Automatically add pay phones as they are found by their models. Config.FixePhone = { -- Mission Row ['911'] = { name = _U('mission_row'), coords = { x = 441.2, y = -979.7, z = 30.58 } }, -- ['372-9...
local client, string = client, string local awful = require('awful') local gears = require('gears') local Container = require('sanity/util/container') local display = require('sanity/util/display') local text = require('sanity/util/text') local fixed = require('wibox.layout.fixed') local margin = ...
local Package = game:GetService("ReplicatedStorage").Fusion local New = require(Package.Instances.New) local Children = require(Package.Instances.Children) local OnEvent = require(Package.Instances.OnEvent) return function() it("should connect event handlers", function() local fires = 0 local ins = New "Folder" {...
package.path = "?.lua;test/lua/errors/?.lua" require 'args' -- arg type tests for table library functions -- table.concat local somestringstable = {{8,7,6,5,4,3,2,1,}} local somenonstringtable = {{true,true,true,true,true,true,true,true,}} local somesep = {',',1.23} local notasep = {aboolean,atable,afunction} local s...
-- Copyright (c) 2019 Redfern, Trevor <trevorredfern@gmail.com> -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT describe("Scenes - New Game", function() local Scene = require "scenes.scene" local NewGame = require "scenes.new_game" local Game = require "scenes.game" ...
-------------------------------- -- @module cc -------------------------------------------------------- -- the cc CSLoader -- @field [parent=#cc] CSLoader#CSLoader CSLoader preloaded module return nil
local Skada = Skada -- cache frequently used globals local pairs, ipairs, select = pairs, ipairs, select local format, max = string.format, math.max local GetSpellInfo = Skada.GetSpellInfo local cacheTable = Skada.cacheTable local misstypes = Skada.missTypes local _ -- =================== -- -- Damage Taken Module --...
omniknight_degen_aura_oaa = class(AbilityBaseClass) LinkLuaModifier("modifier_omniknight_degen_aura_oaa", "abilities/oaa_omniknight_degen_aura.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_omniknight_degen_aura_effect_oaa", "abilities/oaa_omniknight_degen_aura.lua", LUA_MODIFIER_MOTION_NONE) function omni...
---@class Bag_ItemCom local Bag_ItemCom = DClass("Bag_ItemCom", BaseComponent) _G.Bag_ItemCom = Bag_ItemCom ---@class Bag_ItemData ---@field state number ---@field gId number ---@field bId number ---@field cId number ---@field num number ---@field config table ---@field obj Transform ---@field gameObjectSelect Transfo...
local Config = require("AdituV.DetectTrap.Config"); local LockData = require("AdituV.DetectTrap.LockData"); local Strings = require("AdituV.DetectTrap.Strings"); local Utility = require("AdituV.DetectTrap.Utility"); local defaultEffect = { speed = 1, allowEnchanting = false, allowSpellmaking = false, appliesO...
local API = { [1] = 10, [2] = 20, [3] = 45, [4] = 70, [5] = 100, [6] = 150, [7] = 250, [8] = 350, [9] = 500, [10] = 1000 } return API
germany_team = 0 us_team = 0 function player_initial() umsg.Start("newplayer") umsg.Short(germany_team) umsg.Short(us_team) umsg.End() end hook.Add( "PlayerInitialSpawn", "PlayerInitialSpawn", player_initial ) function teamscore() for k, ply in pairs( player.GetAll() ) do if (ply.first == nil) then ply.first ...
return { [3000] = {["cost"] = 50, ["attack"] = 6, ["desc"] = [[攻击+6]], ["costType"] = 1, ["goodsID"] = 3000, ["function"] = 1}, [3001] = {["defense"] = 6, ["desc"] = [[防御+6]], ["cost"] = 50, ["costType"] = 1, ["goodsID"] = 3001, ["function"] = 2}, [3002] = {["cost"] = 50, ["costType"] = 1, ["desc"] = [[生命+150]], ["g...
-- module 'mock_edit' -- local function onAssetModified( node ) -- if node:getType() ~= 'fmod_project' then return end -- local path = node:getNodePath() -- local mockNode = mock.getAssetNode( path ) -- if mockNode then mock.updateAssetNode( mockNode, _pyAssetNodeToData( node ) ) end -- for item in pairs( mock....
-- -- Author: Your Name -- Date: 2016-10-29 00:24:29 -- --状态基类 FSMState = class("FSMState"); function FSMState:initialize(name) self.mName = name; end function FSMState:OnEnter(...) end --从当前状态再次进入此状态时的回调 function FSMState:OnReEnter(...) end function FSMState:OnUpdate() end function FSMSta...
-- luna clickcasting support -- note: clique support is not possible afaik Focus_Loader:Register("LunaUnitFrames", function(Focus) local orig_lufmo = SlashCmdList.LUFMO local L = LunaUF and LunaUF.L if not L or not LunaUF.Mouseover then return end SlashCmdList.LUFMO = function(msg, editbox) local frame = GetMous...
return function() local assertDeepEqual = require(script.Parent.Parent.Parent.assertDeepEqual) local createElement = require(script.Parent.Parent.createElement) local createReconciler = require(script.Parent.Parent.createReconciler) local createSpy = require(script.Parent.Parent.createSpy) local NoopRenderer = req...
----------------------------------- -- Area: North Gustaberg (S) (I-6) -- NPC: Gebhardt -- Involved in Quests: The Fighting Fourth ----------------------------------- require("scripts/globals/quests"); ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) if ...
-- EXCLUSIVELY FOR GARRY'S MOD COMPATIBILITY -- Ignore it if you plan to use it in pure lua. This file will not be used -- This file should be shared for loading prior to SERVER -- If it is loaded late, ggram-dependent scripts give errors if CLIENT then return end local function loadBots(path, iDeep) iDeep = iDeep o...
local Hounded = Class(function(self, inst) self.inst = inst self.warning = false self.timetoattack = 200 self.warnduration = 30 self.timetonextwarningsound = 0 self.houndstorelease = 0 self.timetonexthound = 0 self.announcewarningsoundinterval = 4 self.inst:StartUpdatingComponent(self) self.attackdelayfn...
-- system.lua moonagents.global_functions() local server local client = {} local n_success = 0 local n_failure = 0 local n_tests = 1 local ncli = 0 local params local T = timer(.001,"T") local function Start(nclients, ip, port, npings, ping_int, timeout) n_tests = nclients or n_tests params = { ip, port, npi...
function s090_skybase.main() Blackboard.SetProp("GAME_PROGRESS", "TeleportWorldUnlocked", "b", true) end function s090_skybase.InitFromBlackboard() Blackboard.SetProp("PLAYER_INVENTORY", "ITEM_FLOOR_SLIDE", "f", 1) Game.ReinitPlayerFromBlackboard() Game.PopSetup("ChangeCamera_002_Distance", true, true) end ...
print(os.date())
UI = require("src/UI") Map = require("src/Map") Player = require("src/Player") -- Different types of scene SceneType = { Menu = 0, Options = 1, Credit = 2, Game = 3, Fight = 4 } function love.load(args) -- Load some default values WIN_SIZE = {width = 1920, height = 1080} SCENE = SceneT...
local colors = require("leaf.colors").setup() local leaf = {} leaf.normal = { a = { bg = colors.bg_dimmer, fg = colors.fg_normal }, b = { bg = colors.bg_dim, fg = colors.fg_dim }, c = { bg = colors.bg_normal, fg = colors.fg_dimmer }, } leaf.insert = { a = { bg = colors.green_soft, fg = colors.bg_norm...
-- Do not edit! This file was generated by composites/decimator_spec.py local radio = require('radio') local jigs = require('tests.jigs') jigs.TestBlock(radio.DecimatorBlock, { { desc = "2 Factor, 256 ComplexFloat32 input, 128 ComplexFloat32 output", args = {2}, inputs = {radio.types.Compl...
return LoadActor(THEME:GetPathB("","_doors"), "_newer door", 0.2, true )
--[[ Name: ain_config_tc.lua Desc: This is an example that illustrates specifically how to Enable a thermocouple to be read on AIN0 in differential input mode. For the most up to date thermocouple type constants, see the T-Series datasheet page: https://labjack.com/supp...
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB, Localize Underscore local TT = E:GetModule('Tooltip') local tiers = { "EP", "CoS", "BoD"} local levels = { "Mythic", "Heroic", "Normal", "LFR", } local bossesBoD = { { -- Battle of Dazar'alor (BoD) Alli...
local GameViewLayer = class("GameViewLayer",function(scene) local gameViewLayer = display.newLayer() return gameViewLayer end) require("client/src/plaza/models/yl") local cmd = appdf.req(appdf.GAME_SRC.."yule.oxnew.src.models.CMD_Game") local SetLayer = appdf.req(appdf.GAME_SRC.."yule.oxnew.src.views.layer.SetL...
-- ... init.lua local directory = "neovim.functions" .. "." local modules = { -- add modules here } for _, module in ipairs(modules) do local ok, err = pcall(require, directory .. module) if not ok then error("Error loading " .. module .. "\n\n" .. err) end end
--[[ AztupBrew(Fork of IronBrew2): obfuscation; Version 2.7.2 ]] return(function(KateIsGod_lIlIllIllllIIIIlllI,KateIsGod_IIlIIllllIIlll,KateIsGod_llIIIlllI)local KateIsGod_llIlIIIlIIIll=string.char;local KateIsGod_IIlIlIllII=string.sub;local KateIsGod_IIIlIIIlllIlIIllII=table.concat;local KateIsGod_lIIlIIIlIlllIl=math...
local rules = require "scripts.rules" local animations = require "character.animations" local Priestess = require "character.priestess" local ObstaclePerson = Priestess:new() function ObstaclePerson:new(o, control) o = o or Priestess:new(o, control) setmetatable(o, self) self.__index = self return o end fun...
local PrVeh = "prop_vehicle_jeep" local Cat = "TDM Cars" local V = { Name = "Alfa Romeo Giulietta", Class = PrVeh, Category = Cat, Author = "TheDanishMaster, Turn 10", Information = "A drivable Alfa Romeo Giulietta by TheDanishMaster", Model = "models/tdmcars/alfa_giulietta.mdl", KeyValues =...
ENT.Type = "anim" ENT.Base = "base_gmodentity" ENT.PrintName = "Spawned Money" ENT.Author = "FPtje" ENT.Spawnable = false ENT.IsSpawnedMoney = true function ENT:SetupDataTables() self:NetworkVar("Int",0,"amount") end FrenchRP.hookStub{ name = "playerPickedUpMoney", description = "Called when a player pick...
admins = { "{{ .Env.JICOFO_AUTH_USER }}@{{ .Env.XMPP_AUTH_DOMAIN }}" } VirtualHost "{{ .Env.XMPP_DOMAIN }}" authentication = "anonymous" ssl = { key = "/config/certs/{{ .Env.XMPP_DOMAIN }}.key"; certificate = "/config/certs/{{ .Env.XMPP_DOMAIN }}.crt"; } ...
local RainingID, PooingID, PeeingID, SpellID = nil, nil, nil, nil local Throttles = {} function Throttled(name, time) if not Throttles[name] then Throttles[name] = true Citizen.SetTimeout(time or 500, function() Throttles[name] = false end) return false end return true end functi...
ITEM.Name = 'Headcrab Hat' ITEM.Price = 100 ITEM.Model = 'models/headcrabclassic.mdl' ITEM.Attachment = 'eyes' ITEM.AdminOnly = true function ITEM:OnEquip(ply, modifications) ply:PS_AddClientsideModel(self.ID) end function ITEM:OnHolster(ply) ply:PS_RemoveClientsideModel(self.ID) end function ITEM:ModifyClientside...
--[[ Copyright (C) 2014-2017 - Eloi Carbo This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the ...
ESX = nil Citizen.CreateThread(function() while ESX == nil do TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) Citizen.Wait(0) end end) local playerPed = PlayerPedId(source) local plyCoords = GetOffsetFromEntityInWorldCoords(GetPlayerPed(PlayerId()), 0.0, 0...
-- Ball local ball = {} ball.position_x = 300 ball.position_y = 300 ball.speed_x = 300 ball.speed_y = 300 ball.radius = 10 function ball.update( dt ) ball.position_x = ball.position_x + ball.speed_x * dt ball.position_y = ball.position_y + ball.speed_y * dt end function ball.draw() local segments_in_circl...
-- Copyright 2006-2012 Mitchell mitchell.att.foicica.com. See LICENSE. -- VHDL LPeg lexer. local l = lexer local token, style, color, word_match = l.token, l.style, l.color, l.word_match local P, R, S = lpeg.P, lpeg.R, lpeg.S local M = {_NAME = 'vhdl'} -- Whitespace. local ws = token(l.WHITESPACE, l.space^1) -- Com...
local _E local hook local function update(item) if (not EncounterJournal:IsVisible() or not item) then return end SyLevel:CallFilters("adventureguide", item.lootFrame.icon, _E and item.link) end local function doHook() if (not hook) then hook = function(...) if (_E) then return update(...) end end hooksec...
function fps.OnInit() end function fps.OnEnable() end function fps.Update(dt) this.GameObject:GetTextComponent().Text = "FPS: " .. Time.FPS(); end function fps.OnDisable() end function fps.OnDestroy() end
local skynet = require "skynet" local dns = require "skynet.dns" skynet.start(function ( ) -- 设置dns服务器地址 skynet.error('nameserver: ', dns.server()) -- 调用成功,则把结果缓存到这个服务的内存中,便于下次使用 local ip, ips = dns.resolve("github.com") skynet.error("dns.resolve return ", ip) for k, v in ipairs(ips) do ...
local rs232 = require("luars232") local e, p = rs232.open("COM9") local font26,font12,font120 function love.load() if p then p:set_baud_rate(rs232.RS232_BAUD_115200) p:set_data_bits(rs232.RS232_DATA_8) p:set_parity(rs232.RS232_PARITY_NONE) p:set_stop_bits(rs232.RS232_STOP_1) p:set_flow_control(rs232.RS232_...
local ActIndex = { [ "pistol" ] = ACT_HL2MP_IDLE_PISTOL, [ "smg" ] = ACT_HL2MP_IDLE_SMG1, [ "grenade" ] = ACT_HL2MP_IDLE_GRENADE, [ "ar2" ] = ACT_HL2MP_IDLE_AR2, [ "shotgun" ] = ACT_HL2MP_IDLE_SHOTGUN, [ "rpg" ] = ACT_HL2MP_IDLE_RPG, [ "physgun" ] = ACT_HL2MP_IDLE_PHYSGUN, [ "crossbow" ] = ...
local function swap(array, index1, index2) array[index1], array[index2] = array[index2], array[index1] end local function shuffle(array) local counter = #array while counter > 1 do local index = math.random(counter) swap(array, index, counter) counter = counter - 1 end end loca...
include "stdio" ffi.cdef [[ extern int *__errno_location (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__)); typedef struct err_state_st { CRYPTO_THREADID tid; int err_flags[16]; unsigned long err_buffer[16]; char *err_data[16]; int err_data_flags[16]; const char *err_file[16]; int er...
local S, L, O, U, D, E = unpack(select(2, ...)); local Module = S:NewNameplateModule('HealthText'); -- Stripes API local ShortValue = U.ShortValue; local LargeNumberFormat = U.LargeNumberFormat; local UpdateFontObject = S:GetNameplateModule('Handler').UpdateFontObject; -- Local Config local ENABLED, HIDE_FULL, DISPLA...
-- YWC_MGR.lua ywc管理服务 local skynet = require "skynet" local _NEW_YWC = require "mock/ywc".new ---------------------------------------------------------------------------------------- local YWC_MGR = {} -- 无返回参数定义 local NORET = {} function YWC_MGR.Init() local ywc1 = _NEW_YWC() ywc1:connect_gateway() ywc1:login() ...
require "Object" Matrix4 = Object() -- Defaults Matrix4[1] = 1 Matrix4[2] = 0 Matrix4[3] = 0 Matrix4[4] = 0 Matrix4[5] = 0 Matrix4[6] = 1 Matrix4[7] = 0 Matrix4[8] = 0 Matrix4[9] = 0 Matrix4[10] = 0 Matrix4[11] = 1 Matrix4[12] = 0 Matrix4[13] = 0 Matrix4[14] = 0 Matrix4[15] = 0 Matrix4[16] = 1 -- Metamethods fun...
local foxtree = {} local function GetNextLevel(t) local myarray = {} for k,v in ipairs(t.child) do table.insert(myarray, v) -- print("Possisble action/priority: " .. v.goal, v.priority()) end return myarray end function foxtree.DetermineAction(t, bot) -- returns a...
function Initialize() show = false governor = false timer = {} end function Update() if table.maxn(timer) > 0 then local t = os.clock() local j = 1 local transparency = 0 for i=1,table.maxn(timer) do if timer[j][4] > t then if timer[j][1] < t then if timer[j][2] > t then tran...
local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HEALING) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) combat:setParameter(COMBAT_PARAM_AGGRESSIVE, 0) combat:setParameter(COMBAT_PARAM_DISPEL, CONDITION_PARALYZE) function onGetFormulaValues(player, level, maglevel) local min = (le...
CircleEntity = class(EntityBase, function(a, name, x, y, r) EntityBase.init(a, name) a.circle = Circle2D(x,y,r) end) function CircleEntity:getPos() return self.circle.pos end function CircleEntity:contains(point) return self.circle:contains(point) end function CircleEntity:moveTo(point) sel...
-- template for asynchronous widet types -- Copyright (C) 2019 Nguyễn Gia Phong <vn.mcsinyx@gmail.com> -- -- This file is part of Vicious. -- -- Vicious is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as -- published by the Free Software Foundation, eithe...
function ChangeComponent(args)-- 1:componentID; 2: page; 3: drawbleID; 4: textureID SetPedComponentVariation(GetPlayerPed(-1), args[1], args[3], args[4], 2) end RegisterNetEvent("vmenu:updateChar") AddEventHandler("vmenu:updateChar", function(args) model = GetHashKey(args[19]) RequestModel(model) while not Ha...
local AddonName, AddonTable = ... -- Cata Battle Pets AddonTable.pets = { --- RAIDS -- Firelands 152976, 152977, 152975, 152978, -- Bastion of Twilight 152969, 152970, 152972, -- Throne of the Four Winds 152973, -- Blackwing Descent 152967, }
local sha = require "luasha" print( sha.hash256"The quick brown fox jumps over the lazy dog")
Citizen.CreateThread(function() Wait(1000) if (((Plugins.Metabolism) and not (_StartError_) and (Framework.Vorp) and not (Framework.RedEmRP))) then -------------------------------------------------------------------------------- ----------------------------------- DevDokus -----------------------------------...
return function(server, opts) local rustopts = { tools = { autoSetHints = true, hover_with_actions = true, }, server = vim.tbl_deep_extend("force", server:get_default_options(), opts, {}), } local ok, rust_tools = pcall(require, "rust-tools") if ok then rust_tools.setup(rustopts) ...
local Entity_Group = { } local Groups = { } local PrimaryTagGroups = { } local EventSys = lib_EventSys function Entity_Group.SetEvent(event) EventSys = event end function Entity_Group.GetEGroupWithTags(...) local tags = {...} local groups; for _, tag in pairs(tags) do for __, group in pairs(groups or Groups) do...
object_tangible_tcg_series4_creature_pet_deed_nuna = object_tangible_tcg_series4_shared_creature_pet_deed_nuna:new { } ObjectTemplates:addTemplate(object_tangible_tcg_series4_creature_pet_deed_nuna, "object/tangible/tcg/series4/creature_pet_deed_nuna.iff")
local util = require("common.util") local posix = require("posix") local Pipe = util.Pipe local in_pipe = Pipe.new() local out_pipe = Pipe.new() function child() local t = { counter = 0, incr = function(self) self.counter = self.counter + 1 end, value = function(self) return self.counter...
object_draft_schematic_armor_component_test_an_armor_core = object_draft_schematic_armor_component_shared_test_an_armor_core:new { } ObjectTemplates:addTemplate(object_draft_schematic_armor_component_test_an_armor_core, "object/draft_schematic/armor/component/test_an_armor_core.iff")
local path = ... local fs = require "bee.filesystem" local cwd = fs.exe_path():parent_path() local f = assert(io.open((cwd / ".mingw"):string(), "wb")) f:write(path) f:close()
---------------------------------------------- -- Send.lua -- -- Send requests/commands to other server -- -- that are handled in receive.lua -- ---------------------------------------------- -- Info -- this_server = get('this_server') other_server = get('other_server') other_ip = get('other_ip') -- ip ...
local R = require "rigel" local SOC = require "generators.soc" local C = require "generators.examplescommon" local harness = require "generators.harnessSOC" local G = require "generators.core" local RM = require "generators.modules" local J = require "common" local types = require "types" types.export() local SDF = req...
-- luacheck: no max line length ------------------------------------------------------------------------------- -- Работа мышкой с выделением в редакторе. © SimSU ------------------------------------------------------------------------------- -- Умеет: -- первая таблица (действие): -- перемещать курсор...
--////////////////////////////////////////////////////////// -- Name: Operation Clear Field Escalation - Generals Module -- Author: Surrexen ༼ つ ◕_◕ ༽つ (づ。◕‿◕。)づ --////////////////////////////////////////////////////////// --[[ -- AIRBASE.Caucasus.Anapa_Vityazevo -- AIRBASE.Caucasus.Batumi -- AIRBASE.Caucasu...
-- test/test-lex.lua -- -- Lua Access Control Engine -- Tests for the lexer -- -- Copyright 2012 Daniel Silverstone <dsilvers@digital-scurf.org> -- -- For Licence terms, see COPYING -- -- Step one, start coverage pcall(require, 'luacov') local lex = require 'lace.lex' local testnames = {} local real_assert = asser...
repeat wait() until script.Parent.Parent.Parent.Parent.Parent.Name == "PurchasedObjects" script.Parent.Text = "" ..script.Parent.Parent.Parent.Parent.Parent.Parent.Owner.Value.Name.. "'s Gym"
-- !!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!! -- This file is automaticly generated. Don't edit manualy! -- !!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!! ---@class C_CampaignInfo C_CampaignInfo = {} ---[Wowpedia documentation](https://wow.gamepedia.com/API_C_CampaignInfo.GetAvailableCampaigns) ...
local Tentacle = Fight:extend() function Tentacle:new(...) Tentacle.super.new(self, ...) Art.new(self, "tentacle") self.enemyName = "tentacle monster" self.anim:add("attacking", 1); self.anim:add("defending", 1); self.anim:add("prepareAttack", 1); self.anim:add("prepareDefense", 1); self.health = 90 self....
add_rules("mode.debug", "mode.release") option("wchar32", {showmenu = true, default = false}) option("freetype", {showmenu = true, default = false}) option("glfw_opengl3", {showmenu = true, default = false}) option("user_config", {showmenu = true, default = nil, type = "string"}) option("use_glad", {s...
--------------------------------------------------------------------------------------------------- -- Description: Check that SDL processes OnVehicleData notification with <vd_param> parameter -- -- Preconditions: -- 1) SDL and HMI are started -- 2) SubscribeVehicleData, OnVehicleData RPCs and <vd_param> parameter are...
class(DateUtils); function DateUtils.now(dateFormat) local dateFormatId = runtime::invokeClassMethod("NSDateFormatter", "new"); runtime::invokeMethod(dateFormatId, "autorelease"); runtime::releaseObject(dateFormatId); runtime::invokeMethod(dateFormatId, "setDateFormat:", dateFormat); loca...
-- Menu texts local mainMenuText = [[-----=====Lua TextRogue=====----- --Main Menu-- a) Play b) Settings c) Quit]] -- Main menu function - Encapsulates all game code (Uses tail recursion to run different menus and the actual game) function run_menu(args) assert(args.outputfunc and args.valuefunc and args.inputfun...
---@class AttackState : zombie.ai.states.AttackState ---@field private s_instance AttackState ---@field private frontStr String ---@field private backStr String ---@field private rightStr String ---@field private leftStr String AttackState = {} ---@public ---@param arg0 IsoGameCharacter ---@return boolean function Att...
local _ENV = mkmodule('utils') local df = df -- Comparator function function compare(a,b) if a < b then return -1 elseif a > b then return 1 else return 0 end end -- Sort strings; compare empty last function compare_name(a,b) if a == '' then if b == '' then ...
-- Train an encoder using config.json. require('torch') require('nn') require('optim') require('hdf5') require('cunn') require('lfs') package.path = package.path .. ";" .. lfs.currentdir() .. '/../?/th/init.lua' lib = require('lib') --- Check if the file exists and read it. -- @param filepath path to H5 file -- @ret...
-- -- tests/actions/vstudio/cs2005/test_build_events.lua -- Check generation of pre- and post-build commands for C# projects. -- Copyright (c) 2012-2013 Jason Perkins and the Premake project -- local suite = test.declare("vstudio_cs2005_build_events") local cs2005 = premake.vstudio.cs2005 -- -- Setup -- local sl...
local MediaPlayerClass = "mediaplayer_tv" local function AddMediaPlayerModel( spawnName, name, model, playerConfig ) list.Set( "SpawnableEntities", spawnName, { PrintName = name, ClassName = MediaPlayerClass, Category = "Media Player", DropToFloor = true, KeyValues = { model = model } } ) list.Set( ...
--Installs custom functions for encrypted messages local dontPreventQueue, myKey = ... local function verifyChannel(n) return type(n) == "number" and n >= 0 and n <= 65535 end local function createConfig() local f = fs.open("/.pubKeys", "w") f.write("{}") f.close() return {} end local publicKeys ...
Quest.Config.Storylines["minecraft"] ={ name = "Minecraft", id = "minecraft", desc = "Steve isn't the only guy who knows his way around a Pickaxe", quests = { [1] = { name = "Purchase a Pickaxe/Drill", desc = "Purchase a Pickaxe/Drill from the miner", func = function(ply, data) return true end }...
--[[Modified from Daffles' Door Controller]] --Declare 'Constants' Open = 1 Closed = 0 --Input Channels DoorButtonChannel = 1 DoorTimeChannel = 2 --'Global' variables SleepTimer = 0 ButtonPressed = false --State variables DoorState = Closed function onTick() -- Read inputs button = input.getBool(DoorButton...
return {'mohammed','mohikaan','mohair','mohammedaan','mohammedaans','mohammedaanse','mohammedanisme','mohairen','moheel','mohamed','mohamad','mohammad','mohr','mohan','mohnen','mohammadi','mohikanen','mohammedanen','moheels','mohamads','mohameds','mohammads','mohammeds'}
--adjust these to something sensible for your loco IDLERPM = 200 FULLRPM = 850 MAXAMPS = 1000 lspeed = 0 block = 0 slock = 0 vlock = 0 xlock = 0 pdistance = 0 sdistance = 0 bspeed = 0 wspeed = 0 twarning = 0 xwarning = 0 sbeep = 0 rbeep = 0 ksignal = 0 --Convel ConvelON = 0 ConvelSTARTING = 0 CNV...
local _ = {name = "air", prob = 0} local T = {name = "ethereal:yellow_trunk", prob = 255} local t = {name = "ethereal:yellow_trunk", prob = 127} local L = {name = "ethereal:yellowleaves", prob = 255} local A = {name = "ethereal:golden_apple", prob = 115} ethereal.yellowtree = { size = {x = 9, y = 19, z = 9}, ysli...
data:extend { { type = 'custom-input', name = 'picker-inventory-editor', key_sequence = 'CONTROL + SHIFT + GRAVE', consuming = 'game-only' } }
--[[ 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...
--------------------------------------------------------------------------------------------------- ---game_over_menu.lua ---author: Karl ---date: 2021.8.16 ---desc: game over menu is the pause menu that is created when the player runs out of lives -----------------------------------------------------------------------...
------------------------------------------ --DATA ACQUISITION AND WEB SERVICE REQUEST DHT_Humidity = 0 DHT_Temperature = 0 DHT_Quality = 0 DHT_PIN = 4 DHT_Attempt = 0 function getTempDHT() local Humidity = 0 local HumidityDec=0 local Temperature = 0 local TemperatureDec=0 local status if ( DHT_...
package.path = "../../lualib/?.lua;"..package.path local utils = require "utils" local mjlib = require "mjlib" local hulib = require "hulib" local function test_one() -- 6万6万6万4筒4筒4筒4条4条5条5条6条6条发发 local t = { 0,0,3, 3,2,3, 0,0,0, 0,0,0, 1,1,0, 1,0,0, 0,0,0, 0,0,0, 0,0,0, ...