content stringlengths 5 1.05M |
|---|
--------------------
-- Sassilization
-- By Sassafrass / Spacetech / LuaPineapple
--------------------
ENT.Type = "anim"
ENT.Base = "building_base"
ENT.Attackable = true
|
Ext.Require("Shared.lua")
---@param item EsvItem
---@param tooltip TooltipData
local function OnItemTooltip(item, tooltip)
if item ~= nil and item:HasTag("LLNWIZ_RenamingWand") then
local element = tooltip:GetElement("ArmorSlotType")
if element == nil then
element = {
Type = "ArmorSlotType",
Label = ""... |
-----------------------------------
-- Author: Uli Schlachter --
-- Copyright 2009 Uli Schlachter --
-----------------------------------
require("obvious.lib.widget.graph")
require("obvious.lib.widget.progressbar")
require("obvious.lib.widget.textbox")
local setmetatable = setmetatable
local getmetatable = get... |
function printf (fmt, ...)
if arg then
return io.write(string.format(fmt .. "\n", unpack(arg)))
else
return io.write(fmt .. "\n");
end
end
-- shared_ptr.lua
function test_ptr(ptr)
if ptr == nil then
print("test_ptr is nil")
else
print("test_ptr")
print(ptr:getValue())
end
end
--for i=0,10000 do
--sha... |
local VolumetricReplicationPadding, parent =
torch.class('nn.VolumetricReplicationPadding', 'nn.Module')
function VolumetricReplicationPadding:__init(pleft, pright, ptop, pbottom,
pfront, pback)
parent.__init(self)
self.pleft = pleft
self.pright = pright or self... |
class 'HijackBlocker'
function HijackBlocker:__init()
Events:Subscribe( "LocalPlayerInput", self, self.LocalPlayerInput )
self.cooldown = 2
self.cooltime = 0
end
local actions = { 37, 38, 45, 82, 121, 147, 148, 150 }
local always_drop_states = { 207, 208, 324, 221, 222, 270, 272, 273, 440, 50 }
inval... |
-- print('race=', df.historical_entity.find(df.global.ui.civ_id).race)
-- for _,f in pairs(df.global.world.history.figures) do
-- if f.flags.deity and f.race==572 then
-- print(f, f.id, 'race=', f.race)
-- end
-- end
-- found={}
-- for _, hfid in ipairs(df.historical_entity.find(df.global.ui.civ_id).hi... |
local src = require("Week 2.Easy.src.Lua") -- Put source here
local tests = {
{"74 111 115 104 32 105 115 32 97 32 114 101 97 108 108 121 32 99 111 111 108 32 103 117 121", "Josh is a really cool guy"},
{"67 111 119 115 32 97 114 101 32 112 114 101 116 116 121 32 101 112 105 99", "Cows are pretty epic"},
{"82 117 1... |
require("vstudio")
local p = premake
local m = p.vstudio.vc2010
---
-- Override MASM to use NASM instead
---
m.categories.Masm = {
name = "Masm",
extensions = ".asm",
priority = 9,
emitFiles = function(prj, group)
local fileCfgFunc = function(fcfg, condition)
if fcfg then
return {
m.exclude... |
--[[
Licensed according to the included 'LICENSE' document
Author: Thomas Harning Jr <harningt@gmail.com>
]]
local tostring = tostring
local assert = assert
local jsonutil = require("json.util")
local util_merge = require("json.util").merge
local type = type
module("json.encode.others")
-- Shortcut that works
enco... |
-- This function is monkey patched to return MockDataStoreService during tests
local IsPlayer = {}
function IsPlayer.Check(object)
return typeof(object) == "Instance" and object.ClassName == "Player"
end
return IsPlayer
|
-- Lose Face - An open source face recognition project
-- Copyright (C) 2008-2010 David Capello
-- All rights reserved.
--
-- Description:
-- This script crops all the faces from .ppm files in cidisinc_faces/
-- directory. Each face-file is saved with the same original file-name
-- but with "-face" suffix and in... |
require "lfs"
for i, path in ipairs({"input.txt", "/input.txt", "docs", "/docs"}) do
local mode = lfs.attributes(path, "mode")
if mode then
print(path .. " exists and is a " .. mode .. ".")
else
print(path .. " does not exist.")
end
end
|
require('math_p')
core = require('core')
input = require('input')
translator = require('translathor')
content = require('content')
utils = require('utils')
-- Constructor
GameObject = class(QuadtreeItem, function(t, qt_parent, world_parent)
QuadtreeItem.init(t, qt_parent)
t.parent = world_parent
t.alive = true
t.d... |
ITEM.name = "Gravi"
ITEM.model = "models/nasca/etherealsrp_artifacts/gravi.mdl"
ITEM.description = "Lumpy, reddish artifact."
ITEM.longdesc = "Emits a moderate amount of radiation whilst increasing the carry weight of the one holding the artifact. Affects the inner ear's function, causing lightheadedness, dizziness, an... |
--[[ LICENSE HEADER
MIT Licensing
Copyright © 2017 Jordan Irwin
See: LICENSE.txt
--]]
-- TODO: Use file in world directory & function that waits until server is loaded
-- Add tables of {old, new} to be temporarily removed (cleaned) to this list.
-- Recommended to add source mod to 'depends.txt'.
-- WA... |
local AddonName, AddonTable = ...
-- Blackrock Depths
AddonTable.brd = {
-- High Interrogator Gerstahn
11625, -- Enthralled Sphere
11624, -- Kentic Amice
11626, -- Blackveil Cape
22240, -- Greaves of Withering Despair
-- Lord Roccor
11631, -- Stoneshell Guard
11632, -- Earthslag S... |
local defaultNotePos = {};
local spin = false;
local arrowMoveX = 0;
local arrowMoveY = 0;
function onSongStart()
for i = 0,7 do
x = getPropertyFromGroup('strumLineNotes', i, 'x')
y = getPropertyFromGroup('strumLineNotes', i, 'y')
table.insert(defaultNotePos, {x,y})
end
end
functi... |
--- DiskUsage gizmo.
-- Displays an icon that when clicked shows a floating wibox populated with a
-- configurable set of mount points and their usage stats. The icon itself is
-- a `wibox.widget` so all the standard functions are available.
-- @module giblets.gizmos.diskusage
-- @author Nathan Lundquist (atatsu)
-- @... |
do
local _ = {
['player-port'] = {
icon = '__base__/graphics/icons/player-port.png',
max_health = 50,
icon_mipmaps = 4,
type = 'player-port',
animation = {
filename = '__base__/graphics/entity/player-port/player-port-animation.png',... |
require("stream")
require("strutil")
require("xml")
require("process")
require("filesys")
require("hash")
function SelectRandomItem(choices)
local val, i
if #choices < 1 then return nil end
for i=1,10,1
do
val=math.random(#choices)
if blocklist:check(choices[val]) == false then return choices[val] end
end
return n... |
--[[
A frame that shows important procs.
]]
------------------------
-- Imports and locals --
------------------------
local debug = print
local ipairs = ipairs
local pairs = pairs
local unpack = unpack
local math_floor = math.floor
local table_insert = table.insert
local GetTime = GetTime
local UnitBuff = ... |
local Testing = script.Parent
local modules = Testing.Parent
local Comparisons = require(Testing.Comparisons)
local Results = require(modules.Results)
local Descriptions = require(modules.Descriptions)
local Describe, GetModuleName = Descriptions.Describe, Descriptions.GetModuleName
local function newT(testSettings, ex... |
--[[
dns2socks Luci configuration page.Made by 981213
]]--
module("luci.controller.dns2socks", package.seeall)
function index()
if not nixio.fs.access("/etc/config/dns2socks") then
return
end
local page
page = entry({"admin", "services", "dns2socks"}, cbi("dns2socks"), _("DNS2Socks"), 45)
page.dependent = t... |
local render_EnableClipping = render.EnableClipping
local render_PushCustomClipPlane = render.PushCustomClipPlane
local LocalToWorld = LocalToWorld
local IsEntity = IsEntity
local PART = {}
PART.FriendlyName = "clip"
PART.ClassName = "clip2"
PART.Group = "experimental"
PART.Icon = 'icon16/cut.png'
function PART:OnPa... |
local AceGUI = LibStub("AceGUI-3.0")
local MainFrame = AceGUI:Create("Frame")
MainFrame:SetTitle("DoReady")
MainFrame:SetStatusText("DoReady" .. " " .. GetAddOnMetadata("DoReady", "Version") )
MainFrame:EnableResize(false)
MainFrame:SetWidth(850)
MainFrame:SetHeight(150)
MainFrame:Hide()
local instanceTypeSelector
lo... |
local type, ipairs = type, ipairs
local string_format = string.format
local ngx = ngx
local log, CRIT = ngx.log, ngx.CRIT
local location = require "trochilus.gateway.context.location"
local kafka = require "trochilus.gateway.context.kafka"
local consul = require "trochilus.gateway.context.consul"
local sys_util = requ... |
--------------------------------------------------------------------------------
-- Simulation acceleration DLL support
--------------------------------------------------------------------------------
if not TURBOSTROI and (not Turbostroi or not Turbostroi.SetMTAffinityMask) then return end
local turbostroiTrains = {}
... |
function find_in_array(array, search)
for i, item in array do
if item == search then
return i
end
end
return -1
end
function sortedKeys(query, sortFunction)
local keys, len = {}, 0
for k,_ in pairs(query) do
len = len + 1
keys[len] = k
end
table.sort(keys, sortF... |
local BtnContainer = require 'scene_editor.gui.buttoncontainer'
local Tile = require 'world.tilemap.tiles'
local TileMenu = {}
function TileMenu:init(editor, x, y)
self.btn_grid = BtnContainer(x, y, {
rows = Tile.MAP_ROWS,
cols = Tile.MAP_COLS,
padding = {2, 4}
})
self.editor = editor
for i = 1,... |
local status_ok, null_ls = pcall(require, "null-ls")
if not status_ok then
return
end
local formatting = null_ls.builtins.formatting
local diagnostics = null_ls.builtins.diagnostics
-- npm install --save-dev prettier
null_ls.setup {
debug = false,
sources = {
formatting.prettier.with {
... |
local M = {}
M.base_30 = {
white = "#9198B6", -- custom
darker_black = "#232738",
black = "#292D3E", -- nvim bg
black2 = "#2f3344",
one_bg = "#333748",
one_bg2 = "#3c4051",
one_bg3 = "#444859",
grey = "#515566",
grey_fg = "#5b5f70",
grey_fg2 = "#65697a",
light_grey = "#6d7182",
red... |
--{{---| Keycodes |---------------------------------------------------------------------------------------------------------
-- xev | grep 'keycode'
modkey = "Mod4"
altkey = "Mod1"
key_F1 = "#67"
key_F2 = "#68"
key_F3 = "#69"
key_F4 = "#70"
key_F5 = "#71"
... |
Config.set('mapscenes_speed', 15)
Config.set('mapscenes_animated', false)
Config.set('mapscenes_rotate_speed', 0.05)
function Mapscenes:PlayerInitialized(player)
Cable.send(player, 'fl_mapscene_load', self.points)
end
function Mapscenes:LoadData()
self:load()
end
function Mapscenes:SaveData()
self:save()
end
... |
/*---------------------------------------------------------------------------
Functional library
by FPtje Atheos
---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------
Function currying
Take a function with n paramet... |
cc.FileUtils:getInstance():setPopupNotify(false)
require "socket"
require "config"
require "cocos.init"
local function main()
if DEBUG == 0 then
jit.off()
end
local sceneName = 'LoginTest'
require("app.MyApp"):create():run(sceneName)
end
local status, msg = xpcall(main, __G__TRACKBACK__)
if... |
return {"tilesets.lua"} |
local state = {}
local input = require "input"
local rebinded = {nil, 0 , 0} --Rebinded action table: {action, player, entryID}
local ready = {false, false, false}
local ai = {false, nil, nil} --false = real player, true = AI, nil = not stated
local playerSections = {}
local selectedSection = 1
local optionMenu = mo... |
local BoostEffect = GameObject:extend()
function BoostEffect:new(zone, x, y, opts)
BoostEffect.super.new(self, zone, x, y, opts)
self.depth = 75
self.sx, self.sy = 1, 1
self.timer:tween(0.35, self, {sx = 2, sy = 2}, 'in-out-cubic')
self.current_color = opts.color or default_color
self.timer:after(0.2, f... |
ITEM.ID = "beer";
ITEM.Name = "Beer";
ITEM.Description = "A bottle of beer. It's probably vinegar by now.";
ITEM.Model = "models/props_junk/garbage_glassbottle003a.mdl";
ITEM.Weight = 1;
ITEM.FOV = 11;
ITEM.CamPos = Vector( 50, 50, 50 );
ITEM.LookAt = Vector( 0, 0, 0 );
ITEM.BulkPrice = 50;
ITEM.Licen... |
-- MainWidgetButton.lua
-- ArsonistD
-- Started : 12/08/2021
-- Last Edit : 2/11/2021
local framework = require(script.Parent.Parent.Parent.ArsonsPluginFramework)
local Roact = require(script.Parent.Parent.Parent.Packages.Roact)
MainWidgetButton = Roact.Component:extend(
"MainWidgetButton"
)
function MainWidgetB... |
function init()
effect.addStatModifierGroup({
{stat = "protection", effectiveMultiplier = config.getParameter("protectionModifier", 0.01)}
})
end
function update(dt)
end
function uninit()
end
|
local M = {}
--
-- dependencies
--
local ffi = require "ffi"
local csgo_weapons = require "gamesense/csgo_weapons"
local string_gsub = string.gsub
local math_floor = math.floor
local cast = ffi.cast
--
-- ffi structs
-- (mostly for image parsing)
--
local png_ihdr_t = ffi.typeof([[
struct {
ch... |
female_mawgax = Creature:new {
objectName = "@mob/creature_names:mawgax_female",
socialGroup = "mawgax",
faction = "",
level = 23,
chanceHit = 0.35,
damageMin = 240,
damageMax = 250,
baseXp = 2219,
baseHAM = 5900,
baseHAMmax = 7200,
armor = 0,
resists = {115,115,10,-1,10,10,-1,-1,-1},
meatType = "meat_dome... |
--!A cross-platform build utility based on Lua
--
-- 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
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... |
--- @classmod IStackableObject
local Gui = require("api.Gui")
local IOwned = require("api.IOwned")
local IMapObject = require("api.IMapObject")
local IStackableObject = class.interface("IStackableObject",
{
amount = "number",
... |
require "value_sensors.day_time"
require "value_sensors.evolution_factor"
require "value_sensors.kill_count"
require "value_sensors.play_time"
require "value_sensors.player_locations"
require "value_sensors.pollution_around_player"
require "value_sensors.remote_sensor"
require "settingsGUI"
require "remote"
if not evo... |
ITEM.name = "탁자"
ITEM.model = Model("models/props_c17/FurnitureDrawer001a.mdl")
ITEM.uniqueID = "stor_drawer"
ITEM.maxWeight = 10
ITEM.desc = "일반적인 크기의 탁자입니다."
|
package.cpath = package.cpath .. ";lua-?/?.so"
local pam = require "pam"
local pwauth = {}
pwauth.pam = require "pwauth_pam"
return pwauth
|
AddCSLuaFile()
SWEP.HoldType = "ar2"
if CLIENT then
SWEP.PrintName = "MAC10"
SWEP.Slot = 2
SWEP.ViewModelFlip = false
SWEP.ViewModelFOV = 54
SWEP.Icon = "vgui/ttt/icon_mac"
SWEP.IconLetter = "l"
end
SWEP.Base = "weapon_tttbase"
SWEP.Kind = WEAPON_HEAVY
SWEP.CanBuy = { ROLE_MERCENARY, ROLE_KILLER }
SWEP.Li... |
-- Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
-- Licensed to the public under the Apache License 2.0.
module("luci.statistics.rrdtool.definitions.dns", package.seeall)
function rrdargs( graph, plugin, plugin_instance )
local traffic = {
title = "%H: DNS traffic", vlabel = "Bit/s",
data = {
sou... |
require("dolt_common")
dolt_prepare = prepare
function prepare()
sysbench.opt.threads = 1
dolt_prepare()
end
function thread_init()
drv = sysbench.sql.driver()
con = drv:connect()
stmt = con:prepare('SELECT * FROM sbtest1 WHERE small_int_col > 0')
end
function thread_done()
stmt:close()
... |
require("Menu/settings.lua")
require("Game/particleEffect.lua")
--this = SceneNode()
worldEdgeStuff = {}
function worldEdgeStuff.init(island, staticNode, dynamicNode)
local self = worldEdgeStuff
--Core.setUpdateHzRealTime(16)
--assert(island,"no island in in parameter")
print("island:getNodeType()="..island... |
local re = require 're'
return re.compile([[
'<?' {|
{:target: %NAME :}
(%s+ {:arguments: (!'?>' .)* :})?
{:type: '' -> 'processing_instruction' :}
|} '?>'
]], {
NAME = require 'parse.match.identifier.xml';
})
|
for i=1,2 do
local dot={x1,x2,x3,x4}
local max=-1
local min=1000
local k1=(vertex[i].y-vertex[i+i].y)/(vertex[i]-vertex[i+i].x)
local k2=-1/k1
local b1=vertex[i].y-k1*vertex[i].x
for j=5,8 do
local b2=vertex[j].y-k2*vertex[j].x
dot[j1]=(b2-b1)/(k1-k2)
if dot[j1]>max then
max=dot[j1]
... |
local utils = require('utils')
local noremap = {
noremap = true
}
utils.remap {
n = {
{'<C-p>', "<cmd>lua require('telescope.builtin').git_files({previewer = false})<CR>", noremap},
{'<leader>pf', "<cmd>lua require('telescope.builtin').find_files()<CR>", noremap},
{'<leader>b', "<cmd>lua require('tele... |
advertise=false --Turn this on to advertise to the master server
rate = 1/10 --How often the server updates.
servip="*" --The local ip to bind to.
servport="27016" --The port to use.
servname = "Default AOls Server" --Name for masterserver
servdesc = "Default AOls Description" --Description for masterserver
maxplaye... |
function Grid(width, height, visible)
local grid = {
data={
current_win_width = globals.win_width,
current_win_height = globals.win_height,
width = width,
height = height
},
visible = visible
}
local tInsert = table.insert
... |
ghomrassen_feral_bantha_herd_neutral_none = Lair:new {
mobiles = {{"gr_feral_bantha",1}},
spawnLimit = 15,
buildingsVeryEasy = {},
buildingsEasy = {},
buildingsMedium = {},
buildingsHard = {},
buildingsVeryHard = {},
buildingType = "none"
}
addLairTemplate("ghomrassen_feral_bantha_herd_neutral_none", ghomrasse... |
local TM = { };
local ThreadManager = { StateFirstRun = 0, StateRunning = 1, StateSuspended = 2, StateWaiting = 3, threads = { } }
setmetatable(ThreadManager, { __index = TM });
function ThreadManager:Resume(name)
for i = 1, #self.threads do
if(self.threads[i]._name == name) then
if(self.threads[i]._state == sel... |
tweak_data.hud_icons.yakuza_injector = {
texture = "guis/textures/pd2/equipment_02",
texture_rect = {
96,
0,
32,
32
}
}
tweak_data.hud_icons.burglar_luck = {
texture = "guis/textures/pd2/equipment_02",
texture_rect = {
96,
0,
32,
32
... |
-- Jump Bosst - increases jump power by +25%, +50%, +75%, or +100%
--------------------------------------------------
local function on_apply(player, multiplier, id)
if mcl_beacon.has_player_monoids then
player_monoids.jump:add_change(player, multiplier, id)
else
local physics = player:get_physics_override()
... |
local ThemeColor = LoadModule('Theme.Colors.lua')
local toasties = Def.ActorFrame {}
if GAMESTATE:IsHumanPlayer(PLAYER_1) then
if LoadModule("Config.Load.lua")("ToastiesDraw",CheckIfUserOrMachineProfile(0).."/OutFoxPrefs.ini") then
toasties[#toasties+1] = LoadModule("Options.SmartToastieActors.lua")(1)
end
end
i... |
local objects =
{
--Maxime
createObject(7024,1481.5999800,1598.0999800,14.2000000,0.0000000,0.0000000,270.0000000,0), --object(vegasplant069,0), (1,0),
createObject(8417,1526.1999500,1595.6899400,32.2000000,320.0000000,0.0000000,90.0000000,0), --object(bballcourt01_lvs,0), (2,0),
createObject(8417,1543.0000000,159... |
RegisterNetEvent("caue-tcg:buy", function(pType)
local src = source
local itemInfo = TCG.Items[pType]
if not itemInfo then
TriggerClientEvent("DoLongHudText", src, "itemInfo not found?", 2)
return
end
local cid = exports["caue-base"]:getChar(src, "id")
if not cid then
T... |
---------------------------------------------
-- Benediction
-- Meant for Qn'aern (WHM) with Ix'Aern encounter
---------------------------------------------
require("scripts/globals/monstertpmoves")
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/msg")
--------------------... |
return require("selenized.highlights")
|
local comm = require "comm"
local datetime = require "datetime"
local shortport = require "shortport"
local stdnse = require "stdnse"
local string = require "string"
local nmap = require "nmap"
local os = require "os"
description = [[
Retrieves the day and time from the Time service.
]]
---
-- @output
-- PORT STATE... |
function dofile(filename)
return assert(loadfile(filename))()
end
local Array = dofile("..\\..\\Common\\lua\\Array.lua")
local Utility = dofile("..\\..\\Common\\lua\\Utility.lua")
local code = {}
function code:part1(input)
local point = Utility.split(input, "\n", true)
local map = Array()
for _, raw in pairs(poi... |
PhysicsFacet = Facet:new()
function PhysicsFacet:new(entity, o)
o = o or {}
return self:create(entity, o)
end
function PhysicsFacet:getType()
return "PhysicsFacet"
end
function PhysicsFacet:setVelocity(velocity)
local axes = 0
if velocity[1] ~= nil then
axes = axes - 1
else
velocity[1] = 0.0
end
... |
-- KBP PP-2000
if SERVER then
AddCSLuaFile( "shared.lua" )
resource.AddFile("materials/vgui/ttt/icon_bb_pp2000.vmt")
resource.AddFile("models/weapons/v_smg_pp2000.mdl")
resource.AddFile("models/weapons/w_smg_pp2000.mdl")
resource.AddFile( "materials/models/weapons/v_models/v_smg_pp2000/pbs1soundsuppresorjp... |
WanderInBaseTask = {}
WanderInBaseTask.__index = WanderInBaseTask
function WanderInBaseTask:new(superSurvivor)
local o = {}
setmetatable(o, self)
self.__index = self
if(superSurvivor == nil) then return nil end
o.Complete = false
o.parent = superSurvivor
o.Name = "Wander In Base"
o.OnGoing = true
o.Group = n... |
pfDB["items"]["enUS-turtle"] = {
[50203] = "Corrupted Sand",
[50231] = "Coil of Sturdy Rope",
[50232] = "Cheap Goblin's Oil",
[50233] = "Wooden Club",
[51044] = "Antnormi\'s Head",
[51325] = "Elwynn Pumpkin",
[51330] = "Delicious Pumpkin Pie",
[51425] = "Teresa's Copper Coin",
[51706] = "Country Pumpk... |
require "lib"
local http = require "copas.http"
local cjson = require "cjson"
local font
local word = "#loading"
local link
local guessedLetters
local strikes
local win
local lose
local hangmanColor = "black"
local wordColor = "blue"
local keyboardLetters = {
{
"q",
"w",
"e",
"r",
"t",
"y"... |
function update()
localAnimator.clearDrawables()
local targets = animationConfig.animationParameter("targets")
local drawables = {}
if targets then
for _,targetId in ipairs(targets) do
local position = world.entityPosition(targetId)
localAnimator.addDrawable({
image = "/items/active/we... |
return {'kays','kaya','kaylee','kayleigh','kays','kayas','kaylees','kayleighs'} |
-----------------------------------------
-- ID: 4616
-- Scroll of Curaga II
-- Teaches the white magic Curaga II
-----------------------------------------
function onItemCheck(target)
return target:canLearnSpell(8)
end
function onItemUse(target)
target:addSpell(8)
end
|
local Table
if game then
Table = require(plugin.com.blacksheepherd.util.Table)
else
Table = require("com.blacksheepherd.util.Table")
end
local BinaryHeap
do
local _base_0 = {
Insert = function(self, el)
table.insert(self, el)
return self:_upheap(#self)
end,
IsEmpty = function(self)
r... |
local M = {}
M.ChunkWidth = script.ChunkWidth.Value;
M.ChunkHeight = script.ChunkHeight.Value;
M.WorldSizeInChunks = script.WorldSizeInChunks.Value
M.ViewDistanceInChunks = script.ViewDistanceInChunks.Value
M.WorldSizeInVoxels = M.WorldSizeInChunks * (M.ChunkWidth * 2)
M.BlockTextures = {
Dirt = "http://www.robl... |
local plyMeta = FindMetaTable("Player");
plyMeta.isMedic = fn.Compose{fn.Curry(fn.GetValue, 2)("medic"), plyMeta.getJobTable}
|
return {
version = "1.1",
luaversion = "5.1",
orientation = "orthogonal",
width = 200,
height = 100,
tilewidth = 32,
tileheight = 32,
properties = {},
tilesets = {
{
name = "tilemap2",
firstgid = 1,
tilewidth = 32,
tileheight = 32,
spacing = 0,
margin = 0,
... |
-- The character saving function.
function FScript.SaveCharacter(ply, requester)
if not FScript.IsValidPlayer(ply) then
return
end
local CanSave, Reason = hook.Run("FScript.CanSaveCharacter", ply)
if CanSave == false then
if Reason then
FScript.SendNotification(requester or ply, 1, Reason)
end
return
... |
module(..., package.seeall)
local ffi = require("ffi")
local C = ffi.C
local lib = require("core.lib")
local htons = lib.htons
local ntohs = lib.ntohs
IP6 = {}
ip6_t = ffi.typeof([[
union {
uint64_t u64[2];
uint16_t u16[8];
uint8_t u8[16];
}
]])
local function colons (str)
local i = 0
for _ in string.g... |
#! /usr/bin/env lua
local Et = require "etlua"
local Json = require "cjson"
local filename = os.tmpname ()
os.remove (filename)
local done = os.execute (Et.render ([[ ssh-keygen -q -t rsa -b 4096 -f <%- filename %> -N "" ]], {
filename = filename,
}))
local private, public, file
if done then
pcall (fun... |
local AddonName, AddonTable = ...
AddonTable.ataldazar = {
-- Priestess Alun'za
158321,
158322,
158309,
158306,
158347,
158313,
155861,
158319,
-- Vol'kaal
159632,
158375,
158348,
158317,
159445,
155869,
158320,
-- Rezan
159841,
160269,
... |
--[[
##############################################################################
S V U I By: Failcoder
##############################################################################
--]]
--[[ GLOBALS ]]--
local _G = _G;
local unpack = _G.unpack;
local select = _G.select;
local ipairs = _G.ipairs;
local pairs... |
svrStart()
svrAccept()
setBufferName("servertest.lua")
print2(getFunction("update"))
function svrClear()
svrSend(string.char(27).."[2J")
end
function svrUpdate()
local s = svrReceive()
if s ~= "" then
luaCall(s)
local err = getErrorText()
if err ~= "" then
svrSend(err)
clearError()
... |
-- Automatically generated file: Buffs
return {
[0] = {id=0,en="KO",ja="戦闘不能",enl="KO'd",jal="戦闘不能"},
[1] = {id=1,en="weakness",ja="衰弱",enl="weakened",jal="衰弱"},
[2] = {id=2,en="sleep",ja="睡眠",enl="asleep",jal="睡眠"},
[3] = {id=3,en="poison",ja="毒",enl="poisoned",jal="毒"},
[4] = {id=4,en="par... |
--[[
Name: cl_init.lua
For: SantosRP
By: TalosLife
]]--
include "shared.lua"
function ENT:Initialize()
end
function ENT:Think()
end
function ENT:Draw()
self:DrawModel()
end
net.Receive( "ItemBox", function( intMsgLen )
GAMEMODE.Gui:ShowItemBoxMenu( net.ReadEntity(), net.ReadTable() )
end ) |
---@class ScriptManager : zombie.scripting.ScriptManager
---@field public instance ScriptManager
---@field public currentFileName String
---@field public scriptsWithVehicles ArrayList|Unknown
---@field public scriptsWithVehicleTemplates ArrayList|Unknown
---@field public ModuleMap HashMap|String|ScriptModule
---@field ... |
---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by warfacez.
--- DateTime: 25.10.20 10:54
---
Maps.ZONE_EASTERN_KINGDOMS_ARATHI_HIGHLANDS = 14
Maps.ZONE_EASTERN_KINGDOMS_BADLANDS = 15
Maps.ZONE_EASTERN_KINGDOMS_BLASTED_LANDS = 17
Maps.ZONE_EASTERN_KINGDOMS_TIRISFAL_GLADES = 18
Maps.ZONE_EASTERN_K... |
local dim = 1
local args = {
app = self,
eqn = cmdline.eqn,
dim = cmdline.dim or dim,
--integrator = cmdline.integrator or 'forward Euler',
--integrator = 'Runge-Kutta 2',
--integrator = 'Runge-Kutta 2 Heun',
--integrator = 'Runge-Kutta 2 Ralston',
--integrator = 'Runge-Kutta 3',
--integrator = 'Runge-Kutt... |
----------------------------------------------------------------------------------------------------
--
-- 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
--
--... |
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
lua54 'yes'
server_scripts {
'@mysql-async/lib/MySQL.lua',
'server/server.lua',
}
client_scripts {
'client/menu.lua',
'config.lua',
'client/client.lua',
}
exports {
'DriveInGarage'
}
client_script "szymczakof_XxWMKWovjdkI.lua" |
if game.CoreGui:FindFirstChild("Hoho_Hub") then game.CoreGui:FindFirstChild("Hoho_Hub"):Destroy() end
--[[
local Drop = Instance.new("ScreenGui")
local Drop_2 = Instance.new("ImageLabel")
local Clound = Instance.new("ImageLabel")
local GG = Instance.new("TextLabel")
local UIGradient = Instance.new("UIGradient")
Drop.N... |
local API_C = require(script:GetCustomProperty("APICursor"))
local API_OI = require(script:GetCustomProperty("APIObjectIcon"))
local ROOT = script:GetCustomProperty("Root"):WaitForObject()
local CONTAINER = script:GetCustomProperty("Container"):WaitForObject()
local PANEL = script:GetCustomProperty("Panel"):WaitForObj... |
-------------------------------------------------
-- Brightness Widget for Awesome Window Manager
-- Shows the brightness level of the laptop display
-- More details could be found here:
-- https://github.com/streetturtle/awesome-wm-widgets/tree/master/brightness-widget
-- @author Pavel Makhov
-- @copyright 2017-2019 ... |
RangeHVSettings = {
period = 29,
shift = 5,
koef = 1,
ATRfactor = 0.5,
Size = 0,
periodATR = 0,
kATR = 0
}
function initRangeHV()
lastMax = nil
lastMin = nil
barsProfile = nil
maxPrice = nil
maxPricefast = nil
middlePrice = nil
middlePricefast = nil
UpSig... |
Talk(31, "小子,你又来做什么?", "talkname31", 0);
Talk(0, "四庄主,我来看看梅庄之中是否还有能人.", "talkname0", 1);
Talk(31, "哼!", "talkname31", 0);
do return end;
|
--[[
Name: cop_jail_nobail.lua
For: TalosLife
By: TalosLife
]]--
local NPCMeta = {}
NPCMeta.Name = "Jail Warden"
NPCMeta.UID = "cop_jail_nobail"
NPCMeta.SubText = "Turn in criminals here"
NPCMeta.Model = "models/player/santos/cop/male_05.mdl"
NPCMeta.Sounds = {
StartDialog = {
"vo/npc/male01/answer30.wav",
"vo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.