Skip to content

Commit 3bd229d

Browse files
committed
Merge branch 'master' into vscript
2 parents c867724 + 321cdb2 commit 3bd229d

File tree

5 files changed

+57
-10
lines changed

5 files changed

+57
-10
lines changed

CHANGELOG.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ Note: Dates are UTC+0.
33

44

55
# v?.?.? - ? - 2025-0?-?? - rtldg
6+
this is too dense and unreadable. I'm sorry...
7+
68
- random things
79
- move around the absolute minimum time (0.11s) stuff https://github.com/shavitush/bhoptimer/commit/2dbb211742124484f4a420c61b4511b2c5f16b38
810
- fix wrong variable used in `LessStupidGetMapDisplayName` (relevant for tf2 & csgo) https://github.com/shavitush/bhoptimer/commit/afa6b07da8e7540277ada3a85895da2c1395aed3
@@ -34,6 +36,18 @@ Note: Dates are UTC+0.
3436
- like on `bhop_ins_mariooo`
3537
- fix some colors in advertisement messages not working https://github.com/shavitush/bhoptimer/commit/ad48aa3345878fab54d785980f0be656677a68e3
3638
- check & use `sv_autobunnyhopping` even if the game is not CS:GO (and it's in CS:S as of the 2025-02-18 update! Thank you @misyltoad) https://github.com/shavitush/bhoptimer/commit/94ebb97c79f0ff71dd7115ac6626d86e162df1a7
39+
- other gamedata stuff for 2025-02-18 update: https://github.com/shavitush/bhoptimer/pull/1226 https://github.com/shavitush/bhoptimer/commit/90a6714bebfc384055401032f396c1f82fb996d4
40+
- Make sure MaybeDoPhysicsUntouch() is called in ProcessMovementPost https://github.com/shavitush/bhoptimer/pull/1226/commits/2c093bb02d4ad99c3ca378426ce5ba96deed0767
41+
- swap sm_p to sm_noclip in shavit_misc_noclipme description https://github.com/shavitush/bhoptimer/pull/1230 @lilac1337 https://github.com/shavitush/bhoptimer/commit/78f55f9a1a9c9ca94bd9128c6294737f30933b57
42+
- add shavit_misc_unnocliponrestart to disable noclip on restart https://github.com/shavitush/bhoptimer/pull/1232 @mourningsickness https://github.com/shavitush/bhoptimer/commit/2726865399e9a25689f000600816fbc8070ec28b
43+
- Add FirstLogin to database and profile https://github.com/shavitush/bhoptimer/pull/1234 @mourningsickness https://github.com/shavitush/bhoptimer/commit/3d0cd963195e55e836e71028b28c469d5e4fff0a
44+
- Make firstlogin pull from old runs if possible https://github.com/shavitush/bhoptimer/commit/158edbe15880228cb393d0a9f4f5f2f27fbaa767
45+
- follow up commit to fix my bad sql https://github.com/shavitush/bhoptimer/commit/b29cc54d0b2285f0f10d502d262c6adf945296b1
46+
- Mark Steam Datagram Relay IPs https://github.com/shavitush/bhoptimer/commit/983a3c8e747cbf8104ab90f9477824ac803e2a6c
47+
- (shows "Steam Datagram Relay" for the player's country if that's how they last connected)
48+
- fix: prevent unnecessary jump when using !r or switching to TAS (brought to attention by @akanora) https://github.com/shavitush/bhoptimer/commit/7e1c3f0dc31b79a093da1995d40888a890da9cef
49+
- shavit-chat - fix chat messages near (or at) max length overflowing into a broken message https://github.com/shavitush/bhoptimer/pull/1241 @mourningsickness https://github.com/shavitush/bhoptimer/commit/49105001d3fbcec5060689f3b28a4816ff3e2340
50+
- this increases the user chat message buffer size
3751
- menu & hud things
3852
- save `!wr` menu record page for back button https://github.com/shavitush/bhoptimer/commit/9423ef79add10b5d48e64eb1a90e845d781b9906
3953
- timeleft hud - show seconds starting at 150s https://github.com/shavitush/bhoptimer/commit/3a1e6a60cd810089ee0b4db37e99c0ad6c0e031b
@@ -43,11 +57,32 @@ Note: Dates are UTC+0.
4357
- add keyhint forwards and forceUpdate https://github.com/shavitush/bhoptimer/pull/1201 @enimmy https://github.com/shavitush/bhoptimer/commit/d57ec73adb70ad5ece0a688f71cd54619a57883d
4458
- allow the !recentrecords menu to be sorted by style https://github.com/shavitush/bhoptimer/commit/4652e36cc66b5296d91f6d4e2a22aff7c1459016
4559
- fix error spam from PR #1201 https://github.com/shavitush/bhoptimer/commit/23fa606920707c99749474653a5588e6681bf423
60+
- add player PB to !style menu https://github.com/shavitush/bhoptimer/pull/1239 @mourningsickness https://github.com/shavitush/bhoptimer/commit/b1a2f064327906f2ca063d807603309ed5015c74
4661
- checkpoint things
4762
- Make sure CSS uses the ladder checkpoint stuff https://github.com/shavitush/bhoptimer/commit/c2a9017810d5df1a185d665d31e482a4a476d9cc
4863
- this also changes the checkpoint struct size because we need to save some internal ladder variables the engine uses
64+
- ALWAYS include this (so third-party plugins don't have to be rebuilt sometimes) https://github.com/shavitush/bhoptimer/commit/2013968f1c1970e380b77259389191a927d9da91
65+
- save m_afButtonDisabled & m_afButtonForced in checkpoints (mainly for player_speedmod) https://github.com/shavitush/bhoptimer/commit/bf5ec55a6a008d5d24c7aa8b8782b9c8f5f19b00
66+
- this makes kz_bhop_genkai a bit more bearable at times
67+
this also isn't perfect since restarting doesn't reset them
68+
- csgo gamedata https://github.com/shavitush/bhoptimer/commit/d93ed2881620cc5263703a60da9c8cec8c3ed05b
69+
- Prevent gB_ForceJump when teleporting to a checkpoint in the start zone https://github.com/shavitush/bhoptimer/pull/1240 @akanora https://github.com/shavitush/bhoptimer/commit/cd4f1c924860ebdd0e9f2d3fa6a5f68886349a91
4970
- zones things
5071
- make `shavit_zones_box_offset` a bool (which also affects height offset) & correct TF2 bounding box values https://github.com/shavitush/bhoptimer/pull/1179 @jedso https://github.com/shavitush/bhoptimer/commit/f7ff341131c09119f078124717a6f95b0d631e57
72+
- <details><summary>Summary</summary>
73+
Previously with offsets:
74+
- Zone is 62/2 units raised off the "ground".
75+
- Zone is 62/2 units shorter than the beams showed.
76+
Previously without offsets:
77+
- Zone is 62/2 units raised off the "ground".
78+
- Zone is 62/2 units shorter than the beams showed.
79+
Now with offsets:
80+
- Zone is 62/2 units raised off the "ground".
81+
- Zone is 62/2 units shorter than the beams showed.
82+
Now without offsets:
83+
- Zone is 0 units raised off the "ground".
84+
- Zone is 0 units shorter than the beams showed.
85+
</details>
5186
- wip shavit-zones-json stuff
5287
- https://github.com/shavitush/bhoptimer/commit/7a81b44655742864cdc2b9dc3eaffedbcc21bb8a
5388
- https://github.com/shavitush/bhoptimer/commit/9cf9d7ff27b4cb97b02b6f827cf27a1619502912
@@ -68,13 +103,19 @@ Note: Dates are UTC+0.
68103
- force `sv_enablebunnyhopping 1` in Custom Speed Limit zones (for `_strafe`); make AirAccelerate & Custom Speed Limit zones check the player's track https://github.com/shavitush/bhoptimer/pull/1212 https://github.com/shavitush/bhoptimer/commit/7aca8755a4beab088788ed57dde22aef47cf6a07
69104
- part 2: fix bad casts that broke Custom Airaccelerate & Custom Speed Limit zones https://github.com/shavitush/bhoptimer/commit/ee0fe65b01b7fd616092f3b2998123480dc2dca2
70105
- Add no-jump and autobhop zones https://github.com/shavitush/bhoptimer/pull/1216 @Awesomerly https://github.com/shavitush/bhoptimer/commit/c9cfbefa277b703529f47d3e64106cd5fca4c1fe
106+
- some fixes https://github.com/shavitush/bhoptimer/commit/8ecc2a78290942325fcc5a8742a2c0261450a4ce
71107
- probably fix `exact_time_int` deprecation issue https://github.com/shavitush/bhoptimer/issues/1218 https://github.com/shavitush/bhoptimer/commit/e41ba9fa9525a808a54807ff0e0c4593fa8c3027
72108
- part 2: edit the DeprecateExactInt sql error handling a bit for https://github.com/shavitush/bhoptimer/commit/9434dc943866b3891dd18ea936e1e35e156c6f94
73109
- Add new zone types to hookzone menu https://github.com/shavitush/bhoptimer/pull/1221 @Awesomerly https://github.com/shavitush/bhoptimer/commit/7c8002557416e909d430709cf05e551129258f3b
74110
- unbreak sourcemod 1.12 builds https://github.com/shavitush/bhoptimer/commit/17e60114a4847f2b4bf27354f04a5e32f936d82f https://github.com/shavitush/bhoptimer/commit/54c04a0219650760165e1d0c119c85131cee3c5b https://github.com/shavitush/bhoptimer/commit/2dd385a8eb3f0eafe367ccfc93409035acb81079
75111
- make `!beamer` more reliable and stuck in walls less (if at all!) @rumourA https://github.com/shavitush/bhoptimer/commit/2bbb3865f8785b3d8ddbf93b9cb83e78ed625ae6
76112
- I love `!beamer` so much. I lie in bed and think about `!beamer`.
77113
- Make `func_rot_button` entities hookable just like `func_button` https://github.com/shavitush/bhoptimer/commit/04ad339fe81deb97fbb3880290d24e4891f526e0 https://github.com/shavitush/bhoptimer/commit/f54775044ccae66ad7a14948bc1a4eb11b0b676c
114+
- Fix not being able to overlap bonus+main endzones https://github.com/shavitush/bhoptimer/commit/420c8e02ea4c2520ad0d73eed2b8b9649379f265
115+
- Startzone speed limit flexibility https://github.com/shavitush/bhoptimer/pull/1219 @Awesomerly https://github.com/shavitush/bhoptimer/commit/354c2445c28b4a926fa516b1ae2299660c96f0ca
116+
- adds the "maxprestrafe" style key (& adds shavit_misc_prespeed 6):
117+
"The max prestrafe that still allows your timer to start/restart. You generally do *not* need or want to change this unless for surf things (combined with style-setting "prespeed_type" "6" or cvar "shavit_misc_prespeed 6"). Default is 0.0 (disabled)."
118+
- fix shavit-zones cvar change callback errors (found by caliph) https://github.com/shavitush/bhoptimer/commit/0151ace718c8256b5f16ef39e6fcfd0a03d41765
78119
- replay things
79120
- make salvage replay-files have frame-count in filename https://github.com/shavitush/bhoptimer/commit/1f8461f64b54cd03533b0deacc5285c17e55e00c
80121
- add `!specbot` to shavit-misc as an alias for `!spec` https://github.com/shavitush/bhoptimer/commit/bb49da4d9c12ede5929be933726ea783a77c4b85

addons/sourcemod/scripting/include/shavit/sql-create-tables-and-migrations.sp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -715,24 +715,24 @@ public void ApplyMigration_MoreFirstLoginStuff()
715715
{
716716
FormatEx(query, sizeof(query),
717717
"UPDATE %susers JOIN ( \
718-
SELECT auth, `time`, FLOOR(MIN(`date`) - `time`) as min_date \
718+
SELECT auth, MIN(FLOOR(`date` - `time`)) as min_date \
719719
FROM %splayertimes \
720720
WHERE `date` > 1188518400 \
721721
GROUP BY auth \
722722
) as pt ON %susers.auth = pt.auth \
723-
SET firstlogin = FLOOR(pt.min_date - pt.time) \
723+
SET firstlogin = pt.min_date \
724724
WHERE firstlogin <= 0;",
725725
gS_SQLPrefix, gS_SQLPrefix, gS_SQLPrefix
726726
);
727727
AddQueryLog(trans, query);
728728
FormatEx(query, sizeof(query),
729729
"UPDATE %susers JOIN ( \
730-
SELECT auth, `time`, FLOOR(MIN(`date`) - `time`) as min_date \
730+
SELECT auth, MIN(FLOOR(`date` - `time`)) as min_date \
731731
FROM %splayertimes \
732732
WHERE `date` > 1188518400 \
733733
GROUP BY auth \
734734
) as pt ON %susers.auth = pt.auth \
735-
SET firstlogin = LEAST(firstlogin, FLOOR(pt.min_date - pt.time)) \
735+
SET firstlogin = LEAST(firstlogin, pt.min_date) \
736736
WHERE firstlogin > 0;",
737737
gS_SQLPrefix, gS_SQLPrefix, gS_SQLPrefix
738738
);
@@ -741,9 +741,9 @@ public void ApplyMigration_MoreFirstLoginStuff()
741741
else // sqlite & postgresql use the same syntax here
742742
{
743743
FormatEx(query, sizeof(query),
744-
"UPDATE %susers SET firstlogin = FLOOR(pt.min_date - pt.time) \
744+
"UPDATE %susers SET firstlogin = pt.min_date \
745745
FROM ( \
746-
SELECT auth, time, MIN(date) as min_date \
746+
SELECT auth, MIN(FLOOR(date - time)) as min_date \
747747
FROM %splayertimes \
748748
WHERE date > 1188518400 \
749749
GROUP BY auth \
@@ -753,9 +753,9 @@ public void ApplyMigration_MoreFirstLoginStuff()
753753
);
754754
AddQueryLog(trans, query);
755755
FormatEx(query, sizeof(query),
756-
"UPDATE %susers SET firstlogin = MIN(firstlogin, FLOOR(pt.min_date - pt.time)) \
756+
"UPDATE %susers SET firstlogin = MIN(firstlogin, pt.min_date) \
757757
FROM ( \
758-
SELECT auth, time, MIN(date) as min_date \
758+
SELECT auth, MIN(FLOOR(date - time)) as min_date \
759759
FROM %splayertimes \
760760
WHERE date > 1188518400 \
761761
GROUP BY auth \

addons/sourcemod/scripting/shavit-chat.sp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
#define MAGIC_NUMBER 2147483648.0
4242
#define MAXLENGTH_NAME 128
43-
#define MAXLENGTH_TEXT 128
43+
#define MAXLENGTH_TEXT 255
4444
#define MAXLENGTH_MESSAGE 255
4545
#define MAXLENGTH_DISPLAY 192
4646
#define MAXLENGTH_CMESSAGE 16

addons/sourcemod/scripting/shavit-mapchooser.sp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2102,7 +2102,7 @@ public Action Command_ReloadMap(int client, int args)
21022102

21032103
bool MapValidOrYell(int client, const char[] map)
21042104
{
2105-
if (!GetMapDisplayName(map, "hi:)", 5))
2105+
if (!IsMapValid(map))
21062106
{
21072107
ReplyToCommand(client, "%sInvalid map :(", g_cPrefix);
21082108
return false;

addons/sourcemod/scripting/shavit-tas.sp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,12 @@ public void Shavit_OnRestart(int client, int track)
257257
gI_LastRestart[client] = GetGameTickCount();
258258
}
259259

260+
public Action Shavit_OnTeleportPre(int client, int index, int target)
261+
{
262+
// to prevent gB_ForceJump when teleporting to a checkpoint in the start zone
263+
gI_LastRestart[client] = GetGameTickCount();
264+
}
265+
260266
public void Shavit_OnEnterZone(int client, int type, int track, int id, int entity, int data)
261267
{
262268
if (!IsValidClient(client, true) || IsFakeClient(client))

0 commit comments

Comments
 (0)