Commit graph

4325 commits

Author SHA1 Message Date
smallmodel
0765537d29
Improve bot attack state
This should stop bot aiming forever behind walls and getting stuck to a wall
2024-12-14 23:32:17 +01:00
smallmodel
f2f9ba9f83
Fix emulated death message incorrectly having a '?' at the beginning of each message on base game 2024-12-14 22:14:55 +01:00
smallmodel
20c1fab815
Don't set the frame number if the renderer function doesn't exist 2024-12-14 22:13:11 +01:00
smallmodel
d3fb1331f8
Fix NDEBUG check 2024-12-14 20:09:33 +01:00
smallmodel
1ef61a6e3d
Use the PID file in non-debug builds
The PID file is used to check if openmohaa cleanly exited, and in case it didn't, the user is prompted to start in safe mode
2024-12-14 19:40:49 +01:00
smallmodel
0fb80a4ab5
Use unnamedsoldier.cfg config file if the openmohaa config file doesn't exist 2024-12-14 19:38:52 +01:00
smallmodel
981b12b63d
Return a rounded number in G_GetAngle
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 18s
There are scripts that compare the returned angle with an exact value and sometimes G_GetAngle return a value with a tiny fraction difference
2024-12-13 23:55:34 +01:00
smallmodel
508ee871b9
Add a small offset for checking if the player can get off ladder
This compensates with the difference with floating-point precision between architectures
2024-12-13 23:30:01 +01:00
smallmodel
c293a52f7a
Fix MASK_LADDER mask 2024-12-13 22:54:00 +01:00
smallmodel
acf2dd0ad1
Use an integer when waiting
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 26s
Since the expected time is in milliseconds, it's best to use an integer instead. Floating-point numbers lose precision as they get larger, especially when the level's current time is long (e.g., over 24 hours). This loss of precision could cause scripts to wait unsuccessfully with small numbers, causing unexpected behaviors
2024-12-13 22:17:43 +01:00
smallmodel
d5ec17ec26
Allow subtitles to be set from stufftext 2024-12-13 19:24:58 +01:00
smallmodel
85da9fabdd
Fix incorrect event/return value for ScriptOrigin::GetAngleEvent
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 17s
2024-12-12 23:50:42 +01:00
smallmodel
e15440af5e
Clear the view velocity when PMF_NO_MOVE is set 2024-12-12 22:52:28 +01:00
smallmodel
26c2225a24
Remove rate assertion 2024-12-12 22:45:44 +01:00
smallmodel
cd06dc0535
Don't validate facet if there is an invalid border plane
The check was missing, which would cause a crash during collision test
2024-12-12 22:37:09 +01:00
smallmodel
1b8ef411ee
Increase the value of MAX_PATCH_PLANES
Some checks failed
Build branch / build-all (push) Failing after 17s
CodeQL / Analyze (push) Has been cancelled
2024-12-11 23:20:27 +01:00
smallmodel
95466b810f
Prevent an infinite loop in ProcessPendingEvents() when an entity is being deleted in thinks 2024-12-11 21:55:31 +01:00
smallmodel
0a41f3bb76
Indicate when processing events 2024-12-11 21:55:22 +01:00
smallmodel
8a84436d1b
Fix Cmd_TokenizeString2 incorrectly ignoring extended ascii characters
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 17s
2024-12-09 22:33:36 +01:00
smallmodel
231553f574
Fix round not ending when the clock reached 0:00
The wrong variable was being checked to end the round
2024-12-09 22:14:57 +01:00
smallmodel
37466cdffb
Fix wrong condition for checking entity 2024-12-09 22:02:48 +01:00
smallmodel
3cc417151d
Fix newlines for G_PrintToAllClients 2024-12-09 21:42:45 +01:00
smallmodel
d26718a711
Fix teamkill kick warning not working 2024-12-09 21:32:38 +01:00
smallmodel
0644bc2967
Don't execute old commands from previous map when initializing cgame 2024-12-09 21:27:08 +01:00
smallmodel
a2e4f1dc25
Use the server frametime when parsing baseline entities from the game state 2024-12-09 19:34:19 +01:00
smallmodel
9c952ab49d
Set the map name from the server 2024-12-09 19:33:05 +01:00
smallmodel
aa52fe73a5
Restart the file system when connected and when the local server has no paks 2024-12-09 19:31:58 +01:00
smallmodel
835ddb1de3
Set the compass scale to 0.55 by default on the base game 2024-12-09 18:08:00 +01:00
smallmodel
b58f031bcc
Remove unused cg variables
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 17s
2024-12-08 20:09:23 +01:00
smallmodel
3897a44ce6
Bump the version number 2024-12-08 19:58:59 +01:00
smallmodel
70a5dde726
Correctly handle long strings in chat and game message box 2024-12-08 19:22:25 +01:00
smallmodel
f684349c18
Make sure to pop the loading screen on error
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 16s
This fixes the client getting stuck in the loading screen due to a drop error
2024-12-08 18:47:10 +01:00
smallmodel
a08a9a4f10
Remove TOKEN_NUMBER (unused)
Some maps use #xx to indicate an identifier, so remove this token to avoid errors
2024-12-08 18:24:33 +01:00
smallmodel
f719b87e69
Handle identifiers that are present after strings, by marking strings as identifier 2024-12-08 18:15:26 +01:00
smallmodel
af1cbea966
Also make players non-solid in a vehicle slot 2024-12-08 17:19:39 +01:00
smallmodel
f3f53947bc
Call the switch label only is the primary turret is valid 2024-12-08 16:43:58 +01:00
smallmodel
f0cc34cccf
Correctly parse identifiers starting with a number and containing non-numeric characters 2024-12-08 16:19:57 +01:00
smallmodel
c4a1175ad0
Clear the invulnerable override when loading 2024-12-08 15:53:37 +01:00
smallmodel
333c452f44
Sanitize the name with a maximum buffer size limit 2024-12-08 12:51:14 +01:00
smallmodel
5801af34bb
Don't execute newconfig.cfg
This prevents graphic settings from being overridden by the configuration file previously generated by the original game
2024-12-08 12:43:05 +01:00
smallmodel
da0c36cc88
Also show the port of clients in status 2024-12-08 12:40:21 +01:00
smallmodel
d8d98ade6a
Set the default sound quality to 44 Hz 2024-12-08 12:37:59 +01:00
smallmodel
c3157ad4d7
Use DebugPrintf for errors that are relevant to developers
Some checks failed
Build branch / build-all (push) Failing after 16s
CodeQL / Analyze (push) Has been cancelled
2024-12-06 20:36:12 +01:00
smallmodel
6f686cb7fa
Check if the renderer is loaded instead of checking if it's registered
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 43s
2024-12-06 00:45:18 +01:00
smallmodel
39981643a8
Fix incorrect count when unloading sgl fonts 2024-12-06 00:45:12 +01:00
smallmodel
28bdd1b2b3
Made the renderer modular and loadable
This removes coupling between the renderer and UI/client functions. An option USE_RENDERER_DLOPEN was added to specify whether a renderer module should be compiled and loaded, instead of integrating the renderer into the executable directly. This opens the door for a new renderer
2024-12-06 00:15:19 +01:00
smallmodel
35f40e949b
Properly clear UI resources when shutting down the UI 2024-12-05 23:31:38 +01:00
smallmodel
115b7b82aa
Correctly handle the scenario where multiple architectures are specified
Each target will produce a single binary having multiple architectures, instead of having a binary per architecture. The suffix for each binary will be `multiarch`. This makes it easier for the end-user to install and use. This also helps the transition between Intel and Apple Silicon hardware
2024-12-05 21:12:19 +01:00
smallmodel
d7c0ee47fe
Check if the skel is valid before freeing it 2024-12-05 00:42:50 +01:00
smallmodel
0559d643b7
Use TIKI_DPrintf instead of Skel_DPrintf 2024-12-05 00:42:31 +01:00