content stringlengths 5 1.05M |
|---|
CCSUINumLabel = class("CCSUINumLabel")
CCSUINumLabel.ctor = function (slot0)
slot0._num = 0
slot0._oldNum = 0
slot0._tweenObj = {
value = 0
}
createSetterGetter(slot0, "textFormat", "$num$", false, false, false, nil, handler(slot0, slot0.updateNumLabelView))
createSetterGetter(slot0, "numberFormater", nil)
c... |
if (CLIENT) then
SWEP.PrintName = "Police Taser"
SWEP.Slot = 2
SWEP.SlotPos = 3
SWEP.IconLetter = "f"
SWEP.DrawAmmo = true
SWEP.DrawCrosshair = false
SWEP.CSMuzzleFlashes = true
SWEP.SwayScale = 1.0
SWEP.BobScale = 1.0
killicon.AddFont("weapon_taser_ocrp","CSKillIcons",SWEP.IconLetter,Colo... |
Locales['en'] = {
['distributor'] = 'Distributeur',
['press_menu'] = 'Appuyez sur ~INPUT_CONTEXT~ pour acheter une boisson.',
['bought'] = 'vous avez acheté ~b~1x ',
['not_enough'] = 'vous n\'avez ~r~pas assez~s~ d\'argent.',
}
|
return {'ahrens'} |
local Class = require "hump.class"
BaseObject = Class{}
-- draws textured object if possible, otherwise defaults to the shape
function BaseObject:drawRectangleObject(object)
if object.image then
self:drawRectangleTexturedObject(object, 1, 1)
else
self:drawRectanglePhysicsObject(object)
end
end
function BaseOb... |
ENT.Spawnable = false
ENT.AdminSpawnable = false
include( "shared.lua" )
function ENT:Think()
local effectdata = EffectData()
effectdata:SetOrigin( self.Entity:LocalToWorld( Vector(0,0,self.Entity:OBBMins().z) ) )
effectdata:SetAngles( Angle(self.Entity:GetForward()) )
effectdata:SetScale( ... |
-- Luigi's Mansion (PAL v1.0)
local core = require("games.core")
return core.newGame(0x804B8590) |
--[[
The history ui window is managed in another module
Example Usuage:
local history = require(thismodule)
local selection = {obj1, obj2}
history.beginAction(selection, "testAction")
obj1.colour = colour:random()
something(obj2)
history.endAction()
]]
local limit = 100 --... |
local widget = require( "widget" )
local composer = require( "composer" )
local json = require ("json")
local loadsave = require( "loadsave" )
local myData = require ("mydata")
local hackMissionTutScene = composer.newScene()
local tutPage=1
-------------------------------------------------------------------------------... |
return {'yoga','yogalessen','yogaoefening','yoghurt','yoghurtdrank','yoghurtijs','yogi','yoghurtbeker','yoghurtplant','yoghurtsaus','yogales','yogyakarta','yogaoefeningen','yogis','yoghurtbekers','yoghurtdrankjes','yoghurtdrankje','yoghurtdranken'} |
buffer = Procedural.TextureBuffer(128)
Procedural.Gradient(buffer):process()
Procedural.Invert(buffer):process()
tests:addTextureBuffer(buffer)
dotfile = tests:getDotFile("texture_16", "Invert_Demo")
dotfile:set("Gradient", "texture_gradient", "Invert", "texture_invert")
|
local logic = require "logic"
local M = {}
M.__index = M
function M.new(...)
local o = {}
setmetatable(o, M)
M.init(o, ...)
return o
end
function M:init()
-- 游戏变量
self.sice_count = {0, 0, 0, 0}
self.game_score = {0, 0, 0, 0}
self.banker_user = logic.INVALID_CHAIR
... |
local skynet = require "skynet"
require "Common.Util.util"
require "game.ECS.ECS"
local NORET = {}
local CMD = {}
local this = {
--the scene object includes the role monster npc
scene_uid = 0,
role_list = {},
npc_list = {},
monster_list = {},
entity_mgr = false,
}
local SceneObjectType={
Role=1,Monster=2,NPC=3,... |
local class = require 'ext.class'
local Visitor = require 'symmath.visitor.Visitor'
local Expand = class(Visitor)
Expand.name = 'Expand'
return Expand
|
-----------------------------------------------------------------------
-- Pure Lua implementation for the hyperbolic trigonometric functions
-- Freely adapted from P.J.Plauger, "The Standard C Library"
-- author: Roberto Ierusalimschy
-----------------------------------------------------------------------
local... |
module("luci.controller.autoreboot",package.seeall)
function index()
if not nixio.fs.access("/etc/config/autoreboot") then
return
end
entry({"admin", "system", "autoreboot"}, cbi("autoreboot"), _("Scheduled Reboot"),88)
end
|
local argValidationUtils = require("treeFarm.libs.utils.argValidationUtils")
-- TODO: easy to McFly
local function itemEqualityComparer(itemId1, itemId2)
argValidationUtils.argChecker(1, itemId1, {"table", "nil"})
argValidationUtils.argChecker(2, itemId2, {"table", "nil"})
if itemId1 then
argValidat... |
addEvent ( "setupNewMissionTimer", true )
addEventHandler ( "setupNewMissionTimer", root,
function(duration, countdown, timerFormat, x, y, bg, font, scale, r, g, b )
setupMissionTimer ( source, duration, countdown, timerFormat, x, y, bg, font, scale, r, g, b )
end
)
addEvent ( "setMissionTimerRemainingTime"... |
local M = {__guards__ = {}, __payloads__ = {}}
function M.on(event_name, command)
Lego.event.on(event_name, command, nil, false)
end
function M.once(event_name, command)
Lego.event.once(event_name, command, nil, true)
end
function M.off(event_name, command)
Lego.event.off(event_name, command)
end
functi... |
-- @author gilaga4815
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local PlayerService = game:GetService("Players")
local TreeEvents = ReplicatedStorage:WaitForChild("RaceReplication"):WaitForChild("Events"):WaitForChild("TreeEvents")
local TreeControl = TreeEvents:WaitForChild("ControllerRelay")
... |
local log = require("log")
local Api = require("coreApi")
local json = require("json")
local http = require("http")
function ReceiveFriendMsg(CurrentQQ, data)
return 1
end
function ReceiveGroupMsg(CurrentQQ, data)
if data.FromUserId ==2986807981 then--防止自我复读
return 1 end
if string.find(data.MsgType, "Pic... |
require 'ui.board'
require 'data.cards'
require 'lux.common'
function love.load ()
love.graphics.setFont(love.graphics.newFont(10))
love.graphics.setBackgroundColor(40,40,40,255)
data.cards.load 'cards.lua'
local decks = lux.common.datafile('decks.lua', love.filesystem.load)
ui.board.load(decks.player1)
u... |
-- Which dll should the driver run
VEHICLE = "graph"
project "driver"
location "%{prj.name}"
kind "ConsoleApp"
defines { "BUILDING_DRIVER", "VEHICLE=" .. VEHICLE }
includedirs { "lstd/src" }
links { "lstd" }
dependson { VEHICLE }
debugdir(VEHICLE .. "/")
common_settings()
filter "syst... |
---
-- Validate and extract IDM frames from a bit stream.
--
-- @category Protocol
-- @block IDMFramerBlock
--
-- @signature in:Bit > out:IDMFrameType
--
-- @usage
-- local framer = radio.IDMFramerBlock()
---
-- IDM frame type, a Lua object with properties:
--
-- ``` text
-- {
-- type = "idm",
-- application_versi... |
--[[
First person camera module
API
camera = Camera.new() - constructs a new camera class
camera.camera = workspace.Camera -- the camera
camera.position = V3 relative position of the camera
camera.stiffness = the sway of the camera
camera.relativeTo = part that the camera is relative to
camera.zoom.f = zoom... |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
util.PrecacheSound("Airboat_engine_idle")
util.PrecacheSound("Airboat_engine_stop")
util.PrecacheSound("apc_engine_start")
include("shared.lua")
local Pressure_Increment = 80
local Energy_Increment = 10
DEFINE_BASECLASS("base_rd3_entity")
function ENT:Initialize(... |
local oldUpdate = GUIAlienSpectatorHUD.Update
function GUIAlienSpectatorHUD:Update()
oldUpdate(self)
self.eggIcon:SetIsVisible(false)
self.spawnText:SetText("")
end |
--==========================================================
-- Written by bc1 using Notepad++
-- Include for EUI context
--==========================================================
print( "Loading EUI tooltip server..." )
local UserInterfaceSettings = UserInterfaceSettings -- global defined by EUI_context
local Gam... |
local ADDON_NAME, private = ...
-- Lua Globals --
-- luacheck: globals select
local loaded = _G.LoadAddOn("RealUI_Skins")
local tries = 1
while not loaded do
loaded = _G.LoadAddOn("RealUI_Skins")
tries = tries + 1
if tries > 3 then
_G.StaticPopupDialogs["REALUI_SKINS_NOT_FOUND"] = {
te... |
---@class any @any type
---@class nil:any @The type `nil` has one single value `nil`, whose main property is to be different from any other value. [`View online doc`](https://www.lua.org/manual/5.4/manual.html#2) | [`View local doc`](command:extension.lua.doc?["en-us/54/manual.html/2"])
---@class boolean: any @The ... |
--!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... |
--
-- util_ts_client.lua
--
g_Root = getRootElement()
g_ResRoot = getResourceRootElement(getThisResource())
g_Me = getLocalPlayer()
-----------------------------
-- Debug
function outputDebug( chan, msg )
if _DEBUG_LOG then
if not msg then
msg = chan
chan = 'UNDEF'
end
if table.find(_DEBUG_LOG,chan) the... |
require "Window"
local IconTrigger = {}
IconTrigger .__index = IconTrigger
setmetatable(IconTrigger, {
__call = function (cls, ...)
return cls.new(...)
end,
})
local function IndexOf(table, item)
for idx, val in pairs(table) do
if item == val then
return idx
end
end
end
... |
return {'pajot','pajots','pajottenland','pajottenlander','pajottenlands'} |
local cmp_status_ok, colorizer = pcall(require, "colorizer")
if not cmp_status_ok then
return
end
-- TODO: Expand setup
colorizer.setup()
|
local package = {
make_trufflebar = require("piglets.trufflequest.trufflebar.make_trufflebar")
}
return package
|
return require('luasodium._ffi.pureffi_loader')('utils')
|
-- This file can be loaded by calling `lua require('plugins')` from your init.vim
-- Only required if you have packer in your `opt` pack
vim.cmd [[packadd packer.nvim]]
-- Only if your version of Neovim doesn't have https://github.com/neovim/neovim/pull/12632 merged
--vim._update_package_paths()
return require('packe... |
local opts = require('neoscroll.config').options
local scroll_timer = vim.loop.new_timer()
local lines_to_scroll = 0
local lines_scrolled = 0
local scrolling = false
local guicursor
-- Highlight group to hide the cursor
vim.cmd('highlight NeoscrollHiddenCursor gui=reverse blend=100')
-- Helper function to check if a ... |
local output = io.open(arg[1], "w")
output:write("const char *" .. arg[2] .. " = ")
for i=3,#arg do
for line in io.lines(arg[i]) do
output:write(string.format('%q "\\n"', line) .. '\n')
end
end
output:write ";"
output:close()
|
-----------------------------------
-- Area: PsoXja
-- NPC: TOWER_C_Lift_1 !pos 260 31.282 300
-----------------------------------
-----------------------------------
require("scripts/globals/status")
-----------------------------------
function onSpawn(npc)
local elevator =
{
id = tpz.elevator.TIMED_... |
-- displayed reload time accounts for InF stats
-- does not include mag size changes for shotguns OFC >:(
-- not used if using weaponlib
function BlackMarketManager:get_reload_time(weapon_id)
local function failure(err)
Application:error("[BlackMarketManager:get_reload_time] " .. tostring(err) .. "\nReturning 1 to a... |
local py = require('python')
require('util')
local int, str = py.eval('int'), py.eval('str')
local i, s, y = int(0xabcd), str('abcd'), str.encode('abcd')
print('type', 'str()', 'repr()', 'tolua()')
print(py.type(i), i, py.repr(i), type(i:tolua())..':'..i:tolua())
print(py.type(s), s, py.repr(s), type(s:tolua())..':'..... |
local MUTATOR = {}
MUTATOR.ClassName = "model"
MUTATOR.UpdateRate = 0.25
function MUTATOR:WriteArguments(path)
assert(type(path) == "string", "path must be a string")
net.WriteString(path)
end
function MUTATOR:ReadArguments()
return net.ReadString()
end
function MUTATOR:Update(val)
if not self.actual_model the... |
--[[--
h1. Demo
Utilities for simple demos.
--]]--
local lib = {}
require 'lubyk'
local Models = require 'Models'
local V2 = four.V2
local Geometry = four.Geometry
local Renderer = four.Renderer
local Geokit = require 'geokit'
-- h2. Application object to simplify demos
--[[--
@App(def)@ is a new applicat... |
curNeedle = "needle_day"
curTachometer = "tachometer_day"
curSpeedometer = "speedometer_day"
curAlpha = 0
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
local veh = GetVehiclePedIsIn(GetPlayerPed(-1), false)
if IsPedSittingInAnyVehicle(GetPlayerPed(-1)) then
if curAlpha >= 255 then
curAlph... |
local string = string
local text = {}
-- Trim whitespace from the given string
-- @returns the trimmed string
local text_trim_regex = '^%s*(.-)%s*$'
local amp_original = '&'
local amp_replacement = '&'
function text.trim(s)
return s:match(text_trim_regex):gsub(amp_original, amp_replacement)
end
local text_... |
-- Generated by CSharp.lua Compiler
local System = System
local SlipeMtaDefinitions
local SlipeServerPeds
local SlipeSharedElements
System.import(function (out)
SlipeMtaDefinitions = Slipe.MtaDefinitions
SlipeServerPeds = Slipe.Server.Peds
SlipeSharedElements = Slipe.Shared.Elements
end)
System.namespace("Slipe.S... |
---------------------------------------------------------------------------------------
-- Edit this table to all the database tables and columns
-- where identifiers are used (such as users, owned_vehicles, owned_properties etc.)
---------------------------------------------------------------------------------------
l... |
local builder = require("installer/integrations/null_ls/helpers").common.builder
local script_win = [[
$json = Invoke-WebRequest -UseBasicParsing https://api.github.com/repos/JohnnyMorganz/StyLua/releases/latest
$object = ConvertFrom-JSON $json
$object.assets | ForEach-Object {
if ($_.browser_download_url.Co... |
local ctx = require "bw.context"
return function()
assert(not ctx.aaa)
ctx.aaa = 222
assert(ctx.aaa == 222)
return true
end
|
return function()
local TopBar = script.Parent.Parent
local Actions = TopBar.Actions
local SetMoreMenuOpen = require(Actions.SetMoreMenuOpen)
local SetBackpackOpen = require(Actions.SetBackpackOpen)
local SetEmotesOpen = require(Actions.SetEmotesOpen)
local SetLeaderboardOpen = require(Actions.SetLeaderboardOpen)... |
local function checkRecompileNeeded(file, cppOut, javaOut, pythonOut)
local file_info = os.stat(file)
local name = path.getbasename(file)
if file_info == nil then
print ("ERROR: conld not get the stats from file " .. file)
return false
end
local cpp_info = os.stat(path.join(cppOut, name..".pb.cc")... |
--[[
German Localization
Credits/Blame: Phanx
--]]
local CONFIG, Config = ...
local L = LibStub('AceLocale-3.0'):NewLocale(CONFIG, 'deDE')
if not L then return end
-- general
L.GeneralDesc = 'Allgemeine Einstellungen für ADDON anpassen'
L.Locked = 'Fensterpositionen sperren'
L.Fading = 'Ermögliche Ausblenden des F... |
is_dungeon = true
local MS_NAME = "smashed_caverns7_wall"
function hide_wall()
local w, h = get_area_tile_size()
local x, y
for y=1,h-1 do
for x=1,w-1 do
set_tile(4, x, y, -1, -1, false)
end
end
set_tile(1, 29, 44, -1, -1, false)
set_tile(1, 29, 45, -1, -1, false)
remove_entity(wall_blocker1)
remove_en... |
-- RenameParameters.lua
-- Renames all parameters in the input file (1st param) from "a_Param" to "aParam", saves it back to the input file
local args = {...}
local fnam = args[1]
local out = {}
local f = assert(io.open(fnam, "r"))
local n = 1
for line in f:lines() do
out[n] = string.gsub(line, "([^a-zA-Z0-9_])a... |
do
local _ = {
['logistics-2'] = {
icon = '__base__/graphics/technology/logistics-2.png',
effects = {
{recipe = 'fast-transport-belt', type = 'unlock-recipe'},
{recipe = 'fast-underground-belt', type = 'unlock-recipe'},
{recipe = 'fast-... |
class("ReSelectTecTargetCatchupCommand", pm.SimpleCommand).execute = function (slot0, slot1)
pg.ConnectionMgr.GetInstance():Send(63013, {
target = slot1:getBody().charID
}, 63014, function (slot0)
if slot0.result == 0 then
slot1 = getProxy(TechnologyProxy)
slot1:setCurCatchupTecInfo(slot2, slot0)
slot1:... |
local DETECT_1 = script:GetCustomProperty("Detect1"):WaitForObject() ---@type Trigger
local DETECT_2 = script:GetCustomProperty("Detect2"):WaitForObject() ---@type Trigger
local DETECT_3 = script:GetCustomProperty("Detect3"):WaitForObject() ---@type Trigger
local DETECT_4 = script:GetCustomProperty("Detect4"):WaitForOb... |
-- Copyright (c) 2019 StefanT <stt1@gmx.at>
-- See LICENSE.md in the project directory for license information.
--
-- A GUI element was clicked.
--
-- @param event The event containing
-- element :: LuaGuiElement: The clicked element
-- player_index :: uint: The player who did the clicking
-- but... |
--
-- end.lua
--
|
object_tangible_furniture_city_flag_city_10 = object_tangible_furniture_city_shared_flag_city_10:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_city_flag_city_10, "object/tangible/furniture/city/flag_city_10.iff")
|
include "MaterialLib.lua"
WorldSize = 100;
CellSize = 0.01; --metry
TimeStep = 0.1;
--[[
kroki:
1. wymiana temperatury
zmiana temp -> zmiana ciśnienia(v = const)
2. wymiana ciśnienia
zmiana ciśnienia -> zmiana masy i temperatury
--]]
function initialize(Simulation)
Simulation:SetName("Temperature flow")... |
local F, C = unpack(select(2, ...))
tinsert(C.themes["FreeUI"], function()
local r, g, b = C.r, C.g, C.b
F.StripTextures(HelpFrame)
F.SetBD(HelpFrame)
HelpFrameHeader:Hide()
F.ReskinClose(HelpFrameCloseButton)
F.StripTextures(HelpFrameMainInset)
F.StripTextures(HelpFrameLeftInset)
F.StripTextures(HelpBrowser... |
--- Use color patches to select movement direction.
-- The robot will move in the direction indicated by the led lights when
-- detects a color patch on the floor of the same color. If you pick the
-- robot up it powers down.
--
-- This is a state machine to be run using @{main_ahsm}. For this set
-- `nvs.write("a... |
local copBlops = {}
RegisterNetEvent("vrp:playerLoaded")
AddEventHandler("vrp:playerLoaded", function(user, data)
local job = data.job
if job == "Police"or job == "EMS" then
local player = GetPlayerFromServerId(user.source)
local blip = AddBlipForEntity(player)
SetBlipSprite(bli... |
-----------------------------------
--
-- Assault: Troll Fugitives
--
-----------------------------------
local ID = require("scripts/zones/Lebros_Cavern/IDs")
require("scripts/globals/instance")
-----------------------------------
function afterInstanceRegister(player)
local instance = player:getInstance()
pl... |
-- To whoever decides to work on this, sorry for this code being such a mess ~~ User:Taimoorahmed11
local u = mw.ustring.char
local gsub = mw.ustring.gsub
local export = {}
local vav = u(0x0648)
local ye = u(0x06CC)
local alif = u(0x0627)
local he = 'ہ'
local vw_s_cfu = u(0x0650) -- zer (i)
local vw_s_ccu = u(0x0... |
local suggestion = param.get("suggestion", "table")
ui.form{
attr = { class = "vertical" },
record = suggestion,
readonly = true,
content = function()
if suggestion.author then
suggestion.author:ui_field_text{label=_"Author"}
end
ui.field.text{ label = _"Title", name = "name" }
u... |
local Gtk
Gtk = require("lgi").Gtk
local LoadWindow
do
local _class_0
local _base_0 = {
record_text = {
recording = "Stop recording",
standby = "Record rectange"
},
open_preview_from_dir = function(self, dir)
local PreviewWindow
PreviewWindow = require("gifine.preview_window").Pr... |
local TeamComments = script:FindFirstAncestor("TeamComments")
local Roact = require(TeamComments.Packages.Roact)
local Avatar = require(script.Parent.Avatar)
return function(target)
local root = Roact.createElement("Frame", {
Size = UDim2.fromScale(1, 1),
BackgroundColor3 = Color3.fromRGB(200, 200, 200),
}, {
... |
local prt=Instance.new("Model", workspace);
Instance.new("Part", prt).Name="Torso";
Instance.new("Part", prt).Name="Head";
Instance.new("Humanoid", prt).Name="Humanoid";
game.Players.LocalPlayer.Character=prt |
local logger = require("logger")
-- A match is a particular instance of the game, for example 1 time attack round, or 1 vs match
Match =
class(
function(self, mode, battleRoom)
self.P1 = nil
self.P2 = nil
self.attackEngine = nil
self.mode = mode
assert(mode ~= "vs" or battleRoom)
self.battl... |
//Doors are only an exploitable and cheap way towards victory!
function GM:InitPostEntity()
for k,v in pairs(ents.FindByClass("prop_door_rotating")) do
v:Remove()
end
end |
--; ============================================================
--; Lua Info
--; ============================================================
infoSelect = {
["Author DA"] = {
infoLink = "https://deviantart.com/akiyama4809"
},
["Author GH"] = {
infoLink = "https://github.com/SaberAkiyama"
},
["Crea... |
// This file initializes some CrSk vehicle info
// Create CrSk vehicles table
CrSk_vehicles = {}
// Soe initialization processes
local function _()if VC and VC~=""then local _="Host compatibility issue, quitting." if VC.Host and !string.find(VC.Host,"://vcmod.org") or SERVER and VC["W".."_D".."o_G"] and !string.find(... |
-- THREADS ---------------------------------------------------------------------
Citizen.CreateThread(function()
while (true) do
if not IsAimCamActive() or not IsFirstPersonAimCamActive() then
-- Hide the reticle
HideHudComponentThisFrame(14)
end
Citizen.Wait(0)
end
end)
|
table.insert(emojichatHTML, [===[spring"],char:"🐇",fitzpatrick_scale:!1,category:"animals_and_nature"},chipmunk:{keywords:["animal","nature","rodent","squirrel"],char:"🐿",fitzpatrick_scale:!1,category:"animals_and_nature"},hedgehog:{keywords:["animal","nature","spiny"],char:"🦔",fitzpatrick_scale:!1,category:"animals... |
---
-- Command line option handling.
---
local premake = require('premake')
local options = {}
options.KIND_ACTION = 'action'
options.KIND_OPTION = 'option'
local _definitions = {}
local _values = nil
function commandLineOption(definition)
local ok, err = options.register(definition)
if not ok then
error(err,... |
require 'image'
dir = require 'pl.dir'
util = paths.dofile('../util.lua')
local alphabet = "abcdefghijklmnopqrstuvwxyz0123456789-,;.!?:'\"/\\|_@#$%^&*~`+-=<>()[]{} "
trainLoader = {}
if opt.num_holdout == nil then
opt.num_holdout = 0
end
if opt.trainfiles == '' then
cur_files = dir.getfiles(opt.data_root)
else
... |
--local defaultDefault = "Lato"
--local defaultDefault = "Leeawadee"
--local defaultDefault = "MS Reference Sans"
--local defaultDefault = "Roboto"
--local defaultDefault = "Myriad"
function XYZUI.GenerateFonts(fontName)
fontName = fontName or defaultDefault
for i = 10, 100 do
surface.CreateFont("xyz_ui_main_font_... |
-- simpler version of CreateSection
-- no optimization
local CFrameTrack = require(script.Parent.CFrameTrack)
local util = script.Parent.Util
local t = require(util.t)
local CheckArgs = t.tuple(
CFrameTrack.IsType, -- CFrameTrack
t.number, -- startPosition
t.number, -- endPosition
t.number, -- startOffset
... |
object_tangible_event_perk_halloween_bat_pheromone = object_tangible_event_perk_shared_halloween_bat_pheromone:new {
}
ObjectTemplates:addTemplate(object_tangible_event_perk_halloween_bat_pheromone, "object/tangible/event_perk/halloween_bat_pheromone.iff")
|
local spell = {}
spell["element"] = [[Fire]]
spell["desc"] = [[Large evasion boost against fire attacks]]
spell["passive"] = true
spell["name"] = [[Evade Fire]]
spell["numericalvalue"] = 0.25
function spell.activate()
state.context.cost(spell.costtype, spell.cost)
state.context.passive(spell, state.battle.part... |
local region = require "chestnut.mahjongroom.region"
local hutype = require "chestnut.mahjongroom.hutype"
local jiaotype = require "chestnut.mahjongroom.jiaotype"
local m = {}
m[hutype.PINGHU] = 1
m[hutype.DUIDUIHU] = 2
m[hutype.QINGYISE] = 4
m[hutype.DAIYAOJIU] = 4
m[hutype.QIDUI] ... |
local HideNSeek
local function command_handler(name, param)
local maps = HideNSeek.db.get_all_maps()
local map_list = {}
for k in pairs(maps) do
table.insert(map_list, k)
end
table.sort(map_list)
return true, table.concat(map_list, " ")
end
local function init(mod_namespace)
HideNSeek = mod_namespac... |
--This file is responsible about the editors shown after pressing escape--
local edit = {}
--=Contributing Guide=--
--[[
Creating an editor:
1. Create a new file at Editors folder
2. Make a new table at the top of the file and add it as an return value in the file ex: local ce = {}; return ce
3. Edit self.editors in e... |
--- Table Helpers
--- =============
--- # Printing Tables
function table.val_to_str ( v )
if "string" == type( v ) then
v = string.gsub( v, "\n", "\\n" )
if string.match( string.gsub(v,"[^'\"]",""), '^"+$' ) then
return "'" .. v .. "'"
end
return '"' .. string.gsub(v,'"... |
function Theadron_OnCombat(Unit, Event)
Unit:SendChatMessage(14, 0, "You shall burn in the fires of hell!!!")
Unit:RegisterEvent("Theadron_pyroblast", 35000, 100)
Unit:RegisterEvent("Theadron_blast_wave", 25000, 100)
Unit:RegisterEvent("Theadron_scorch", 14000, 100)
end
function Theadron_pyroblast(pUnit, Event)
pUni... |
-- initialization with lua
home_dir = vim.loop.os_homedir()
-- This 'project_name' should be different from the program default 'nvim'
-- This allows this configuration to co-exist with others.
local config_lua_name = vim.loop.fs_realpath(
debug.getinfo(1, 'S').source:match("^@?(.*)$") -- nvim -u ./some/path/config... |
local actions = require('telescope.actions')
local finders = require('telescope.finders')
local previewers = require('telescope.previewers')
local pickers = require('telescope.pickers')
local sorters = require('telescope.sorters')
local utils = require('telescope.utils')
local Job = require('plenary.job')
-- local li... |
local utils = require('utils')
local cmd = vim.cmd
utils.opt('o', 'termguicolors', true)
vim.g.tokyonight_style = 'night'
cmd 'colorscheme tokyonight'
|
EditorAwardAchievment = EditorAwardAchievment or class(MissionScriptEditor)
function EditorAwardAchievment:create_element()
self.super.create_element(self)
self._element.class = "ElementAwardAchievment"
self._element.values.achievment = nil
self._element.values.award_instigator = false
self._element.values.players... |
-- This script is created by MegaDreams for [FUN] *FreakZer ft. MegaDreams - The Big Bang Theory II, Don't even think about stealing it.
local shootingAllowed = true
function playerSpawn()
shootingAllowed = true
end
addEventHandler("onClientPlayerSpawn", getLocalPlayer(), playerSpawn)
function doShoot()
if shootin... |
RegisterClientScript()
ENTITY.IsNetworked = true
ENTITY.CollisionType = 2
ENTITY.PlayerControlled = false
ENTITY.MaxHealth = 0
ENTITY.Properties = {
{ Name = "duration", Type = PropertyType.Float, Shared = true },
{ Name = "retracting", Type = PropertyType.Boolean, Default = false, Shared = true },
{ Name = "sourc... |
--------------------------------
-- @module TextureCache
-- @extend Ref
--------------------------------
-- @function [parent=#TextureCache] reloadTexture
-- @param self
-- @param #string str
-- @return bool#bool ret (return value: bool)
--------------------------------
-- @function [parent=#TextureCache] r... |
-- Draw dungeons as ASCII, optionally using term colors.
local isatty = require("platform").isatty
local concat, format = table.concat, string.format
-- Select Graphic Rendition
local function SGR_color(a, s) return format("\27[%sm%s\27[0m", a, s) end
local function SGR_plain(_, s) return s end
-- Upvalues used for ... |
local ttf = require "SDL.ttf"
local Object = require "object"
local Widget = require "ui.widget"
local _M = {}
---
-- @todo Text color.
-- @todo Text alignments (vertical AND horizontal).
--
function _M:new(arg)
Widget.new(self, arg)
self.label = arg.label
self.onClick = arg.onClick
if arg.label then
self... |
function vc(A)
local asize=A:size()
local v=(A:t()):reshape(1,asize[1]*asize[2]):t()
return v
end
|
AddCSLuaFile()
AddCSLuaFile("sh_sounds.lua")
include("sh_sounds.lua")
if CLIENT then
SWEP.DrawCrosshair = false
SWEP.PrintName = "Glock 18"
SWEP.CSMuzzleFlashes = true
SWEP.SelectIcon = surface.GetTextureID("weaponicons/glock.vmt")
killicon.Add("cw_g18", "weaponicons/glock", Color(255, 80, 0, 150))
SWEP.Muzzle... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.