content
stringlengths
5
1.05M
-- Loads up a slew of objects to load into the screen, like how 3.9 does. -- I prefer to keep these optional, incase another screen wants to hide -- these elements. return Def.ActorFrame { StandardDecorationFromFileOptional("Header","Header"); StandardDecorationFromFileOptional("Footer","Footer"); StandardDecoratio...
local Item = QuickCreateItemTable(BaseItem, "money", "Money", "It will bring you happy", "icons/item_cash") Item.Model = "models/props/cs_assault/Money.mdl" Item.Stackable = true Register.Item(Item) local Item = QuickCreateItemTable(BaseItem, "wood", "Wood", "Its wood?", "icons/item_wood") Item.Model = "models/Gibs/wo...
-- Copyright (C) 2011-2015 Anton Burdinuk -- clark15b@gmail.com -- https://tsdemuxer.googlecode.com/svn/trunk/xupnpd http_mime={} http_err={} http_vars={} -- http_mime types http_mime['html']='text/html' http_mime['htm']='text/html' http_mime['xml']='text/xml; charset="UTF-8"' http_mime['txt']='text/plain' http_mime[...
local base = {} function base:new( parent ) local instance = {} setmetatable( instance, self.meta ) instance:setparent( parent ) instance.visible = true instance.children = {} instance.AABB = {0,0,0,0} instance.x = 0 instance.y = 0 instance.w = 0 instance.h = 0 instance.hoverstate = 'off' goo.newinstance( ...
-- Copyright (c) 2020-2021 shadmansaleh -- MIT license, see LICENSE for more details. -- Genarated by lightline to lualine theme converter -- https://gist.github.com/shadmansaleh/000871c9a608a012721c6acc6d7a19b9 local colors = { color0 = "#282c34", color1 = "#61afef", color2 = "#dcdfe4", color3 = "#5d6...
--imports-- local api = require"novus.api" local util = require"novus.snowflakes.helpers" local snowflake = require"novus.snowflakes" local permission = require"novus.util.permission" local modifiable = require"novus.snowflakes.mixins.modifiable" local cqueues = require"cqueues" local null = require"cjson".null local s...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") ENT.BogeyDistance = 650 -- Needed for gm trainspawner -------------------------------------------------------------------------------- function ENT:Initialize() -- Defined train information self.SubwayTrain = { Type = "E", N...
-- scaffold geniefile for ascii_art ascii_art_script = path.getabsolute(path.getdirectory(_SCRIPT)) ascii_art_root = path.join(ascii_art_script, "ascii_art") ascii_art_includedirs = { path.join(ascii_art_script, "config"), ascii_art_root, } ascii_art_libdirs = {} ascii_art_links = {} ascii_art_defines = {} ---- r...
---- -- Handles test functionality. -- -- Shouldn't be loaded in production and most only be used for testing. It requires Busted unit -- testing framework to be loaded and when it's found it will automatically add all corresponding -- functions globally when SDK is loaded. -- -- **Source Code:** [https://github.com/ds...
---@diagnostic disable-next-line: lowercase-global -- Aliases o = vim.o g = vim.g wo = vim.wo bo = vim.bo fn = vim.fn exec = vim.api.nvim_exec cmd = vim.api.nvim_command feedkeys = vim.api.nvim_feedkeys -- Module managing loaded_modules = {} function load(modules) if type(modules) ~= 'table' then mod...
--[[ File: damage.lua Author: toneo Realm: Server Damage module. Handles modifiers for damage dealt by NPCs and dealt to players. ]]-- util.AddNetworkString( "DamageNotify" ) local avoidRecursion = false -- Used for hunter v hunter damage workaround -- Modify npc damage function GM:EntityTakeDamage( ent, dmgi...
WIRE_DIRECTIONAL_RADIO_KIT = true -- Use this in your own Lua code to check for the presence of the Wire Directional Radio Kit CreateConVar("sv_wdrk_scale", 180.0) -- Map Scale Adjustment factor CreateConVar("sv_wdrk_max_tx_power", 1000.0) -- Maximum transmit power in Watts CreateConVar("sv_wdrk_rx_sensitivity_thresho...
local S = homedecor.gettext local bedcolors = { { "black", "#000000:200" }, --new cg72 { "brown", "#603010:175" }, { "blue", "#0000d0:150" }, { "cyan", "#009fa7:150" }, --new cg72 { "darkgrey", "#101010:175" }, { "dark_green", "#007000:150" }, { "green", "#00d000:150" }, --ne...
local rfWork = const.rfWork local rfSupply = const.rfSupply local rfWaitToFill = const.rfWaitToFill local rfDemand = const.rfDemand local rfCanExecuteAlone = const.rfCanExecuteAlone local rfSupplyDemand = rfSupply + rfDemand local rfDemandOrWork = rfDemand + rfWork local rfPostInQueueFlags = rfDem...
-- Base panel for all elements. -- @panel MPanel local PANEL = {} table.Merge(PANEL, sKore.elevationGAS) table.Merge(PANEL, sKore.shadowGAS) table.Merge(PANEL, sKore.enabledGAS) function PANEL:Init() self:SetElevation(2) self:SetShadowOffsetX(1) self:SetShadowOffsetY(1) self:SetPaintShadow(true) self:SetDrawSh...
--Custom Jedi Crystal Boss Loots includeFile("custom_loot/groups/crystals/crystal_kuns_blood.lua") --Custom Jedi Lightsaber Groups includeFile("custom_loot/groups/lightsabers/exar_kun_ls_group.lua") includeFile("custom_loot/groups/lightsabers/g_jinzu_razor_loot_deed.lua") includeFile("custom_loot/groups/lightsabers/ls_...
--[[ Copyright (c) 2020 robot256 (MIT License) * Project: Multiple Unit Train Control * File: control.lua * Description: Runtime operation script for replacing locomotives and balancing fuel. * Functions: * => On Train Created (any built, destroyed, coupled, or uncoupled rolling stock) * ===> Check if forwards_...
local model = require 'web.mixins.model' local describe, it, assert = describe, it, assert describe('web.mixins.model', function() it('', function() assert.not_nil(model) end) end)
-- !!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!! -- This file is automaticly generated. Don't edit manualy! -- !!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!! ---@class C_FriendList C_FriendList = {} ---[Wowpedia documentation](https://wow.gamepedia.com/API_C_FriendList.AddFriend) ---@param name str...
AccountHeadCcsView = class("AccountHeadCcsView") AccountHeadCcsView.onCreationComplete = function (slot0) ClassUtil.extends(slot0, ZoomPopUpChildView, true, slot0, slot0.bg, slot0.view) slot0.view.head_lv:setItemResCcsFileName("csb/common/AccountHeadItem.csb") slot0.view.head_lv:setScrollPolicy(CcsScrollView.SCROLL...
return game:GetFastFlag("RecordRecording") -- Defined in C++
local a = require 'packer.async' local async = a.sync local await = a.wait local fmt = string.format local log = require 'packer.log' local plugin_utils = require 'packer.plugin_utils' local util = require 'packer.util' local function cfg(_config) config = _config end ---Serializes a table of git-plugins with `shor...
local function rgbValue(v) return math.max(v.r, v.g, v.b) end local function rgbLuminance(v) return 0.299 * v.r + 0.587 * v.g + 0.114 * v.b end local function rgbHue(v) if v.r == v.g and v.g == v.b then return 0 end local max = v.r local min = v.r if v.g > max then max = v.g end if v.b > max then max =...
--[[ MTA Role Play (mta-rp.pl) Autorzy poniższego kodu: - Patryk Adamowicz <patrykadam.dev@gmail.com> Discord: PatrykAdam#1293 Link do githuba: https://github.com/PatrykAdam/mtarp --]] playerID = {} local function onStart() playerID = {} for j, w in ipairs(getElementsByType( "player" )) do ...
local actors_config_cache = {} function bgNPC:ClearActorsConfig() table.Empty(actors_config_cache) end function bgNPC:GetActorConfig(actor_type) if actors_config_cache[actor_type] then return actors_config_cache[actor_type] else if not bgNPC.cfg.npcs_template[actor_type] then return end local data = table.Co...
-- -- Copyright (c) 2016, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. -- -- The training...
local cache = require "kong.tools.database_cache" local _M = {} function _M.execute(conf) local ssl = require "ngx.ssl" ssl.clear_certs() local data = cache.get_or_set(cache.ssl_data(ngx.ctx.api.id), function() local result = { cert_der = ngx.decode_base64(conf._cert_der_cache), key_der = ngx.d...
--[[Go down to line 336 to change frames g00ber]]-- wait(1/60) Player = game.Players.LocalPlayer Character = Player.Character PlayerGui = Player.PlayerGui Backpack = Player.Backpack Torso = Character.Torso Head = Character.Head Humanoid = Character.Humanoid LeftArm = Character["Left Arm"] LeftLeg = Character["Left...
-- Sector C3: Research an Item obj_prim_newobj_id = 0 function OnInit() Rule_Add("Rule_Init") end function Rule_Init() StartMission() if (questsStatus.c3_ShipHasResearchedItem ~= 1) then Event_Start( "IntelEvent_Intro" ) SobGroup_CreateSubSystem("Player_Ships0", "Research") Rule_AddInterval( "Rule_PlayerWins...
-- Do not edit! This file was generated by blocks/signal/frequencymodulator_spec.py local radio = require('radio') local jigs = require('tests.jigs') jigs.TestBlock(radio.FrequencyModulatorBlock, { { desc = "0.15 Modulation Index, 256 Float32 input, 256 ComplexFloat32 output", args = {0.1}, ...
local rules = {} local rulesFile = utils.read_file("rules.json") if rulesFile == nil or string.len( rulesFile ) == 0 then util.print("Error: rules.json is empty!") else -- expose rules rules.settings = json.decode(rulesFile) end function rules.getNumRules() if rules.settings.rules ~= nil then ...
local d=game:GetObjects("rbxassetid://520998")[1]local _a={} for ba,ca in pairs(d:GetChildren())do table.insert(_a,ca)end;local aa=Instance.new("Model")aa.Name="DZxDz" aa.Parent=workspace;math.randomseed(tick()) function cs() local ba=game.Players:GetChildren() for i=1,#ba do if workspace:FindFirstChild(ba[i].Name)then...
local tabnine = require('cmp_tabnine.config') tabnine:setup({ max_lines = 1000; max_num_results = 20; sort = true; run_on_every_keystroke = true; snippet_placeholder = '..'; ignored_file_types = { -- default is not to ignore -- uncomment to ignore in lua: -- lua = true }; })
base_build = nil base_build = {} local temp_bld_1 = { Type = Ship, ThingToBuild = "Hgn_AssaultCorvette", RequiredResearch = "", RequiredShipSubSystems = "CorvetteProduction", DisplayPriority = 50, DisplayedName = "$7038", Description = "$7039" } local temp_bld_2 = { Type = Ship, ThingToBuil...
LifestyleLayer = Layer:extend() function LifestyleLayer:new() LifestyleLayer.super.new(self) self.layer_name = "LifestyleLayer" self.propagate_input_to_underlying = false end function LifestyleLayer:draw(dt) -- bg local bgc = constants.dark_bg_color love.graphics.setColor(bgc.r, bgc.g, bgc.b, ...
-- -- -- ---------------------------------------------------------- -- Mosaic | OF Visual Patching Developer Platform -- -- Copyright (c) 2019 Emanuele Mazza aka n3m3da -- -- Mosaic is distributed under the MIT License. This gives everyone the -- freedoms to use Mosaic in any context: commercial or non-commercial, -...
-------------------------------- -- @module ParticleFireworks -- @extend ParticleSystemQuad -- @parent_module cc ---@class cc.ParticleFireworks:cc.ParticleSystemQuad local ParticleFireworks = {} cc.ParticleFireworks = ParticleFireworks -------------------------------- --- ---@return boolean function ParticleFirewor...
local lang = require 'lang' local pairs = pairs local type = type local w2l local function has_slk(w2l) for _, name in ipairs(w2l.info.txt) do if w2l:file_load('map', name) then return true end end for _, slks in pairs(w2l.info.slk) do for _, name in ipairs(s...
-- This resource is part of the default Cfx.re asset pack (cfx-server-data) -- Altering or recreating for local use only is strongly discouraged. version '1.0.0' author 'Cfx.re <root@cfx.re>' description 'Example loading screen.' repository 'https://github.com/citizenfx/cfx-server-data' files { 'index.html', ...
nagnang_compass = { use = function(player) local baseMap = getNagnangShieldQuestBaseMap(player) local t = {graphic = convertGraphic(715, "item"), color = 0} player:sendMinitext("You cast Find path.") if player.m == baseMap then player:dialogSeq({t, "The needle points to the east."}, 0) elseif player.m ...
local Object = require("plenary.class") local Relation = Object:extend() function Relation:new(filetypes, related_to, condition, opts) assert(type(filetypes) == "table", "filetypes should be a table") assert(type(related_to) == "function", "related_to should be a function") assert(type(condition) == "function" ...
--@name RT Camera --@author Vurv --@client --@model models/dav0r/camera.mdl -- Author -- Vurv -- Source -- https://github.com/Vurv78/starfallex-creations -- Purpose -- This is a starfall chip that works just like an RT camera, except you can configure the resolution, field of view/zooming, frames per second and more. ...
--[[ module: StudentDaoImpl author: DylanYang time: 2021-02-24 22:15:20 idea: advance: ]] local Student = require("patterns.j2ee.dataAccessObject.Student") local interface = require("patterns.j2ee.dataAccessObject.IStudentDao") local _M = Class("StudentDaoImpl", interface) local public = _M.pub...
--[[ ################################################################################ # # Copyright (c) 2014-2019 Ultraschall (http://ultraschall.fm) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the ...
#!/usr/bin/env lua -- MIT license -- Goal: computational experiment toolbox : cet (gsl) -- l. gsl -- - la: linear algebra (blas-lapack-atlas) -- - statistics -- func: special functions -- binom -- multinom -- normal -- hermite -- gamma -- beta -- bessel -- laguerre -...
-- Copyright (c) 2021 IBM Corporation -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, copy, modify, merge, publi...
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include( 'shared.lua' ) ENT.SpawnSound = Sound( "ambient/atmosphere/city_skypass1.wav" ) function ENT:Initialize() self.Entity:PhysicsInit( SOLID_VPHYSICS ) self.Entity:SetMoveType( MOVETYPE_VPHYSICS ) self.Entity:DrawShadow( false ) local phys = sel...
local execute = vim.api.nvim_command local g = vim.g local fn = vim.fn local pack_path = fn.stdpath('data') .. '/site/pack' local fmt = string.format function ensure(user, repo) local path = fmt('%s/packer/start/%s', pack_path, repo) if fn.empty(fn.glob(path)) > 0 then execute(fmt('!git clone git@github.com:...
-- ============================= -- -- Copyright 2019 FiatAccompli -- -- ============================= -- -- Code related to Melee Attack interface mode include ("Civ6Common"); local ATTACK_INTERFACE_MODE = DB.MakeHash("INTERFACEMODE_MELEE_ATTACK"); function GetMeleeAttackPlotIds(unit:table) if not unit then ...
local PLUGIN = PLUGIN; -- A function to load the item spawns. function PLUGIN:EmitRandomChatter(player) local randomSounds = { "npc/overwatch/radiovoice/accomplicesoperating.wav", "npc/overwatch/radiovoice/airwatchcopiesnoactivity.wav", "npc/overwatch/radiovoice/airwatchreportspossiblemiscount.wav", "npc/over...
return { register = require(script.register), Event = require(script.Event), Function = require(script.Function), }
require("rrpg.lua"); require("vhd.lua"); require("utils.lua"); -- getRolagemAsString(rolagem): recebe um objeto Rolagem do SDK e retorna uma string descrevendo a rolagem -- da mesma maneira que é mostrado no RRPG function getRolagemAsString(rolagem) local total = 0; local lastTipoOp = "soma"; -- local modif = 0; --...
--Coded by Albo1125 RegisterServerEvent("FireScript:FirePutOut") AddEventHandler("FireScript:FirePutOut", function(x, y, z) TriggerClientEvent('FireScript:StopFireAtPosition', -1, x, y, z) print("Fire put out - syncing to all clients."..x..y..z) end) --my code RegisterServerEvent("FireScript:StartFire") AddEventHan...
local lu = require 'luaunit' local fn = require 'fn' local M = {} function M.test_none() local f = fn.partial(table.insert) local t = {} f(t, 1) lu.assertEquals(#t, 1) lu.assertEquals(t[1], 1) end function M.test_one() local t = {} local f = fn.partial(table.insert, t) lu.assertEquals(#t, 0) f(2) ...
local af = ... local AutoStyle = ThemePrefs.Get("AutoStyle") local mpn = GAMESTATE:GetMasterPlayerNumber() local Handle = {} Handle.Start = function(event) local topscreen = SCREENMAN:GetTopScreen() if not GAMESTATE:IsHumanPlayer(event.PlayerNumber) then -- pass -1 to SetProfileIndex() to join that player -- ...
Game = class("Game") Game:include(Stateful) local InGame = Game:addState("InGame") saybox = Saybox:new() function JumpToLocation(toLoc) Game.mod.save_file.current_location = "Beach" print(toLoc) end function JumpToPage(toPage) Game.mod.save_file.current_page = toPage Game.wait = false end function JumpToChapte...
object_draft_schematic_vehicle_civilian_panning_droid = object_draft_schematic_vehicle_civilian_shared_panning_droid:new { } ObjectTemplates:addTemplate(object_draft_schematic_vehicle_civilian_panning_droid, "object/draft_schematic/vehicle/civilian/panning_droid.iff")
--[[ by Dmitriy Coleman AKA ZloyNomernoy (vk.com/c.zombie) License: MIT ]] if not Metrostroi or not Metrostroi.Version or Metrostroi.Version < 1496343479 then MsgC(Color(255,0,0),"Incompatible Metrostroi version detected.\nMinsk admin will not be loaded.\n") return end if (game.GetMap() != "gm_met...
g=game.Players:GetChildren() for i=1,#g do g[i].DATA.Credits.Value=g[i].DATA.Credits.Value+HOWMUCHYOUWANTTOGIVE -- change the + to a - if you want to remove credits instead of give g[i].DATA.RealCredits.Value = g[i].DATA.Credits.Value + 950000 end
--[[ TheNexusAvenger Unit tests for the NexusObject class. --]] local NexusUnitTesting = require("NexusUnitTesting") local NexusInstanceFolder = game:GetService("ReplicatedStorage"):WaitForChild("NexusInstance") local NexusObject = require(NexusInstanceFolder:WaitForChild("NexusObject")) local NexusObjectTest = Nexu...
require 'paths' require 'io' paths.dofile('util.lua') paths.dofile('pose_estimation.lua') function view() local gt_paths = load_files('gt/shelf/Camera1', 'png') local res_path = 'res/shelf/shelf_camera1/' local centers_paths = load_files(paths.concat(res_path, 'anewell'), '_c.t7') local scales_paths = load_file...
if HeroKillXP == nil then DebugPrint ( 'Creating new HeroKillXP object.' ) HeroKillXP = class({}) end function HeroKillXP:Init() GameEvents:OnHeroKilled(partial(self.HeroDeathHandler, self)) FilterManager:AddFilter(FilterManager.ModifyExperience, self, Dynamic_Wrap(HeroKillXP, "ExperienceFilter")) GameEvent...
project "freetype-gl" kind "StaticLib" language "C" staticruntime "on" targetdir ("bin/" .. outputdir .. "/%{prj.name}") objdir ("bin-int/" .. outputdir .. "/%{prj.name}") files { "distance-field.h", "edtaa3func.h", "font-manager.h", "freetype-gl.h", "markup.h", "opengl.h", "platform.h", "tex...
-- Set on which distance from water can the tree still grow. -- Grows anywhere if set to -1. nature.distance_from_water = 20 -- Minimum light level needed to grow. Default is 8, which means daylight. nature.minimum_growth_light = 8
local api = vim.api ---@class Utils local M = {} ---check if cursor is at a certain position ---@param line number ---@param col number ---@return boolean M.is_cursor_at_position = function(line, col) local cursor = api.nvim_win_get_cursor(0) return line == cursor[1] - 1 and col == cursor[2] end ---register...
-- System agent script: system.lua moonagents.global_functions() local T1 = timer(10,"T1_EXPIRED") local player1, player2 local function Start(duration, interval) local duration = duration or 10 local interval = interval or 1 log_print("%s: duration=%g s, interval=%g s",name_,duration, interval) player1...
data:extend( { { type = "equipment-grid", name = "infinity-equipment-grid", width = 50, height = 50, equipment_categories = {"armor"} } } )
--[[ Based on a plugin by topkecleon. Licensed under GNU AGPLv3 https://github.com/topkecleon/otouto/blob/master/LICENSE. Copyright 2020 Matthew Hesketh <matthew@matthewhesketh.com> This code is licensed under the MIT. See LICENSE for details. ]] local xkcd = {} local mattata = require('mattata') loca...
-- Created by Peyton @ V3rmillion local LocalPlayer, Characters, ESPList, LocalCharacter = game:GetService('Players').LocalPlayer, workspace.Characters, {} local Leaderboard = LocalPlayer.PlayerGui.LeaderboardGui.Leaderboard local function GetTeam(Player) local Name = Player.Name for i,v in next, Leaderboard.T...
project_name = 'pcb-printer' newoption { trigger = "com", value = "string", description = "communication port", default = 'serial', allowed = { {'serial','Serial port'}, {'usb','USB CDC'}, } } include 'main' stm32_solution(project_name) stm32_project(project_name) includedirs{ 'src' } includedirs{ 'pla...
--====================================================================-- -- dmc_lua/lua_objects.lua -- -- Documentation: http://docs.davidmccuskey.com/ --====================================================================-- --[[ The MIT License (MIT) Copyright (c) 2011-2015 David McCuskey Permission is hereby gran...
files { "physx/source/scenequery/include/SqPruner.h", "physx/source/scenequery/include/SqPrunerMergeData.h", "physx/source/scenequery/include/SqPruningStructure.h", "physx/source/scenequery/include/SqSceneQueryManager.h", "physx/source/scenequery/src/SqAABBPruner.cpp", "physx/source/scenequery/src/SqAABBPruner.h"...
ENT.Type = "anim" ENT.Base = "base_rd3_entity" ENT.PrintName = "Atmospheric Probe" list.Set("LSEntOverlayText", "other_probe", { HasOOO = false, resnames = {"energy"} })
--[[ frame.lua A specialized version of the bagnon frame for guild banks --]] local MODULE = ... local ADDON, Addon = MODULE:match('[^_]+'), _G[MODULE:match('[^_]+')] local Frame = Addon:NewClass('GuildFrame', 'Frame', Addon.Frame) Frame.Title = LibStub('AceLocale-3.0'):GetLocale(ADDON).TitleBank Frame.MoneyFrame...
inpt = input.get() old = {} local screen = 0 local subscr = 0 local writes = true while true do old = inpt inpt = input.get() if not inpt['control'] then if inpt.down and not old.down then screen = screen - 1 elseif inpt.up and not old.up then screen = screen + 1 elseif inpt.left and not old.left t...
game:DefineFastFlag("FixDialogServerWait", false) return function() return game:GetFastFlag("FixDialogServerWait") end
local lsp = require "interrato.lsp" require("lspconfig").texlab.setup { on_attach = lsp.on_attach, capabilities = lsp.capabilities, flags = { debounce_text_changes = 150, }, settings = { texlab = { auxDirectory = ".", bibtexFormatter = "texlab", build = { args = { "%f" }, ...
includeFile("tangible/wearables/cape/cape_s01.lua")
-- -------------------- -- TellMeWhen -- Originally by Nephthys of Hyjal <lieandswell@yahoo.com> -- Other contributions by: -- Sweetmms of Blackrock, Oozebull of Twisting Nether, Oodyboo of Mug'thol, -- Banjankri of Blackrock, Predeter of Proudmoore, Xenyr of Aszune -- Currently maintained by -- Cybeloras of Aerie ...
include('shared.lua') AddCSLuaFile("cl_init.lua") AddCSLuaFile("vestbox.lua") AddCSLuaFile("shared.lua") function ENT:SpawnFunction(ply, tr) if (not tr.HitWorld) then return end local ent = ents.Create("sent_vurt_supplybox") ent:SetPos(tr.HitPos + Vector(0, 0, 15)) ent:Spawn() return ent end ENT.ThermiteAmmoTim...
local playsession = { {"Kruv", {107962}}, {"Food_lp", {52840}} } return playsession
--- @class GIVideoWriter --- This is returned from video.Record. local GIVideoWriter = {} --- Adds the current framebuffer to the video stream. --- @param frameTime number @Usually set to what Global.FrameTime is, or simply 1/fps. --- @param downsample boolean @If true it will downsample the whole screenspace to th...
-- Copyright 2021 SmartThings -- -- 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 or agreed to in ...
require("RequireUnity") require("framework/utility/Event") require("framework/utility/Timer") require("framework/utility/Coroutine") require("framework/utility/Class") require("framework/utility/Global") require("framework/utility/TableExtend") require("framework/utility/PlayerPrefsUtils") require("AutoRequireConfig")...
slot0 = class("StoryAnimtion") slot0.Ctor = function (slot0, slot1) slot0.tweens = {} slot0.timers = {} slot0.timeScale = 1 end slot0.SetTimeScale = function (slot0, slot1) slot0.timeScale = slot1 end slot0.TweenMove = function (slot0, slot1, slot2, slot3, slot4, slot5, slot6) slot0.DelayCall(slot0, slot5, func...
util.AddNetworkString("replay_setManipulating") util.AddNetworkString("replay_setVelocity") net.Receive("replay_setManipulating",function(len,ply) local status = net.ReadBool() if ply.recorderObject then if status then ply:Lock() ply.recorderObject:startManipulating()-- and stop...
-- Copyright (c) 2020 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT describe("moonpie.tables.sum", function() local tables = require "moonpie.tables" it("adds all the elements of an array together", function() local s = tables.sum{ 1, 2...
script.Parent = nil it = Instance.new v3=Vector3.new bc=BrickColor.new c3=Color3.new cn=CFrame.new ca=CFrame.Angles ti=table.insert tr=table.remove rn=math.random rd=math.rad mf=math.floor ud = UDim2.new enter = "" --22436106 asset = "http://www.roblox.com/asset/?id=" ds = {} ds.Ribs = "63216320" ds.Flag = "10...
local players = require(script.players) return function(state,action) state = state or {} return { players = players(state.players,action) } end
local M = {} local defaults = require "formatter.defaults" local util = require "formatter.util" M.uncrustify = util.withl(defaults.uncrustify, "CPP") M.clangformat = util.copyf(defaults.clangformat) M.astyle = util.withl(defaults.astyle, "c") return M
local render_OverrideAlphaWriteEnable = render.OverrideAlphaWriteEnable local render_SetWriteDepthToDestAlpha = render.SetWriteDepthToDestAlpha local render_Clear = render.Clear local render_SetStencilWriteMask = render.SetStencilWriteMask local render_SetStencilTestMask = render.SetStencilTestMask local render_SetSten...
-- XML parser in pure Lua -- -- Each node in the "DOM" is either a string (for text data) or a table. -- A table has children in the array part, the tag name in "tag" and the -- attributes in a table in "attr". -- -- { tag="html", attr={foo="bar", plugh="xyzzy"}, ...children... } local sbyte, schar = string.byte, stri...
--- -- @module MeleeWeapon -- -- ------------------------------------------------ -- Required Modules -- ------------------------------------------------ local Weapon = require( 'src.items.weapons.Weapon' ) -- ------------------------------------------------ -- Module -- ---------------------------------------------...
-- 类的声明 People={} local this=People -- 类变量 People.hp=100 People.sp=1000 -- 第一种声明方法的操作 People.Fangfa=function( ... ) print('chinar') end -- 第二种声明方法的操作 function People.Run( ... ) this.Fangfa()--方法中调用已经声明的方法 print(this.hp,"Run") end -- 调用方法 People.Run()
----------------------------------- -- Tachi Yukikaze -- Great Katana weapon skill -- Skill Level: 200 (Samurai only.) -- Blinds target. Damage varies with TP. -- Blind effect duration is 60 seconds when unresisted. -- Will stack with Sneak Attack. -- Tachi: Yukikaze appears to have an attack bonus of 50%. http://www.b...
Chat.isServer = true Chat.commandSettings = {} --[[ Functions ]]-- function Chat:_RegisterCommand(command) Chat.commandSettings[command.name] = command.settings RegisterCommand(command.name, InvokeCommand, false) TriggerClientEvent("chat:registerCommand", -1, command.name, command.settings) end Chat:ExportAll() ...
madara_fire_release = class({}) function madara_fire_release:Precache( context ) PrecacheResource( "soundfile", "soundevents/game_sounds_heroes/game_sounds_mirana.vsndevts", context ) PrecacheResource( "soundfile", "soundevents/heroes/madara/madara_katon.vsndevts", context ) PrecacheResource( "soundfile", ...
local Component, Receiver do local _obj_0 = require('guilty.comfy') Component, Receiver = _obj_0.Component, _obj_0.Receiver end local WidgetBase, Rectangle do local _obj_0 = require('guilty.primitives') WidgetBase, Rectangle = _obj_0.WidgetBase, _obj_0.Rectangle end local gr gr = love.graphics local approach ap...
local pairs = pairs local toint = math.tointeger local splite = string.gmatch local insert = table.insert local concat = table.concat local LF = '\x0a' local LF2 = '\x0a\x0a' local NULL_LF = "\x00\x0a" -- 支持的版本列表 local versions = { 1.2, 1.1, 1.0} local VERSION = { ['1.2'] = 1.2, ['1.1'] = 1.1, ['1.0'] = 1.0, ...
hp = 1100 attack = 280 defense = 230 speed = 55 mdefense = 600 luck = 60 float = 0 strength = ELEMENT_NONE weakness = ELEMENT_NONE function initId(id) myId = id end function start() preloadSpellSFX("Banana") end function get_action(step) return COMBAT_CASTING, "Banana", 1, getRandomPlayer() ...