diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2017-08-21 22:09:34 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2017-08-21 22:09:34 -0400 |
| commit | f6b7219d6c0e2ab1b7b23f87496b04167fa7737c (patch) | |
| tree | 6132d747891df64fa96b43a0628d5c4298d4782f /gamemode/core/mapstich | |
| parent | 3571c0bd6a268921287c14a812aa133e9eebbcfa (diff) | |
| download | artery-f6b7219d6c0e2ab1b7b23f87496b04167fa7737c.tar.gz artery-f6b7219d6c0e2ab1b7b23f87496b04167fa7737c.tar.bz2 artery-f6b7219d6c0e2ab1b7b23f87496b04167fa7737c.zip | |
Hotfix around garry's retardation
Diffstat (limited to 'gamemode/core/mapstich')
| -rw-r--r-- | gamemode/core/mapstich/cl_mapstich.lua | 5 | ||||
| -rw-r--r-- | gamemode/core/mapstich/sv_mapstich.lua | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/gamemode/core/mapstich/cl_mapstich.lua b/gamemode/core/mapstich/cl_mapstich.lua index 65a5208..e1e5fcc 100644 --- a/gamemode/core/mapstich/cl_mapstich.lua +++ b/gamemode/core/mapstich/cl_mapstich.lua @@ -10,3 +10,8 @@ hook.Add("Think","artery_checklevelchange",function() net.SendToServer() end end) + +net.Receive("art_sendtoserver",function() + local where = net.ReadString() + LocalPlayer():ConCommand("connect " .. where) +end) diff --git a/gamemode/core/mapstich/sv_mapstich.lua b/gamemode/core/mapstich/sv_mapstich.lua index 7a90189..bd671bd 100644 --- a/gamemode/core/mapstich/sv_mapstich.lua +++ b/gamemode/core/mapstich/sv_mapstich.lua @@ -5,6 +5,7 @@ local q = nrequire("core/database/sv_queries.lua") print("Hello from sv_mapstich.lua") util.AddNetworkString("art_zonechange") +util.AddNetworkString("art_sendtoserver") local dontupdatedisconnect = {} @@ -60,7 +61,11 @@ net.Receive("art_zonechange",function(len,ply) print("fquery was", fquery) print("Running query:",qc) MySQLite.query(fquery,function(data) - ply:ConCommand("connect " .. zone.toserver) + --Holy shit fuck garry for breaking this + --ply:ConCommand("connect " .. zone.toserver) + net.Start("art_sendtoserver") + net.WriteString(zone.toserver) + net.Send(ply) end,function(err,sql) print("Query error:") print("Query",sql) |
