aboutsummaryrefslogtreecommitdiff
path: root/gamemode/core/mapstich
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2017-11-08 15:51:26 -0500
committerAlexander Pickering <alexandermpickering@gmail.com>2017-11-08 15:51:26 -0500
commit2252904b8147419c551ad2653a20627281d0531f (patch)
treec1d76a132fa085940dd33d8af99c08dd9da04675 /gamemode/core/mapstich
parent07593f0c983ac6b16161829b20ea6fde887fa7e9 (diff)
downloadartery-2252904b8147419c551ad2653a20627281d0531f.tar.gz
artery-2252904b8147419c551ad2653a20627281d0531f.tar.bz2
artery-2252904b8147419c551ad2653a20627281d0531f.zip
Finished LDoc comments
Diffstat (limited to 'gamemode/core/mapstich')
-rw-r--r--gamemode/core/mapstich/sv_mapstich.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/gamemode/core/mapstich/sv_mapstich.lua b/gamemode/core/mapstich/sv_mapstich.lua
index 91b4ec2..5fd8129 100644
--- a/gamemode/core/mapstich/sv_mapstich.lua
+++ b/gamemode/core/mapstich/sv_mapstich.lua
@@ -1,3 +1,7 @@
+---Bits to help with transfering players.
+-- Transfers players between areas when they hit a art_serverchange zone
+--@module sv_mapstich.lua
+
--Make sure zones are loaded already
nrequire("sv_mysqlite.lua")
if not nrequire("sh_zones.lua") then return end
@@ -39,6 +43,9 @@ local function SavePlayerData(ply)
end)
end
+---Saves the player.
+-- Saves the player as if they had disconnected, or transfered to another level
+--@concommand artery_saveplayer
concommand.Add("artery_saveplayer",function(ply,cmd,args)
SavePlayerData(ply)
end)