repo_name
stringlengths
6
69
path
stringlengths
6
178
copies
stringclasses
278 values
size
stringlengths
4
7
content
stringlengths
671
917k
license
stringclasses
15 values
thypon/ulatencyd
src/lua/string.lua
2
1587
--[[ Copyright 2010,2011 ulatencyd developers This file is part of ulatencyd. ulatencyd 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 version 3 of the License, or (at your opt...
gpl-3.0
ZeroK-RTS/Zero-K
scripts/bomberassault.lua
1
3258
local bomb = piece('bomb'); local exhaustLeft = piece('exhaustLeft'); local exhaustRight = piece('exhaustRight'); local exhaustTop = piece('exhaustTop'); local hull = piece('hull'); local petalLeft = piece('petalLeft'); local petalRear = piece('petalRear'); local petalRight = piece('petalRight'); local turbineLeft = pi...
gpl-2.0
ZeroK-RTS/Zero-K
units/vehcapture.lua
2
4121
return { vehcapture = { unitname = [[vehcapture]], name = [[Dominatrix]], description = [[Capture Rover]], acceleration = 0.266, brakeRate = 0.462, buildCostMetal = 420, builder = false, buildPic = [[vehcapture.png]], canGu...
gpl-2.0
icgood/ratchet
test/test_exec.lua
1
1088
require "ratchet" tests = 0 function hello_world() local p = ratchet.exec.new({"echo", "hello", "world"}) p:start() p:stdin():close() local line = p:stdout():read() line = line:gsub("%\r?%\n$", "") assert("hello world" == line) assert(0 == p:wait()) tests = tests + 2 end function cat...
mit
ZeroK-RTS/Zero-K
scripts/scriptReload.lua
8
3107
-- TODO: CACHE INCLUDE FILE -- May not be worth it due to all the local data. local ALLY_ACCESS = {allied = true} local extenalFunctions = {} local gunCount, reloadTime local loadedGunCount local gunReloadStartFrame = {} local penaltyTime = {} function extenalFunctions.SetupScriptReload(newGunCount, newReloadTime) ...
gpl-2.0
thypon/ulatencyd
src/lua/u_proc.lua
2
1384
--[[ Copyright 2010,2011 ulatencyd developers This file is part of ulatencyd. ulatencyd 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 version 3 of the License, or (at your opt...
gpl-3.0
ZeroK-RTS/Zero-K
LuaUI/Widgets/COFCtools/Interpolate.lua
6
11336
--a workaround for https://springrts.com/mantis/view.php?id=4650 local spGetCameraState = Spring.GetCameraState local spSetCameraState = Spring.SetCameraState local spGetTimer = Spring.GetTimer local spDiffTimers = Spring.DiffTimers local mathPi = math.pi local pow = math.pow lockMode = { xy = 1, free = 2, x...
gpl-2.0
ZeroK-RTS/Zero-K
LuaUI/Widgets/snd_noises.lua
6
7915
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: snd_chatterbox.lua -- brief: annoys sounds -- author: Dave Rodgers -- -- Copyright (C) 2007. -- Licensed under the terms of the GNU GPL...
gpl-2.0
ZeroK-RTS/Zero-K
effects/slam.lua
6
38258
-- slam -- slam_sparks_smokejets -- slam_flash -- slam_ray -- slam_heat_pillar -- slam_landcloud -- slam_landcloud_ring -- slam_landcloud_topcap -- slam_landcloud_cap -- slam_landcloud_pillar -- slam_landcloud_topsuction -- slam_seacloud -- slam_seacloud_topcap -- slam_seacloud_ring -- slam_seacloud_cap -- slam_seaclou...
gpl-2.0
ZeroK-RTS/Zero-K
LuaUI/Widgets/unit_teleport_ai_2.lua
3
29586
function widget:GetInfo() return { name = "Teleport AI (experimental) v2", desc = "Units automatically use nearby teleport beacons to shorten travel time.", author = "Msafwan", date = "1 September 2013", license = "GNU GPL, v2 or later", layer = 21, enabled = false ...
gpl-2.0
threathunterX/nebula
nebula_apps/openresty/lualib/resty/websocket/protocol.lua
5
8652
-- Copyright (C) Yichun Zhang (agentzh) local bit = require "bit" local byte = string.byte local char = string.char local sub = string.sub local band = bit.band local bor = bit.bor local bxor = bit.bxor local lshift = bit.lshift local rshift = bit.rshift --local tohex = bit.tohex local tostring = tostring local con...
apache-2.0
ZeroK-RTS/Zero-K
units/assaultcruiser.lua
2
7478
return { assaultcruiser = { unitname = [[assaultcruiser]], name = [[Vanquisher]], description = [[Heavy Cruiser (Assault)]], acceleration = 0.384, activateWhenBuilt = true, brakeRate = 0.42, buildCostMetal = 1600, builder ...
gpl-2.0
ZeroK-RTS/Zero-K
units/energysingu.lua
2
2748
return { energysingu = { unitname = [[energysingu]], name = [[Singularity Reactor]], description = [[Large Powerplant (+225) - HAZARDOUS]], activateWhenBuilt = true, buildCostMetal = 4000, builder ...
gpl-2.0
ZeroK-RTS/Zero-K
LuaUI/Configs/nubtron_config.lua
6
11076
--[[ INSTRUCTIONS Choose names for the unitClass table and use those names in conditions. For example if you use "Con" then you must use "ConSelected" not "conSelected": local unitClasses = { Con = { 'cloakcon' }, } local steps = { selectCon = { image = unitClasses.Con[1] ..'.png', passIfAny = { 'ConSelected...
gpl-2.0
ZeroK-RTS/Zero-K
LuaUI/Widgets/dbg_startbox_editor.lua
6
3204
function widget:GetInfo() return { name = "Startbox Editor", desc = "Map development tool for drawing startboxes. Consult the ZK mediawiki at Startbox_API for usage and tips", author = "git blame", date = "git log", license = "PD", layer = math.huge, enabled = false, } end --[[ tl;dr LMB to draw (ei...
gpl-2.0
ZeroK-RTS/Zero-K
LuaUI/Widgets/chili/Controls/multiprogressbar.lua
8
4470
--// ============================================================================= --- Multiprogressbar module --- Multiprogressbar fields. -- Inherits from Control. -- @see control.Control -- @table Multiprogressbar -- @bool[opt = false] drawBorder should the border be drawn? -- @tparam {r, g, b, a} borderColor spec...
gpl-2.0
ZeroK-RTS/Zero-K
units/spiderriot.lua
1
3258
return { spiderriot = { unitname = [[spiderriot]], name = [[Redback]], description = [[Riot Spider]], acceleration = 0.66, brakeRate = 3.96, buildCostMetal = 230, buildPic = [[spiderriot.png]], canGuard ...
gpl-2.0
ZeroK-RTS/Zero-K
units/tacnuke.lua
2
3182
return { tacnuke = { unitname = [[tacnuke]], name = [[Eos]], description = [[Tactical Nuke]], buildCostMetal = 600, builder = false, buildingGroundDecalDecaySpeed = 30, buildingGroundDecalSizeX = 3, ...
gpl-2.0
ZeroK-RTS/Zero-K
LuaRules/Configs/StartBoxes/IcySea-v2.lua
17
2057
return { [0] = { startpoints = { {5120,2253}, }, boxes = { { {4915,2048}, {5325,2048}, {5325,2458}, {4915,2458}, }, }, }, [1] = { startpoints = { {5018,7987}, }, boxes = { { {4813,7782}, {5222,7782}, {5222,8192}, {4813,8192}, }, }, }, [2] = { star...
gpl-2.0
ZeroK-RTS/Zero-K
effects/gundam_otaplas.lua
50
48727
-- miniotaplas_fireball11 -- otaplas_fireball3 -- otaplas_fireball16 -- otaplas_fireball14 -- ota_plas -- miniotaplas_fireball17 -- otaplas_fireball18 -- otaplas_fireball1 -- otaplas_fireball11 -- miniotaplas_fireball13 -- otaplas_fireball10 -- miniotaplas_fireball16 -- otaplas_fireball13 -- miniotaplas_fireball2 -- ot...
gpl-2.0
ZeroK-RTS/Zero-K
effects/nota_otaplas.lua
50
48727
-- miniotaplas_fireball11 -- otaplas_fireball3 -- otaplas_fireball16 -- otaplas_fireball14 -- ota_plas -- miniotaplas_fireball17 -- otaplas_fireball18 -- otaplas_fireball1 -- otaplas_fireball11 -- miniotaplas_fireball13 -- otaplas_fireball10 -- miniotaplas_fireball16 -- otaplas_fireball13 -- miniotaplas_fireball2 -- ot...
gpl-2.0
ZeroK-RTS/Zero-K
LuaRules/Gadgets/cmd_doline.lua
23
2852
-- $Id: cmd_doline.lua 3171 2008-11-06 09:06:29Z det $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: cmd_doline.lua -- brief: adds a command to run raw LUA commands from the game consol...
gpl-2.0
ZeroK-RTS/Zero-K
units/shipassault.lua
2
6025
return { shipassault = { unitname = [[shipassault]], name = [[Siren]], description = [[Riot/Assault Destroyer (Anti-Sub)]], acceleration = 0.46, activateWhenBuilt = true, brakeRate = 0.6, buildCostMetal = 600, builder ...
gpl-2.0
ZeroK-RTS/Zero-K
LuaRules/Configs/StartBoxes/Adansonia v4.lua
8
4382
local boxes = { [0] = { boxes = { { {3669, 5960}, {2238, 5424}, {2257, 5473}, {2259, 5560}, {2261, 5628}, {2254, 5660}, {2182, 5796}, {2157, 5838}, {2124, 5860}, {2056, 5897}, {2006, 5945}, {1973, 5996}, {1938, 6072}, {1917, 6158}, {1916, 6221}, {194...
gpl-2.0
ZeroK-RTS/Zero-K
LuaUI/Widgets/unit_transport_ai.lua
3
33022
-- $Id: unit_transport_ai.lua 4460 2009-04-20 20:36:16Z licho $ include("keysym.lua") function widget:GetInfo() return { name = "Transport AI", desc = "Automatically transports units going to factory waypoint.\n" .. "Adds embark=call for transport and disembark=unload from transport command", ...
gpl-2.0
ZeroK-RTS/Zero-K
scripts/planecon.lua
2
3995
include "constants.lua" include "gunshipConstructionTurnHax.lua" local base = piece 'base' local body = piece 'body' local engine1 = piece 'engine1' local engine2 = piece 'engine2' local nano = piece 'nano' --New bits local centreClaw = piece 'CentreClaw' local centreClawBit = piece 'CentreClawBit' local leftClaw ...
gpl-2.0
ZeroK-RTS/Zero-K
LuaRules/Gadgets/unit_timeslow.lua
1
9670
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function gadget:GetInfo() return { name = "Time slow v2", desc = "Time slow Weapon", author = "Google Frog , (MidKnight mad...
gpl-2.0
ZeroK-RTS/Zero-K
LuaUI/Widgets/mission_results.lua
8
1806
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Mission Results Handler", desc = "What it says on the tin", author = "KingRaptor (L.J. Lim)", ...
gpl-2.0
ZeroK-RTS/Zero-K
gamedata/modularcomms/weapons/shotgun.lua
6
1516
local name = "commweapon_shotgun" local weaponDef = { name = [[Shotgun]], areaOfEffect = 32, burst = 3, burstRate = 0.033, coreThickness = 0.5, craterBoost = 0, craterMult = 0, customParams = { is_unit...
gpl-2.0
ZeroK-RTS/Zero-K
LuaRules/Gadgets/unit_enlarger.lua
6
4575
function gadget:GetInfo() return { name = "Unit Enlarger", desc = "Scales units physically and graphically", author = "Rafal", date = "May 2015", license = "GNU LGPL, v2.1 or later", layer = 0, enabled = false } end ---------------------------------------------------------------------------...
gpl-2.0
ZeroK-RTS/Zero-K
units/shieldarty.lua
2
3860
return { shieldarty = { unitname = [[shieldarty]], name = [[Racketeer]], description = [[Disarming Artillery]], acceleration = 0.75, brakeRate = 4.5, buildCostMetal = 340, buildPic = [[SHIELDARTY.png]], canGuard ...
gpl-2.0
ZeroK-RTS/Zero-K
units/factoryamph.lua
1
2728
return { factoryamph = { unitname = [[factoryamph]], name = [[Amphbot Factory]], description = [[Produces Amphibious Bots]], buildCostMetal = Shared.FACTORY_COST, buildDistance = Shared.FACTORY_PLATE_RANGE, builde...
gpl-2.0
ZeroK-RTS/Zero-K
units/energyfusion.lua
2
1786
return { energyfusion = { unitname = [[energyfusion]], name = [[Fusion Reactor]], description = [[Medium Powerplant (+35)]], activateWhenBuilt = true, buildCostMetal = 1000, builder = false, bu...
gpl-2.0
ZeroK-RTS/Zero-K
effects/gaatgun.lua
25
1354
-- hltradiate0 -- hltradiate return { ["hltradiate0"] = { pollute = { air = true, class = [[CSimpleParticleSystem]], count = 1, ground = true, water = true, properties = { airdrag = 0.5, ...
gpl-2.0
ZeroK-RTS/Zero-K
effects/solange.lua
7
1941
-- solange -- solange_pillar return { ["solange"] = { nw = { air = true, class = [[CExpGenSpawner]], count = 150, ground = true, water = true, underwater = true, properties = { delay ...
gpl-2.0
ZeroK-RTS/Zero-K
LuaUI/Widgets/api_preselection.lua
6
6971
function widget:GetInfo() return { name = "Pre-Selection Handler", desc = "Utility Functions for handling units in selection box and under selection cursor", author = "Shadowfury333", date = "Jan 6th, 2016", license = "GPLv2", version = "1", layer = 1000, enabled = true, --...
gpl-2.0
ZeroK-RTS/Zero-K
LuaRules/Gadgets/unit_energy_drain.lua
6
7241
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function gadget:GetInfo() return { name = "Energy Drain", desc = "Handles energy drain from radar, cloak etc.. such that they obey priori...
gpl-2.0
gigte/gram
lua/gram/gram_sv.lua
1
1245
--[[ Gram is a map framework for Garry's Mod Copyright (C) 2015 GIG <bigig@live.ru> -- This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option)...
gpl-3.0
ZeroK-RTS/Zero-K
LuaRules/Configs/MetalSpots/Charlie in the Hills v2.1.lua
8
3180
return { spots = { [1] = {x = 1960, z = 2760, metal = 1.7}, [2] = {x = 3416, z = 152, metal = 1.7}, [3] = {x = 4136, z = 8008, metal = 1.7}, [4] = {x = 4136, z = 3864, metal = 1.7}, [5] = {x = 4824, z = 7992, metal = 1.7}, [6] = {x = 4280, z = 7832, metal = 1.7}, [7] = {x = 6008, z = 2632, metal = 1.7}, ...
gpl-2.0
ZeroK-RTS/Zero-K
scripts/plateship.lua
2
1138
include "constants.lua" include "plates.lua" local base, body, float1, float2, nano1, nano2, pad = piece ( 'base', 'body', 'float1', 'float2', 'nano1', 'nano2', 'pad') local nanoPieces = { nano1, nano2 } local smokePiece = { body, nano1, nano1 } local explodables = { body, float1, float2} local function Open () ...
gpl-2.0
Wiladams/lj2guestfs
lj2guestfs/guestfs_ffi.lua
1
85304
local ffi = require("ffi") ffi.cdef[[ /* The handle. */ typedef struct guestfs_h guestfs_h; ]] ffi.cdef[[ /* Connection management. */ extern guestfs_h *guestfs_create (void); extern guestfs_h *guestfs_create_flags (unsigned flags, ...); extern void guestfs_close (guestfs_h *g); ]] ffi.cdef[[ /* Error handling. *...
mit
pakozm/lua-mapreduce
execute_server.lua
1
2165
-- This is a generic server executing script. Its arguments are: -- -- [1] => connection_string -- -- [2] => name of the database -- -- [3] => taskfn Lua module, it could be given as a Lua require string (using -- dots as sep) or as a path (using / as sep) -- -- [4] => mapfn Lua module, idem -- -- [5] => partitio...
gpl-3.0
ZeroK-RTS/Zero-K
gamedata/modularcomms/functions.lua
1
5351
function lowerkeys(t) local tn = {} for i,v in pairs(t) do local typ = type(i) if type(v)=="table" then v = lowerkeys(v) end if typ=="string" then tn[i:lower()] = v else tn[i] = v end end return tn end mapWeaponToCEG = { [3] = {3,4}, [5] = {1,2}, } function Dynamic...
gpl-2.0
ZeroK-RTS/Zero-K
LuaUI/i18nlib/i18n/variants.lua
36
1195
local variants = {} local function reverse(arr, length) local result = {} for i=1, length do result[i] = arr[length-i+1] end return result, length end local function concat(arr1, len1, arr2, len2) for i = 1, len2 do arr1[len1 + i] = arr2[i] end return arr1, len1 + len2 end function variants.ancestry(...
gpl-2.0
ZeroK-RTS/Zero-K
scripts/turretaaclose.lua
2
3859
include "constants.lua" local scriptReload = include("scriptReload.lua") local OKP_DAMAGE = tonumber(UnitDefs[unitDefID].customParams.okp_damage) -- Pieces local base = piece 'base' local body = piece 'body' local turret = piece 'turret' local launcher1 = piece 'launcher1' local launcher2 = piece 'launcher2' local f...
gpl-2.0
ZeroK-RTS/Zero-K
LuaUI/Widgets/gui_simple_settings.lua
2
6636
function widget:GetInfo() return { name = "Simple Settings", desc = "Creates and manages the simple settings for simple settings mode.", author = "GoogleFrog", date = "1 June 2017", license = "GNU GPL, v2 or later", layer = 0, enabled = true, handler = true, } end local t...
gpl-2.0
ZeroK-RTS/Zero-K
LuaUI/Widgets/gui_antinuke_coverage.lua
1
13295
function widget:GetInfo() return { name = "Antinuke Coverage", desc = "Displays antinuke coverage of enemies and allies. Takes antinuke shadow into account.", author = "Google Frog", date = "Dec 10, 2009", --updated May 3, 2015 license = "GNU GPL v2", layer = 0, enabled = true ...
gpl-2.0
billzorn/torch-rnn
test/wojzaremba_lstm.lua
16
6755
require 'torch' require 'cutorch' require 'nn' require 'cunn' require 'nngraph' --[[ This file contains a modified version of the LSTM implementation by Wojciech Zaremba found in https://github.com/wojzaremba/lstm I've moved all model code to a single file, changed it to use DoubleTensors rather than CudaTensors, and...
mit
ZeroK-RTS/Zero-K
LuaUI/Headers/languages.lua
8
1048
local langs = { { lang = 'en', flag = 'gb', name = 'English' }, { lang = 'ru', flag = 'ru', name = 'Русский' }, { lang = 'pl', flag = 'pl', name = 'Polski' }, { lang = 'de', flag = 'de', name = 'Deutsch' }, { lang = 'tr', flag = 'tr', name = 'Türkçe' }, } --[[ On Windows, far eastern fonts are börkçe by default, ...
gpl-2.0
ZeroK-RTS/Zero-K
units/commstrike1.lua
2
5941
return { commstrike1 = { unitname = [[commstrike1]], name = [[Strike Commander]], description = [[Mobile Assault Commander]], acceleration = 0.54, activateWhenBuilt = true, autoheal = 5, brakeRate = 2.25, buildCostMetal...
gpl-2.0
ZeroK-RTS/Zero-K
LuaUI/Widgets/gui_persistent_build_spacing.lua
1
16283
function widget:GetInfo() return { name = "Persistent Build Spacing", desc = "Maintains build spacing between matches", author = "Helwor", date = "August 2020", license = "GNU GPL, v2 or later", layer = 1, enabled = true, -- loaded by default? } end -- Config local defaultSp...
gpl-2.0
AYTOOR/aytoor
bot/utils.lua
1
22542
--Begin Utils.lua By #BeyondTeam :) local clock = os.clock function sleep(time) -- seconds local t0 = clock() while clock() - t0 <= time do end end function var_cb(msg, data) -------------Get Var------------ bot = {} msg.to = {} msg.from = {} msg.media = {} msg.id = msg.id_ msg.to.type = gp_type(data.ch...
gpl-3.0
ZeroK-RTS/Zero-K
ModOptions.lua
2
26983
-- $Id: ModOptions.lua 4642 2009-05-22 05:32:36Z carrepairer $ -- Custom Options Definition Table format -- NOTES: -- - using an enumerated table lets you specify the options order -- -- These keywords must be lowercase for LuaParser to read them. -- -- key: the string used in the script.txt -- name: ...
gpl-2.0
ZeroK-RTS/Zero-K
scripts/shieldriot.lua
5
18579
include 'constants.lua' local base = piece 'base' local pelvis = piece 'pelvis' local torso = piece 'torso' local emit = piece 'emit' local fire = piece 'fire' local lleg = piece 'lleg' local rleg = piece 'rleg' local lowerlleg = piece 'lowerlleg' local lowerrleg = piece 'lowerrleg' local lfoot = piece 'lfoot' local r...
gpl-2.0
ZeroK-RTS/Zero-K
LuaUI/Widgets/map_edge_barrier.lua
8
7450
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Map Edge Barrier", version = "v0.22", desc = "Draws a vertical grid along map edge", ...
gpl-2.0
threathunterX/nebula
conf/nebula/labrador/profile_write.lua
1
11473
local function index_of(value_list, cur_value) local current = 0 local index = 0 info("current values length" .. #value_list) local i = 0 for i = 1, #value_list, 1 do info("current ===" .. value_list[i]) if (cur_value == value_list[i]) then index = i break ...
apache-2.0
ZeroK-RTS/Zero-K
units/turretriot.lua
6
4129
return { turretriot = { unitname = [[turretriot]], name = [[Stardust]], description = [[Anti-Swarm Turret]], activateWhenBuilt = true, buildCostMetal = 220, builder = false, buildingGroundDecal...
gpl-2.0
ZeroK-RTS/Zero-K
LuaUI/Fonts/FreeSansBold_14.lua
25
33857
-- $Id: FreeSansBold_14.lua 3171 2008-11-06 09:06:29Z det $ local fontSpecs = { srcFile = [[FreeSansBold.ttf]], family = [[FreeSans]], style = [[Bold]], yStep = 15, height = 14, xTexSize = 512, yTexSize = 256, outlineRadius = 2, outlineWeight = 100, } local glyphs = {} glyphs[32] = { --'...
gpl-2.0
ZeroK-RTS/Zero-K
LuaUI/Widgets/chili_old/Controls/multiprogressbar.lua
8
3862
--//============================================================================= Multiprogressbar = Control:Inherit{ classname = "multiprogressbar", defaultWidth = 90, defaultHeight = 20, padding = {0,0,0,0}, fillPadding = {0, 0, 0, 0}, drawBorder = false, borderColor = {1,0,0,1}, orientati...
gpl-2.0
ZeroK-RTS/Zero-K
LuaUI/Widgets/gui_showeco_action.lua
2
11254
local version = "v1.003" function widget:GetInfo() return { name = "Showeco and Grid Drawer", desc = "Register an action called Showeco & draw overdrive overlay.", --"acts like F4", author = "xponen, ashdnazg", date = "July 19 2013", license = "GNU GPL, v2 or later", layer ...
gpl-2.0
ZeroK-RTS/Zero-K
LuaRules/Configs/tactical_ai_defs.lua
1
57499
include("LuaRules/Configs/customcmds.h.lua") -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- local function Union(t1, t2) local ret = {} for i, v in pairs(t1) do ret[i] = v end for i, v in pairs(t2...
gpl-2.0
ZeroK-RTS/Zero-K
LuaRules/Configs/icon_generator.lua
6
10428
-- $Id: icon_generator.lua 4354 2009-04-11 14:32:28Z licho $ ----------------------------------------------------------------------- ----------------------------------------------------------------------- -- -- Icon Generator Config File -- --// Info if (info) then local ratios = {["5to4"]=(4/5)} --{["16to10"]...
gpl-2.0
ZeroK-RTS/Zero-K
gamedata/buildoptions.lua
6
1135
local buildOpts = { [[staticmex]], [[energysolar]], [[energyfusion]], [[energysingu]], [[energywind]], [[energygeo]], [[staticstorage]], [[energypylon]], [[staticcon]], [[staticrearm]], [[factoryshield]], [[factorycloak]], [[factoryveh]], [[factoryplane]], [[factorygunship]], [[factoryhover]], [[factor...
gpl-2.0
ZeroK-RTS/Zero-K
LuaRules/Gadgets/ai_CAI2.lua
6
5155
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function gadget:GetInfo() return { name = "CAI 2", desc = "Another AI that plays normal ZK", author = "Google Frog", date = "12 Ma...
gpl-2.0
ZeroK-RTS/Zero-K
LuaRules/Utilities/json.lua
8
15666
----------------------------------------------------------------------------- -- JSON4Lua: JSON encoding / decoding support for the Lua language. -- json Module. -- Author: Craig Mason-Jones -- Homepage: http://json.luaforge.net/ -- Version: 0.9.20 -- This module is released under the The GNU General Public License (GP...
gpl-2.0
ZeroK-RTS/Zero-K
LuaUI/Widgets/chili/Controls/scrollpanel.lua
5
10903
--// ============================================================================= --- ScrollPanel module --- ScrollPanel fields. -- Inherits from Control. -- @see control.Control -- @table ScrollPanel -- @int[opt = 12] scrollBarSize size of the scrollbar -- @int[opt = 0] scrollPosX position of the scrollbar -- @int[...
gpl-2.0
ZeroK-RTS/Zero-K
LuaRules/Configs/StartBoxes/Harbinger 2.lua
8
14337
return { [0] = { nameLong = "North", nameShort = "N", startpoints = {{5070, 2760}}, boxes = { { {4778, 2045}, {4792, 2075}, {4803, 2103}, {4808, 2128}, {4809, 2155}, {4799, 2187}, {4789, 2224}, {4777, 2271}, {4740, 2351}, {4726, 2393}, {4715, 2410}, {4699, 242...
gpl-2.0
ZeroK-RTS/Zero-K
LuaRules/Configs/StartBoxes/FataMorganaV2.lua
17
1040
return { [0] = { startpoints = { {1679,1188}, }, boxes = { { {1638,1147}, {1720,1147}, {1720,1229}, {1638,1229}, }, }, }, [1] = { startpoints = { {4874,1024}, }, boxes = { { {4833,983}, {4915,983}, {4915,1065}, {4833,1065}, }, }, }, [2] = { startp...
gpl-2.0
ZeroK-RTS/Zero-K
scripts/plateplane.lua
2
2623
include "constants.lua" include "plates.lua" local base, body, bay, side1, door1, side2, door2, plate1, nano1, nanoemit1, plate2, nano2, nanoemit2, padfloor, pad1, pad2, pad3 = piece ( 'base', 'body', 'bay', 'side1', 'door1', 'side2', 'door2', 'plate1', 'nano1', 'nanoemit1', 'plate2', 'nano2', 'nanoemit2', 'padfloor'...
gpl-2.0
ZeroK-RTS/Zero-K
LuaRules/Gadgets/game_map_border.lua
1
7129
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- if not gadgetHandler:IsSyncedCode() then return end -------------------------------------------------------------------------------- ------------------------...
gpl-2.0
ZeroK-RTS/Zero-K
scripts/cloaksnipe.lua
1
15039
include "constants.lua" -------------------------------------------------------------------------------- -- pieces -------------------------------------------------------------------------------- local base = piece 'base' local hips = piece 'hips' local torsoPivot = piece 'torsopivot' local torsoTrue = piece 'torso' l...
gpl-2.0
ZeroK-RTS/Zero-K
LuaUI/Configs/customCmdTypes.lua
2
11184
-- This is the list of name ("action name") related to unit command. This name won't work using command line (eg: /fight, won't activate FIGHT command) but it can be binded to a key (eg: /bind f fight, will activate FIGHT when f is pressed) -- In reverse, one can use Spring.GetActionHotkey(name) to get the key binded t...
gpl-2.0
ZeroK-RTS/Zero-K
scripts/energywind.lua
1
3486
local base, fan, cradle, flaot = piece('base', 'fan', 'cradle', 'flaot') include "constants.lua" local baseDirection local smokePiece = {base} local hpi = math.pi*0.5 local UPDATE_PERIOD = 1000 local BUILD_PERIOD = 500 local turnSpeed = math.rad(20) local waterFanSpin = math.rad(30) local isWind, baseWind, rangeW...
gpl-2.0
ZeroK-RTS/Zero-K
scripts/jumpskirm.lua
8
6853
local support = piece 'support' local flare = piece 'flare' local eye_flare = piece 'eye_flare' local thigh1 = piece 'thigh1' local thigh2 = piece 'thigh2' local torso = piece 'torso' local head = piece 'head' local barrel = piece 'barrel' local foot2 = piece 'foot2' local foot1 = piece 'foot1' local leg2 = piece 'leg2...
gpl-2.0
gigte/gram
lua/gram/beacons.lua
1
3014
--[[ Gram is a map framework for Garry's Mod Copyright (C) 2015 GIG <bigig@live.ru> -- This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option)...
gpl-3.0
ZeroK-RTS/Zero-K
LuaUI/Widgets/chili_old/Controls/window.lua
6
1936
Window = Control:Inherit{ classname = 'window', resizable = true, draggable = true, bringToFrontOnClick = true, noFont = true, minWidth = 50, minHeight = 50, defaultWidth = 400, defaultHeight = 300, } local this = Window local inherited = this.inherited --//=======================================...
gpl-2.0
ZeroK-RTS/Zero-K
units/chicken.lua
2
2961
return { chicken = { unitname = [[chicken]], name = [[Chicken]], description = [[Swarmer]], acceleration = 1.08, activateWhenBuilt = true, brakeRate = 1.23, buildCostEnergy = 0, buildCostMetal = 0, builder = false, buildPic ...
gpl-2.0
ZeroK-RTS/Zero-K
LuaUI/Widgets/gui_darkening.lua
6
3297
-- $Id: gui_darkening.lua 3171 2008-11-06 09:06:29Z det $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Darkening", desc = "Adds a new '/lua...
gpl-2.0
ZeroK-RTS/Zero-K
units/seismic.lua
2
3340
return { seismic = { unitname = [[seismic]], name = [[Quake]], description = [[Seismic Missile]], buildCostMetal = 400, builder = false, buildingGroundDecalDecaySpeed = 30, buildingGroundDecalSizeX = ...
gpl-2.0
ZeroK-RTS/Zero-K
units/shieldassault.lua
1
4041
return { shieldassault = { unitname = [[shieldassault]], name = [[Thug]], description = [[Shielded Assault Bot]], acceleration = 0.75, activateWhenBuilt = true, brakeRate = 1.32, buildCostMetal = 175, buildPic = [[shieldassault.png]], ...
gpl-2.0
ZeroK-RTS/Zero-K
effects/gundam_xamelimpact.lua
7
12702
-- xamelimpact -- smallxamelimpact return { ["xamelimpact"] = { dirta = { air = true, class = [[CSimpleParticleSystem]], count = 1, properties = { airdrag = 0.7, alwaysvisible = true, colormap = [[0...
gpl-2.0
ZeroK-RTS/Zero-K
LuaUI/Widgets/gui_chili_share.lua
1
52099
function widget:GetInfo() return { name = "Chili Share menu v1.24", desc = "FPS style (whole screen, hold to show) player list with comsharing UI", author = "Commshare by Shaman, Playerlist by DeinFreund", date = "12-3-2016", license = "PD", layer = 2000, enabled = true, } end local unitCat...
gpl-2.0
ZeroK-RTS/Zero-K
LuaUI/Configs/sounds_noises.lua
1
27078
-- needs select[1] and ok[1] (and build for cons) local volumeOverrides = { heavy_bot_move = 0.36, bot_select = 0.42, } local sounds = { -- Misc staticrearm = { select = { [1] = "building_select1", }, }, athena = { build = { "builder_start" }, ok = { [1] = "gunship_move", }, select = { volu...
gpl-2.0
ZeroK-RTS/Zero-K
LuaUI/Widgets/dbg_chili_inspector.lua
6
4373
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "ChiliInspector", desc = "Inspects Chili API (memory usage, object counts etc.)", author ...
gpl-2.0
mamaddeveloper/seedup
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
threathunterX/nebula
nebula_apps/openresty/lualib/ngx/ssl/session.lua
2
2413
-- Copyright (C) Yichun Zhang (agentzh) local ffi = require "ffi" local base = require "resty.core.base" local C = ffi.C local ffi_str = ffi.string local getfenv = getfenv local error = error local errmsg = base.get_errmsg_ptr() local get_string_buf = base.get_string_buf local FFI_ERROR = base.FFI_ERROR ffi.cdef[...
apache-2.0
ZeroK-RTS/Zero-K
scripts/gunshipskirm.lua
6
1772
local base = piece 'base' local lWing = piece 'lWing' local rWing = piece 'rWing' local gun1 = piece 'gun1' local gun2 = piece 'gun2' -- unused pieces: muzzle[12], thrust[12] local smokePiece = {base} include "constants.lua" local gun_1 = false function script.Create() StartThread(GG.Script.SmokeUnit, unitID, smok...
gpl-2.0
ZeroK-RTS/Zero-K
units/vehaa.lua
2
4260
return { vehaa = { unitname = [[vehaa]], name = [[Crasher]], description = [[Fast Anti-Air Rover]], acceleration = 0.36, brakeRate = 1.8, buildCostMetal = 220, builder = false, buildPic = [[vehaa.png]]...
gpl-2.0
ZeroK-RTS/Zero-K
LuaUI/Widgets/gui_auto_engine_falsecolor.lua
8
4387
local version = "v1.0" function widget:GetInfo() return { name = "Auto-toggle false color vision", desc = version .. " provide options to automatically toggle Spring's false color vision" .. " by detecting current active command.", author = "Msafwan", date = "17 July 2013", lice...
gpl-2.0
ZeroK-RTS/Zero-K
LuaUI/Widgets/gfx_stereo3d.lua
6
16113
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Stereo3D", desc = "v0.122 Stereo 3D rendering.", author = "CarRepairer, with assistance...
gpl-2.0
ZeroK-RTS/Zero-K
LuaUI/Widgets/gui_replace_cloak_con_order.lua
6
2108
function widget:GetInfo() return { name = "Replace Cloak Con Orders", desc = "Prevents accidental constructor decloak in enemy territory by replacing right-click Repair, Reclaim and Rez with Move.\n\nNOTE: Use command menu or command hotkeys to override.", author = "GoogleFrog", date ...
gpl-2.0
AYTOOR/aytoor
tg/tdcli.lua
1
89145
--[[ This program 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 version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be use...
gpl-3.0
ZeroK-RTS/Zero-K
LuaUI/Widgets/gfx_outline_shader_v3.lua
6
9998
local wiName = "Outline Shader v3" function widget:GetInfo() return { name = wiName, desc = "Displays small outline around units based on deferred g-buffer", author = "ivand", date = "2019", license = "GNU GPL, v2 or later", layer = math.huge, enabled = false -- loaded by defa...
gpl-2.0
ZeroK-RTS/Zero-K
effects/riot.lua
25
2909
-- riot_shell_m -- riot_shell_l -- riot_shell_h return { ["riot_shell_m"] = { usedefaultexplosions = false, shell = { air = true, class = [[CSimpleParticleSystem]], count = 1, ground = true, water = true, pr...
gpl-2.0
icgood/ratchet
src/lua/http/client.lua
1
2096
require "ratchet" local common = require "ratchet.http.common" ratchet.http = ratchet.http or {} ratchet.http.client = {} ratchet.http.client.__index = ratchet.http.client -- {{{ ratchet.http.client.new() function ratchet.http.client.new(socket) local self = {} setmetatable(self, ratchet.http.client) se...
mit
ZeroK-RTS/Zero-K
effects/gundam_bluegreennovaexplode.lua
25
2601
-- bluegreennovaexplo return { ["bluegreennovaexplo"] = { groundflash = { air = true, alwaysvisible = true, circlealpha = 0.2, circlegrowth = 4, flashalpha = 0.5, flashsize = 50, ground = true, ttl ...
gpl-2.0
ZeroK-RTS/Zero-K
scripts/pw_mine2.lua
8
1390
include "constants.lua" local base = piece "base" local cylinder1 = piece "cylinder1" local cylinder2 = piece "cylinder2" local wheel1 = piece "wheel1" local wheel2 = piece "wheel2" local wheel3 = piece "wheel3" local wheel4 = piece "wheel4" local wheels = {wheel1, wheel2, wheel3, wheel4} local smokePiece = {base, w...
gpl-2.0
ZeroK-RTS/Zero-K
units/athena.lua
2
3030
return { athena = { unitname = [[athena]], name = [[Athena]], description = [[Airborne SpecOps Engineer]], acceleration = 0.1, airStrafe = 0, autoHeal = 20, brakeRate = 0.08, buildCostMetal = 600, buildDistance = 180, ...
gpl-2.0
ZeroK-RTS/Zero-K
LuaRules/Gadgets/start_teamnames.lua
5
1053
if not gadgetHandler:IsSyncedCode() then return end function gadget:GetInfo() return { name = "Backup allyteam names", layer = math.huge, -- last so that we only cover up holes; actual names are set by startbox handler (MP) or mission handlers (SP) enabled = true, } end local PUBLIC_VISIBLE = {public ...
gpl-2.0
ZeroK-RTS/Zero-K
effects/bubbles.lua
6
2885
return { ["bubbles_medium"]= { bubbles_rising = { air = false, class = [[CSimpleParticleSystem]], count = 1, ground = false, water = true, underwater = true, ...
gpl-2.0