From bac325cd07b8d871b580efb7403ccb7597ab04ae Mon Sep 17 00:00:00 2001 From: rtldg <55846624+rtldg@users.noreply.github.com> Date: Tue, 20 Aug 2024 18:12:31 +0000 Subject: [PATCH] Add comments next to the magic editaxis string --- addons/sourcemod/scripting/shavit-zones.sp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/sourcemod/scripting/shavit-zones.sp b/addons/sourcemod/scripting/shavit-zones.sp index 84aa1958..ca88ecb6 100644 --- a/addons/sourcemod/scripting/shavit-zones.sp +++ b/addons/sourcemod/scripting/shavit-zones.sp @@ -4870,6 +4870,10 @@ void DrawZone(float points[8][3], int color[4], float life, float width, bool fl if (editaxis != -1) { + // The is generated with https://gist.github.com/rtldg/94fa32b7abb064e0e99dfbf0c73c1cda + // The beam pairs array at the top of this function isn't useful for the order we want + // for drawing the editaxis beams so that gist was used to help figure out which + // beam indices go where, and then to make a fun little magic string out of it... char magic[] = "\x01\x132\x02EWvF\x04\x15&77&2v\x15\x04\x10T\x13W\x02F7\x151u&\x04 d#g\x01E"; for (int j = 0; j < 12; j++)