content
stringlengths
5
1.05M
util.AddNetworkString('ChangeCamera') util.AddNetworkString('ChangeFollowCamera') util.AddNetworkString('RemoveCamera') hook.Add('OnChangeCamTrigger', 'ChangeCamera', function() local activator, caller = ACTIVATOR, CALLER local trigger_postfix = '_TRIGGER' local camName = caller:GetName() camName = string.sub(...
local g = vim.g local cmd = vim.cmd g.dart_format_on_save = 1 g.dart_style_guide = 2
object_static_structure_dathomir_static_undead_liver = object_static_structure_dathomir_shared_static_undead_liver:new { } ObjectTemplates:addTemplate(object_static_structure_dathomir_static_undead_liver, "object/static/structure/dathomir/static_undead_liver.iff")
local cjson = require "cjson" local dbbase = require "db.base_db" local reqArgs = require "common.request_args" local redis = require "redis.zs_redis" local systemConf = require "common.systemconfig" local resty_md5 = require "resty.md5" local str = require "resty.string" local uuid = require 'resty.jit-uuid' local htt...
local AS = unpack(AddOnSkins) if not AS:CheckAddOn('Skada') then return end function AS:Skada() local L = LibStub('AceLocale-3.0'):GetLocale('Skada', false) function Skada:ShowPopup() AS:AcceptFrame(L['Do you want to reset Skada?'], function(self) Skada:Reset() self:GetParent():Hide() end) end local SkadaDisp...
local constant_keys = { 'crypto_sign_PUBLICKEYBYTES', 'crypto_sign_SECRETKEYBYTES', 'crypto_sign_BYTES', 'crypto_sign_SEEDBYTES', 'crypto_sign_ed25519_PUBLICKEYBYTES', 'crypto_sign_ed25519_SECRETKEYBYTES', 'crypto_sign_ed25519_BYTES', 'crypto_sign_ed25519_SEEDBYTES', } return constant_keys
Graphics = LCS.class{} SB_GFX_DIR = Path.Join(SB_DIR, "gfx/") SB_GFX_DRAW_DIR = Path.Join(SB_GFX_DIR, "draw/") SB.IncludeDir(SB_GFX_DIR) SB.IncludeDir(SB_GFX_DRAW_DIR) function Graphics:init() self:__InitTempTextures() end
return { ['sv_gamemode'] = 1, ['mp_hudscale'] = 1, ['mp_unbuildable'] = 'turret', ['mp_hud'] = 8+64, ['mp_radar'] = 0, ['mp_respawndelay'] = 255, ['mp_luamap'] = 1 }
local interface = {} interface["func"] = {} interface["setting"] = {} interface["db"] = DB_MANAGER interface["log"] = LOGGER_IN interface["tool"] = { -- 检查某个函数是否存在(或被实现) method_exist = function (name) local state, func = pcall(require, name) if state then return func ...
local debug = {} function debug:setup_gvv() if script.active_mods["gvv"] then require("__gvv__.gvv")() end end return debug
--*********************************************************** --** ROBERT JOHNSON ** --*********************************************************** require "TimedActions/ISBaseTimedAction" ---@class ISFixGenerator : ISBaseTimedAction ISFixGenerator = ISBaseTimedAction:derive("ISF...
--[[ Jericho's system.print() extension -- https://github.com/Jericho1060 Display content in lua chat channel with colors Source : https://github.com/Jericho1060/DualUniverse/blob/master/tools/console%20text%20colors.lua ]] system.printColor = function(message, color) system.print('<span style="color:' .. c...
local function f(i,sum) return i-1, sum + 1 end local sum = 0 local j = 1000 while (j > 0) do if (j % 10 == 0) then io.write('.'); io.flush() end local i = 10000 while (i > 0) do i,sum = f(i,sum) end j = j - 1 end print (sum)
-- Generated by CSharp.lua Compiler local System = System local SlipeClientGame local SlipeMtaDefinitions local SlipeSharedElements local SlipeSharedHelpers local SystemNumerics System.import(function (out) SlipeClientGame = Slipe.Client.Game SlipeMtaDefinitions = Slipe.MtaDefinitions SlipeSharedElements = Slipe....
Font = class() -- - The Hershey Fonts were originally created by Dr. -- A. V. Hershey while working at the -- U. S. National Bureau of Standards. -- Useful Links: -- http://emergent.unpythonic.net/software/hershey -- http://paulbourke.net/dataformats/hershey/ -- Re-encoding of font information and other shenanigans ...
ITEM.name = "ОЦ-14 «Гроза»" ITEM.desc = "Опытный образец автоматно-гранатомётного комплекса, российская модификация стандартного «Гром-С14», созданная специально для действующих в Зоне спецподразделений. Отличается увеличенным размером магазина. \n\nБоеприпасы 9х39" ITEM.price = 40488 ITEM.class = "weapon_cop_groza...
--- ### Select bus driver between classic PCI and VFIO module(...,package.seeall) local ffi = require('ffi') local C = ffi.C local lib = require('core.lib') local pci = require('lib.hardware.pci') local vfio = require('lib.hardware.vfio') local memory = require("core.memory") devices = {} map_devices = {} functi...
return Def.ActorFrame{ PREFSMAN:SetPreference("DisabledSongs",0); --Clean "DisabledSongs" preference LoadFont("Common normal")..{ InitCommand=cmd(x,_screen.cx;y,_screen.cy;zoom,0.9;maxwidth,_screen.w*0.9); OnCommand=cmd(settext,"DisabledSongs setting resetted\n relaunch game in order to changes make effect\...
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2012-2014 Kenny Shields -- --]]------------------------------------------------ return function(loveframes) ---------- module start ---------- -- menuoption object local newobject = loveframes.newObject(...
local abs = math.abs local floor = math.floor local max = math.max local min = math.min local sort = table.sort local vehicle_types = { ["locomotive"] = true, ["cargo-wagon"] = true, ["car"] = true, } local train_types = { ["locomotive"] = true, ["cargo-wagon"] = true, } local default_masses = { ["locomoti...
frenzied_donkuwah = Creature:new { objectName = "@mob/creature_names:frenzied_donkuwah", randomNameType = NAME_GENERIC, randomNameTag = true, socialGroup = "donkuwah_tribe", faction = "donkuwah_tribe", level = 39, chanceHit = 0.42, damageMin = 365, damageMax = 440, baseXp = 3915, baseHAM = 9000, baseHAMmax ...
function menu_load(x, y) gamestate = "menu" musicvolume = 0 menumusic:setVolume(musicvolume) playsound(menumusic) pl = nil coins = {} menuoffset = y or 0 menuoffsett = y or 0 menuoffsetx = x or 0 menuoffsetxt = x or 0 pitch = 0 rotation = pi075 wantedbackground = {0, 0, 0} coincount = 0 dra...
local assets = { Asset("ANIM", "anim/cave_exit_lightsource.zip"), } local lightColour = {180/255, 195/255, 150/255} local function TurnOn(inst) inst.AnimState:PlayAnimation("on") inst.AnimState:PushAnimation("idle_loop", false) inst.components.lighttweener:StartTween(inst.Light, 0, .9, .9, nil, 0) ins...
local wsmode = 1 local jpmode = 1 local gothrough = false local lotptog = false local bodyang = nil local cameratoggle = false local spintoggle = false local flytoggle = false local scg = Instance.new('ScreenGui',game.Players.LocalPlayer.PlayerGui) scg.ResetOnSpawn = false local frm = Instance.new('Frame',scg) frm.Bor...
if not modules then modules = { } end modules ['luatex-font-mis'] = { version = 1.001, comment = "companion to luatex-*.tex", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } if context then ...
local sound = require 'vendor/TEsound' local Dialog = require 'dialog' local Timer = require 'vendor/timer' local Gamestate = require 'vendor/gamestate' local Prompt = require 'prompt' local fonts = require 'fonts' local Dealer = {} Dealer.__index = Dealer -- Nodes with 'isInteractive' are nodes which the player can i...
-- misc. functions supplementing os table -- utility metatable for making tables key-weak aux.weak_k_mt = { __mode = "k" } -- utility metatable for making tables fully weak aux.weak_mt = { __mode = "kv" } -- code to normalize paths function aux.absPath(path) local dir, name = path:match("^(.-/?)([^/]-)$") if #...
jedi_earings = { description = "", minimumLevel = 0, maximumLevel = 0, lootItems = { {itemTemplate = "earingLST", weight = 3500000}, {itemTemplate = "ch_earing", weight = 3000000}, {itemTemplate = "earingJT", weight = 3500000} } } addLootGroupTemplate("jedi_earings", jedi_earings)
object_tangible_loot_creature_loot_collections_treasure_hunter_stone_03 = object_tangible_loot_creature_loot_collections_shared_treasure_hunter_stone_03:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_treasure_hunter_stone_03, "object/tangible/loot/creature/loot/collections/treasure...
AddCSLuaFile() DEFINE_BASECLASS("emod_base") EMod.RegisterComponent(ENT, "E-Battery", EMod.ComponentsTypes.Source, "Energy Sources", true, "EMod Official Pack") function ENT:EModSetup() self:AddPin(EMod.Plus, Vector(-4.902077, -6.536953, 1.198760)) self:AddPin(EMod.Zero, Vector(-4.902195, 6.757458, 1.200500)) self:...
local ffi = require( "ffi" ) -- Normal bindings local overlay = require "ffi.overlay" -- Kbd table local kbd = {} function kbd.keyboardIterator(keyboards) local current = 0 return function() if current == 0 then -- The first element. current = keyboards.keyboards else -- Elements after the ...
for i = 1, 10, 2 do print(i) end local obj = { } obj[1] = 3.14 obj[2] = "nihaop" -- print(obj[1]) -- print(obj["1"]) print(obj[2.0]) -- assert(obj[1] == 13.14)
ENT.Type = 'anim' ENT.Base = 'bw_machine_base' ENT.PrintName = 'Drink Mixer' ENT.Author = 'n00bmobile' ENT.Category = 'n00bmobile' ENT.Spawnable = true ENT.AdminSpawnable = true --[Customizable Values]-- ENT.MaxPower = 100 ENT.Cooldown = 600 ------------------------- function ENT:SetupDataTables() self:NetworkVar('Bo...
local _, ns = ... ns.L = {} local localizations = {} local locale = GetLocale() setmetatable(ns.L, { __call = function(_, newLocale) localizations[newLocale] = {} return localizations[newLocale] end, __index = function(_, key) local localeTable = localizations[locale] return localeTable and localeTable[key...
-- slb_racing trigger ENT.Base = "base_entity" ENT.Type = "brush" function ENT:Initialize() end function ENT:StartTouch( entity ) if entity:IsPlayer() then entity:SetNetworkedBool( "IsRacing", true ) entity:SetTeam(TEAM_RACING) end if not entity:IsPlayer() then local phys = entity:GetPhysicsObject() if ...
local Input = {} local self = Input -- TODO: rebinding Input.key_down = {} Input.key_pressed = {} Input.key_released = {} Input.aliases = { ["up"] = {"up"}, ["down"] = {"down"}, ["left"] = {"left"}, ["right"] = {"right"}, ["confirm"] = {"z", "return"}, ["cancel"] = {"x", "lshift", "rshift"}, ...
local Model = require "meiru.db.model" local Session = Model("Session") function Session:ctor() -- log("Session:ctor id =",self.id) end return Session
-- Tencent is pleased to support the open source community by making LuaPanda available. -- Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. -- Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of th...
-- don't bother for Casual gamemode if SL.Global.GameMode == "Casual" then return end local player = ... local judgments = {} for i=1,GAMESTATE:GetCurrentStyle():ColumnsPerPlayer() do judgments[#judgments+1] = { W1=0, W2=0, W3=0, W4=0, W5=0, Miss=0 } end return Def.Actor{ JudgmentMessageCommand=function(self, pa...
----------------------------------------------------------------------------------------------- local title = "Trunks" local version = "0.1.4" local mname = "trunks" ----------------------------------------------------------------------------------------------- -- Code by Mossmanikin & Neuromancer abstract_trunks =...
--[[ Copyright (C) 2018-2020 The DMLab2D Authors. 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in...
----------------------------------------------------------------------------- -- Name: minimal.wx.lua -- Purpose: 'Minimal' wxLua sample -- Author: J Winwood -- Modified by: -- Created: 16/11/2001 -- RCS-ID: $Id: veryminimal.wx.lua,v 1.7 2008/01/22 04:45:39 jrl1 Exp $ -- Copyright: (c) 2001 J...
-- nvim-cmp highlights local lush = require("lush") local base = require("lush_jsx.base") local M = {} M = lush(function() return { -- nvim-cmp CmpItemKind {base.LushJSXYellow}, CmpItemAbbrMatch {base.LushJSXFg1}, CmpItemAbbr {base.LushJSXFg4}, CmpItemMenu {base.LushJSXAqua} } end) return M
num = 42 s = "walternate" t = "double-quotes are also fine" u = " Double brackets\n start and end\n multi-line strings." t = nil while num < 50 do num = num + 1 end if num > 40 then print("over 40") elseif s ~= "walternate" then io.write("not over 40\n") else thisIsGlobal = 5 local line ...
object_mobile_dressed_rebel_communication_male_01 = object_mobile_shared_dressed_rebel_communication_male_01:new { } ObjectTemplates:addTemplate(object_mobile_dressed_rebel_communication_male_01, "object/mobile/dressed_rebel_communication_male_01.iff")
dofile(ModPath .. "infcore.lua") -- If we successfully pick up an ammo pickup and we have the upgrade, charge the bulletstorm meter local ammopickup_pickup_orig = AmmoClip._pickup function AmmoClip:_pickup(unit) local result = ammopickup_pickup_orig(self, unit) if result and unit == managers.player:player_unit() an...
cflags{ '-I $dir', '-isystem $builddir/pkg/freetype/include', '-isystem $builddir/pkg/fribidi/include', } nasmflags{ '-D ARCH_X86_64=1', '-D HAVE_ALIGNED_STACK=1', '-D HAVE_CPUNOP=0', '-D private_prefix=ass', '-i $srcdir/libass/', '-f elf64', '-P $outdir/PIC.asm', } pkg.hdrs = copy('$outdir/include/ass', '$s...
local DB = require("dashboard.model.db") return function(config) local node_model = {} local mysql_config = config.store_mysql local db = DB:new(mysql_config) local table_name = 'persist_log' function node_model:get_stat(limit, group_by_day) local result, err, sql if group_by_d...
--- === plugins.zoom.shortcuts === --- --- Trigger Zoom Shortcuts local require = require --local log = require "hs.logger".new "actions" local application = require "hs.application" local image = require "hs.image" local config ...
ITEM.name = "Scrap Revolver" ITEM.description = "An unusually crafted revolver using .357 rounds. Good enough for personal defense." ITEM.model = "models/weapons/yurie_rustalpha/wm-revolver.mdl" ITEM.class = "tfa_rustalpha_revolver" ITEM.weaponCategory = "secondary" ITEM.width = 2 ITEM.height = 1 ITEM.chance = 17
local animPos, lastx, lasty, jumpTypes, jumpTimes, moveDirs, jumpStarted local moveTime = 0 local backJumped, jTimer, awTime, globalWait, stageEvents, seNum, curEvent local needToDecrease local AnimList, AnimListNum local FunctionList, FunctionListNum local skipFuncList local skipping local baseInputMask = 0xFFFFFFFF l...
----------------------------------- -- Area: Windurst Waters -- NPC: Hakeem -- Type: Cooking Image Support -- !pos -123.120 -2.999 65.472 238 ----------------------------------- require("scripts/globals/status") require("scripts/globals/crafting") local ID = require("scripts/zones/Windurst_Waters/IDs") ---------------...
local screenSize = Vector2(guiGetScreenSize()) local windowSize = Vector2(240, 120) local currentCallback local ui = {} function admin.ui.hideConfirmWindow() ui.window.visible = false currentCallback(false) currentCallback = nil end function admin.ui.showConfirmWindow(title, text, callback) if ui.window.visible t...
include "app.ui.base.init" _ENV=namespace "ui" using_namespace "luaClass" using_namespace "container" using_namespace "game" class("SkillDetailUI"){ super(cc.Node); super(LUIObject); SINGAL.skillUsed("skill","cardUI"); public{ FUNCTION.SkillDetailUI(function(self,skill,contentSize) ...
-- -- created with TexturePacker (http://www.codeandweb.com/texturepacker) -- -- $TexturePacker:SmartUpdate:a71a13373f387aa5f10d9c8c01bef7df:5ad5675d5cd591fb77929de69c088943:cf8ab4992190eb44f97f06311ef326d7$ -- -- local sheetInfo = require("mysheet") -- local myImageSheet = graphics.newImageSheet( "mysheet.png", sheetI...
Config = {} Config.Locale = 'fr' Config.green = 56108 Config.grey = 8421504 Config.red = 16711680 Config.orange = 16744192 Config.blue = 2061822 Config.purple = 11750815 Config.webhook = "https://discordapp.com/api/webhooks/7393100...
-- Author : olipcs -- Create Date : 8/12/2009 -- Version : 0.1 -- Credits: Many thanks goes to Jafula for the awsome JAMBA addon -- Nearly all code where copy & pasted from Jafulas JAMBA 0.5 addon, -- and only small additions where coded by me. -- So again, many thanks Jafula, for makin...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by shuieryin. --- DateTime: 12/01/2018 9:29 PM --- function visualizeBoundaryLinear(X, y, model, plot) --VISUALIZEBOUNDARYLINEAR plots a linear decision boundary learned by the --SVM -- VISUALIZEBOUNDARYLINEAR(X, y, model) plots a linea...
-- Random numbers along a Normal curve -- @author Validark -- @original https://github.com/Quenty/NevermoreEngine/blob/8f9cbd9b870b3f061457a5c713d84ed097a05ccd/src/probability/src/Shared/Probability.lua --[[ MIT License Copyright (c) 2014-2021 Quenty Permission is hereby granted, free of charge, to any person obtain...
function RegenHp(unit) local hp_max = BlzGetUnitMaxHP(unit) local hp = (BlzGetUnitRealField(unit, UNIT_RF_HP)) local hp_regen = (BlzGetUnitRealField(unit, UNIT_RF_HIT_POINTS_REGENERATION_RATE)) local hp_heal = (((hp_max + .0) - hp) / 20.0) + hp_regen local hp_result = math.ceil( hp + hp_...
local __ActionButton_OnUpdate; local function __BigFoot_ActionButton_UpdateUsable(self) if not BigFoot_DistanceAlert then return end local icon = self.icon; if ( IsActionInRange( ActionButton_GetPagedID(self)) == false ) then icon:SetVertexColor(0.5, 0.1, 0.1); else local isUsable, notEnoughMana = Is...
--[[ -- Asteroid Class -- ]] Asteroid = Class{} --[[ Asteroid takes an x and y for starting position as well as a radius to determine size. Initializes dx and dy with random values in set ranges ]] function Asteroid:init(x, y, radius, stage) self.x = x self.y = y self.radius = radius self.s...
object_tangible_meatlump_hideout_shared_meatlump_hotdog_grill_01 = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/meatlump/hideout/shared_meatlump_hotdog_grill_01.iff" } ObjectTemplates:addClientTemplate(object_tangible_meatlump_hideout_shared_meatlump_hotdog_grill_01, "object/tangible/m...
--[[ File-Author: Pyrr File-Hash: 721f84fb9a18e42b9211590d4fcd63ef519c8efb File-Date: 2020-04-30T22:04:46Z ]] local BUILD = tonumber("20200430220446") or 0 if not ptl then ChatFrame1:AddMessage("|cffff0000OS-Fix error: ptl not found: PyLib required (https://rom.curseforge.com/projects/aa_pylib)")return end if not pyli...
--====================================================================-- -- dmc_widget/widget_style/textfield_style.lua -- -- Documentation: http://docs.davidmccuskey.com/ --====================================================================-- --[[ The MIT License (MIT) Copyright (c) 2015 David McCuskey Permission...
--[[Intention of this script is to turn Christmas lights on and off based on sunrise and sunset. Script will run every third minute and only from November to February. Setting debug variable true, script prints debug information to Domoticz's log Own variable christmasLightsOnTime (type: Time) is used to store time i...
return { { effect_list = { { type = "BattleBuffAddAttr", trigger = { "onAttach", "onRemove" }, arg_list = { attr = "dodgeRateExtra", number = 0.01 } } } }, { effect_list = { { type = "BattleBuffAddAttr", trigger = { "onAttach", "onRemove" }...
// ============================================================================================ // /* * Wildfire Servers - Portal RP - Base Addon * File description: Event Power Box serverside script file * Copyright (C) 2022 KiwifruitDev * Licensed under the MIT License. */ // ===================================...
local luaunit = require("luaunit") local xmlua = require("xmlua") TestCDATASection = {} function TestCDATASection.test_path() local document = xmlua.XML.parse([=[ <root><![CDATA[This is <CDATA>]]></root> ]=]) local cdata_section = document:search("/root/text()") luaunit.assertEquals(cdata_section[1]:path(), ...
-- factorial -- return factorial of 'n', return 'nil' otherwise function fact(n) if type(n) ~= "number" or n < 0 or n%1 ~= 0 then -- It's not a number, or positive or integer, wrong input! return nil end if n == 0 then return 1 else return n*fact(n-1) end end
local Plugin = script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent local Libs = Plugin.Libs local Roact = require(Libs.Roact) local Constants = require(Plugin.Core.Util.Constants) local ContextGetter = require(Plugin.Core.Util.ContextGetter) local ContextHelper = require(Plugin.Core.Util.ContextHelper) loc...
local M = {} M.log = print local function log(...) M.log(...) end local function get_metadata_filename() return sys.get_save_file(sys.get_config("project.title"), "liveupdate_meta") end local function load_metadata() return sys.load(get_metadata_filename()) end local function checksum(buffer) return hash_to_he...
--- Utilities for libtess2 plugin. -- -- 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,...
return {'fohn','fohnen','fohnde','fohns'}
object_mobile_target_dummy_stormtrooper = object_mobile_shared_target_dummy_stormtrooper:new { } ObjectTemplates:addTemplate(object_mobile_target_dummy_stormtrooper, "object/mobile/target_dummy_stormtrooper.iff")
require 'torch' require 'optim' require 'rosenbrock' require 'l2' x = torch.Tensor(2):fill(0) fx = {} state = {} config = {} for i = 1,10001 do x,f=optim.adamax(rosenbrock,x,config,state) if (i-1)%1000 == 0 then table.insert(fx,f[1]) end end print() print('Rosenbrock test') print() print('x=');print(x...
local Object = require "classic" local date = require "date" local base64 = require "base64" local EscherFactory = require "kong.plugins.escher.escher_factory" local EscherWrapper = Object:extend() local function parse_headers(ngx_headers) local headers = {} for key, value in pairs(ngx_headers) do ta...
------------------------------ -- python specific settings -- ------------------------------ local keymap = vim.api.nvim_set_keymap -- UI -- {{{ vim.bo.tabstop=4 vim.bo.softtabstop=4 vim.bo.shiftwidth=4 vim.bo.textwidth=79 vim.bo.expandtab = true vim.bo.autoindent = true vim.bo.fileformat = "unix" vim.g.formatters_...
Stick = class('Stick') function Stick:initialize(x1, y1, x2, y2, texture) self.x = x1 self.y = y1 self.rotation = math.atan2(y2 - y1, x2 - x1) self.length = math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)) if texture then self.texture = texture else self.texture = love.graphics.newCanvas(1,...
-- Test Sword Item item = {} item.graphic = "items/sword:main" item.groundGraphic = "items/sword:ground" item.stats = {minDamage = "+ 3", maxDamage = "+ 7"} item.itemType = "sword" item.name = "Sword" item.prefix = "Wooden" item.postfix = "of Test"
TerrainChunk = Object:extend() function TerrainChunk:new(scale, image, pos) self.texture = image self.textureHeight = 0 self.textureWidth = 0 self.x = 0 self.y = 0 self.id = love.math.random() if not (pos == nil) then self.x = pos.x or pos[1] self.y = pos.y or pos[2] end if not (self.texture == nil) then ...
--[[ ------------------------------------------ change "LuaStat" in your project if you need specific another directory ------------------------------------------ THIS PROGRAM is developed by Hubert Ronald https://sites.google.com/view/liasoft/home Feel free to distribute and modify code, but keep reference to...
return {'jhinkoe'}
local TimerList do local time = os.time TimerList = {} local meta = {__index = TimerList} --[[@ @name new @desc Creates a new instance of TimerList. @param obj?<table> The table to turn into a TimerList. @returns TimerList The new TimerList object. @struct { last = Timer -- the last timer (the one th...
local Frame = script.Parent local PhoneButton = Frame:WaitForChild("HomeScreenApps"):WaitForChild("Phone") local BackButton = Frame:WaitForChild("PhonePage"):WaitForChild("Back") local HomeScreenApps = Frame:WaitForChild("HomeScreenApps"):GetChildren() local Contact = Frame.PhonePage:WaitForChild("Contact") local Peop...
local varm_util = require("modules/varm_util") -- Include individual node definitions and preprocessors. local node_types = require("modules/fsm_node_defs") local FSMNodes = {} -- Create the initial filesystem structure for the project, using -- information stored in the startup 'Boot' node. Store relevant -- inform...
ZPClass.Name = "HumanHeavyClassName" ZPClass.Description = "HumanHeavyClassDescription" ZPClass.MaxHealth = 150 ZPClass.Armor = 100 ZPClass.PModel = "models/player/combine_super_soldier.mdl" ZPClass.Speed = 210 ZPClass.RunSpeed = 100 ZPClass.CrouchSpeed = 0.3 ZPClass.Gravity = 1.2 ZPClass.Battery = 200 ZPClass.Breath =...
local helpers = require("spec_helper") describe("cliargs - options", function() local cli before_each(function() cli = require("cliargs.core")() end) describe('defining options', function() it('requires a key', function() assert.error_matches(function() cli:option() end, 'Key and ...
--- -- @author wesen -- @copyright 2019 wesen <wesen-ac@web.de> -- @release 0.1 -- @license MIT -- local BaseClientOutput = require("AC-ClientOutput/ClientOutput/BaseClientOutput") local StringSplitter = require("AC-ClientOutput/ClientOutput/ClientOutputString/StringSplitter") local StringWidthCalculator = require("AC...
data.raw["generator"]["steam-engine"].fast_replaceable_group = "steam-engine" data.raw["accumulator"]["accumulator"].fast_replaceable_group = "accumulator" data.raw["solar-panel"]["solar-panel"].fast_replaceable_group = "solar-panel"
RegisterServerEvent('stationLock:LockDoor') AddEventHandler('stationLock:LockDoor', function(door, bool) doorList[door]["locked"] = bool TriggerClientEvent('stationLock:LockDoor', -1, door, bool) end) RegisterServerEvent('stationLock:checkDoor') AddEventHandler('stationLock:checkDoor', function() Trigger...
Weapon.PrettyName = "Pistol" Weapon.WeaponID = "weapon_pistol" Weapon.WeaponType = WEAPON_SECONDARY Weapon.DamageMultiplier = 2
local range = 5000.0 Citizen.CreateThread(function() SetGarbageTrucks(0.3) SetRandomBoats(0) SetRandomTrains(0) while true do SetPedDensityMultiplierThisFrame(0.5) SetVehicleDensityMultiplierThisFrame(0.0) SetScenarioPedDensityMultiplierThisFrame(0.0, 0.0) SetSomeVehicleDensityMultiplierThisFrame...
Citizen.CreateThread(function() -- lafa2k motel RequestIpl("lafa2k_interior_v_motel_mp_milo_1") RequestIpl("lafa2k_interior_v_motel_mp_milo_2") RequestIpl("lafa2k_interior_v_motel_mp_milo_3") RequestIpl("lafa2k_interior_v_motel_mp_milo_4") RequestIpl("lafa2k_interior_v_motel_mp_milo_5") RequestIpl("lafa2...
-- !!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!! -- This file is automaticly generated. Don't edit manualy! -- !!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!! ---@class C_LegendaryCrafting C_LegendaryCrafting = {} ---[Wowpedia documentation](https://wow.gamepedia.com/API_C_LegendaryCrafting.CloseRun...
-- P26 - [实例:换零钱方式的统计] function count_change(amount) function cc(amount, kinds_of_coins) if amount == 0 then return 1 elseif amount < 0 or kinds_of_coins == 0 then return 0 else return cc(amount, kinds_of_coins - 1) + cc(amount - first_denomination(kinds...
--New includeFile("custom_content/building/mustafar/particle/must_floating_embers.lua") includeFile("custom_content/building/mustafar/particle/must_jedi_rock_throw_01.lua") includeFile("custom_content/building/mustafar/particle/must_jedi_rock_throw_02.lua") includeFile("custom_content/building/mustafar/particle/must_je...
--[[ /////// ////////////////// /////// PROJECT: MTA iLife - German Fun Reallife Gamemode /////// VERSION: 1.7.2 /////// DEVELOPERS: See DEVELOPERS.md in the top folder /////// LICENSE: See LICENSE.md in the top folder /////// ///////////////// ]] CLSPD = {} function CLSPD:constructor() addEvent("onPlayerG...
local tortusBase = require "tortus.tortusBase" local navModule = {} ---Returns the turtle's position ---@return table function navModule.getPos() tortusBase.updatePosition() return tortusBase.cache.position.handle end ---Returns the turtle's cardinal direction ---@return string function navModule.getFaci...
-- _ _ _ _ -- /\ | | | | | | | | -- / \ | |_| | __ _ ___ ___| |__ __ _| |_ -- / /\ \| __| |/ _` / __| / __| '_ \ / _` | __| -- / ____ \ |_| | (_| \__ \ | (__| | | | (_| | |_ -- /_/ \_\__|_|\__,_|___/ \___|_| |_|\__,_|\__| -- ...