Skip to content

Instantly share code, notes, and snippets.

View sauerbraten's full-sized avatar

sauerbraten

  • Germany
View GitHub Profile
@sauerbraten
sauerbraten / design.md
Last active February 28, 2019 15:50
design overview: sauerworld auth/stats system

sauerworld auth/stats system

lobby sauer server at auth.sauerworld.org:28785

  • always locked
  • no time limit
  • lets clients try auth key is working (speaks to auth.sauerworld.org:28787 like any other game server would)
  • lets SW admins prepare accounts (/servcmd makeacc pix)
  • lets gauth holders without an admin present using their gauth name
@sauerbraten
sauerbraten / reportstats.patch
Last active February 28, 2019 16:16
patch for vanilla to report stats of gauthed users at intermission (use with https://github.com/sauerbraten/maitred as master)
Index: src/fpsgame/server.cpp
===================================================================
--- src/fpsgame/server.cpp (revision 5401)
+++ src/fpsgame/server.cpp (working copy)
@@ -2116,6 +2116,42 @@
}
}
+ void reportstats()
+ {
@sauerbraten
sauerbraten / enet.lua
Last active July 6, 2024 20:13
ENet Wireshark dissector. Place in ~/.local/lib/wireshark/plugins/.
-- Enet 1.3 Protocol Dissector For Wireshark
--
-- Cameron Gutman (aicommander@gmail.com)
-- fixes by Alexander Willing (willing.alexander@gmail.com)
-- Licensed under GPLv3
--
-- ENetProtocolHeader
enet_header_hassenttime = ProtoField.bool("enet.header.has_senttime", "Has Sent Time")
enet_header_compressed = ProtoField.bool("enet.header.is_compressed", "Compressed")
@sauerbraten
sauerbraten / up_down_hover_floating.patch
Created September 7, 2021 18:13
up/down/hover floating movement patch
Index: src/engine/physics.cpp
===================================================================
--- src/engine/physics.cpp (revision 6518)
+++ src/engine/physics.cpp (working copy)
@@ -1545,30 +1545,18 @@
COMMAND(phystest, "");
-void vecfromyawpitch(float yaw, float pitch, int move, int strafe, vec &m)
+void vecfromyawpitch(float yaw, float pitch, int move, int strafe, int vertical, vec &m)
@sauerbraten
sauerbraten / Dockerfile
Created January 27, 2022 17:59
Minimal Docker image for Cube 2: Sauerbraten (< 11MB)
FROM alpine:latest as builder
RUN apk add --upgrade \
make \
build-base \
zlib-dev
# make sure to `make clean` in src/ and src/enet/ before
COPY ./src /src