Commit graph

24191 commits

Author SHA1 Message Date
NepDisk
d62c23f134 Revert "Experiment: replace lua´s string hash with luajits ARX hash"
This reverts commit b0cf9cdc18.
2026-02-28 08:06:20 -05:00
NepDisk
b04bfe08a7 Revert "blua: handle 0 length strings in hash_sparse"
This reverts commit c582767603.
2026-02-28 08:06:20 -05:00
NepDisk
ecd29f9668 Revert "luaS_newlstr: use hash also for checking strings"
This reverts commit ead56b83e3.
2026-02-28 08:06:20 -05:00
NepDisk
d447c793a9 Revert "lua_pushlstring: prefer luaS_newlstr over luaS_new"
This reverts commit 80db0bde07.
2026-02-28 08:06:20 -05:00
NepDisk
208d1d1b3e Revert "hash_sparse: change length checks"
This reverts commit b0da7ac519.
2026-02-28 08:06:20 -05:00
minenice55
d5fc5ab7f0 tune correction a bit 2026-02-28 01:31:38 -05:00
minenice55
2010b0376d implement new wheel gfx 2026-02-28 00:27:30 -05:00
yamamama
9cfb029023 Make the "connect" command remember server IPs
Saturn addition that we forgot about
2026-02-27 19:33:59 -05:00
NepDisk
5c8cda984e Revert "Remove CLIENTMIS"
This reverts commit ba2b525172.
2026-02-27 15:48:00 -05:00
NepDisk
f20107d5f7 Revert "Remove tic provision"
This reverts commit 8c624cdc65.
2026-02-27 15:47:50 -05:00
NepDisk
56e7f73f63 Fix bot flameshield usage and allow offroad mow 2026-02-27 10:47:41 -05:00
minenice55
0b28d8bf67 rotated steering wheel display?
needs some work
2026-02-26 23:46:23 -05:00
minenice55
a5b5955d28 pinch the tilt towards the extremes 2026-02-26 23:21:49 -05:00
minenice55
4bc182901f Update g_game.c 2026-02-26 22:53:35 -05:00
minenice55
2389b64803 add tiltcontrol cvar 2026-02-26 22:52:32 -05:00
minenice55
3bda3ded66 properly implement tilt based axis 2026-02-26 22:49:27 -05:00
minenice55
d3b02613f2 fix some math issues 2026-02-26 21:22:43 -05:00
minenice55
dc04ac2f66 this feels quite good now 2026-02-26 18:04:52 -05:00
NepDisk
c98ab809c0 Add uservars for botdata
This will be super useful for programming bots that keep custom data
2026-02-26 14:16:30 -05:00
Alug
23f07ca6fa fix console mutex not actually checking the return value of I_In_Exiting_Signal_Handler 2026-02-26 19:56:54 +01:00
Alug
dd016e9e86 dont apply thing distance fade if viewplayer is spectating
fixes https://codeberg.org/NepDisk/blankart/issues/219

this probably should be rewritten to be camera based not player based instead
2026-02-26 19:52:13 +01:00
Alug
d0c3e6f604 dont return lumpnumber within W_LumpExists 2026-02-26 19:29:33 +01:00
NepDisk
d1e28ff217 Don't do I_Error meme texture replacement Luas
This is an issue that mostly affects hardcode, Lua authors don't have to worry about this.
2026-02-26 13:17:31 -05:00
minenice55
a7ddeddbe4 get sensor fusion and basic tilt steering working 2026-02-26 02:20:10 -05:00
minenice55
0cfb873f4f convert accelerometer data to gs 2026-02-25 19:12:42 -05:00
minenice55
db22fc9c46 Update g_game.c 2026-02-25 19:06:53 -05:00
minenice55
e87a135315 holy math 2026-02-25 19:01:31 -05:00
minenice55
a71395e7a8 prep for accelerometer control 2026-02-25 11:26:45 -05:00
NepDisk
2e2862e79f Make this heavy airdrop branch more explicit to prevent lightairdrop from falling through 2026-02-25 08:31:37 -05:00
NepDisk
8aa512e2a4 Revert "blua: attempt emergency garbo collection on file io operations if they fail"
This reverts commit c3ee45e6fa.
2026-02-25 08:20:07 -05:00
Alug
b0da7ac519 hash_sparse: change length checks
dont early return on 0 len, let it be the falltrough case, this seems to help branch prediction
2026-02-24 12:47:33 -05:00
NepDisk
76a08efd78 Fix signal handler issues
Thanks Alug! f4dc161831 e35dc9e097 2f684bba95
2026-02-24 12:41:20 -05:00
Alug
80db0bde07 lua_pushlstring: prefer luaS_newlstr over luaS_new
the latter calls strlen which is not needed as the empty string has no length
2026-02-24 12:22:18 -05:00
NepDisk
569404dfe1 w_wad: replace unordered_map with verstable hashmap for lumpnumcache + convert back to C from C++
Thanks Alug! 014a22e933
2026-02-24 11:12:07 -05:00
NepDisk
7ec95f7d96 Nerf bot ringchain threshold 2026-02-24 10:21:57 -05:00
NepDisk
f8ba24191a Don't bot stack sneakers when accel is not held or bot is braking
This might solve some cases of a bot stacking sneakers when it shouldn't
2026-02-24 09:45:49 -05:00
NepDisk
d4abf4dfcb Fix some cases of bots randomly tapping brake in the air 2026-02-24 09:40:23 -05:00
NepDisk
f18dee3db7 Allow bots to stack sneakers
When stacking is on bots will attempt to stack them together. Their timing is based on their difficulty, less skilled bots are more wasteful while better bots are less wasteful. Also adjusts Rocket sneakers to also use this logic.
2026-02-24 08:51:23 -05:00
NepDisk
21cab921fa Make bot mashing more dynamic
Instead of being based on a fixed range of tiers, it is now based on a sine curve. The larger the useodds is the more they mash. Also don't calculate if you are going to be forced to mash anyway.
2026-02-24 07:57:10 -05:00
NepDisk
50ad49eba0 Update bot mashing logic for more useodd tiers 2026-02-23 14:32:05 -05:00
NepDisk
298849b70c Update comment 2026-02-22 21:17:28 -05:00
NepDisk
77d9f53724 I completely forgot about changing this back 2026-02-22 21:14:47 -05:00
yamamama
890a033b98 Add Mompi to the credits, update hashes again 2026-02-22 20:38:16 -05:00
minenice55
3db54b9e64 disable attract screen demos for now 2026-02-22 18:01:36 -05:00
Alug
8ca8f79909 Dedicated: dont create or destroy ANY lua hud drawlist
not needed at all in dedi
2026-02-22 17:15:19 -05:00
Alug
c3ee45e6fa blua: attempt emergency garbo collection on file io operations if they fail
ports of
e885dee5ab

and

3d838f635c

prevents massive memory leaks and other issues due to faulty lua scripts
2026-02-22 17:05:53 -05:00
James R
22d7e6331d Got_Luacmd: ensure lua stack is large enough for command arguments 2026-02-22 16:32:41 -05:00
Alug
7de2db3e3c consolelib: fix some early returns not properly cleaning lua stack 2026-02-22 16:31:44 -05:00
Alug
57e06de95d lib_concat: fix zero lenght string case
continue the loop, not return, it might just be an empty line, so returning might break some luas
0 lenght would make realloc allocate nothing at all, so just skip it
2026-02-22 16:29:19 -05:00
Indev
d0f0744dcf Push empty string instead of null if len == 0 in lua_pushlstring 2026-02-22 16:29:00 -05:00