content stringlengths 5 1.05M |
|---|
local function TextW(text)
surface.SetFont("DermaLarge")
local w, h = surface.GetTextSize(text)
return w
end
hook.Add("HUDPaint", "LElectronics:DrawInfo", function()
local ply = LocalPlayer()
local tr = ply:GetEyeTrace()
local ent = tr.Entity
if not IsValid(ent) then return end
... |
-- Base code provided by: https://github.com/SinisterRectus/Discordia/blob/master/libs/utils/Logger.lua (I optimized it to my needs.)
local logger = {};
function logger:log(level, msg, placeholder)
local tags = {
{'ERROR', 31},
{'WARNING', 33},
{'INFO', 32},
{'DEBUG', 36},
}
local tag = tags[level];
loca... |
object_mobile_toydarian_m_greeter_01 = object_mobile_shared_toydarian_m_greeter_01:new {
}
ObjectTemplates:addTemplate(object_mobile_toydarian_m_greeter_01, "object/mobile/toydarian_m_greeter_01.iff")
|
return {
armhcrus = {
acceleration = 0.09,
airsightdistance = 700,
brakerate = 0.135,
buildcostenergy = 281709,
buildcostmetal = 17455,
builder = false,
buildpic = "armhcrus.dds",
buildtime = 275000,
canattack = true,
canguard = true,
canhover = true,
canmove = true,
canpatrol = true,
canst... |
lg_dlna_org_extras='DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000'
profiles['LG']=
{
['desc']='LG TV',
-- Linux/2.6.31-1.0 UPnP/1.0 DLNADOC/1.50 INTEL_NMPR/2.0 LGE_DLNA_SDK/1.5.0
-- Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 5.1; LG_UA; AD_LOGON=LGE.NET; .NET CLR 2.0.5072... |
require("indent_blankline").setup {}
require("indent_blankline").setup {
char = "┆",
show_current_context = true,
show_current_context_start = true,
context_patterns = {"class", "function", "method", "^if", "^else","^else if", "^while", "^for", "^object", "^table", "block"},
show_end_of_line = false... |
--[[
@class BlendSingle.story
]]
local require = require(game:GetService("ServerScriptService"):FindFirstChild("LoaderUtils", true).Parent).load(script)
local Maid = require("Maid")
local Observable = require("Observable")
local Blend = require("Blend")
return function(target)
local maid = Maid.new()
local state... |
local Bg = Class("Bg")
function Bg:init()
self.url = "res/bg/"
self.imgUrl = "bg.png"
self.img = love.graphics.newImage(self.url..self.imgUrl)
end
function Bg:draw()
love.graphics.draw(self.img,0,0)
end
function Bg:setBg(imgUrl)
self.img = love.graphics.newImage(self.url..imgUrl)
end
return Bg |
scriptId = 'com.jimgale.scripts.vlc'
require "myocontroller"
function setupVLC() -- source of keyboard shortcuts: http://www.shortcutworld.com/en/win/VLC-Media-Player.html --
local responder = MyoResponder.new("vlc-player")
responder.activateWhen = WindowTitleAction(MatchType.Contains, "VLC media player")
... |
require "aaa"
require "cols"
Split=Object:new{enough=nil, get=last, cohen= 0.2,
maxBins=16,
small =nil, id= 1, trivial=1.05}
function Split:div(t, all,out)
t = sort(t, function(a,b)
return self.get(a) < self.get(b) end)
all = Num:new():adds(map(self.get... |
--[[
The contents of this file are subject to the Common Public Attribution
License Version 1.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://ultimate-empire-at-war.com/cpal. The License is based on the Mozilla
Public License Versio... |
-------------------------------------------------------------------------------
-- login.lua
-------------------------------------------------------------------------------
local tostring = tostring
local actor = tengine.actor
local INFO_MSG = tengine.INFO_MSG
local ERROR_MSG = tengine.ERROR_MSG
local p = tengine.p
... |
running the function of a valid address that causes from a non-shutdown
|
debug.appendtoenum(kDamageType, "HeavyToPlayers")
debug.appendtoenum(kDamageType, "Railgun")
kRailgunPlayerDamageReduction = 0.72
local function HeavyDamageToPlayers(target, attacker, doer, damage, armorFractionUsed, healthPerArmor, damageType, hitPoint)
if target:isa("Player") then
healthPerArmor = heal... |
project "NFD"
kind "StaticLib"
language "C++"
cppdialect "C++17"
targetdir ( "%{wks.location}/build/" .. outputdir .. "/%{prj.name}")
objdir ( "%{wks.location}/build-int/" .. outputdir .. "/%{prj.name}")
files {
"src/include/*.h",
"src/include/*.hpp"
}
includedirs {
... |
--[[
--=====================================================================================================--
Script Name: Notify Me (UTILITY), for SAPP (PC & CE)
Description: A simple addon that notifies (via server terminal) of certain events.
====== Event Triggers ======
- OnScriptLoad
... |
-- Washing plant sulfur byproduct
local washing_fluid_box = {
production_type = 'output',
pipe_covers = pipecoverspictures(),
base_level = 1,
pipe_connections = {{ position = {-3, 0} }}
}
for _,v in pairs({"", "-2", "-3", "-4"}) do
local washingplant = data.raw['assembling-machine']['washing-plant'..v]
if w... |
msg_1 = "Kvadar se sastoji od "
msg_2 = " takvih kocki nanizanih jedna na drugu."
msg_3 = "Kvadar ima istu dužinu i širinu kao i kocka, a visina mu je "
msg_4 = " puta duža od ivice kocke."
|
--当麻面包
InitItem{
name = "当麻面包",
id = |I0CW|,
skill = function(this)
if this.event == "获得" then
PDARestartHeroItemCool(this, this.name)
end
end,
use = function(this)
if this.isitemtarget then
this.tar... |
-- UseLater.lua
-- Implements a test Cuberite plugin that stores an instance from a command callback and uses it later on
local g_Player
local function onCmdStore(a_Split, a_Player)
g_Player = a_Player
end
local function onCmdUse(a_Split, a_Player)
g_Player:SendMessage("test")
end
function Initia... |
function init()
setName("Bricks 1")
setDesc("Sets up bricks")
end
function apply()
math.randomseed(os.time())
addNode("bricks.lua", -150, -112)
addNode("perlin_noise.lua", -290, 112)
addNode("perlin_noise.lua", -150, 112)
addNode("directional_blur.lua", 0, 0)
addNode("blend.lua", 140, 0... |
rulePath = "waf/wafconf/"
attacklog = true
logPath = "/data/logs/hack"
urlDeny = true
redirect = true
cookieCheck = true
postCheck = true
whiteCheck = true
blackFileExt = {"php", "jsp"}
CCDeny = true
-- cc攻击频率限制(次数/秒)
CCrate = "1000/60"
-- 是否触发安全规则后写入临时封禁
setBindIP = true
-- 是否启用限流
rateLimit = true
-- redis 配置
redis... |
data:extend(
{
{
type = "noise-layer",
name = "geothermal-deposit"
},
{
type = "autoplace-control",
name = "geothermal-deposit",
richness = true,
order = "b-a"
},
{
type = "resource",
name = "geothermal-deposit",
icon = "__Clean_Energy__/graphics/geothermal-deposit.png",
... |
local ModInteractive = Class.create("ModInteractive", Entity)
ModInteractive.trackFunctions = {"onPlayerInteract"}
function ModInteractive:onPlayerInteract(player)
end
function ModInteractive:tick( dt )
if not self.intBody then
self:createIntBox()
end
self:updateIntBox()
end
function ModInteractive:createIntB... |
--黒の魔法神官 (Anime)
--Sorcerer of Dark Magic (Anime)
local s,id=GetID()
function s.initial_effect(c)
--fusion summon
c:EnableReviveLimit()
Fusion.AddProcMix(c,true,true,CARD_DARK_MAGICIAN,s.ffilter)
Fusion.AddContactProc(c,s.contactfil,s.contactop,s.splimit)
--negate
local e3=Effect.CreateEffect(c)
e3:Set... |
local Chara = ELONA.require("core.Chara")
local Map = ELONA.require("core.Map")
local Item = ELONA.require("core.Item")
return {
root = "core.talk.unique.part_time_worker",
nodes = {
__start = function()
if not (Map.id() == "core.noyel" and Map.area().christmas_festival) then
return "_... |
function EDRV_ZoneSetActiveSource(zone_index, source_index)
ELAN_ConnectTCP()
ELAN_SendHTTP("GET /Port/Set/" .. source_index .. "/" .. zone_index)
ELAN_DisconnectTCP()
end
function EDRV_ZonePower(zone_index, turn_on_off)
-- power the zone on or off
-- Nothing done yet, but we could potentially ... |
-- set FM_dll to name of DLL with EFM, or nil to use SFM
local AFMenabled = false
local bin = {}
if AFMenabled == true then
bin = {'A4E_FM'}
end
local self_ID="A-4E-C"
declare_plugin(self_ID,
{
installed = true,
dirName = current_mod_path,
displayName = _("Lancaster Mk1"),
fileMenuName = _("... |
---
--- Created by titan.
--- DateTime: 2018/1/30 00:44
--- |
function love.load()
width, height = love.graphics.getDimensions()
mapsize = height/15
map = {1,0,1,0,1,0,3,0,1,0,1,0,1,0,3,0,1,0,1,0,1,0,3,0,1,0,1,0,1,0,3,0}
step = 0
mousex = 0
mousey = 0
end
function love.update(dt)
if mousex ~= 0 and mousey ~= 0 then
end
end
function love... |
local main = script.Parent
local Behaviors = require(main.Behaviors)
local Symbol = {}
function Symbol:__tostring()
return string.format("Symbol(%s)", self.Name)
end
function Symbol:__call(newValue)
return Behaviors.HandleValue(self.Owner, self.Behaviors, self.Value, newValue)
end
return Symbol
|
local bob = require('bob')
describe('bob', function()
it('stating something', function()
local result = bob.hey('Tom-ay-to, tom-aaaah-to.')
assert.are.equals('Whatever', result)
end)
it('shouting', function ()
local result = bob.hey('WATCH OUT!')
assert.are.equals('Whoa, chill out!', result)
e... |
assert(Skada, "Skada not found!")
local mod = Skada:NewModule("InlineDisplay")
local L = LibStub("AceLocale-3.0"):GetLocale("Skada")
mod.name = L["Inline bar display"]
mod.description = L["Inline display is a horizontal window style."]
Skada:AddDisplaySystem("inline", mod)
local mybars = {}
local barlibrary = {bars ... |
-----------------------------------------------------------------------------
------------------------------ README ---------------------------------------
-----------------------------------------------------------------------------
--[[ ATTENTION
The code is structured as the following :
> GENERAL TOOLS :... |
return {
hide = true,
run = function(C, msg)
C.api:reply(msg, 'TODO!')
end
} |
application =
{
content =
{
width = 800,
height = 1200,
scale = "letterBox",
fps = 30,
imageSuffix =
{
["@2x"] = 1.3
},
},
}
|
require 'nvim-treesitter.configs'.setup {
highlight = {
enable = true,
},
textobjects = {
select = {
enable = true,
disable = { "go" },
-- Automatically jump forward to textobj, similar to targets.vim
lookahead = true,
keymaps = {
["af"] = "@function.outer",
["if"] = "@function.inner",
... |
lesser_damage_increases_with_stacks = class({})
function lesser_damage_increases_with_stacks:OnCreated( data )
-- ### VALUES START ### --
self.all_attributes = 10
self.bonus = 20
self.stacks_max = 5
self.stack_trigger_cd = 0.5
self.effectiven... |
-- LaserBlast by NitrogenFingers
-- Port and optimisation by Mr_Iron2
-- Note: Requires latest APIs
os.loadAPI("/apis/gpu.lua")
os.loadAPI("/apis/cpu.lua")
os.loadAPI("/apis/iop.lua")
local w,h = gpu.winSize()
local plpos = math.floor(w/2)
--music stuff
local minterval = 1
local mtimer = 1
local left = false
local ... |
CheatCoreCM.TerraformTiles = {
MenuCategories = {
"Natural",
"Roads",
"Tiles",
"Carpets",
"Wood Floors"
},
TileTypes = {
Water = {Category = "Natural", Name = "Water", Ranges = {5,7}, Tileset = "blends_natural_02_"},
Dirt = {Category = "Natural", Name = "Dirt", Ranges = {69,71}, Tileset = "blends_natu... |
function Auctionator.Selling.ComposeAuctionPostedMessage(auctionInfo)
local result = auctionInfo.itemLink
-- Stacks display, total and individual price
if auctionInfo.quantity > 1 then
result = Auctionator.Locales.Apply(
"STACK_AUCTION_INFO",
result .. Auctionator.Utilities.CreateCountString(aucti... |
Config = {}
Config.DrawDistance = 1000.0
Config.Locale = 'fr'
Config.Plates = {
taxi = "TAXI",
fisherman = "FISH",
cop = "LSPD",
ambulance = "EMS",
depanneur = "MECA",
fuel = "FUEL",
lumberjack = "BUCH",
miner = "MINE",
reporter = "JOUR",
slaughterer = "ABAT",
textil = "COUT"
}
Config.Jo... |
-- local Class = require("class")
local Node = {}
Node = Class.create("Node", Entity)
function Node:init(id, x, y, diff, isCenter)
self.id = id
self.x = x
self.y = y
self.pos = {x=self.x,y=self.y}
self.isCenter = isCenter
self.edges = {}
self.neighbors = {}
-- for the centers:
self.members = {}
self.d... |
local actor={}
-- override event from blueprint
function actor:ReceiveBeginPlay()
self.bCanEverTick = true
-- set bCanBeDamaged property in parent
self.bCanBeDamaged = false
print("vinjn:ReceiveBeginPlay")
end
-- override event from blueprint
function actor:ReceiveEndPlay(reason)
pri... |
-- ----------------------------------------------------------------------------
-- Copyright (c) 2012-2020 HERE Global B.V. and its affiliate(s).
-- All rights reserved.
-- The use of this software is conditional upon having a separate agreement
-- with a HERE company for the use or utilization of this software. In the... |
TAC.RegisterClientCallback('tigoanticheat:stillAlive', function()
TAC.TriggerServerEvent('tigoanticheat:stillAlive')
end) |
---
--- math.lua
---
--- Copyright (C) 2018 Xrysnow. All rights reserved.
---
---@param v number
---@return number
function math.cbrt(v)
return math.pow(v, 1 / 3)
end
---@param v number
---@param min number
---@param max number
---@return number
function math.clamp(v, min, max)
if v < min then
return... |
target("glm")
add_includedirs("glm",{public=true}) |
-- Initialization for YouBot
function sysCall_init()
-- Get YouBot Handle
you_bot_2 = sim.getObjectHandle('youBot_2')
you_bot_dummy_2 = sim.getObjectHandle('youBotDummy_2')
dummy_guider_handle_2 = sim.getObjectHandle('DummyGuider_2')
-- Prepare initial values for four wheels
wheel_joints_2 ... |
local longstr = [[
hello, my nane is lileis\n
this is my sister lily
]]
print(longstr) |
--Beetrooper Assault Roller
--Scripted by: XGlitchy30
function c101106085.initial_effect(c)
--spsummon proc
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,101106085+EFFECT_COUNT_CO... |
AddCSLuaFile()
ENT.Base = "gballoon_tower_base"
ENT.Type = "anim"
ENT.PrintName = "Pill Lobber"
ENT.Category = "#rotgb.category.tower"
ENT.Author = "Piengineer12"
ENT.Contact = "http://steamcommunity.com/id/Piengineer12/"
ENT.Purpose = "#rotgb.tower.gballoon_tower_17.purpose"
ENT.Instructions = ""
ENT.Spawnable = fals... |
return {--随机动漫壁纸
check = function (data)
return data.msg:find("动漫壁纸 *%d*$") == 1
end,
run = function (data,sendMessage)
if not checkCoolDownTime(data, "animeWallpaper", sendMessage) then
return true
end
local apiUrlList = {
"https://api.ixiaowai.cn/api/api.php",
"http://api.btstu... |
Lee = dxCreateFont("font.otf",13)
local damage = {}
local fortnite = ""
local px,py,pz,tx,ty,tz,Distance
function FortniteDamage ( attacker, weapon, bodypart, loss)
--local source = getLocalPlayer ()
local team_ = getPlayerTeam(localPlayer) or getTeamFromName("Unemployed")
local team = getTeamName(team_)
... |
redstone.setBundledOutput("top", 0)
term.clear()
term.setCursorPos(1, 1)
print("Welcome to the casino controller!")
print("-= Menu =-")
print("1. Eveyone's a winner")
print("2. Eveyone's a loser")
print("99. Cancel")
print("Please Select an Option: ")
local input = read()
if (input == "1") then
redstone.se... |
local g = vim.g
-- Ignore for indent levels
g.indent_blankline_filetype_exclude = {
"help",
"packer",
"dashboard",
"nvim-tree",
"NvimTree",
}
-- Ignore for indent levels
g.indent_blankline_buftype_exclude = { "terminal", "nofile" }
g.mapleader = " "
g.altleader = ";"
g.winleader = "\\"
-- extra plugins to... |
-- example main module for love2D
-- copyright 2016 Samuel Baird MIT Licence
local app = require('lt.app')
app.launch(
-- preferred logical screen size
{
width = 480,
height = 320
},
-- available asset scales and suffixes
{
{ scale = 1, suffix = '_x1'},
{ scale = 2, suffix = '_x2'},
{ scale = 3, suffix ... |
describe('switch', function()
it('errors when the source errors', function()
expect(Rx.Observable.throw():switch().subscribe).to.fail()
end)
it('errors when an Observable produced by the source errors', function()
local observable = Rx.Observable.create(function(observer)
observer:onNext(Rx.Observa... |
defines{"GLOBAL"}
local solutionDir = "build/"
workspace "Espresso Shot - Built"
defines{"_CRT_SECURE_NO_WARNINGS"}
defines{"WORKSPACE"}
configurations { "Debug", "Release" }
platforms {"x32","x64","x86"}
location (solutionDir)
language "C++"
cppdialect "C++17"
files{
os.geten... |
local Lovox = require("lib.lovox")
local Assets = require("assets/assets").table
return Lovox.newVoxelBatch(love.graphics.newArrayImage(Assets), Assets.layers, 100, "static")
|
return PlaceObj('ModDef', {
'title', "VIP Tracker",
'image', "Preview.png",
'last_changes', "Below & Beyond compatibility update",
'ignore_files', {
"*Images/*",
"*.git/*",
"*.gitattributes",
"*README.md",
"*UI/ColonistIconTemplate.xcf",
},
'id', "Dawnmist_VIPTracker",
'steam_id', "1574069378",
'pops_... |
--[[
cocos2dx
--]]
import(".functions")
|
local tabnine = require('cmp_tabnine.config')
tabnine:setup({
max_lines = 1000,
max_num_results = 20,
sort = true,
run_on_every_keystroke = true,
snippet_placeholder = '..',
})
|
local thread = require "kite.thread"
local audio = require "kite.manager.audio".init()
audio.load{"sound/bg.ogg"}
print("['audio'] bgm loaded")
local server = {}
function server.play_bgm()
audio.play_music("sound/bg.ogg")
end
function server.exit()
thread.exit()
print("['audio'] bye")
end
thread.start(serv... |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:27' using the latest game version.
NOTE: This file should only be used as IDE support; it should NOT be distributed with addons!
****************************************************************************
CONTENTS OF THIS FILE IS COPYRI... |
local wibox = require("wibox")
local awful = require("awful")
local icon = os.getenv("HOME") .. "/.config/awesome/widget/cpu/icon.svg"
local colorize = require("utils.function").colorize
local markup = require("utils.function").markup
local beautiful = require("beautiful")
local M = {}
-- CPU
M.icon = wibox.widget.i... |
local order = 0
local function AutoOrder()
order = order + 1
return "a" .. (10000 + order)
end
local function CreateBoolSetting(settingName, defaultValue)
data:extend({{
type = "bool-setting",
name = settingName,
setting_type = "startup",
default_value = defaultValue,
order = AutoOrder()
}})
end
local f... |
------------------------------------------------------------------------
--
-- luasdl.lua
-- Currently for testing purposes.
--
-- This file is part of LuaSDL.
--
-- PUBLIC DOMAIN. Author: Kein-Hong Man <khman@users.sf.net> 2007
--
------------------------------------------------------------------------
--------------... |
local math_random = math.random
local wrk_format = wrk.format
local open = io.open
do
local frandom, err = open("/dev/urandom", "rb")
if not frandom then
return nil, 'failed to open /dev/urandom: ' .. err
end
local str = frandom:read(4)
frandom:close()
if not str then
return ni... |
-- ===========================================================================
--
-- Slideout panel that allows the player to move their trade units to other city centers
--
-- ===========================================================================
include("InstanceManager");
include("SupportFunctions");
include("A... |
local limit_req = require "resty.gateway.req"
local lim, err = limit_req.new("ratelimit_req_store")
if not lim then
ngx.log(ngx.ERR, "failed to instantiate a resty.limit.req object: ", err)
return ngx.exit(500)
end
local _M = {}
function _M.get( key )
return lim:get(key)
end
function _M.incr( key,value,... |
tc_white = Color(255, 255, 255)
tc_bwhite = Color(230, 230, 230)
function pm.iconbe( x, y, w, h, color, mate )
surface.SetDrawColor( color )
surface.SetMaterial( Material(mate) )
surface.DrawTexturedRect( x, y, w, h )
end |
include('shared.lua')
function ENT:Initialize()
self.RealModel = "models/monsters/slep_dog2.mdl"
self.TEMP_Emitter = ParticleEmitter(Vector(0,0,0), false)
end
function ENT:Draw()
self:SetModel("models/monsters/slep_dog2.mdl")
self:DrawModel()
end
ENT.fireEffects = {
"effects/fire_cloud1",
"effects/fire_cloud... |
require("Foldder")
local FoldderLeader = class("FoldderLeader", function()
return require("Foldder").new()
end)
---------------------------
--@return #boolean true if init success
function FoldderLeader:init()
self._score = 20
self._alive = true
self._model = cc.EffectSprite3D:createFromObjFileAndText... |
if not modules then modules = { } end modules ['supp-ran'] = {
version = 1.001,
comment = "companion to supp-ran.mkiv",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files"
}
-- We cannot ask for th... |
#!../out/bin/lua
-- Explore all ways bind() and listen() can be used on a server socket
-- connect() works similarily but is not shown here
Socket = require't.Net.Socket'
Address = require't.Net.Address'
Interface = require't.Net.Interface'
-- get IP address of most suitable local interface
ipAddr = Interface.de... |
Controls = require 'controls'
Timer = require 'hump.timer'
pprint = require 'pprint.pprint'
--
lt = love.timer
function love.load()
cc = Controls({
duck = { 'D' },
roll = { 'D+J' },
jump = { 'J' },
})
end
function love.update(dt)
cc:update(dt)
end
---- ---- ---- ----
-- Key Pressed
--
function love.ke... |
local _M = {}
local function isempty(s)
return s == nil or s == '' or s == "nil"
end
function _M.getDefaultConfig()
-- Set Default values.
local config = {}
if isempty(ngx.var.moesif_application_id) then
config["moesif_application_id"] = ""
else
config["moesif_application_id"] = ng... |
require "XmlWriter"
require "vmath"
local function GenStringFromArray(theArray, bAsInt)
local array = {" "}
for i, vector in ipairs(theArray) do
local elements = vector;
if(bAsInt) then
elements = {};
for i, value in ipairs(vector) do
elements[#elements + 1] = string.format("%i", value);
... |
co = coroutine.create(function ()
for i=1, 10 do
print("co", i);
coroutine.yield();
end
end);
coroutine.resume(co);
print(coroutine.status(co));
coroutine.resume(co);
print(coroutine.status(co));
coroutine.resume(co);
print(coroutine.status(co));
coroutine.resume(co);
print(coroutine.status(co));
coroutin... |
return {
summary = 'Get the Blob\'s contents as a string.',
description = 'Returns a binary string containing the Blob\'s data.',
arguments = {},
returns = {
{
name = 'data',
type = 'string',
description = 'The Blob\'s data.'
}
},
example = {
description = 'Manually copy a file... |
-- empty? |
----------------------------------------------------------------------------------
--- Total RP 3
--- World map data provider
--- ---------------------------------------------------------------------------
--- Copyright 2014-2019 Morgane "Ellypse" Parize <ellypse@totalrp3.info> @EllypseCelwe
---
--- Licensed under the ... |
local game_scene = class("game_scene", cc.Layer)
local public_module = require("app.public.util.public_module")
local global_define = require("app.public.global.global_define")
local ui_observer = require("app.public.util.ui_observer")
local layer_main = require("app.views.layer.layer_main")
function game_scene:ctor... |
PROPERTY = {};
PROPERTY.ID = 12;
PROPERTY.Name = "Studio Apartment Envy";
PROPERTY.Category = "Apartment";
PROPERTY.Description = "Semi large studio apartment, over looking the park.";
PROPERTY.Image = "ev33x_studio_apartment_envy";
PROPERTY.Cost = 1000;
PROPERTY.Doors = {
{Vector( -10840, -9002, 301.25),... |
RegisterNetEvent("caue-login:switchCharacter")
AddEventHandler("caue-login:switchCharacter", function()
TransitionToBlurred(500)
DoScreenFadeOut(500)
Citizen.Wait(1000)
TriggerServerEvent("caue-login:switchCharacter")
Citizen.Wait(500)
TriggerEvent("caue-base:sessionStarted")
end) |
-- This file is subject to copyright - contact swampservers@gmail.com for more information.
-- INSTALL: CINEMA
-- function render.DrawingScreen()
-- local t = render.GetRenderTarget()
-- return (t==nil) or (tostring(t)=="[NULL Texture]")
-- end
--[[
local op = Material('swamponions/wall/orangeplaster')
op:SetFloat('... |
do_addObject=tfm.exec.addShamanObject
do_removeObject=tfm.exec.removeObject;do_addGround=tfm.exec.addPhysicObject
do_removeGround=tfm.exec.removePhysicObject;do_addJoint=tfm.exec.addJoint;do_removeJoint=tfm.exec.removeJoint
do_respawn=tfm.exec.respawnPlayer;do_addExplosion=tfm.exec.explosion
addParticle=tfm.exec.displa... |
return {
{
["type"] = "picture",
[1] = {
["screen"] = {
240, 1280, -240, 1280, -240, -1280, 240, -1280,
},
["tex"] = 1,
["src"] = {
1009, 354, 979, 354, 979, 194, 1009, 194,
},
},
["export"]... |
------------------------------------------------
-- Copyright © 2013-2020 Hugula: Arpg game Engine
--
-- author pu
------------------------------------------------
local tonumber = tonumber
local tostring = tostring
local ValueConverterRegister = CS.Hugula.Databinding.ValueConverterRegister.instance
---
---转换器
--- ... |
ui.newLayout("ui_desc")
ui.addTextView("tv_main", "", 15, ui.MATCH_PARENT, ui.WRAP_CONTENT)
ui.refresh() |
ys = ys or {}
slot1 = class("BattleBuffDamagedCount", ys.Battle.BattleBuffCount)
ys.Battle.BattleBuffDamagedCount = slot1
slot1.__name = "BattleBuffDamagedCount"
slot1.Ctor = function (slot0, slot1)
slot0.super.Ctor(slot0, slot1)
end
slot1.onTakeDamage = function (slot0, slot1, slot2, slot3)
if slot0:damageAttrRequ... |
local M = {}
function M.delete(name, str)
local pattern = ("^%s$"):format(vim.fn.escape(str, "[]\\*~"))
vim.fn.histdel(name, pattern)
end
function M.filter_map(name, f)
vim.validate({name = {name, "string"}, f = {f, "function"}})
local count = vim.fn.histnr(name)
local cmds = {}
for i = 1, count, 1 do
... |
pathtest = string.match(test, "(.*/)") or ""
dofile(pathtest .. "common.lua")
function thread_init(thread_id)
set_vars()
if (db_driver == "mysql" and mysql_table_engine == "myisam") then
begin_query = "LOCK TABLES sbtest WRITE"
commit_query = "UNLOCK TABLES"
else
begin_query = "BEGIN"
... |
--------[ PLAYER NAME CHANGED ]------------
SS.Names = {}
// When player spawns
function SS.Names.PlayerInitialSpawn(Player)
local ID = Player:Name()
TVAR.New(Player, "name", ID)
end
SS.Hooks.Add("SS.Names.PlayerInitialSpawn", "PlayerInitialSpawn", SS.Names.PlayerInitialSpawn)
// ServerSecond hook
function SS... |
--[[
------------------------------------
Description: HPC Vehicle Spawn #3, Phasor V2+
Copyright (c) 2016-2018
* Author: Jericho Crosby
* IGN: Chalwk
* Written and Created by Jericho Crosby
-----------------------------------
]]--
function GetRequiredVersion()
return 200
end
function OnScriptUnload()
end
function... |
Weapon.PrettyName = "IMI Uzi"
Weapon.WeaponID = "fas2_uzi"
Weapon.DamageMultiplier = 1.5
Weapon.WeaponType = WEAPON_PRIMARY |
-- create node Arcsine
require "moon.sg"
local node = moon.sg.new_node("sg_arcsine")
if node then
node:set_pos(moon.mouse.get_position())
end |
-----------------------------------------
-- ID: 15912
-- Item: Lieutenant's Sash
-- On Use: Removes food effect.
-----------------------------------------
require("scripts/globals/status")
-----------------------------------------
function onItemCheck(target)
return 0
end
function onItemUse(target)
target:de... |
-- A basic encounter script skeleton you can copy and modify for your own creations.
music = "phase1" --Either OGG or WAV. Extension is added automatically. Uncomment for custom music.
encountertext = "LoaiSayah is gonna take you down! or is he gonna?" --Modify as necessary. It will only be read out in the action ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.