Commit graph

4004 commits

Author SHA1 Message Date
smallmodel
49b5c29c11
Format renderergl1 source files 2024-12-19 21:13:39 +01:00
smallmodel
f86b495cc6
Set all common renderer imports and add openmohaa imports after ioquake3 imports for more clarity 2024-12-19 20:09:52 +01:00
smallmodel
a4d0a96ce5
Clear the camera jitter when ending the remote control 2024-12-19 19:52:29 +01:00
smallmodel
9d4ea75a18
Increase the number of aliases that can be found
Previously, 64 aliases could be chosen for random search, it was incremented to 128 since 2.0, however it should have been increased in Breakthrough as well, because there are aliases with more than 128 elements
2024-12-19 19:19:12 +01:00
smallmodel
38427fa3c5
Add support for compiling both opengl1 and opengl2 when they're built as shared libraries
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 26s
renderercommon is now used, which will appropriately use opengl1 when building static libraries, or compile both opengl1/opengl2 modules when building shared libraries
2024-12-18 23:24:04 +01:00
smallmodel
7d369dec74
Don't render static mesh if there is no static xyz 2024-12-18 19:44:48 +01:00
smallmodel
58bef33bc7
Don't check if the TIKI model exists when initializing a static model
In later version like 2.0 and above, the TIKI model can be registered before static models which would prevent static xyz to be initialized
2024-12-18 19:41:28 +01:00
smallmodel
bd021b109c
Fix a terrible mistake in TIKI_FindTiki with uninitialized variable
This was using an uninitialized buffer to find the cached TIKI, in most configurations it always returned false, but when compiled with GCC it would return true
2024-12-18 19:31:21 +01:00
smallmodel
3b1b994152
Fix temporary spawn spots being incorrectly ignored 2024-12-17 22:54:46 +01:00
smallmodel
4e69d7a78a
Remove redundant code 2024-12-17 22:50:25 +01:00
smallmodel
16166a36b5
Fix spawnpoint metric for objective-based matches 2024-12-17 22:48:10 +01:00
smallmodel
bcbe7cd870
Fix spawn point metric functions not counting the last player 2024-12-17 22:45:43 +01:00
smallmodel
8dba91fbcc
Reopen doors to the other side when blocked 2024-12-17 22:17:02 +01:00
smallmodel
29fe5780e9
Only post the EV_MoveDone event if it's not pending when done moving
There are some situations where EV_MoveDone is posted again through a call to G_PushMove(), this avoids the mover unexpectedly and immediately moving to the new location
2024-12-17 22:15:53 +01:00
smallmodel
12686c0ab1
Format mover source file 2024-12-17 22:02:35 +01:00
smallmodel
a21d712f54
Reopen the door to the other side if it's blocked 2024-12-17 21:30:48 +01:00
smallmodel
2c7d18b331
Initialize client persistent in G_InitClientPersistant 2024-12-17 21:16:45 +01:00
smallmodel
e353673005
Fix player deaths (or total kills) being added twice in round-based matches 2024-12-17 21:11:34 +01:00
smallmodel
1be50cdddf
Clear the attack time during reaction time 2024-12-17 14:01:13 +01:00
smallmodel
869b257bf8
Add a slight random response time before attacking
Some checks failed
Build branch / build-all (push) Failing after 56s
CodeQL / Analyze (push) Has been cancelled
It's a way to make the fight less difficult between bots and players
2024-12-16 23:05:35 +01:00
smallmodel
f165ebf9a3
Refactor G_ExitLevel 2024-12-16 23:03:15 +01:00
smallmodel
a6c168c289
Count from 0 instead of CS_OBJECTIVES for more clarity 2024-12-16 22:13:26 +01:00
smallmodel
0057a8273c
Initialize the total map time 2024-12-16 21:17:36 +01:00
smallmodel
876829a742
Properly aim the enemy
The bot wasn't aiming properly at the enemy because the bot was aiming from the centroid. It also caused issues when the enemy was crouching
2024-12-16 19:45:42 +01:00
smallmodel
f4519325ce
Speed up bot rotation 2024-12-16 19:41:01 +01:00
smallmodel
932367d061
Append "demo" to the keywords if fs_restrict is enabled
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 16s
2024-12-15 21:32:34 +01:00
smallmodel
79643d963e
Correctly parse the name of the players returned by the serverstatus command 2024-12-15 21:32:23 +01:00
smallmodel
872b3f5d70
Improve bot movement when stuck 2024-12-15 21:10:48 +01:00
smallmodel
ac4138a763
Declare PID functions
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 17s
2024-12-15 00:20:31 +01:00
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