content stringlengths 5 1.05M |
|---|
position = get_self_pos()
x = position["x"]
y = position["y"]
dir_left = x - 1
dir_right = x + 1
dir_up = y - 1
dir_down = y + 1
if get_turn_count() == 0 then
left()
elseif get_tile_in_front() ~= "empty" then
right()
else
forward()
end
directions = {}
directions['up_dir'] = get_tile_at_pos(x, dir_up)
direct... |
------ init.lua ------
--- Textures PreLoading
-- General textures
ButtonDown = Texture.new("images/button_down.png")
ButtonUp = Texture.new("images/button_up.png")
GrayButton = Texture.new("images/gray_button.png")
LittleButtonDown = Texture.new("images/little_button_down.png")
LittleButtonUp = Texture.new("images/l... |
local spottedColor = Color(250/255, 250/255, 250/255, 1)
local networkVars =
{
spotted = "boolean"
}
function MapBlip:GetIsSighted()
local owner = Shared.GetEntity(self.ownerEntityId)
if owner then
if owner.GetTeamNumber and owner:GetTeamNumber() == kTeamReadyRoom and owner:GetAttached(... |
return {
name = 'voronianski/http-utils',
version = '1.0.5',
description = 'List of basic http helpers for luvit.io servers',
repository = {
url = 'http://github.com/luvitrocks/http-utils.git',
},
tags = {'http', 'server', 'helpers', 'utils', 'methods', 'rest', 'api', 'mimetypes', 'mimes'},
author = {... |
-- calc-ui-prototypes.lua
data:extend({
{
type = "shortcut",
name = "calcui_4func",
order = "b[blueprints]-h[calculator-ui]",
action = "lua",
toggleable = true,
icon =
{
filename = "__calculator-ui__/graphics/calculator.png",
priority = "extra-high-no-scale",
size = 64,
scale = 1,
flags =... |
-- craftscripts.lua
-- Implements the cCraftScript class which represents a player's script.
local function LOGSCRIPTERROR(a_Msg)
if (not g_Config.Scripting.Debug) then
return
end
LOGERROR(a_Msg)
end
local g_BlockedFunctions = table.todictionary{
"rawset",
"rawget",
"setfenv",
"io",
"os",
"debug",
"cFile"... |
Locales['es'] = {
-- Cloakroom
['cloakroom'] = 'Guardarropa',
['ems_clothes_civil'] = 'Camiseta',
['ems_clothes_ems'] = 'Equipo de ambulancia',
['headbandage'] = 'Pastilla Anti inflamatoria',
['torsobandage'] = 'Vendaje de Torax',
['extbandage'] = 'Tratamiento de extremidades',
-- Vehicles
['ambulance... |
-- ===========================================================================
-- CityBannerManager for Expansion 1 and Expansion 2
-- ===========================================================================
-- Functions and objects common to basegame and expansions
include( "citybannermanager_CQUI.lua");
-- #59 In... |
local module = ...
local httpdRequestHandler = {
method = nil,
query = { },
path = nil,
contentType = nil,
body = nil
}
local function httpdRequest(data)
local _, _, method, path, query = string.find(data, '([A-Z]+) (.+)?(.+) HTTP')
if method == nil then
_, _, method, path = string.find(data, '([A-Z... |
local utils = { }
local scopes = {o = vim.o, b = vim.bo, w = vim.wo}
function utils.opt(scope, key, value)
scopes[scope][key] = value
if scope ~= 'o' then scopes['o'][key] = value end
end
function utils.map(mode, lhs, rhs, opts)
local options = {noremap = true}
if opts then options = vim.tbl_extend('fo... |
---账号角色管理器
--@usage
--redis数据库结构
--角色表: appid:role:角色ID => {roleid=xxx,appid=xxx,account=xxx,create_serverid=xxx,...}
--账号表: account:账号 => {account=xxx,passwd=xxx,sdk=xxx,platform=xxx,...}
--账号已有角色表: appid:roles:账号 => {角色ID列表}
--账号已删除角色表: appid:deleted_roles:账号 => {角色ID列表}
--
--mongo数据库结构
--角色表: role => {roleid=xxx,ap... |
-----------------------------------
-- PROTOTYPE OBJECT
-----------------------------------
PrototypeDevice = {
bridgeType = "'bridgeType' needs to be set",
bridgeSubtype = "'bridgeSubtype' needs to be set",
bridgeBinary = "'bridgeBinary' needs to be set",
bridgeBinaryProperty = "value",
bridgeMu... |
-- CommandLineF4.lua
-- v1.1.2
-- Editing command line content in the editor
-- Keys: F4 in Panel with not empty command line, F2 in editor for save text to command line
-- originally found at https://github.com/z0hm/far-scripts/blob/master/CommandLineF4.lua
local function fwrite(s,f) local x,h = nil,io.open(f,"wb") i... |
function love.conf(t)
t.title = "Green Jellybean Love Stars"
t.version = "0.9.0"
t.modules.joystick = false
t.modules.physics = false
-- fullscreen the thing
-- t.window.fullscreen = true
end
|
require('utils')
local item = require("../item");
local image = require("../image")
return {
name = "Apple Showdown",
amount = 100,
weight = 1.5,
condition = function (state)
return state.appleFestival > 5
end,
description = "The mysterious old woman has terrorized your apple festival for long enough. ... |
-- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(..., package.seeall)
local ffi = require("ffi")
local shm = require("core.shm")
-- SHM object type for gauges (double precision float values).
type = shm.register('gauge', getfenv())
local gauge_t = ffi.typeof("struct { double g;... |
LinkLuaModifier("modifier_item_guardian_greaves_arena", "items/item_guardian_greaves_arena.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_item_guardian_greaves_arena_effect", "items/item_guardian_greaves_arena.lua", LUA_MODIFIER_MOTION_NONE)
item_guardian_greaves_arena = class({
GetIntrinsicModifierName = ... |
-- [0x70..0x7e]
local tags = {
-- standard
TUPLE = 0x70, -- 'p'
BIT = 0x71, -- 'q'
TYPEREF = 0x72, -- 'r'
SPAN = 0x73, -- 's'
TYPE = 0x74, -- 't'
UNION = 0x75, -- 'u'
VOID = 0x76, -- 'v'
OBJECT = 0x77, -- 'w'
ALIGN = 0x78, -- 'x'
LIST = 0x79, -- 'y'
ARRAY = 0x7a, -- 'z'
... |
position = {x = 29.7733421325684, y = 1.43002331256866, z = -18.0400009155273}
rotation = {x = -0.000122623663628474, y = 269.991760253906, z = 0.00591064570471644}
|
#! /usr/bin/lua
local bcrypt = require( "bcrypt" )
function bcrypt.tune( t )
local SAMPLES = 10
local rounds = 5
while true do
local total = 0
for i = 1, SAMPLES do
local start = os.clock()
bcrypt.digest( "asdf", rounds )
local delta = os.clock() - start
total = total + delta
end
if ( total... |
local configModule = {}
configModule.MQTT = {}
configModule.MQTT.clientID = "moduleAlpha"
configModule.MQTT.username = "debugDevice" --Cloud MQTT te bu kullanici adli uyeye okuma izni vermeyi unutma.
configModule.MQTT.password = "12345"
configModule.MQTT.server = "m10.cloudmqtt.com"
configModule.MQTT.tlsPort = 38429
c... |
data:extend(
{
{
type = "recipe",
energy_required = 0.5,
name = "substation-mk2",
enabled = "false",
ingredients =
{
{"substation", 1},
{"advanced-circuit", 10},
{"effectivity-module", 1}
},
result = "substation-mk2"
},
{
type = "recipe",
energy_required = 0.5,
name = "substation-mk... |
-- items
-- unfinished, but will interact with Turtles to store a users items and allow them to send it to others
os.loadAPI("SublarmsOS/conf/Config")
os.loadAPI(Config.rootDir().."/os/utils/ScreenUtils")
while true do
ScreenUtils.drawHF("Home >> Items")
ScreenUtils.drawHomeOptions(4,true)
term.setCursorPos(1... |
-- translated example1.c
-- convert the first two argument words to decNumber,
-- add them together, and display the result
-- run with: lua example1.lua <num1> <num2>
require "ldecNumber"
local DECNUMDIGITS = 34
local ctx = decNumber.getcontext()
ctx:setdefault(decNumber.INIT_BASE)
ctx:settraps(0) -- n... |
--------------------------------------------------------------------------------
-- Module Declaration
--
local mod, CL = BigWigs:NewBoss("Dread Captain Lockwood", 1822, 2173)
if not mod then return end
mod:RegisterEnableMob(129208) -- Dread Captain Lockwood
mod.engageId = 2109
mod.respawnTime = 36
-----------------... |
local mediawiki = {}
function mediawiki.config()
vim.g.mediawiki_wikilang_to_vim_overrides = { sls = "sls" }
vim.g.mediawiki_forced_wikilang = { "bash" }
end
return mediawiki
|
---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by 干冲.
--- DateTime: 2018/4/17 16:44
--- 玩家参数
PlayerSetting = {
UID = "uid",
ServerIP = "serverIP",
ServerID = "serverID",
} |
local addonName, ns = ...
local B, C, L, DB, P = unpack(ns)
local T = P:GetModule("Tooltip")
local NT = B:GetModule("Tooltip")
local format, strsplit, strmatch, strsub = string.format, string.split, string.match, string.sub
local pairs, tonumber = pairs, tonumber
T.MemberCovenants = {}
local covenantMap = {
[1] = "... |
--#region Usings
--#region Framework usings
---@type Array
local Array = EsoAddonFramework_Framework_Array
---@type Color
local Color = EsoAddonFramework_Framework_Color
---@type Console
local Console = EsoAddonFramework_Framework_Console
---@type Event
local Event = EsoAddonFramework_Framework_Eso_Event
---@type Even... |
-- << event_die.lua
local wesnoth = wesnoth
local addon = creepwars
local is_ai_array = addon.is_ai_array
local defender = wesnoth.get_unit(wesnoth.get_variable("x1") or 0, wesnoth.get_variable("y1") or 0)
local attacker = wesnoth.get_unit(wesnoth.get_variable("x2") or 0, wesnoth.get_variable("y2") or 0)
if defender ... |
local GAResourceFlowType = require(script.GAResourceFlowType)
local GAProgressionStatus = require(script.GAProgressionStatus)
local GAErrorSeverity = require(script.GAErrorSeverity)
local ga = {
EGAResourceFlowType = GAResourceFlowType,
EGAProgressionStatus = GAProgressionStatus,
EGAErrorSeverity = GAErrorSeverity,... |
function showBlood(attacker, weapon, bodypart)
local health = getElementHealth(source)
if (health<=20) then
local x, y, z = getElementPosition(source)
fxAddBlood(x, y, z, 0, 0, 0, 1000, 1.0)
end
-- Realistic blood from bodypart
if (attacker) then
if (bodypart==3) then -- torso
local x, y, z ... |
local speed = i2c.setup(0, 3, 4, i2c.SLOW)
if speed == 0 then
log('i2c setup error')
return
end
log('i2c setup successful @', speed)
if pcall(si7021.setup) then
log('si7021 setup successful')
else
log('si7021 setup failed - no device?')
return
end
if cfg.debug then
local sna, snb = si7021.seria... |
getglobal game
getfield -1 Players
getfield -1 LocalPlayer
getfield -1 Character
getfield -1 Head
getglobal Instance
getfield -1 new
pushstring PointLight
pushvalue -4
pcall 2 1 0 |
return {
name = 'FilterType',
description = 'Types of filters for Sources.',
constants = {
{
name = 'lowpass',
description = 'Low-pass filter. High frequency sounds are attenuated.',
},
{
name = 'highpass',
description = 'High-pass filt... |
local Modules = game:GetService("Players").LocalPlayer.PlayerGui.AvatarEditorInGame.Modules
local Action = require(Modules.Common.Action)
local ArgCheck = require(Modules.Packages.ArgCheck)
return Action(script.Name, function(userAssets)
ArgCheck.isType(userAssets, "table", "userAssets")
return {
userAssets = use... |
--[[
Project: SA Memory (Available from https://blast.hk/)
Developers: LUCHARE, FYP
Special thanks:
plugin-sdk (https://github.com/DK22Pac/plugin-sdk) for the structures and addresses.
Copyright (c) 2018 BlastHack.
]]
local shared = require 'SAMemory.shared'
shared.require 'RenderWare'
shared.req... |
stEnd = {}
local bg = require "utils.background"
local fonts = require "assets.fonts"
local utils = require "utils.utils"
function stEnd:enter(game, result)
self.result = result
self.dogeism = utils.getDogeism() --new one each time we pause
end
function stEnd:update(dt)
--gui updates
Gui.group.push{ grow = "down... |
require("nebulous").setup {
variant = "fullmoon",
disable = {
background = true,
endOfBuffer = false,
},
italic = {
comments = true,
keywords = true,
functions = true,
variables = false,
},
custom_colors = { -- this table can hold any group of colors with their respective value... |
return function()
local liter = require(game:GetService('ReplicatedStorage').liter)
it('should unpack the array around the returned value', function()
local iter = liter.array({ { 1, 2 }, { 3, 4 } }):unbox()
local a, b = iter:after()
expect(a).to.equal(1)
expect(b).to.equal(2)
local c, d = iter... |
function RunStartupStuffEsx(msg)
-- NOTE: If not using legacy then comment out the '@es_extended/imports.lua' line in fxmanifest.lua
-- Legacy provides a definition for ESX object so this should overwrite the global, but
-- better to not let it load if not required
if Config.UsingEsxLegacy =... |
function GlobalLuaFunction()
print "nvim-example-lua-plugin.luamodule.init GlobalLuaFunction: hello"
end
function CurrentLineInfo()
local linenr = vim.api.nvim_win_get_cursor(0)[1]
local curline = vim.api.nvim_buf_get_lines(0, linenr, linenr + 1, false)[1]
print(string.format("current line [%d] has %d ... |
return {'zeken','zeker','zekere','zekeren','zekerheid','zekerheidshalve','zekerheidsmaatregel','zekerheidsrecht','zekerheidsregeling','zekerheidsstelsel','zekerheidssysteem','zekerheidstelling','zekerheidstelsel','zekerheidsuitgaven','zekerheidswetgeving','zekering','zekeringhouder','zekeringkast','zekerlijk','zekers',... |
-- // Name: getFollowings.lua
-- // Description: Gets the list of people the specified user is following
-- // Author: @Jumpathy
local pageObject = require(script.Parent.Parent.Parent:WaitForChild("objects"):WaitForChild("page"));
return {
authentication_required = false,
call = function(client,api,endpoints,cookie... |
---@class CS.UnityEngine.Matrix4x4 : CS.System.ValueType
---@field public m00 number
---@field public m10 number
---@field public m20 number
---@field public m30 number
---@field public m01 number
---@field public m11 number
---@field public m21 number
---@field public m31 number
---@field public m02 number
---@field p... |
---@class icp.main:cc.ViewBase
local M = class('icp.main', require('cc.ViewBase'))
assert(imgui)
local im = imgui
local wi = require('imgui.Widget')
function M:ctor()
require('cc.ViewBase').ctor(self)
self:showWithScene()
local la = im.on(self:getParent())
local window_flags = bit.bor(
--im.WindowF... |
--The Direction of the file (made by NoNameDude)
local ip_file = minetest.get_worldpath().."/ip_file.txt"
minetest.register_on_joinplayer(function(player)
local name = player:get_player_name()
local ip = minetest.get_player_ip(name)
--If its an ip then it gets saved (made by NoNameDude)
... |
local image = nil
local dungeonWindow = nil
local dungeon1 = nil
function init()
connect(g_game, { onGameEnd = onGameEnd })
dungeonWindow = g_ui.displayUI('dungeon')
dungeonWindow:hide()
-- lootWindow:addAnchor(AnchorLeft, 'gameLeftPanel', AnchorRight)
-- lootWindow:addAnchor(AnchorLeft, "gameMapPanel", An... |
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local common = ReplicatedStorage.common
local lib = ReplicatedStorage.lib
local event = ReplicatedStorage.event
local eAttackActor = event.eAttackActor
local Projectiles = require(common.Projectiles)
local PizzaAlpaca = require(lib.PizzaAlpaca)
local P... |
return {
title = "Example Blog",
baseUrl = "http://myblog.example/",
languageCode = "en",
}
|
WUMA = WUMA or {}
local WUMADebug = WUMADebug
local WUMALog = WUMALog
WUMA.Files = WUMA.Files or {}
function WUMA.Files.Initialize()
--Create Data folder
WUMA.Files.CreateDir(WUMA.DataDirectory)
--Create userfiles folder
WUMA.Files.CreateDir(WUMA.DataDirectory..WUMA.UserDataDirectory)
end
... |
--主要用于组件的获取 组件的测试
--LuaComponent
LuaComponent = {};
local GameObject = UnityEngine.GameObject;
function LuaComponent:new()
print("LuaComponent:new");
return setmetatable({ set = {} }, { __index = self} );
end
function LuaComponent:getComponent(Obj)
print("LuaComponent:getComponent");
print(Obj);
--添加绑定组件
--O... |
if SERVER then
for _, f in pairs(file.Find("scalar/*", "LUA")) do
AddCSLuaFile("scalar/" .. f)
end
else
Scalar = Scalar or {Data = {}, SCALEFACTOR = {}}
for _, f in pairs(file.Find("scalar/*", "LUA")) do
include("scalar/" .. f)
end
end
|
-- Initialization
vim.cmd("hi clear")
vim.cmd("syntax reset")
vim.g.colors_name = "monokai"
vim.opt.termguicolors = true
require("monokai.theme")
|
function newDirectionButton(x, y, rotation, onHeld, onRelease)
local directionButton = {}
directionButton.x = x
directionButton.y = y
local width, height = 32, 16
if rotation == math.pi / 2 or rotation == math.pi * 3 / 2 then
width, height = 16, 32
directionButton.sides = true
end
directionButton.width =... |
function print_node (node)
print (string.format ("Node position = [%.2f %.2f %.2f]", node.WorldPosition.x, node.WorldPosition.y, node.WorldPosition.z))
end
function print_bind (bind)
print ("Bind anchor = " .. tostring (bind.Anchor) .. " axis = " .. tostring (bind.Axis))
end
function collision_filter (bod... |
local Tunnel = module("vrp", "lib/Tunnel")
local Proxy = module("vrp", "lib/Proxy")
MySQL = module("vrp_mysql", "MySQL")
cfg = module("vrp", "cfg/garages")
vehicles = cfg.garage_types
vRP = Proxy.getInterface("vRP")
vRPclient = Tunnel.getInterface("vRP","vRP_carcrusher")
vRPcc = {}
Tunnel.bindInterface("vRP_carcrushe... |
local api, time, delay, fn = ...
local stamp = time.stamp + delay
api.log(2, 'scheduling timer %.2f %s', stamp, tostring(fn))
time.timers:push(stamp, fn)
|
local items = { }
items.scrap1 = {
type = 'scrap1',
itemType = 'corpse',
name = 'Scrap',
img = 'scrap1',
color = {0.85, 0.85, 0.85},
stats = {weight = 55},
stackable = true,
desc = 'A pile of damaged scrap.'
}
items.corpse1 = {
type = 'corpse1',
itemType = 'corpse',
name = 'Corpse',
img = 'corpse1',
colo... |
-- 转码到URL。注意特殊字符"="等
local function escape(s)
local str = string.gsub(s, "[&=+%%%c]", function(c)
return string.format("%%%02X", string.byte(c))
end)
str = string.gsub(str, " ", "+")
return str
end
-- 从URL转码
local function unescape(s)
local str = string.gsub(s, "+", " ")
str = stri... |
-- See LICENSE for terms
local Resources = Resources
local T = T
local table = table
local properties = {}
local c = 0
local resources = table.icopy(UniversalStorageDepot.storable_resources)
resources[#resources+1] = "WasteRock"
if g_AvailableDlc.armstrong and not table.find(resources, "Seeds") then
r... |
Constraint =
{
Properties=
{
radius = 0.03, --[0,1,0.1,"Attachment sphere radius"]
damping = 0,
bNoSelfCollisions = 1, --[0,1,1,"Ignore collisions between attached objects"]
bUseEntityFrame=1, --[0,1,1,"Use the first (lightest) entity coordinate frame instead of the constraint's"]
max_pull_force=0, --[0,10... |
local a
a = d and e and f and a and g and h and i
a = d or e or f or a or g or h or i
|
local module = {}
function module.nill()
return nil
end
function module.cons(x,xs)
return {head = x, tail = xs}
end
function module.case(xs,f,g)
if not xs then
return nil
else
return g(xs.head, xs.tail)
end
end
function module.show(xs)
if not xs then
return "[]"
e... |
--[[
docs:
https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L1683
]]--
-- this stuff will be seperate from the rest when the seperate files are put into one
local data = { -- window size
width = 15,
height = 10,
}
local form_esc = minetest.formspec_escape -- shorten the ... |
function Steelbreaker_OnEnterCombat(unit, event)
Unit:PlaySoundToSet(15674)
Unit:SendChatMessage(14, 0, "You will not defeat the Assembly of Iron so easily, invaders!")
Unit:RegisterEvent("Steelbreaker_Highvoltage", 30000, 4)
Unit:RegisterEvent("Steelbreaker_Fusion", 30000, 2)
Unit:RegisterEvent("Steelbreaker_Melt... |
--
-- Anti-Cheat Control Panel
--
-- _common.lua
--
_version = "0.1.8"
MIN_CLIENT_VERSION_FOR_MOD_BLOCKS = "1.3.1-9.04818"
function outputDebug(msg)
msg = getTickCount() .. " " .. msg
outputDebugString(msg)
end
function stripColorCodes ( text )
return string.gsub ( text, '#%x%x%x%x%x%x', '' )
... |
game = {
timePlayed = 0,
timeRequired = 0,
displayHint = 0,
triggerHint = false,
modes = {
beginner = {
timeRequired = 15 * 60,
hints = {
"have some tea",
"clean up your room",
"do your laundry",
"take a short walk",
"call your mother",
"read a newspaper"
}
},
advanced = {
... |
-- This Library is just for PAC3 Integration.
-- You must install PAC3 to make this library works.
PLUGIN.name = "PAC3 Integration"
PLUGIN.author = "Black Tea"
PLUGIN.desc = "More Upgraded, More well organized PAC3 Integration made by Black Tea"
PLUGIN.partData = {}
if (not pac) then
return
end
nut.util.include("sh... |
local Collapse, parent = torch.class('rnn2d.Collapse', 'nn.Module')
function Collapse:__init(op, dimension, narrow)
parent.__init(self)
self.op = op
self.dimension = dimension
self.narrow = narrow or nil
assert(self.op == 'sum' or self.op == 'mean',
('Collapse operation %q is not implemented!'):format(op))... |
--[[
cargBags: An inventory framework addon for World of Warcraft
Copyright (C) 2010 Constantin "Cargor" Schomburg <[email protected]>
cargBags is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either ver... |
local Court = {}
-- The top edge of the court
Court.TOP = 0
-- The bottom edge of the court
Court.BOTTOM = love.graphics.getHeight()
return Court
|
function menu.information()
if imgui.BeginTabItem("Information") then
gui.title("Help", true)
function helpItem(item, text)
imgui.BulletText(item)
gui.helpMarker(text)
end
helpItem("Linear SV", "Creates an SV gradient based on two points in time")
he... |
--[[
-- added by wsh @ 2017-12-11
-- UILogin模块UILoginView窗口中服务器列表的可复用Item
--]]
local ExamTitleSlot = BaseClass("ExamTitleSlot", UIWrapComponent)
local base = UIWrapComponent
-- 创建
local function OnCreate(self)
base.OnCreate(self)
-- 组件初始化
self.examTitleItem = self:AddComponent(require("UI.ExamRoleTitle.V... |
return {
ScrollBarSize = 16,
ScrollStep = 70,
}
|
--- Path and filename handling functions.
-- All paths are configured in this module, making it a single
-- point where the layout of the local installation is defined in LuaRocks.
module("luarocks.path", package.seeall)
local dir = require("luarocks.dir")
local cfg = require("luarocks.cfg")
--- Infer rockspec filen... |
include("shared.lua")
function ENT:Draw()
self.BaseClass.Draw(self)
if self:IsDroneWorkable() and not DRONES_REWRITE.ClientCVars.NoGlows:GetBool() then
local dlight = DynamicLight(self:EntIndex())
if dlight then
dlight.pos = self:LocalToWorld(Vector(34, 0, -8))
dlight.r = 0
dlight.g = 255
dlight.b ... |
AddCSLuaFile();
SWEP.Base = "weapon_cc_base";
SWEP.PrintName = "Shotgun";
SWEP.Slot = 2;
SWEP.SlotPos = 6;
SWEP.UseHands = true;
SWEP.ViewModel = "models/weapons/c_shotgun.mdl";
SWEP.WorldModel = "models/weapons/w_shotgun.mdl";
SWEP.Firearm = true;
SWEP.Primary.ClipSize = 6;
SWEP.Primary.DefaultC... |
function lure.dom.createCharacterDataNodeObj(pData)
--INHERIT FROM DOM NODE
local self = lure.dom.nodeObj.new(4)
--===================================================================
-- PROPERTIES =
--==========================================================... |
basestate=Class{}
function basestate:init() end
function basestate:enter() end
function basestate:exit() end
function basestate:update(dt) end
function basestate:render(o) end
|
require 'CLRPackage'
import "System.Windows.Forms"
import "System.Drawing"
form = Form()
form.Text = "Hello, World!"
button = Button()
button.Text = "Click Me!"
button.Location = Point(20,20)
button.Click:Add(function()
MessageBox.Show("We wuz clicked!",arg[0],MessageBoxButtons.OK)
end)
form.Controls:Add(button)
for... |
ENT.Base = "swvr_base"
ENT.Category = "CIS"
ENT.Class = "Interceptor"
ENT.PrintName = "Droid Tri-Fighter"
ENT.Author = "Servius"
if SERVER then
AddCSLuaFile()
function ENT:SpawnFunction(ply, tr, ClassName)
if not tr.Hit then
return
end
local ent = ents.Create(ClassName)
ent:SetPos(tr.HitP... |
trash_common = {
description = "",
minimumLevel = 0,
maximumLevel = 0,
lootItems = {
{itemTemplate = "junk", weight = 5000000},
{itemTemplate = "collectiontierone", weight = 2000000},
{itemTemplate = "clothing_attachments", weight = 1500000},
{itemTemplate = "armor_attachments", weight = 1500000}
}
... |
local uv = require('luv')
local function wrapEmitter(emitter)
local read, write
local queue = {}
-- Pipe data from chain to emitter
do
local paused = false
local waiting
function emitter:pause() paused = true end
function emitter:resume()
if not paused the... |
ElementManager = {}
local instance = nil
function ElementManager:Instance()
if instance == nil then
instance = {}
setmetatable(instance, self)
self.__index = self
instance.Core = nil
instance.Screen = {}
instance.Container = {}
instance.Switch = {}
... |
io.write(string.format("Hello from %s\n", _VERSION))
io.write("Calling howdy\n")
local value = howdy(10, 2, 5)
io.write(string.format("howdy() returned: %s\n", tostring(value)))
|
jun = script.Parent.Parent
Stuff = false
--password
function ssj()
if Stuff == false then
Stuff = true
for u, c in pairs (jun.Character:GetChildren()) do
if c.className == "Hat" and c.Name ~= "Swordpack" and c.Name ~= "GlassesBlackFrame" then
c.Handle.Transparency = 1
end
end
Hair22 = Instance.new("Part")
Hair22.Parent... |
--[[
Project: SA Memory (Available from https://blast.hk/)
Developers: LUCHARE, FYP
Special thanks:
plugin-sdk (https://github.com/DK22Pac/plugin-sdk) for the structures and addresses.
Copyright (c) 2018 BlastHack.
]]
local shared = require 'SAMemory.shared'
shared.ffi.cdef[[
typedef struct CColTriangle
{
... |
phantom_assassin_phantom_strike_nb2017 = class({})
LinkLuaModifier( "modifier_phantom_assassin_phantom_strike_nb2017", "modifiers/modifier_phantom_assassin_phantom_strike_nb2017", LUA_MODIFIER_MOTION_NONE )
--------------------------------------------------------------------------------
function phantom_assassin_phan... |
function init()
if msoak.verbose then
msoak.log(msoak.luascript .. " starting up")
end
end
function greet(topic, _type, d)
s = string.format("Hello %s -> now=%s", d.name,
msoak.strftime("%TZ"))
return s
end
function exit()
msoak.log("Hasta la vista, baby!")
end
|
vim.cmd [[nmap <buffer> h -]]
vim.cmd [[nmap <buffer> l <cr>]]
|
require("__5dim_core__.lib.nuclear.generation-steam-turbine")
local speed = 1
local modules = 2
local energy = 1
local emisions = 30
local techCount = 500
-- Electric furnace 01
genSteamTurbines {
number = "01",
subgroup = "nuclear-turbine",
craftingSpeed = speed,
moduleSlots = modules,
energyUsag... |
local M = {}
local function noop()
-- no operation.
end
local function create_metatable(name, prototype, extend_class)
local super_metatable = getmetatable(extend_class) or {}
local super_prototype = super_metatable.__prototype
setmetatable(prototype, {
__index = super_prototype -- Constructin... |
--- === WindowGrid ===
---
--- Configure and assign hotkey for `hs.grid`
---
--- Download: [https://github.com/Hammerspoon/Spoons/raw/master/Spoons/WindowGrid.spoon.zip](https://github.com/Hammerspoon/Spoons/raw/master/Spoons/WindowGrid.spoon.zip)
local obj={}
obj.__index = obj
-- Metadata
obj.name = "WindowGrid"
obj... |
object_tangible_food_generic_dessert_vagnerian_canape = object_tangible_food_generic_shared_dessert_vagnerian_canape:new {
}
ObjectTemplates:addTemplate(object_tangible_food_generic_dessert_vagnerian_canape, "object/tangible/food/generic/dessert_vagnerian_canape.iff")
|
Ryan.Session = {
ExplodeAll = function(with_earrape)
if with_earrape then -- Credit: Bed Sound
for _, coords in pairs(Ryan.Globals.BedSoundCoords) do
Ryan.Audio.PlayAtCoords(coords, "WastedSounds", "Bed", 999999999)
coords.z = 2000.0
Ryan.Audio.Pla... |
--[[
@Title: Local Game Setup Controller
@Author: Dr_K4rma aka Alexander Karpov
@Date: 5 Feb. 2021
@Package: ServerScriptService.RovaFramework.Client.Controllers
@Provides: Responsible for initial setup of the game on the client. This is the first thing that should be called.
]]
_G()
local public = {}
-------... |
-----------------------------------
-- Area: Misareaux Coast
-- NPC: Dilapidated Gate
-- Entrance to Riverne Site #B01
-- !pos -259 -30 276 178
-----------------------------------
require("scripts/globals/missions")
local ID = require("scripts/zones/Misareaux_Coast/IDs")
-----------------------------------
function o... |
AddCSLuaFile()
LIB_MATH_TA = {}
LIB_MATH_TA.EPSILON = 0.00001
LIB_MATH_TA.HUGE = 100000
-- Converting coordinate to grid ignoring z on normal
function LIB_MATH_TA:SnapToGridOnSurface(pos, angle, radius, zRound)
local localpos = WorldToLocal(pos, Angle(), Vector(), angle)
local lx = math.Round(localpos.x / radius) *... |
-- Created by Elfansoer
--[[
Ability checklist (erase if done/checked):
- Scepter Upgrade
- Break behavior
- Linken/Reflect behavior
- Spell Immune/Invulnerable/Invisible behavior
- Illusion behavior
- Stolen behavior
]]
--------------------------------------------------------------------------------
silencer_glaives_o... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.