content
stringlengths
5
1.05M
--[[-------------------------------------------------------------------]]--[[ Copyright wiltOS Technologies LLC, 2020 Contact: www.wiltostech.com ----------------------------------------]]-- wOS = wOS or {} wOS.ALCS = wOS.ALCS or {} wOS.ALCS.Config = wOS.ALCS.Config or {} wOS.ALCS.Config.Skills = wOS.ALC...
-- ter_fighter1.lua -- Configuration file for the Terran Mk.1 Fighter ship = { uname = "ter_fighter1", race = "terran", fullname = "Fighter Mk.1", model = "fighter.3ds", cockpit = "canopy02.3ds", pitch = 80, yaw = 50, roll = 90, mass = 2500, enginetype = "ter_fusion2.lua", engines = { ...
ITEM.name = "Moskovskaya Sausage" ITEM.description = "A lump of sausage" ITEM.longdesc = "A traditional Russian sausage similar to the Polish kielbasa, this Eastern European sausage is also known as Maskoska. This sausage is made in the Ukraine following the classic Eastern European recipe, pork and beef lightly smoked...
-- Prosody IM -- Copyright (C) 2014 Daurnimator -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- -- This module allows you to use cqueues with a net.server mainloop -- local server = require "net.server"; local cqueues = require "cqueues"; assert(cqu...
--[[ © CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). Clockwork was created by Conna Wiles (also known as kurozael.) http://cloudsixteen.com/license/clockwork.html --]] Clockwork.json = Clockwork.kernel:NewLibrary("Json"); function Clockwork.json:Enc...
local ffi = require 'ffi' local C = ffi.C local typeof = ffi.typeof ffi.cdef([[ int execve(const char *filename, const char *argv[], const char *envp[]); char *strerror(int errnum); int execvp(const char *file, const char *argv[]); ]]) local string_array_t = typeof("const char *[?]") local function execvp(filename...
function todo.create_frame(player, name, caption, close_name) local frame = player.gui.screen.add({ type = "frame", name = name, direction = "vertical" }) -- Add title bar local title_bar = frame.add({ type = "flow" }) local title = title_bar.add({ type =...
-- the hud handles all hud elements local pBarX, pBarY, pBarW, pBarH = 0 local devFont, hudFont, specialFont = nil local devInfo = nil local dangertimer = 0 -- used to modify danger warner text dynamically (size, color) -- simple init function function hud_init() pBarW = math.floor(love.graphics:getWidth() / 6) ...
--[[ Copyright (c) 2009 Peter "Corsix" Cawley 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, dis...
return { name = 'sony_morpheus', ident = '^SCEIHMD', wm = 'ignore', tag = 'VR' };
return function() require("stabilize").setup() end
includeFile("custom_content/tangible/loot/loot_schematic/dancing_droid_schematic.lua") includeFile("custom_content/tangible/loot/loot_schematic/deconstructed_armor_schematic.lua") includeFile("custom_content/tangible/loot/loot_schematic/deconstructed_vehicle_schematic.lua") includeFile("custom_content/tangible/loot/loo...
--[[ Mob fight arena script Script made by Grandelf. ]]-- --[[ ################################################################################################## # # # Emap, Ex, Ey, Ez, Ezone this are the coords of t...
-------------------------------- -- @module PhysicsShapeEdgePolygon -- @extend PhysicsShape -- @parent_module cc -------------------------------- -- Get this polygon's points array count.<br> -- return An interger number. -- @function [parent=#PhysicsShapeEdgePolygon] getPointsCount -- @param self -- @return int#int...
local api, cmd, fn, g = vim.api, vim.cmd, vim.fn, vim.g local opt, wo = vim.opt, vim.wo local fmt = string.format ---- defaults ---- opt.shell='fish' opt.mouse = 'a' opt.termguicolors = true -- ui opt.cursorline = true opt.number = true opt.wrap = false -- tab, indent opt.expandtab = true opt.smarttab = true opt.aut...
#!/usr/bin/env lua --- Tests on dumocks.ScreenRenderer. -- @see dumocks.ScreenRenderer -- set search path to include src directory package.path = "src/?.lua;" .. package.path local lu = require("luaunit") local sr = require("dumocks.ScreenRenderer") _G.TestScreenRenderer = {} --- Characterization test to determine ...
---------------------------------------------------------------------------- -- channelwatch.lua v0.02 -- by Jason D. Ozubko - 2012,2018 (jdozubko@gmail.com) ---------------------------------------------------------------------------- -- This script file should be placed in the proper VLC playlist parser directory -- F...
local Los = require "plugin.wattageTileEngine.lineOfSight" local ObjectSystem = require "plugin.wattageTileEngine.objectSystem" local Utils = require "plugin.wattageTileEngine.utils" local min = math.min local sqrt = math.sqrt local AggregateLightTransitioner = {} AggregateLightTransitioner.new = function(params) ...
vim.o.completeopt = 'menuone,noselect' -- Completion options (for deoplete) local lspkind = require "lspkind" lspkind.init() -- Setup nvim-cmp. local cmp = require('cmp') cmp.setup({ snippet = { -- REQUIRED - you must specify a snippet engine expand = function(args) vim.fn["vsnip#anonymous"](args.bod...
--Arquivo init.lua --Autor: Elisson Andrade, 2019 dofile("login.lua") --LEDS Verdes gpio.mode(0,gpio.OUTPUT) --LEDS vermelhos, da direita para a esquerda gpio.mode(1,gpio.OUTPUT) gpio.mode(2,gpio.OUTPUT) gpio.mode(3,gpio.OUTPUT) gpio.mode(4,gpio.OUTPUT) gpio.mode(5,gpio.OUTPUT) gpio.mode(6,gpio.OUTPUT) --LED Amarelo ...
local Star = require('star') local StarField = {} StarField.__index = StarField setmetatable(StarField, { __call = function(cls, ...) return cls.create(...) end }) function StarField.getRandomStar(width, height) local x = math.random(-width/4, width/4) local y = math.random(-height...
-- DONT DELETE THIS FILE -- ITS A FAILSAVE LUA FILE!
filter {} location ( "../../build/" .. mpt_projectpathname ) filter {} preferredtoolarchitecture "x86_64" configurations { "Debug", "Release", "Checked", "DebugShared", "ReleaseShared", "CheckedShared" } platforms ( allplatforms ) filter { "platforms:x86" } system "Windows" architecture "x86" filter {...
local ts = require "nvim-treesitter.configs" local parsers = require "nvim-treesitter.parsers" vim.treesitter.set_query("lua", "folds", "") vim.treesitter.set_query("lua", "indents", "") ts.setup { highlight = { enable = true }, incremental_selection = { enable = true, keymaps = { init_selection = "...
component = require("component") computer = require("computer") serialization = require("serialization") sides = require("sides") g = require("gachLib") local rec = require("draconicRec") -- tells refinedStorage to start new crafting redSideNewCrafting = sides.right -- tells draconic infusion to start craft...
object_mobile_tcg_massiff_pet = object_mobile_shared_tcg_massiff_pet:new { } ObjectTemplates:addTemplate(object_mobile_tcg_massiff_pet, "object/mobile/tcg_massiff_pet.iff")
local a=module('_core','libs/Tunnel')local b=module('_core','libs/Proxy')API=b.getInterface('API')cAPI=a.getInterface('cAPI')RegisterServerEvent('_inventory:showInventory')AddEventHandler('_inventory:showInventory',function()local c=source;local d=API.getUserFromSource(c)d:viewInventory()end)RegisterServerEvent('_inven...
--------------------------------------------- -- Tyrranic Blare -- -- Description: Emits an overwhelming scream that damages nearby targets. -- Type: Magical? -- Utsusemi/Blink absorb: Ignores shadows -- Range: Less than or equal to 10.0 -- Notes: Only used by Gulool Ja Ja. ---------------------------------------...
function Doors:ShowSpare1(player) local trace = player:GetEyeTraceNoCursor() local entity = trace.Entity if IsValid(entity) and entity:is_door() and player:GetPos():Distance(entity:GetPos()) < 115 then local can_lock = hook.run('PlayerCanLockDoor', player, entity) or false Cable.send(player, 'fl_door_me...
----------------------------------- -- Area: Windurst Walls -- NPC: Juvillie -- Type: Event Replayer -- !pos -180.731 -3.451 143.138 239 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) player...
--[[--------------------------------------------------------- Duplicator module, to add new constraints or entity classes use... duplicator.RegisterConstraint( "name", funct, ... ) duplicator.RegisterEntityClass( "class", funct, ... ) -----------------------------------------------------------]] ...
--- A physical player in the server -- @classmod Player if SERVER then util.AddNetworkString( "GM-ColoredMessage" ) util.AddNetworkString( "GM-SurfaceSound" ) util.AddNetworkString("impulseNotify") function meta:AddChatText(...) local package = {...} netstream.Start(self, "GM-ColoredMessage", package) end...
--- greetings.lua – turns any document into a friendly greeting --- --- Copyright: © 2021–2022 Contributors --- License: MIT – see LICENSE for details -- Makes sure users know if their pandoc version is too old for this -- filter. PANDOC_VERSION:must_be_at_least '2.17' --- Amends the contents of a document with a sim...
-- 主窗口句柄 local main_window_handle = nil -- 启动配置对话框 local function launch_config() local config_program = fs.ydwe_path() / "bin" / "YDWEConfig.exe" local command_line = string.format('"%s"', config_program:string()) sys.spawn(command_line, fs.ydwe_path()) end -- 启动魔兽 local function launch_warcraft3()...
id = 'V-38537' severity = 'low' weight = 10.0 title = 'The system must ignore ICMPv4 bogus error responses.' description = 'Ignoring bogus ICMP error responses reduces log size, although some activity would not be logged.' fixtext = [==[To set the runtime status of the "net.ipv4.icmp_ignore_bogus_error_responses" kerne...
local OrganismController = {} local Json = require "util.Json" function OrganismController:new(organismConstructor, initialPosition) local self = { organisms; numberOfGenomes; genomeSize; constructor = function (this, initialPosition) this.numberOfGenomes = 50 this.organisms = {} ...
module_version("/1.0.14", "1.0") module_version("/2.0.15", "2.0") module_version("/3.14.15", "3.0")
----------------------------------------------------------------------------------------- -- -- main.lua -- ----------------------------------------------------------------------------------------- -- hide the status bar display.setStatusBar( display.HiddenStatusBar ) -- include the Corona "composer" module local com...
local colors = require "themes.onedark" local present, bufferline = pcall(require, "bufferline") if not present then return end bufferline.setup { options = { offsets = { { filetype = "NvimTree", text = "", padding = 1 } }, buffer_close_icon = "", modified_icon = "", close_icon = "", ...
local function removeItemFromPlayerInventory(playerId, itemId) assert(typeof(playerId) == "string") assert(typeof(itemId) == "string") return { type = script.Name, playerId = playerId, itemId = itemId, replicateTo = playerId, } end return removeItemFromPlayerInventory
return { { name = "2015-08-03-132400_init_oidc_user_ratelimiting_metrics", up = [[ CREATE TABLE IF NOT EXISTS oidc_user_ratelimiting_metrics( identifier text, period text, period_date timestamp without time zone, value integer, PRIMARY KEY (identifier, period_date...
local F, C, L = unpack(select(2, ...)) local strsplit, ipairs, wipe = string.split, ipairs, table.wipe local toggle = 0 local shadeFrame = CreateFrame('Frame') local shadeTexture = shadeFrame:CreateTexture(nil, 'BACKGROUND', nil, -8) shadeFrame:SetFrameStrata('BACKGROUND') shadeFrame:SetWidth(GetScreenWidth() * UI...
function shared_pl_col_logic(a, other) if other.coin then other:obtain() end if other.balloon then other:pop() end end function get_direction_for_shooting(xf) local xdir = 0 local ydir = 0 if btn(1) then xdir = 1 elseif btn(0) then xdir = -1 end ...
local assert = require('assert') local errno = require('errno') local realpath = require('realpath') local function test_realpath_resolve() -- test that resolve pathname for v, match in pairs({ ['.'] = 'lua%-realpath$', ['./test/..'] = 'lua%-realpath$', ['./test/realpath_test.lua'] = 'l...
-- TreeView.lua -- @Author : DengSir (tdaddon@163.com) -- @Link : https://dengsir.github.io -- @Date : 10/20/2018, 4:28:53 PM -- ---@param ns table local ns = select(2, ...) local ipairs, type, setmetatable = ipairs, type, setmetatable local coroutine = coroutine local ceil, min, max = ceil, min, max local Hybrid...
--[[ untestable by automatic tests: ClearUndoMove SetUndoLoc GetUndoLoc IsHighlighted PawnIsPlayerControlled MarkHpLoss GetMoveSkill SetMoveSkill SetRepairSkill ]] local tests = LApi.Tests tests:AddTests{ "PawnGetOwner", "PawnSetOwner", "PawnSetFire", "PawnGetImpactMaterial", "PawnSetImpactMaterial", ...
-- JS<-->Lua glue -- -- Horribly hackish, this is not the right way to do it js.number = 1 js.string = 2 js.object = 3 js.func = 4 js.lua_table = {} js.lua_index = 1 js.to_js = function(x) if type(x) == 'number' then return tostring(x) elseif type(x) == 'string' then return '"' .. x .. '"' elseif type(x) == 'f...
--=================-- local libTabMenu = {} --=================-- -- < Modules > -- local table2 = require "table2" -- < References > -- local constTabMenu = require "constTabMenu" --====================================================-- -- class tabMenuEntry -- -- Contains all cust...
return function() local Component = require(script.Parent.Component) local NoopRenderer = require(script.Parent.NoopRenderer) local Children = require(script.Parent.PropMarkers.Children) local createContext = require(script.Parent.createContext) local createElement = require(script.Parent.createElement) local cre...
-------------------------------------------------------------------------------- -- Module Declaration -- local mod, CL = BigWigs:NewBoss("King Deepbeard", 1456, 1491) if not mod then return end mod:RegisterEnableMob(91797) mod.engageId = 1812 -------------------------------------------------------------------------...
--[[ ########################################################## S V U I By: Failcoder ########################################################## LOCALIZED LUA FUNCTIONS ########################################################## ]]-- --GLOBAL NAMESPACE local _G = _G; --LUA local unpack = _G.unpack; local select...
-- coding: utf-8 --[[ -- PLEASE DO "NOT" EDIT THIS FILE! -- This file is generated by script. -- -- If you want to apply corrections visit: -- http://rom.curseforge.com/addons/addonmanager/localization/ --]] local lang={} lang.CAT = { } return lang
local techHandler = LazarusMod:GetModule('techhandler') techHandler:RemoveTechData(kTechId.GorgeEgg) techHandler:RemoveTechData(kTechId.LerkEgg) techHandler:RemoveTechData(kTechId.FadeEgg) techHandler:RemoveTechData(kTechId.OnosEgg)
local m = require 'model_helpers' local inspect = require 'inspect' local System = {} local Config = require 'models.config' local MiddlewareSpec = require 'models.middleware_spec' local shared_dict = require 'shared_dict' local jor = require 'jor' local crontab...
return {"abandoned","abilities","aboriginal","absolutely","absorption","abstracts","academics","acceptable","acceptance","accepting","accessibility","accessible","accessing","accessories","accessory","accidents","accommodate","accommodation","accommodations","accompanied","accompanying","accomplish","accomplished","acc...
local oldKeyboardSetTextInput = love.keyboard.setTextInput function love.keyboard.setTextInput(config) end
local SwapItem = {} SwapItem.Name = "purchase item" SwapItem.NumArgs = 3 function SwapItem:Call( hUnit, slotA, slotB ) hUnit:ActionImmediate_SwapItems(slotA[1], slotB[1]) end return SwapItem
local Class = require("Classy") ---@class KVstore --- Simple KeyStore ---@field data table all currently held key=value pairs local KVstore = Class("KVstore", {data = {}}) function KVstore:new(data) if data then for k, v in pairs(data) do self.data[k] = v end end end function KVstore:setValue(key, value) self.data...
-- -- Abstract: animated sprite or "movieclip" library -- This library assembles animation sequences from individual image files. For more advanced -- texture memory handling, see the "sprite sheet" feature in Corona Game Edition. -- -- Version: 2.1 -- -- Copyright (C) 2010 ANSCA Inc. All Rights Reserved. -- -- Perm...
function isHarshad(n) local s=0 local n_str=tostring(n) for i=1,#n_str do s=s+tonumber(n_str:sub(i,i)) end return n%s==0 end local count=0 local harshads={} local n=1 while count<20 do if isHarshad(n) then count=count+1 table.insert(harshads, n) end n=n+1 end p...
local secrule = 'SecRule' local secaction = 'SecAction' local args = 'ARGS' local operator = 'foo' local actions = "block,id:12345,msg:'hello world'" describe("parse_token", function() local lib = require "resty.waf.translate" local p = lib.parse_tokens it("lives ok with four tokens", function() stub...
local engine = require('engine') local game = Game:create() game:start() print(string.format("The target to reach is %03d", game.target)) local numbers = game.numbers[1] for i = 2, #game.numbers do numbers = numbers .. ', ' .. game.numbers[i] end print(string.format("\nThe numbers are %s", numbers)) -- Okay go ti...
-- SearchModule.lua -- Krysmatic local SearchModule = {} function SearchModule:SearchGame(directory, SEARCH_ID) local children = directory:GetChildren() local output = {} local function PrintResult(typeName, model) print("--------------------------------------------------------------------------------...
local skynet = require "skynet" local snax = require "skynet.snax" local msg = "I am a snax service" function init(...) print ("snax service start: ", msg, ...) end function exit(...) print ("snax service exit: ", ...) end function response.hello(hello) return hello end function accept.hello(hello) ...
ENT.Type = "anim" ENT.Base = "base_gmodentity" ENT.Author = "n00bmobile"
local database = require("database") local gps = require("gps") local posUtil = require("posUtil") local scanner = require("scanner") local action = require("action") local config = require("config") local args = {...} local function spreadOnce() for slot=2, config.farmSize^2, 2 do gps.go(posUtil.farmToGl...
local player = ... local pn = ToEnumShortString(player) local p = PlayerNumber:Reverse()[player] local show = false local function getInputHandler(actor) return (function (event) if event.GameButton == "Select" and event.PlayerNumber == player then if event.type == "InputEventType_FirstPress" t...
title = "Hello LowRez" author = "Calle Englund" shortname = "hello-lowrez" version = "0.0.1" copyright_message = "Copyright (c) 2019 Calle Englund"
-- -- api.lua -- Implementation of the workspace, project, and configuration APIs. -- Author Jason Perkins -- Copyright (c) 2002-2015 Jason Perkins and the Premake project -- local p = premake p.api = {} local api = p.api local configset = p.configset --- -- Set up a place to store the current active objects i...
local consts = require("__LaneBalancer__.const") data:extend( { { type = "item", name = "lane-balancer", icon = consts.graphicsPath.."balancer1.png", icon_size = 32, subgroup = "belt", order = "e[balancer]-a[lane-balancer]", place_result = "lane-balancer", stack_size = 50 }, { type = "item", nam...
if mg.lua_type ~= "websocket" then mg.write("HTTP/1.0 200 OK\r\n") mg.write("Connection: close\r\n") mg.write("\r\n") mg.write("<!DOCTYPE HTML>\r\n") mg.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n") mg.write("<head>\r\n") mg.write("<meta charset=\"UTF-8\"></meta>\r\n") mg.write("<title>Serv...
local curPlatform = g_application:getTargetPlatform() local bIsIosAndUseSimpleAudioEngine = false if curPlatform == cc.PLATFORM_OS_IPHONE or curPlatform == cc.PLATFORM_OS_IPAD then include('global_utils/ios_utils.lua') bIsIosAndUseSimpleAudioEngine = platform_ios_is_use_simple_audio_engine() end -- 音频播放相关 if n...
local label = require("engine/ui/label") -- overlay class: allows to draw labels on top of the screen local overlay = new_class() -- parameters -- layer int level at which the overlay should be drawn, higher on top -- state vars -- labels {string: label} table of labels to draw, identified by...
proj = "project18a" -- full init = -- 1 init -- 2 WIFI -- 3 TIME -- then your "project" is ready to start -- short init might skip WIFI/TIME -- following makes missing file into non-panic: local df=dofile dofile=function(f) if file.exists(f) then df(f) else print("File ", f, "...
local colors = { { hex="#ffa0a0" }, { hex="#ffe0a0" }, { hex="#ffffa0" }, { hex="#ffffa0" }, { hex="#ffffa0" }, { hex="#ffffa0" }, { hex="#ffffa0" }, { hex="#e0ffa0" }, { hex="#a0f...
---------------------------------------------------------------------- -- -- Deep Genetic Programming: Reifying an AI researcher. -- -- Set of modules the researcher has access to and init functions -- * Initialize tables -- * Setup list of models -- * Processing functions -- ----------------------------------...
ITEM.name = "Hula Doll" ITEM.desc = "An old hula doll, the head still bobs when shaken" ITEM.model = "models/props_lab/huladoll.mdl" ITEM.width = 1 ITEM.height = 1 ITEM.money = {1, 4}
-- Copyright (C) Jingli Chen (Wine93) -- Copyright (C) Jinzheng Zhang (tianchaijz) local base = require "resty.addon.base" local register = base.register local register_handlers = base.register_handlers local init = base.init local run = base.run local exec = base.exec local next_handler = base.next_handler local...
local arch = ({ aarch64='arm64', x86_64='x86', })[config.target.platform:match('[^-]*')] sub('tools.ninja', function() toolchain(config.host) exe('unifdef', {'scripts/unifdef.c'}) end) rule('header', 'sed -E -f $dir/header.sed $in >$out.tmp && { $outdir/unifdef -U__KERNEL__ -D__EXPORTED_HEADERS__ $out.tmp >$out; [...
setDefaultTab("Main") local panelName = "newHealer" local ui = setupUI([[ Panel height: 19 BotSwitch id: title anchors.top: parent.top anchors.left: parent.left text-align: center width: 130 !text: tr('Friend Healer') Button id: edit anchors.top: prev.top anchors.left: prev.r...
--- wand cores minetest.register_craftitem("sorcery:basic_core", {description = "Basic Wand Core", inventory_image = "basic_core.png"}) minetest.register_craft({ output = "sorcery:basic_core", recipe = { {"", "default:glass", ""}, {"default:glass", "default:torch", "default:glass"}, ...
local Animal = require("animal") local Timer = require("timer") local lume = require("vendor/lume") local Fox = {} setmetatable(Fox, {__index = Animal}) Fox.speed = 100 Fox.spacing = 30 Fox.visionDistance = 300 Fox.gestationPeriod = 60 Fox.color = {1, .5, 0} Fox.size = 15 function Fox.new(x, y, gender) local sel...
#!/opt/local/bin/lua local xml_string = [=[<?xml version="1.0" encoding="UTF-8"?> <ns1:basic_gYear xmlns:ns1="http://test_example.com">1973</ns1:basic_gYear>]=] mhf = require("schema_processor") basic_gYear = mhf:get_message_handler("basic_gYear", "http://test_example.com"); local content, msg = basic_gYear:from_xm...
local function removeOsSpecificLibraryAffixes(filename) if path.islinkable(filename) then local basename = path.getbasename(filename) if os.host() == "windows" then return basename elseif string.startswith(basename, "lib") then return string.sub(basename, 4, -1) else return basename end end return...
--[[ PLAYER SPAWN POINT LIST revive_point(<map_id>, <x_pos>, <y_pos>); start_point(<map_id>, <x_pos>, <y_pos>); respawn_point(<map_id>, <x_pos>, <y_pos>); --]] start_point(19, 5196.1, 5182.86); respawn_point(19, 5212.27, 5184.06);
-- Path of Building -- -- Module: Tree Tab -- Passive skill tree tab for the current build. -- local ipairs = ipairs local t_insert = table.insert local m_min = math.min local TreeTabClass = newClass("TreeTab", "ControlHost", function(self, build) self.ControlHost() self.build = build self.viewer = new("PassiveTr...
local addOnName, ns = ...; local RPTAGS = RPTAGS; local Module = RPTAGS.queue:GetModule(addOnName); Module:WaitUntil("before MODULE_G", function(self, event, ...) local Utils = RPTAGS.utils; local Config = Utils.config; local Locale = Utils.locale; local loc ...
--waf.lua
if ( SERVER ) then AddCSLuaFile( "shared.lua" ) end SWEP.BulletLength = 9 SWEP.CaseLength = 19 SWEP.MuzVel = 255.905 SWEP.Attachments = { [1] = {"reflex"}} SWEP.InternalParts = { [1] = {{key = "ergonomichandle"}}} if ( CLIENT ) then SWEP.PrintName = "Glock 18" SWEP.Author = "Counter-Strike" SWEP.Sl...
-- Copyright (c) 2020 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT describe("game.ui.moon_display", function() require "game.ui" local moon = require "game.entities.moon" it("displays the text of the current state", function() local m...
local net = require 'net' local sh = require 'shell' local argv = {...} local dst = table.remove(argv, 1) local path = net.path("home", dst) table.remove(path,1) sh.execute("connect " .. table.concat(path, "; connect ") .. '; '..table.concat(argv, "; "))
require "lib" require("prototypes.item")
return { name={ [1] = "UnexposedDecl"; [2] = "StructDecl"; [3] = "UnionDecl"; [4] = "ClassDecl"; [5] = "EnumDecl"; [6] = "FieldDecl"; [7] = "EnumConstantDecl"; [8] = "FunctionDecl"; [9] = "VarDecl"; [10] = "ParmDecl"; [11] = "ObjCInterfaceDecl"; [12] = "ObjCCategoryDecl"; [13] = "ObjCProtocolDecl"; [14] = "ObjCProperty...
return { level = 87, need_exp = 260000, clothes_attrs = { 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, }, }
-- Code for basic item handling -- cItem: Objects which can be picked up and carried -- TODO cItem = {__metatable=cItem, __index=cItem} cItem.size = 1 -- Nominally, number of coke cans (volume) cItem.weight = 0 -- Nominally, in kg -- TODO cItem.CanTouch, CanPickup, CanDrop -- cWieldable: Objects which can be used ...
#!/usr/bin/env luajit -- (c) 2014 Team THORwIn local ok = pcall(dofile,'../fiddle.lua') if not ok then dofile'fiddle.lua' end local util = require'util' local xbox360 = require 'xbox360' local rospub = require 'rospub' local signal = require'signal'.signal local gettime = require'unix'.time require'hcm' rospub.init('...
--[[ TheNexusAvenger Implementation of a command. --]] local BaseCommand = require(script.Parent.Parent:WaitForChild("BaseCommand")) local Command = BaseCommand:Extend() --[[ Creates the command. --]] function Command:__new() self:InitializeSuper("renameteam","BasicCommands","Renames a given team.") self....
for _, objectReference in pairs(script:GetCustomProperties()) do objectReference:WaitForObject():LookAtLocalView(false) end
--- === plugins.core.console === --- --- Search Console local require = require local application = require "hs.application" local config = require "cp.config" local tools = require "cp.tools" local unpack = table.unpack local mod = {} -- plugins.core.console._app...
local canEnd = false function onEndSong() -- Block the first countdown and start a timer of 0.8 seconds to play the dialogue if isStoryMode and not canEnd then setProperty('inCutscene', true); triggerEvent('startDia') canEnd = true runTimer('endDialogue',2) return Function_Stop; else return Function_Cont...