1
0
Fork
You've already forked server-scripts
1
No description
  • Lua 100%
2026年07月12日 15:08:07 +02:00
1984
adoc
amcs
antares
antares-legacy
arachnid2
arena-ds
assault
atcshd
base-a51
bbit
bim
blackhole
blackout
boxarea
bres
cerberus
chasm
city-overrun
cleanserb4
colinary
condemned
condemned-pve
covid
cross
cruz
crystalcove
cube
deathrun
diggs
doom
dretchpit
dretchstorm
dretchstorm2
dretchstorm3
dretchstorm4
dretchtower
eden
edge-one
ethereal
far-beyond
fast-round
fatal-error
forlorn
freeway
g3trem
gamma-core
ganymede
gauntlet
gol
gothic
grangermaze
hangar28
harassment
ifz
intent
kapitanbomba
karith
mantistower
medusactm
meep
mercy
methane
mission-control
mission-mantis
moustache
mtcs
mudkip
mxl-school
nexus6
niveus
operation-dretch
operation-vent
orion
outpost-p4
overthehill
perseus
pierogi
plat23
plat27
procyon
prometheus
ptcs1
ptcs7
ptcs8
ptcs9
ptcsx
pulse
rapier
rsmse
rush-station
rusty rusty 2026年07月12日 14:09:54 +02:00
s-arcade
satan
search
sector50
sector51
sirius-pve
slimepunk
sol
sophcom
spacetracks
specula
stahl
station15
stt1943
suicide-mission
td
test-lua-functrain
the-descent
thermal
therock
thunder
ticonderoga
transit
tremship
trojan-gates
uds
uncreation
unstoppable
uranium
usstremor
utcs
uvcs
vega
vivi
void2
vorago
voxelepic0
voxelplain
voxelplain0
voxelplain1
voxelplain2
voxeltowers0
watah
wrecktify
yocto-pve
zeta-facility
zittrig-arena
admin-commands.lua
behavior.lua behavior.lua 2026年07月12日 15:08:00 +02:00
buildings.lua
cheap-hypergrise.lua cheap-hypergrise 2026年07月04日 17:21:29 +02:00
cheap-pve.lua
client-print.lua
condemned-pve.lua
door.lua
endurance.lua
gol.lua
handler.lua
highscores-html.lua
highscores-json.lua
layout.lua
map-testing.lua
mover.lua
objective.lua
personal-space.lua
prelude.lua prelude.lua 2026年07月04日 08:09:09 +02:00
pretty-print.lua
ptcs8.lua
pve-botconfig.lua
pve.lua
random-layout.lua random-layout.lua 2026年07月12日 15:08:07 +02:00
random-pve.lua random-pve.lua 2026年07月12日 14:48:39 +02:00
README.md
servitude.lua servitude: display a time bar on failed attempts 2026年07月03日 08:57:28 +02:00
shaving.lua
shitpost-command.lua
shitpost.lua
string-buffer.lua
survival-v1.lua add vote.lua 2026年07月04日 17:21:48 +02:00
survival.lua add vote.lua 2026年07月04日 17:21:48 +02:00
target.lua
team.lua
timed-mission.lua add vote.lua 2026年07月04日 17:21:48 +02:00
timed-pve.lua add vote.lua 2026年07月04日 17:21:48 +02:00
train-test.lua
trap-ext.lua
type.lua
vote.lua add vote.lua 2026年07月04日 17:21:48 +02:00

Unvanquished Server Scripts

These are the Lua scripts used on the Unvanquished Map&Bot Testing Server.

Directory Layout

This repository's content is in a directory game/lua.

When the game loads a map with a given layout, it first executes the file <mapname>/any.lua, if it exists. Then, the file <mapname>/<layout>.lua is executed, if it exists.

The following Lua code does that:

local function tryRequire(path)
 if Trap.fileExists(path) then require(path) end
end
local mapname = Cvar.get("mapname")
local layout = Cvar.get("layout")
tryRequire(string.format("lua/%s/any.lua", mapname))
tryRequire(string.format("lua/%s/%s.lua", mapname, layout))