content
stringlengths
5
1.05M
require("defines") require("lib/misc") local noise = require("noise") -- Ore configurations. local function ore_setup(options) local richness = function(x, y, tile, map) local modifier = (noise.absolute_value(y) - (options.offset_y * CHUNK)) / ORE_CHUNK return (options.increment * (modifier - optio...
object_intangible_vehicle_tcg_republic_gunship_pcd = object_intangible_vehicle_shared_tcg_republic_gunship_pcd:new { } ObjectTemplates:addTemplate(object_intangible_vehicle_tcg_republic_gunship_pcd, "object/intangible/vehicle/tcg_republic_gunship_pcd.iff")
local VariableLength, parent = torch.class("nn.VariableLength", "nn.Decorator") function VariableLength:__init(module, lastOnly) parent.__init(self, assert(module:maskZero())) -- only extract the last element of each sequence self.lastOnly = lastOnly -- defaults to false self.gradInput = {} end function V...
#!/usr/bin/env lua --- Tests on dumocks.WarpDriveUnit. -- @see dumocks.WarpDriveUnit -- set search path to include src directory package.path = "src/?.lua;" .. package.path local lu = require("luaunit") local mwdu = require("dumocks.WarpDriveUnit") require("test.Utilities") TestWarpDriveUnit = {} --- Characterizat...
themepark_loot_fambaa_blood = { minimumLevel = 0, maximumLevel = 0, customObjectName = "Jar of Fambaa Blood", directObjectTemplate = "object/tangible/container/jar/jar_guts_s01.iff", craftingValues = { }, customizationStringNames = {}, customizationValues = {} } addLootItemTemplate("themepark_loot_fambaa_blood...
local compose_utils = require 'utils.compose_utils' -- -- Addition composition model -- -- local Addition, parent = torch.class('torch.Addition', 'torch.CompositionModel') function Addition:__init(inputs, outputs) parent.__init(self) self.inputs = inputs self.outputs = outputs self.name = "addition" self.isTrai...
// // Created by: fsfod // --[[ 3 hook types: Standard Pre: Are called before the orignal function is called any value they return will be ignored --------------------------------------- Raw Hooks: Are processed first before Standard hooks Can Modify paramaters sent to the orignal function Must return...
-------------------------------- -- @module TextAtlas -- @extend Widget -- @parent_module ccui -------------------------------- -- @function [parent=#TextAtlas] getStringLength -- @param self -- @return long#long ret (return value: long) -------------------------------- -- @function [parent=#TextAtlas] getS...
----------------------------------- -- Area: Al Zahbi -- NPC: Gameem -- Type: Standard NPC -- !pos 18.813 -7 11.298 48 ----------------------------------- function onTrade(player, npc, trade) end function onTrigger(player, npc) player:startEvent(236) end function onEventUpdate(player, csid, option) end functio...
if VERSION < 46 then Msg("Your GMod is out of date! RDx will not work on version: ",VERSION,"\n") return end require "RDx" if SERVER then AddCSLuaFile( "autorun/RDx.lua" ) AddCSLuaFile( "manifest.lua" ) AddCSLuaFile( "cl_tab.lua" ) if file.Exists("../lua/RDx/.svn/entries") then RDxVersi...
require 'Q/UTILS/lua/strict' local cutils = require 'libcutils' local plpath = require 'pl.path' local ffi = require 'ffi' local cVector = require 'libvctr' local Scalar = require 'libsclr' local cmem = require 'libcmem' local qconsts = require 'Q/UTILS/lua/qconsts' local cleanup = require 'Q/UTILS/lua/cleanup'...
POSITION_PULSE = 200 KEYSPAM_LIMIT = 200 _DEGUG = false g_Root = getRootElement() keyNames = { "vehicle_fire", "vehicle_secondary_fire", "vehicle_left", "vehicle_right", "steer_forward", "steer_back", "accelerate", "brake_reverse", "horn", "sub_mission", "handbrake", "vehicle_look_left", "vehicle_look_righ...
local cclient = class("cclient") --- cclient.new调用后执行的构造函数 --@param[type=table] conf --@return a cclient's instance --@usage --local gg.client = gg.class.cclient.new({ -- tcp_gate = xxx, -- kcp_gate = xxx, -- websocket_gate = xxx, --}) function cclient:init(conf) conf = conf or {} self.tcp_gate = conf.tcp_g...
#!/usr/bin/env lua --[[ MIT License Copyright (C) 2017 Micah Talkiewicz. 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, ...
object_tangible_quest_cb_1_medical_equipment = object_tangible_quest_shared_cb_1_medical_equipment:new { } ObjectTemplates:addTemplate(object_tangible_quest_cb_1_medical_equipment, "object/tangible/quest/cb_1_medical_equipment.iff")
SILE = require("core.sile") SILE.backend = "debug" SILE.init() describe("SILE.shapers.base", function() it("should always have positive stretch and shrink", function() SILE.settings:set("shaper.variablespaces", true) SILE.settings:set("shaper.spacestretchfactor", 2) SILE.settings:set("shaper.spaceshrink...
----------------------------------------- -- ID: 4668 -- Scroll of Barfire -- Teaches the white magic Barfire ----------------------------------------- function onItemCheck(target) return target:canLearnSpell(60) end function onItemUse(target) target:addSpell(60) end
local class = require 'middleclass' local pdu = require 'modbus.pdu.init' local data_pack = require 'modbus.data.pack' local data_unpack = require 'modbus.data.unpack' local bcd = require 'bcd' local ioe = require 'ioe' local retry = require 'utils.retry' local worker = class("SCS-900UV.worker") local SF = string.for...
--[[ @author Sebastian "CrosRoad95" Jura <sebajura1234@gmail.com> @copyright 2011-2021 Sebastian Jura <sebajura1234@gmail.com> @license MIT ]]-- local timer=getTickCount() --[[ addEventHandler("onClientRender",root,function() local tick=getTickCount() if tick-timer>=1000 then timer=getTickCount() local h=getElem...
local ABILITY = script.parent.parent local MODULE = require( script:GetCustomProperty("ModuleManager") ) function COMBAT() return MODULE.Get("standardcombo.Combat.Wrap") end function OnCast(ability) end function OnExecute(ability) print("rest effect") for _,allies in ipairs(Game.GetPlayers()) do if ...
--[[ Name: gui/syntaxHighlighter/inputBegan.lua Description: Automatically indent and tab certain prerequisites are met Author: misrepresenting ]] local keyWords = {{'else', 'end'}, {'do', 'end'}, {'then', 'end'}, {'{', '}'}, {'(function', 'end)'}, {'function', 'end'}, {'repeat', 'until'}} local patterns =...
----------------------------------- -- Area: Bastok Mines -- NPC: Echo Hawk -- Standard Info NPC -- Involved in Quest: The Siren's Tear -- !pos -0.965 5.999 -15.567 234 ----------------------------------- require("scripts/globals/quests"); ----------------------------------- function onTrade(player,npc,trade) end; f...
local mod = DBM:NewMod(1162, "DBM-BlackrockFoundry", nil, 457) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 14994 $"):sub(12, -3)) mod:SetCreatureID(77692) mod:SetEncounterID(1713) mod:SetZone() mod:SetHotfixNoticeRev(13105) mod.respawnTime = 29.5 mod:RegisterCombat("combat") mod:Reg...
include("shared.lua") fw.dep("hook") function ENT:Draw() self:DrawModel() end fw.hook.Add("RenderScreenspaceEffects", "VodkaEffects", function() if (IsValid(LocalPlayer())) then if (LocalPlayer():GetFWData().vodkaTime and CurTime() <= LocalPlayer():GetFWData().vodkaTime) then DrawSobel(0.5) end end end)
-- This is for things that happen exactly once function love.load() math.randomseed(os.time()) for i=1,10*(1.0 + 2.0 * math.random()) do _ = math.random() end Text.setup_font() new_game() end function love.update(dt) flux.update(dt) -- Update all tweens Game.time:update(dt) Game.state:update(dt) ...
local menu = { index = 1, current = nil } local font = love.graphics.getFont() menu.options = { { text = love.graphics.newText(font, "Items"), onChoose = function() return love.filesystem.load("scenes/world/menus/items.lua")() end }, { text = love.graphics.newText(font, "Stats"), onChoose = functio...
-- neogit highlights local lush = require "lush" local base = require "nano.base" local M = {} M = lush(function() return { NeogitNotificationInfo { base.Salient }, NeogitNotificationWarning { base.Popout }, NeogitNotificationError { base.CriticalI }, } end) return M
require "lib.classes.class" local InteractuableSolidEntity = require "Overworld.model.entities.interactuable_entities.InteractuableSolidEntity" require "Global.application.application" -------------------------------------------------------------------------------------------------------- -- class: ContactInteractuabl...
--- The main player module. -- A singleton object responsible for initializing and providing access to -- other client singletons, namely the ControlModule and CameraModule. -- -- @author LastTalon -- @version 0.1.0, 2020-04-28 -- @since 0.1 -- -- @module ControlModule -- @field Cameras the CameraModule singleton -- @f...
---------------------------------------------------------------- -- Copyright (c) 2012 Klei Entertainment Inc. -- All Rights Reserved. -- SPY SOCIETY. ---------------------------------------------------------------- local mui = include( "mui/mui" ) local util = include( "client_util" ) local array = include( "modules/...
local pairs = pairs; local _; VUHDO_GLOBAL_CONFIG = { ["PROFILES_VERSION"] = 1; }; -- local tHotCfg, tHotSlots; function VUHDO_fixHotSettings() tHotSlots = VUHDO_PANEL_SETUP["HOTS"]["SLOTS"]; tHotCfg = VUHDO_PANEL_SETUP["HOTS"]["SLOTCFG"]; for tCnt2 = 1, 10 do if not tHotCfg["" .. tCnt2]["mine"] and not tHotC...
---------------------------------------------------------------------------------------------------- -- -- Copyright (c) Contributors to the Open 3D Engine Project. -- For complete copyright and license terms please see the LICENSE at the root of this distribution. -- -- SPDX-License-Identifier: Apache-2.0 OR MIT -- --...
local fio = require 'fio' local fun = require 'fun' local fileio = require 'spacer.fileio' local lversion = require 'spacer.version' local NULL = require 'msgpack'.NULL local function string_split(inputstr, sep) if sep == nil then sep = "%s" end local t = {} local i = 1 for str in string.g...
dofile( "sfml_genie.lua" ) PsyProjectEngineLib( "sfml" ) defines { "SFML_STATIC" } files { "include/**.h", "include/**.hpp", "src/**.cpp" } includedirs { "./include", "../bubblewrap/External", "../bubblewrap/include/", "SFML/include" } PsyAddEngineLinks { "base" } PsyAddExternalLinks...
local AddonName, AddonTable = ... -- Halls of Lightning AddonTable.hol = { -- General Bjarngrim 36980, -- Hewn Sparring Quarterstaff 157580, -- Spark of the Forge 37814, -- Iron Dwarf Smith Pauldrons 36982, -- Mantle of Electrical Charges 37825, -- Traditionally Dyed Handguards 37826, ...
local windower = require('core.windower') local ui = require('core.ui') local equipment = require('equipment') local size = 2 local state = { style = 'chromeless', color = ui.color.rgb(0,0,0,128), width = 69 * size, height = 69 * size, x = 1000, y = 450, } local slot_map = {0,1,2,3,4,9,11,12,5,...
AddCSLuaFile() include("gmod-prof/sh_init.lua")
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor. kimogila_common = { description = "", minimumLevel = 0, maximumLevel = 0, lootItems = { {itemTemplate = "kimogila_bone_segment", weight = 2500000}, {itemTemplate = "kimogila_tissue", weight = 2500000}, {itemTemplate = "kimogila_pearl", we...
-- Tests for misc Vimscript |builtin-functions|. -- -- If a function is non-trivial, consider moving its spec to: -- test/functional/vimscript/<funcname>_spec.lua -- -- Core "eval" tests live in eval_spec.lua. local helpers = require('test.functional.helpers')(after_each) local clear = helpers.clear local eval = h...
local class = require('middleclass') local Controller = require('mvc.Controller') local HasSignals = require('HasSignals') local tools = require('app.helpers.tools') local SoundMng = require('app.helpers.SoundMng') local GVSetScoreController = class("GVSetScoreController", Controller):include(HasSignals) function GVSe...
sohei_palm_of_life = class( AbilityBaseClass ) LinkLuaModifier( "modifier_sohei_palm_of_life_movement", "abilities/sohei/sohei_palm_of_life.lua", LUA_MODIFIER_MOTION_HORIZONTAL ) -------------------------------------------------------------------------------- function sohei_palm_of_life:CastFilterResultTarget( targe...
return { armthor = { acceleration = 0.1, brakerate = 0.375, buildcostenergy = 221480, buildcostmetal = 14644, builder = false, buildpic = "armthor.dds", buildtime = 215000, canattack = true, canguard = true, canmove = true, canpatrol = true, canstop = 1, category = "ALL HUGE MOB...
local vim, lsp, api = vim, vim.lsp, vim.api local M = {} -- coc diagnostic local function get_coc_diagnostic(diag_type) local has_info, info = pcall(vim.api.nvim_buf_get_var, 0, "coc_diagnostic_info") if not has_info then return end if info[diag_type] > 0 then return info[diag_type] end return "" end -- nvi...
local _G = _G or getfenv(0) local round = ShaguTweaks.round local rgbhex = ShaguTweaks.rgbhex local Abbreviate = ShaguTweaks.Abbreviate local module = ShaguTweaks:register({ title = "Tooltip Details", description = "Display health, class color, guild name, guild rank and current target on unit tooltips.", expans...
local privateRoom_pin_map = require("qnFiles/qnPlist/hall/privateRoom_pin") local PrivateRoomRecordSummaryPlayerItem = class(Node); PrivateRoomRecordSummaryPlayerItem.ctor = function(self, data, propType, key, config) self.m_data = data; self.m_key = key; self.m_propType = propType; self:_initView(con...
--- Eva hex grid module -- It contains some functions to calculate positions -- on map in hexagon grid representation -- Cells starts from 0, 0 from left top corner -- Hexagon grid type: oddr, pointytop -- For more info see here: https://www.redblobgames.com/grids/hexagons/#coordinates-offset -- @submodule eva local ...
local M = {} function M:init() self.player_tbl = {} end function M:add(player) self.player_tbl[player.id] = player end function M:remove(id) self.player_tbl[id] = nil end return M
-------------------------------------------------------------------- --for object animator track creation local CustomAnimatorTrackTypes = {} local CommonCustomAnimatorTrackTypes = {} function registerCommonCustomAnimatorTrackType ( id, clas ) CommonCustomAnimatorTrackTypes[ id ] = clas end function registerCustomAn...
local lsp_installer_servers = require'nvim-lsp-installer.servers' local ok, rust_analyzer = lsp_installer_servers.get_server("rust_analyzer") local path_to_elixirls = vim.fn.expand("/usr/bin/elixir-ls") local capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities()) if ...
local Mod = _G.LobbyToolsMod local Net = _G.LuaNetworking function Mod:request_action(action) if not self:check_action(action) then return false end if Network:is_server() then self:do_action(action, nil) else Net:SendToPeer(1, self.messages.do_action, action.id) end end function Mod:check_action(action) ...
vim.g.floaterm_title = 'ﲵ ($1|$2)' vim.g.floaterm_wintype = 'float' vim.g.floaterm_width = 0.85 vim.g.floaterm_height = 0.85 vim.g.floaterm_position = 'center' vim.g.floaterm_autoclose = 1 vim.g.floaterm_keymap_toggle = '<F1>' vim.g.floaterm_keymap_new = '<F2>' vim.g.floaterm_keymap_next = '<F3>'
------------------------------------------------------------------------ --ano build at 2016/04/20 ------------------------------------------------------------------------ local ResidueRecurrent, parent = torch.class('nn.ResidueRecurrent', 'nn.Container') function ResidueRecurrent:__init(inid, input, nstate, rinput, r...
local Category = "Dannio's Cars" local V = { // Required information Name = "International Durastar Armoured 2002", Class = "prop_vehicle_jeep", Category = Category, // Optional information Author = "ItzDannio25", Information = "Made by ItzDannio for Badman", Model = "models/dannio/dur...
return require "lovesnow.db.mysql"
ITEM.name = "LR-300" ITEM.description= "A modern assault rifle. Fires 5.56x45mm." ITEM.longdesc = "When one is looking for an M4 in the Zone, chances are he'll settle for the LR-300 carbine instead. While there are some differences in design and build, the LR-300 was imported in much greater quantities than any other a...
object_intangible_vehicle_tcg_8_single_pod_airspeeder = object_intangible_vehicle_shared_tcg_8_single_pod_airspeeder:new { } ObjectTemplates:addTemplate(object_intangible_vehicle_tcg_8_single_pod_airspeeder, "object/intangible/vehicle/tcg_8_single_pod_airspeeder.iff")
RedeNeural.Hebb = {} RedeNeural.Hebb._rede = nil function RedeNeural.Hebb._limpar(obj) for i = 1, obj:size(2) do obj[1][i] = 0 end end function RedeNeural.Hebb._limparBias(obj) obj[1] = 0; end function RedeNeural.Hebb._decodificarArquivo(arquivo) local chars = split(arquivo, '') local values = {} local j = 0...
local class = class("AgentCodeLayer") class.__index = class local Constants = require("Constants") local SoundApp = require("SoundApp") local Settings = require("Settings") local protoTypes = require("ProtoTypes") local packetHelper = require "PacketHelper" function class.extend(target) local t = tolua.getpeer(t...
--[[ HMAC implementation http://tools.ietf.org/html/rfc2104 http://en.wikipedia.org/wiki/HMAC hmac.compute(key, message, hash_function, blocksize, [opad], [ipad]) -> HMAC string, opad, ipad hmac.new(hash_function, block_size) -> function(message, key) -> HMAC string ]] local string = string local sha2 = requir...
include("/scripts/includes/consts.lua") include("/scripts/includes/skill_consts.lua") include("/scripts/includes/attributes.lua") include("/scripts/includes/monk.lua") isPersistent = false function getDuration(source, target) return 2000 end function onStart(source, target) return true end function onEnd(source...
function Auctionator.Utilities.PrettyDate(when) details = date("*t", when) return Auctionator.Locales.Apply("DAY_"..tostring(details.wday)) .. ", " .. Auctionator.Locales.Apply("MONTH_"..tostring(details.month)) .. " " .. details.day end
items = { ["hcSteelPanelBlack"] = { schematic_id = 1696982192, full_name = "Black Steel Panel" }, ["hcSteelPanelDarkGray"] = { schematic_id = 1696982192, full_name = "Dark Gray Steel Panel" }, ["hcSteelPanelGray"] = { schematic_id = 1696982192, full_na...
-- object based material renderer, default renderer for materials. local ReplicatedStorage = game:GetService("ReplicatedStorage") local common = ReplicatedStorage:WaitForChild("common") local Assets = require(common:WaitForChild("Assets")) local MaterialRenderer = {} local blacklist = { HumanoidRootPart = true,...
local fio = require('fio') local t = require('luatest') local g = t.group() local helpers = require('test.helper') g.before_all = function() g.cluster = helpers.Cluster:new({ datadir = fio.tempdir(), server_command = helpers.entrypoint('srv_vshardless'), cookie = helpers.random_cookie(), ...
require('torch') require('onmt.init') local cmd = onmt.utils.ExtendedCmdLine.new('apply_embeddings.lua') cmd:setCmdLineOptions( { { '-txt_src', '', [[Tokenized text file to apply embeddings on.]], { valid = onmt.utils.ExtendedCmdLine.fileExists } }, { '-txt_tgt', ''...
----------------------------------- -- Ability: Shield Bash -- Delivers an attack that can stun the target. Shield required. -- Obtained: Paladin Level 15, Valoredge automaton frame Level 1 -- Recast Time: 3:00 minutes (3:00 for Valoredge version) -- Duration: Instant ----------------------------------- require("script...
module(..., package.seeall) local json = require "json"; local Log = require("Systems.Log"); local ComponentFactory = require("Systems.ComponentFactory"); local WordGameDictionary = require("Systems.WordGameSystem.WordGameDictionary"); function newLetterTileComponent(self) local component = ComponentFactory:newComp...
CreateClientConVar( "cinematicbar_barsize", "0.25", true, false ) CreateClientConVar( "cinematicbar_effects", "0", true, false ) CreateClientConVar( "cinematicbar_vertical", "0", true, false ) local amount = GetConVar( "cinematicbar_barsize" ) local effect = GetConVar( "cinematicbar_effects" ) local vertical = GetConVa...
local _, helpers = ... NugRunning = CreateFrame("Frame","NugRunning") local NugRunning = NugRunning NugRunning:SetScript("OnEvent", function(self, event, ...) return self[event](self, event, ...) end) local L = setmetatable({}, { __index = function(t, k) -- print(string.format('L["%s"] = ""',k:gsub("...
---------------------------- -- SSBase -- -- Created by Skeyler.com -- ---------------------------- -- Variables that are used on both client and server SWEP.Author = "" SWEP.Contact = "" SWEP.Purpose = "" SWEP.Instructions = "" SWEP.ViewModel = "models/weapons/c_toolgun.mdl" SW...
{{/* This command allows you to send messages through YAGPDB, with optional channel. You may send it as embed using `-send [channel] <content>` or as raw with `-send-raw [channel] <content>`. Recommended trigger: Regex trigger with trigger `\A(-|<@!?204255221017214977>\s*)(send-?(raw)?)(\s+|\z)` */}} {{ $type := o...
--local toRemove = {"env_fire","trigger_hurt","prop_physics","prop_ragdoll","light","spotlight_end","beam","point_spotlight","env_sprite","func_tracktrain","light_spot","point_template"} hook.Add("Initialize", "remove_useless_shit", function() hook.Remove("PlayerTick","TickWidgets") hook.Remove("Think", "CheckSche...
local ABGS = require(script:GetCustomProperty("APIBasicGameState")) local VICTORY = script:GetCustomProperty("Victory"):WaitForObject() local DEFEAT = script:GetCustomProperty("Defeat"):WaitForObject() local GAME_STATE = script:GetCustomProperty("BasicGameStateManagerServer"):WaitForObject() local WHOOSH_SFX = script...
object_tangible_component_structure_mustafar_shared_must_adhesive_friction_surface = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/component/structure/mustafar/shared_must_adhesive_friction_surface.iff" } ObjectTemplates:addClientTemplate(object_tangible_component_structure_mustafar_sha...
--サイレント・ソードマン LV3 function c1995986.initial_effect(c) --disable effect local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetCode(EVENT_CHAIN_SOLVING) e1:SetRange(LOCATION_MZONE) e1:SetOperation(c1995986.disop) c:RegisterEffect(e1) --special summon local e2=Effect...
RLS = RLS or {} -- Thanks aStonedPenguin for solution local include_sv = (SERVER) and include or function() end local include_cl = (SERVER) and AddCSLuaFile or include local include_sh = function(f) include_sv(f) include_cl(f) end -- Libs loading include_sh("r_libs/mysqlite.lua") -- System loading include_sv("r_l...
-- Copyright (c) 2019 Redfern, Trevor <trevorredfern@gmail.com> -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT describe("class", function() local class = require "class" describe("type names", function() it("requires a type name for a class", function() loc...
local luatz = require "luatz.init" local time = 1234567890 local base_tt = luatz.gmtime(time) describe("#strftime works the same as os.date", function() local strftime = luatz.strftime.strftime for _, spec in ipairs { "a", "A", "b", "B", "c", "C", "d", "D", "e", "F", "g", "G", "H", "I", "j", "m", "M", "n", "p", "...
local radiowozy = { -- x,y,z,rx,ry,rz,model -- LS {1535.43,-1678.77,12.95,0,0,0,596}, {1535.44,-1666.73,12.95,0,0,0,596}, --LV {2251.91,2477.00,10.41,0,0,180,596}, {2260.81,2477.00,10.41,0,0,180,596}, {2273.88,2477.00,10.41,0,0,180,596}, {2282.25,2477.00,10.41,0,0,180,596}, {2295.62...
----------------------------------- -- Area: Rabao -- NPC: Mileon -- Type: Lucky Roll Gambler -- !pos 26.080 8.201 65.297 247 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- function onTrade(player, npc, trade) end function onTrigger(player, npc) player:startEv...
E2Lib.RegisterExtension( "camera", false ) -- Original by WireDemon -- Edit by Divran local max_convar = CreateConVar( "wire_expression2_cameras_max", 5, { FCVAR_ARCHIVE, FCVAR_NOTIFY } ) local count = {} ----------------------------------------------------------------------- -- Construct & Destruct -- Create initi...
return {'peignoir','peigne','peil','peilantenne','peilbaar','peildatum','peilen','peiler','peilglas','peiling','peiljaar','peilkoker','peillood','peilloos','peilopening','peilraam','peilschaal','peilstok','peilteken','peilverlaging','peilzender','peinzen','peis','peinzer','peies','peilballon','peilbeheer','peilbesluit'...
function KeyDown( args ) if args.key == 70 then Network:Send("Hop", nil) end end Events:Subscribe("KeyDown", KeyDown )
--[[ Instructions: - Create two parts named 'PartA' and 'PartB' in Workspace and position them far away - Enable Streaming Enabled - Create a Script in ServerScriptService - Put the following code in the script: --]] local Players = game:GetService("Players") local DEBOUNCE_DURATION = 5 local par...
local screenplayHelper = {} custom_nerf_boss_screenplay = ScreenPlay:new { numberOfActs = 1, screenplayName = "custom_nerf_boss_screenplay", } registerScreenPlay("custom_nerf_boss_screenplay", true) function custom_nerf_boss_screenplay:start() if (isZoneEnabled("corellia")) then self:spawnMobiles() end end ...
object_tangible_quest_quest_start_chapter8_publish_gift_collection_token = object_tangible_quest_quest_start_shared_chapter8_publish_gift_collection_token:new { } ObjectTemplates:addTemplate(object_tangible_quest_quest_start_chapter8_publish_gift_collection_token, "object/tangible/quest/quest_start/chapter8_publish_g...
local util = require("spec.util") describe("type base", function() it("reports vararg functions with proper `...` within errors (regression test for #340)", util.check_type_error([[ local function f(x: number, ...: string): string... return ... end f = 2 ]], { { msg = "in assign...
local config = { swimmingPosition = Position(32968, 32626, 5), caveEntrancePosition = Position(32968, 32631, 8), caveExitPosition = Position(32971, 32620, 8) } function onStepIn(creature, item, position, fromPosition) local player = creature:getPlayer() if not player then return true end -- Jumping off the m...
local function FindChair(actor) local npc = actor:GetNPC() local npc_pos = npc:GetPos() local entities = ents.FindInSphere(npc_pos, 500) for _, ent in ipairs(entities) do if not IsValid(ent) or not ent:GetClass():StartWith('prop_') then continue end local ent_model = ent:GetModel() if not ent_model then con...
local read_terminate = function(istr) local s,mf,odat s = torch.CharStorage(#istr+1) s[#s] = 0 mf = torch.MemoryFile(s, 'rw') mf:writeString(istr) mf:seek(1):binary() odat = mf:readByte() mf:close() return odat end local read_reward = function(istr) local s,mf,odat s = to...
--[[ ============================================================================================================ Author: Zenicus Date: December 13, 2015 Called when the dismantle part attacks on a target. ===============================================================================================================...
local libfunctions = require("lib/libfunctions") libfunctions.overwrite_setting("double-setting", "burner-power-progression-factor-solid", 2.0) libfunctions.overwrite_setting("double-setting", "burner-power-progression-factor-fluid", 1.0) libfunctions.overwrite_setting("string-setting", "burner-power-progression-tier...
local Foggy = StormFox.WeatherType( "fog" ) local max,min = math.max,math.min Foggy.CanGenerate = true Foggy.TimeDependentGenerate = {340,400} Foggy.StormMagnitudeMin = 0.6 Foggy.StormMagnitudeMax = 0.9 Foggy.MaxLength = 1440 / 4 Foggy.GenerateCondition = function() return GetConVar("sf_enablefog"):GetBool() and mat...
Formation = "beeline"; formationSlot({ 0, 0, 0.8, },{ 0, 0, 1, },{ 0, 1, 0, }) formationSlot({ 0, 0, -0.8, },{ 0, 0, 1, },{ 0, 1, 0, })
-- 实验nginx: openresty http://openresty.org/cn/index.html --------安装-------------- --https://github.com/steve0511/resty-redis-cluster --cp resty-redis-cluster/lib/resty/rediscluster.lua /usr/local/lib/nginx/openresty/lualib/ --cp resty-redis-cluster/lib/resty/xmodem.lua /usr/local/lib/nginx/openresty/lualib/resty ----...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include('shared.lua') local Targets = { [1] = Vector(-448,1856,0), [2] = Vector(-448,1600,0), [3] = Vector(-448,1344,0), } local Guns = { [1] = "smg1", [2] = "ar2", } local PlayerModels = { [1] = "models/player/Group03/male_01.mdl", [2] = "m...
local ffi = require('ffi') local block = require('radio.core.block') local types = require('radio.types') local SaveBitsSink = block.factory("SaveBitsSink") function SaveBitsSink:instantiate(file) if type(file) == "number" then self.fd = file elseif type(file) == "string" then self.filename =...
--== Initialize Renderer ==-- local defaultLayout = --#ignore [[]] --#includeFile "src/styles/default.html" local defaultStyles = --#ignore [[]] --#includeFile "src/styles/default.css" local userLayout = fs.open(config.layout or "layout.html", "r") local userStyles = fs.open(config.styles or "styles.css", "r") ...
fx_version 'cerulean' game 'gta5' author 'Lfuelling' description 'ESX Drugfarms' version '1.0.2' client_scripts { '@es_extended/locale.lua', 'locales/*.lua', 'config.lua', 'warehouses.lua' } server_scripts { '@es_extended/locale.lua', 'locales/*.lua', 'config.lua', 'server.lua' }
--======================================= -- filename: entities/environments/exit.lua -- author: Shane Krolikowski -- created: Apr, 2018 -- description: Exit entity. --======================================= local Environment = require 'entities.environments.environment' local Exit = Environment:ext...