content
stringlengths
5
1.05M
script.on_init(function() global.deep_space_accelerator = 0 end) script.on_load(function() if global.deep_space_accelerator == nil then global.deep_space_accelerator = 0 end end) script.on_configuration_changed(function(data) if global.deep_space_accelerator ~= nil and global.deep_space_accelerator>0 then set...
local function GiveItem(ply, args) if args == "" or not ply:IsSuperAdmin() then return "" end if not ply:AddItemByName(args) then ply:AddItem(args) end return "" end DarkRP.defineChatCommand("giveitem", GiveItem) DarkRP.defineChatCommand("additem", GiveItem)
local ThemeAccessor = {} function ThemeAccessor.Get(object, key, default) local materialTheme = object._context._materialTheme return materialTheme[key] or default end return ThemeAccessor
function fcc100() local point = {} point[1] = {x=50 ,y=50 ,g=1 } point[2] = {x=50 ,y=-50 ,g=1 } point[3] = {x=-50 ,y=50 ,g=1 } point[4] = {x=-50 ,y=-50 ,g=1 } point[5] = {x=150 ,y=50 ,g=1 } point[6] = {x=150 ,y=-50 ,g=1 } point[7] = {x=100 ,y=0 ,v=1} point[8] = {x=0 ,y=100 ,v=1} point[9] = {x=-100 ,y=0 ...
ITEM.name = "Płyta pancerza" ITEM.model = Model("models/gibs/metal_gib4.mdl") ITEM.description = "chuj2" ITEM.protectionlevel = 4 ITEM.hitgroup = HITGROUP_CHEST
local explosions = {} local settings = require("settings") explosions.list = {} function explosions.load() explosions.explosionImages = {} for i=1, 5 do explosions.explosionImages[i] = love.graphics.newImage("assets/explode_"..i..".png") end end function explosions...
local M = {} local status = require 'neogit.status' local cli = require 'neogit.lib.git.cli' local popup = require('neogit.lib.popup') local branch = require('neogit.lib.git.branch') local operation = require('neogit.operations') local a = require 'plenary.async_lib' local async, await = a.async, a.await function M.cr...
local allowCountdown = false function onStartCountdown() if not allowCountdown and isStoryMode and not seenCutscene then --Block the first countdown startVideo('Phase2'); allowCountdown = true; return Function_Stop; end return Function_Continue; end function onCreate() addCharacterToList('P2Sonic', 'dad')...
----------------------------------- -- Area: Inner Horutoto Ruins -- NM: Slendlix Spindlethumb ----------------------------------- mixins = {require("scripts/mixins/job_special")} ----------------------------------- function onMobDeath(mob, player, isKiller) end
print(string.format("%.4f", 25.3333)) --https://pt.stackoverflow.com/q/146161/101
function cargoGroupGenericPed(button, state, absX, absY, wx, wy, wz, element) if (element) and (getElementType(element)=="ped") and (button=="right") and (state=="down") then --if it's a right-click on a object local pedName = getElementData(element, "name") or "The Storekeeper" pedName = tostring(pedName):gsub...
local rx = require("rx") local bzutils = require("bzutils") local _RemoveObject = RemoveObject function RemoveObject(handle) print("Removing", GetOdf(handle), handle) Send(0, "R", handle) _RemoveObject(handle) end local function receive(from, t, ...) if t == "R" then _RemoveObject(...)...
position = {x = 34.7703666687012, y = 1.43731296062469, z = 17.7197647094727} rotation = {x = -8.41554065118544E-05, y = 90.027229309082, z = -0.000312349409796298}
---@meta ---network.TGameBuff ---@class TGameBuff ---@field damageFormula string ---@field damageType integer ---@field debuffCondition integer ---@field debuffTime integer ---@field desc string ---@field hasCritical boolean ---@field iconID string ---@field isRemoveBuff boolean ---@field l_desc string ---@field l_name...
local BN_TOAST_TYPE_CLUB_INVITATION = 6 local addonName = ... local keywords = { "|Hachievement.-|h.-|h.-免费", "|Hachievement.-|h.-|h.-没要求", "|Hspell.-|h.-|h.-免费", "|Hspell.-|h.-|h.-没要求", } local chatFilterEvents = { "CHAT_MSG_CHANNEL", "CHAT_MSG_SAY", "CHAT_MSG_WHISPER", "CHAT_MSG_YELL", "CHAT_MSG_T...
--[[ Big thanks to PainterlyPack.net for allowing me to use these textures ]] local S = farming.intllib -- pumpkin seed minetest.register_node("hades_extrafarming:seed_pumpkin", { description = S("Pumpkin Seed"), tiles = {"crops_pumpkin_seed.png"}, inventory_image = "crops_pumpkin_seed.png", wield_image = "crop...
--セイヴァー・ミラージュ --scripted by Xylen5967 & mercury233 function c101105208.initial_effect(c) aux.AddCodeList(c,44508094) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --apply local e2=Effect.CreateEffect(c) e2:SetCategory(CATEGORY_SPE...
--!The Make-like Build Utility based on Lua -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache L...
ROLE.Base = "ttt_role_base" ROLE.index = ROLE_DETECTIVE --- -- @ignore function ROLE:PreInitialize() self.color = Color(31, 77, 191, 255) self.abbr = "det" self.defaultTeam = TEAM_INNOCENT self.defaultEquipment = SPECIAL_EQUIPMENT self.score.killsMultiplier = 8 self.score.teamKillsMultiplier = -8 self.score...
local export = {} -- A helper function to escape magic characters in a string -- Magic characters: ^$()%.[]*+-? local plain = require("string").pattern_escape -- A helper function that removes empty numeric indexes in a table, -- so that the values are tightly packed like in a normal Lua table. local remove_holes = r...
-- -- Use GNOME's zentiy to add files to playlist, subtitles to playing video or open URLs. -- Based on 'kdialog-open-files'(https://gist.github.com/ntasos/d1d846abd7d25e4e83a78d22ee067a22) -- which itself is based on 'mpv-open-file-dialog'(https://github.com/rossy/mpv-open-file-dialog). -- -- Default keybindings: --...
help( [[ This module loads libtiff 4.0.4 This software provides support for the Tag Image File Format (TIFF), a widely used format for storing image data. ]]) whatis("Loads libtiff") local version = "4.0.4" local base = "/cvmfs/oasis.opensciencegrid.org/osg/modules/libtiff/"..version prepend_path("LD_LIBRARY_PATH",...
----------------------------------- -- Torcleaver -- Skill Level: N/A -- Description: Deals triple damage. Damage varies with TP. Caladbolg: Aftermath. -- Available only when equipped with Caladbolg (85)/(90)/(95) or Espafut +1/+2/+3. -- Aligned with the Light Gorget, Aqua Gorget & Snow Gorget. -- Aligned with the Ligh...
GLib.Net.ConnectionEndpoint = GLib.Enum ( { Local = 1, Remote = 2 } )
local actionMove = require( GetScriptDirectory().."/actions/basic_actions/action_move_to_location" ) ------------------------------------------------- local ActionBlockUnit = {} ActionBlockUnit.Name = "Action Block Unit" ActionBlockUnit.Sensitivity = 0.25 ------------------------------------------------- function ...
-- -- Created by David Lannan -- User: grover -- Date: 12/04/13 -- Time: 8:00 PM -- Copyright 2013 Developed for use with the byt3d engine. -- ------------------------------------------------------------------------------------------------------------ function MergeBounds(tmin, tmax, Min, Max, Ctr) if tmin[1] < ...
local awful = require('awful') require('awful.autofocus') local beautiful = require('beautiful') local hotkeys_popup = require('awful.hotkeys_popup').widget local modkey = require('configuration.keys.mod').modKey local altkey = require('configuration.keys.mod').altKey local apps = require('configuration.apps') functi...
require 'itorch' require 'torch' require 'nn' local pl = require 'pl.import_into'() local class = require 'class' local itorch_utils = {} -- Itorch utilities. -- Channels: function itorch_utils.showResp(chns, baselines) assert(chns:nDimension() == 3) local chnTable = {} for i = 1, chns:size(1) do if baseli...
FailScreen = Game:addState("FailScreen") function FailScreen:enterState() FailScreen.score = Player:getScore() end function FailScreen:draw() love.graphics.setColor(255,255,255,255) love.graphics.draw(Images.BG,0,0,0,1,1) for i,obj in ipairs(Clouds) do love.graphics.setColor(255,255,255,255) obj:draw() end ...
slot0 = class(slot1) slot3 = "dntgtest.fishConfig.init" requireLuaFromModule("DntgtestModule") slot3 = "dntgtest.model.DntgtestModel" requireLuaFromModule("DntgtestModule") slot3 = "dntgtest.model.DntgtestModel+Cannon" requireLuaFromModule("DntgtestModule") slot3 = "dntgtest.model.DntgtestModel+Player" requireLu...
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Aystise -- Type: Standard NPC -- !pos -69.805 -4.5 68.078 94 ----------------------------------- function onTrade(player,npc,trade) end function onTrigger(player,npc) player:startEvent(410) end function onEventUpdate(player,csid,option) en...
if love.filesystem then require 'rocks' () end function love.conf(t) t.identity = "me.retroactive.bw" t.version = "0.10.2" t.window.width = 240 * 4 -- The window width (number) t.window.height = 128 * 4 -- The window height (number) t.dependencies = { "30log ~> 1.3", "sti == scm...
-- -- Copyright (c) 2016, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. -- require 'torch' ...
--- Replaces plain quotation marks with typographic ones. -- -- # SYNOPSIS -- -- pandoc --lua-filter pandoc-quotes.lua -- -- -- # DESCRIPTION -- -- pandoc-quotes.lua is a filter for pandoc that replaces non-typographic -- quotation marks with typographic ones for languages other than American -- English. -- -- You...
AddCSLuaFile() ENT.Type = "anim" ENT.Base = "cityrp_base" ENT.PrintName = "Kevlar" ENT.Category = "CityRP" ENT.Spawnable = true ENT.Model = "models/props_c17/SuitCase_Passenger_Physics.mdl" if SERVER then function ENT:Use(activator, caller) if IsValid(caller) and caller:IsPlayer() then if caller:Armor() >= 100 ...
function return_except_first(...) return select(2, ...) end print(return_except_first(1, 2, 3, 4, 5))
local nnlib = require('cudnn') local conv = nnlib.SpatialConvolution local batchnorm = nnlib.SpatialBatchNormalization local relu = nnlib.ReLU -- Main convolutional block local function convBlock(numIn,numOut,stride,type) local s = nn.Sequential() if type ~= 'no_preact' then s:add(batchnorm(numIn)) ...
local _dirname_ = debug.getinfo(1, "S").source:sub(2):match("(.*[/\\])") package.path = _dirname_ .. "?.lua;" .. package.path utils = require "utils" -- load conky config tables including font definitions if conky == nil then conky = {} end dofile(conky_config) -- remove unavailable fonts local function _check_fonts...
-- Read input file -- Parse each line into a number -- Apply numbers in sequence require "util" print('Part 1') local file = '01 - Input.txt' local lines = lines_from(file) local accumulator = 0 for k,v in pairs(lines) do print('Current frequency: ' ..accumulator.. ', adjusting by [' ..v.. ']') lines[k] = ...
-- This file is automatically generated, do not edit! -- Item data (c) Grinding Gear Games local itemBases = ... itemBases["刻骨刀"] = { type = "Dagger", socketLimit = 3, tags = { default = true, weapon = true, onehand = true, dagger = true, one_hand_weapon = true, }, implicitModTypes = { { "critical" }, }, implicit...
require('lib.keymap') -- Disable arrow keys keymap {'', '<Up>', '<Nop>'} keymap {'', '<Down>', '<Nop>'} keymap {'', '<Left>', '<Nop>'} keymap {'', '<Right>', '<Nop>'} -- Buffer splits keymap {'n', '<Leader>sv', '<Cmd>vsplit<CR>'} keymap {'n', '<Leader>sh', '<Cmd>split<CR>'} -- Remove highlighting keymap {'n', '<Lead...
local ffi = require "ffi" local ffi_cdef = ffi.cdef local ffi_typeof = ffi.typeof ffi_cdef [[ void nettle_camellia128_set_encrypt_key(struct camellia128_ctx *ctx, const uint8_t *key); void nettle_camellia128_set_decrypt_key(struct camellia128_ctx *ctx, ...
Project = LCS.class.final { FOLDER_PREFIX = "sb_project_files/", name = nil, path = nil, game = { name = Game.gameName, version = Game.gameVersion, }, mapName = Game.mapName, randomMapOptions = {}, mutators = {}, } Project.PROJECT_FILE = Path.Join(Project.FOLDER_PREFIX...
/* shared.lua - Shared Component ----------------------------------------------------- This is the shared component of your gamemode, a lot of the game variables can be changed from here. */ include( "player_class.lua" ) include( "player_extension.lua" ) include( "class_default.lua" ) include( "player_colours.lua"...
globals = require 'globals' colors = require 'colors' beloved = require 'beloved' game = require 'states/game' menu = require 'states/menu' gamemanager = require 'gamemanager' quicksandRegular = love.graphics.newFont('fonts/Quicksand-Regular.ttf', 72) quicksandRegularSmall = love.graphics.newFont('fonts/Quicksand-Regu...
-- S-300PMU2 CCP 54K6E2 GT = {}; GT_t.ws = 0; set_recursive_metatable(GT, GT_t.generic_stationary) set_recursive_metatable(GT.chassis, GT_t.CH_t.MAZ543M); GT.visual.shape = "54k6cp" GT.visual.shape_dstr = "54k6cp_d" GT.CustomAimPoint = {0,1.5,0} --chassis GT.swing_on_run = false --Burning after hit GT.visual.fire_...
local spell = Spell("instant") function spell.onCastSpell(creature, variant) return creature:conjureItem(3147, 3156, 2) end spell:name("Wild Growth Rune") spell:words("adevo grav vita") spell:group("support") spell:vocation("druid;true", "elder druid;true") spell:cooldown(2 * 1000) spell:groupCooldown(2 * 1000) spel...
include("bluebar/recipies.lua") include("bluebar/bottles.lua") local isAttached = false local attachedBar = nil local lockedEyePos = Angle(0,0,0) local canInteract = true local bottles = {} local minX , maxX = -55 , 55 local minY , maxY = -55 , 55 local xAng = 0 local yAng = 0 local selectedEntitie local bottleIn...
local Component = require 'squeak.component' describe('Component', function() it('works at all', function() assert.are.equal('table', type(Component)) end) it('starts out active and not marked for removal', function() local c = Component() assert.truthy(c.active) assert.falsy(c.removeMe) end) ...
local M = { game_card = { -- 跑得快 [1] = {2, 4}, -- 普通牛牛 [2] = {1, 2}, -- 地锅牛牛 [3] = {4}, -- 宁乡跑胡子 [4] = {2, 4}, -- 长沙麻将 [5] = {2, 4}, }, } function M.getRoomCard(gameid, options) if not M.game_card[gameid] then print...
local L = BigWigs:NewBossLocale("The Nexus Trash", "ptBR") if not L then return end if L then L.slayer = "Matador de Magos" L.steward = "Administrador" end
--usage : luajit fast_brainfuck.lua mandelbrot.bf if jit then jit.opt.start("loopunroll=100") end local STATS = true -- set to true to print optimizations count for each pass local vmSettings = { ram = 32768, cellType = "char", } local autoDetectSubfunctionDispatching = true -- will "guess" number of ins...
if GetLocale() ~= "zhTW" then return end local L --------------------------- -- Goroth -- --------------------------- L= DBM:GetModLocalization(1862) --------------------------- -- Demonic Inquisition -- --------------------------- L= DBM:GetModLocalization(1867) --------------------------- -- Harjatan...
local t = Def.ActorFrame{}; --Mc is awesome!--Under lay life t[#t+1] = LoadActor("Stage!.lua")..{ OnCommand=cmd(); }; if MonthOfYear() == 10-1 and DayOfMonth() == 31 then t[#t+1] = LoadActor("Easter Horror.lua")..{ OnCommand=cmd(y,SCREEN_BOTTOM-40); }; else t[#t+1] = LoadActor("Easter Egg.lua")..{ OnComman...
object_ship_nova_orion_patrol_heavy_tier7 = object_ship_shared_nova_orion_patrol_heavy_tier7:new { } ObjectTemplates:addTemplate(object_ship_nova_orion_patrol_heavy_tier7, "object/ship/nova_orion_patrol_heavy_tier7.iff")
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by cpollet. --- DateTime: 17.12.21 08:48 --- -- Arg ------------------------------------------ ArgType = enum { "Register", "Word", "Byte", "CsRelativeAddress", "AbsoluteAddress", } Arg = {} function Arg:new(type, value) local...
-- Rayman 3: Hoodlum Havoc (NTSC-U v1.0) local core = require("games.core") return core.newGame(0x8042F5C8)
--Start of Global Scope--------------------------------------------------------- --Creation of camera handle and configuration local camera = Image.Provider.Camera.create() local config = Image.Provider.Camera.V2DConfig.create() config:setBurstLength(0) -- Continuous acquisition config:setFrameRate(1) -- Hz config:s...
function onCreate(self) self.distance = 20.0 end function onUpdate(self, dt) local trans = self:getComponent("TransformComponent") local player = Scene.findEntityByTag("Player") if player:isValid() then local playerTrans = player:getComponent("TransformComponent") trans.position = play...
-- init.lua -- local config = require("config") gpio.mode(4, gpio.OUTPUT) gpio.write(4, gpio.LOW) wifi.setmode(wifi.STATION) wifi.sta.config(config.ssid, config.pwd) wifi.sta.connect() if file.exists("light.lua") then node.compile("light.lua") file.remove("light.lua") end local count = 0 local flag = 0 tmr.a...
--[[ Based on Alcubierre 2008 "Introduction to 3+1 Numerical Relativity" on the chapter on hyperbolic formalisms. The first Bona-Masso formalism. --]] local class = require 'ext.class' local table = require 'ext.table' local symmath = require 'symmath' local EinsteinEqn = require 'hydro.eqn.einstein' local Struct = r...
local TXT = Localize{ [0] = " ", [1] = "Door", [2] = "Leave the Walls of Mist", [3] = "Chest", [4] = "Button", [5] = "Lever", [6] = "Vault", [7] = "Cabinet", [8] = "Switch", [9] = "", [10] = "Bookcase", [11] = "", [12] = "", [13] = "", [14] = "You Successfully disarm the trap", [15] = "", [16] = "Take ...
--[[ Project: SA-MP-API Author: Tim4ukys My url: vk.com/tim4ukys ]] local sys = require 'SA-MP API.kernel' sys.safely_include 'SA-MP API.samp.0_3_7-R4-2.stPlayerPool' sys.safely_include 'SA-MP API.samp.0_3_7-R4-2.stVehiclePool' sys.safely_include 'SA-MP API.samp.0_3_7-R4-2.stPickupPool' sys.safely_include 'SA-MP ...
local finished_task_key = KEYS[1]; local num_of_dependent_tasks = tonumber(redis.call('LLEN', finished_task_key .. ':prior_to')); local dependent_task_key; for task_idx = 1, num_of_dependent_tasks, 1 do dependent_task_key = redis.call('LINDEX', finished_task_key .. ':prior_to', task_idx - 1); redis.call('LREM'...
require "luaclass" CppObjectBase = Class(ObjectBase) CppSingleton = Class(CppObjectBase) addfunc(CppSingleton, Singleton) local setexisttable = _setexisttable local LinkAgainstGC = {} local LevelActors = {} local Test = {} local HasWatchLevelActors function CppObjectBase:EndPlay(Reason) if not self.m_HasEndPlay then ...
-- Copyright (c) Jérémie N'gadi -- -- All rights reserved. -- -- Even if 'All rights reserved' is very clear : -- -- You shall not use any piece of this software in a commercial product / service -- You shall not resell this software -- You shall not provide any facility to install this particular software in a c...
return { desc="自定义", hideminimap=false, id="CUSTOM_PRESET_4", location="forest", max_playlist_position=999, min_playlist_position=0, name="自定义预设 4", numrandom_set_pieces=4, override_level_string=false, overrides={ -- def-options is "never", "rare", "default", "often", "always" -- MISC ...
t1 = script.Parent.Text1 t2 = script.Parent.Text2 t3 = script.Parent.Text3 t4 = script.Parent.Text4 t5 = script.Parent.Text5 t6 = script.Parent.Text6 t7 = script.Parent.Text7 t8 = script.Parent.Text8 t9 = script.Parent.Text9 t10 = script.Parent.Text10 function added(child) if child.Name == "SpamCheck_" ..script.Paren...
-- logo.lua -- make_encoder([separator [,blocksize [,alphabet]]]) -- -- Given an alphabet (or default), return an encoding function, -- which is callable as enc(str) local function make_encoder(sep,blksz,b64a) local char, byte = string.char, string.byte local concat = table.concat local unpack = table.unpack or un...
if GetLocale() ~= "itIT" then return end DBM_CORE_NEED_LOCALS = "Sei bravo come programmatore? Se si, il team di DBM ha bisogno del tuo aiuto per mantenere DBM il miglior Boss Mod per WoW. Entra nel nostro gruppo visitando |HDBM:localizersneeded|h|cff3588ffhere|r" DBM_HOW_TO_USE_MOD = "Benvenuto in DBM. Scrivi...
-- functions.lua -- Contains global functions that are used to make this plugin work properly -- Add IsWood to the ItemCategory class. function ItemCategory.IsWood(a_BlockID) return ( (a_BlockID == E_BLOCK_LOG) or (a_BlockID == E_BLOCK_NEW_LOG) ) end function GetSaplingMeta(a_BlockType, a_BlockMeta) i...
local basis = {} basis.mamdani = {} basis.mamdani.fuzzy_and = function(a, b) return math.min(a, b) end basis.mamdani.fuzzy_or = function(a, b) return math.max(a, b) end basis.mamdani.fuzzy_impl = function(a, b) return math.min(a, b) end basis.mamdani.fuzzy_not = function(a) return 1 - a end basis....
local packagePath = package.path local packageCPath = package.cpath local localDir = debug.getinfo(1, 'S').source:sub(2):match('(.*'..'\\'..')') package.path = localDir..'?.lua'..';'..packagePath package.cpath = localDir..'?.dll'..';'..packageCPath require 'bit' require 'rings' local t = {} function expose(name, v...
-- $Id: //depot/Projects/StarWars_Expansion/Run/Data/Scripts/Library/PGStoryMode.lua#1 $ --///////////////////////////////////////////////////////////////////////////////////////////////// -- -- (C) Petroglyph Games, Inc. -- -- -- ***** ** * * -- * ** * ...
am.addCMD("spectate", 'Spectates a player', 'Administration', function(caller, target) // Setup the spectating caller:Spectate(OBS_MODE_CHASE) caller:SpectateEntity(target) // Set their return point and angle caller.spectating = true caller.SReturnPoint = caller:GetPos() caller.SReturnAngle = caller:GetAngles()...
Config = { GSRAutoClean = 900, -- Amount of time before you are autocleaned (In Seconds) GSRTestDistance = 3, -- Max distace the command can be used to TestGSR = "gsr", -- Command To Test For GSR cleargsr = 'washgsr', -- Command to clean off GSR forceclean = 'forcewh', -- Command to force clean...
hook.Add("VurtualAmmotypes","vammo_scifi", function() local tbl = table.Copy(kswep_default_ammo) tbl.vestpenetration=999 tbl.dmgtype = DMG_BULLET+DMG_BLAST tbl.dmgbase = 100 tbl.dmgvitalmin = 6 tbl.dmgvitalmax = 8 tbl.name = "vammo_railgun_iron" tbl.caliber = "vammo_railgun" tbl.printname = "Railgun Slug" tbl...
local g = function(f) f() end local f1 = function() return 10 end local f2 = function() local s = "test" local t = {} for i=1,1000 do table.insert(t, s..1) end end local f3 = function() local s = "novo" local t = {} for i=1,1000 do table.insert(t, s..1) end end g(f1) g(f2) g(f2) g(f1) g(f3)
--create specific nodebox for portals --better sounds --better physics (ie lock the player in place so they don't fly while being transported) --if player breaks portal border then recursively delete portal blocks (check x or z) --make global table that tells if player is already in portal --side node, just get pos...
-- IupTree Example in IupLua -- Creates a tree with some branches and leaves. -- Two callbacks are registered: one deletes marked nodes when the Del key -- is pressed, and the other, called when the right mouse button is pressed, -- opens a menu with options. require( "iuplua" ) require( "iupluacontrols" ) tree =...
local Spell = { } Spell.LearnTime = 60 Spell.Category = HpwRewrite.CategoryNames.Physics Spell.Description = [[ Causes opponent to fly back several feet. Being casted on object will push it away. Note that it doesn't deal any damage! ]] Spell.ApplyDelay = 0.4 Spell.FlyEffect = "hpw_confringo_main" Spell.OnlyIf...
local AddonName, AddonTable = ... AddonTable.cloth = { -- Cloth 33470, -- Frostweave Cloth -- Silk 42253, -- Iceweb Spider Silk }
GM.Version = "2.5.1" GM.Name = "DarkRP" GM.Author = "By Rickster, Updated: Pcwizdan, Sibre, philxyz, [GNC] Matt, Chrome Bolt, FPtje Falco, Eusion, Drakehawke" DeriveGamemode("sandbox") AddCSLuaFile("libraries/interfaceloader.lua") AddCSLuaFile("libraries/modificationloader.lua") AddCSLuaFile("libraries/disjointset.l...
local Character = require 'model.character' local State = require 'state' local FollowQuestState = require 'common.class' (State) function FollowQuestState:_init(stack) self:super(stack) self.party = nil self.encounters = nil self.next_encounter = nil end function FollowQuestState:enter(params) local ques...
----------------------------------------------- -- Sample of SlibBME280.lua for W4.00.03 -- Copyright (c) 2018, Saya -- All rights reserved. -- 2018/09/20 rev.0.04 ----------------------------------------------- local script_path = function() local str = debug.getinfo(2, "S").source:sub(2) return str:match("(.*/)")...
local assets = { Asset("ANIM", "anim/warning_shadow.zip"), } local function fn() local inst = CreateEntity() local trans = inst.entity:AddTransform() local anim = inst.entity:AddAnimState() anim:SetBank("warning_shadow") anim:SetBuild("warning_shadow") anim:PlayAnimation("idle", true) anim:SetFin...
-------------------------------- -- @module CatmullRomBy -- @extend CardinalSplineBy -- @parent_module cc -------------------------------- -- @function [parent=#CatmullRomBy] initWithDuration -- @param self -- @param #float float -- @param #point_table pointarray -- @return bool#bool ret (return value: bool) ...
 fadeCamera ( true ) --Remove MTA fade gameOver = false local shakingPieces = {} function shakeOnRender() if gameOver == false then local currentTick = getTickCount() for object,originalTick in pairs(shakingPieces) do --calculate the amount of time that has passed in ms local tickDiffere...
local Class = require "Utils/Class" local PanelItemBase = require "UI/PanelItemBase" local Logger = require "Logger/Logger" local TestPanelItem = Class("TestPanelItem", PanelItemBase) local Resources = require "Resource/Resources" local function OnClick(self) Logger.dump(self.data) end local function InitEven...
-- BINDINGS -- {{{ Mouse bindings root.buttons(awful.util.table.join( awful.button({ }, 3, function () mainmenu:toggle() end), awful.button({ }, 4, awful.tag.viewnext), awful.button({ }, 5, awful.tag.viewprev)) ) clientbuttons = awful.util.table.join( awful.button({ }, 1, function (c) client.focus = c...
-- Prosody IM -- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local new_sasl = require "util.sasl".new; local json = require "util.json"; prosody.unlock_globals(); local http = require "socket.http"; prosody....
slot0 = class("ArmorType") slot0.Light = 1 slot0.Medium = 2 slot0.Heavy = 3 slot0.Type2Name = function (slot0) if not slot0.names then slot0.names = { i18n("word_lightArmor"), i18n("word_mediumArmor"), i18n("word_heavyarmor") } end return slot0.names[slot0] end return slot0
-- 加载h-lua HLUA_DEBUG = true require "h-lua" local redVip = hdzapi.isVipRed(hplayer.players[1]) local blueVip = hdzapi.isVipBlue(hplayer.players[1]) local mapLv = hdzapi.mapLv(hplayer.players[1]) local hasMallItem = hdzapi.hasMallItem(hplayer.players[1], 'ITEMKEY') local GetPlayerServerValueSuccess = hdzapi.server.rea...
-------------------------------------------------------------------------------- -- Precomputed abscissas and weights for double exponential quadrature method. -- -- Copyright (C) 2011-2016 Stefano Peluchetti. All rights reserved. -------------------------------------------------------------------------------- -...
help( [[ SHRiMP is a software package for aligning genomic reads against a target genome. It was primarily developed with the multitudinous short reads of next generation sequencing machines in mind, as well as Applied Biosystem's colourspace genomic representation. ]]) whatis("SHRiMP is a software package for aligni...
require('onmt.init') require('tds') local cmd = onmt.utils.ExtendedCmdLine.new('train.lua') -- First argument define the model type: seq2seq/lm - default is seq2seq. local modelType = cmd.getArgument(arg, '-model_type') or 'seq2seq' local modelClass = onmt.ModelSelector(modelType) -- Options declaration. local optio...
if SERVER then include("bank/init.lua") AddCSLuaFile("bank/cl_init.lua") else include("bank/cl_init.lua") end
object_tangible_collection_dancing_droid_09 = object_tangible_collection_shared_dancing_droid_09:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_dancing_droid_09, "object/tangible/collection/dancing_droid_09.iff")
local allowCountdown = false; function onStartCountdown() if not allowCountdown and isStoryMode and not seenCutscene then --Block the first countdown startVideo('SonicEXE'); allowCountdown = true; return Function_Stop; end return Function_Continue; end function onCreate() precacheSound('staticsound'); preca...
// Generated by github.com/davyxu/tabtoy // Version: 2.8.10 module table { export var TBirckItem : table.ITBirckItemDefine[] = [ { Id : 1, Name : "分身球", Num : 1, Pro : 0 }, { Id : 2, Name : "加长板", Num : 1, Pro : 0 }, { Id : 3, Name : "元宝", Num : 1, Pro : 0 } ] // Id export var TBirckItemById : game.Diction...