Commit graph

487 commits

Author SHA1 Message Date
smallmodel
90639cee36
Fix incorrect effect being spawned for MakeEffect CGM 2024-11-22 18:18:27 +01:00
smallmodel
64f877ae80
Use the correct convention for installing the project
On Win32:
- Binaries and libraries will be installed by default in <PREFIX>/bin
- The prefix is set to `Program Files/openmohaa` by default

On Unix:
- Binaries and libraries will be installed by default in <PREFIX>/lib/openmohaa
- Shared data will be installed in <PREFIX>/share/applications, <PREFIX>/share/metainfo and <PREFIX>/share/icons
- The prefix is set to `/usr/local` by default
2024-11-21 19:49:43 +01:00
smallmodel
120a486aea
Use CMake installation directory
This removes the use of the DESTINATION parameter from install() command and instead rely on default values.
The shared build action file was modified to package installed files in a single folder
2024-11-20 22:50:49 +01:00
smallmodel
862af012cb
Fix infinite loop while getting the number of lines in objectives 2024-11-19 20:26:23 +01:00
smallmodel
05e14f6364
Adjust the objectives menu accordingly depending on the game message box which depends on the compass scale 2024-11-19 19:41:46 +01:00
smallmodel
fb2f3bddaa
Fix the intermission screen (mission failed/success) not hiding immediately on the base game 2024-11-13 20:01:05 +01:00
smallmodel
fe862badf6
Add printdeathmsg from moh 2.0 and above 2024-11-12 18:37:17 +01:00
smallmodel
1ad5964c2f
Implement stoploopsound from moh 2.0 and above 2024-11-12 18:21:24 +01:00
smallmodel
851a16e18c
Fix the bullet tracer scale 2024-11-12 00:09:29 +01:00
smallmodel
9e060d11b6
Allow user-created variables 2024-11-11 20:58:37 +01:00
smallmodel
50fdbaf152
Use CVAR_RESETSTRING instead of CVAR_SERVER_CREATED 2024-11-11 20:36:03 +01:00
smallmodel
7bcb91bbb5
Don't allocate the mark if the number of allocated polys is insufficient
There was a very rare occurrence where it would hang trying to find a free mark poly, when the number of specified polys was more than the number of allocated polys. This bug also occurs in the original game
2024-11-11 15:14:20 +01:00
smallmodel
d3f3b9b51c
Don't allow lean in single-player in the base game 2024-11-10 17:01:56 +01:00
smallmodel
923a6de394
Clear the velocity when both walking and frozen 2024-11-10 16:07:55 +01:00
smallmodel
8114003c84
Add screenshot/levelshot allowed stuff commands 2024-11-03 18:54:34 +01:00
smallmodel
23f9c1a1e6
Only set the effect angles from the supplied angles if the spawnthing doesn't have angle set 2024-11-02 20:14:30 +01:00
smallmodel
e4b2c863d8
Fix angles not being set correctly from the base 2024-11-02 20:13:23 +01:00
smallmodel
ae16994289
Fix amplitude mistakenly being set instead of the base 2024-11-02 19:46:32 +01:00
smallmodel
b8b17bb0c9
Implement VSS wind 2024-11-02 19:12:09 +01:00
smallmodel
3098fc98d3
Don't change the velocity for VSS, this was a mistake 2024-11-02 19:01:05 +01:00
smallmodel
f3ecfd04da
Use macro flags rather than constant values 2024-11-02 18:41:56 +01:00
smallmodel
0796fab24b
Fix VSS sources not lerping at all 2024-11-02 18:06:56 +01:00
smallmodel
0fda31b430
Fix radial velocity/circle effects not properly applying 2024-11-02 17:52:33 +01:00
smallmodel
84a2b4be76
Use cg_effect_physicsrate instead of a constant value 2024-11-02 17:51:44 +01:00
smallmodel
5269fbb1fa
Don't set the accel flag for swarm FX 2024-11-02 17:26:08 +01:00
smallmodel
f23dfa091e
Fix wrong flag used for checking for PMF_NO_HUD 2024-11-02 13:48:03 +01:00
smallmodel
6ff92f0a7e
Process the ubersound folder differently depending on the target version
- On 1.11 and below, the ubersound folder is parsed either only in dedicated server mode or in client-only mode
- On 2.0 and above, alias are cleared and the ubersound folder is always parsed in multiplayer on both client and server
2024-10-31 23:57:18 +01:00
smallmodel
b4841a878b
Only set the first found mark time and alpha fade 2024-10-31 19:37:42 +01:00
smallmodel
4565b6a9a8
Add cg_addhud and cg_removehud as whitelisted stuff commands 2024-10-31 01:45:37 +01:00
smallmodel
5ba6c006c2
Fix compile error 2024-10-30 00:23:42 +01:00
smallmodel
d3212c55a0
Properly parse and cache ubersounds, and don't cache resources that must be always loaded to avoid filling up sound indexes 2024-10-29 21:02:16 +01:00
smallmodel
b6f8997a01
Make the mark object local to the entity 2024-10-28 20:47:01 +01:00
smallmodel
b2287f3d83
Avoid using nextSnap if the prediction is disabled in the next snap
This prevent blinking issues like flashing arms
2024-10-24 21:56:44 +02:00
smallmodel
8fe87e1067
Handle turret camera flags which has no interpolation 2024-10-24 21:08:26 +02:00
smallmodel
d142ded9ad
Add RF_FRAMELERP flag to ref entity 2024-10-24 21:08:04 +02:00
smallmodel
ff3c25cc07
Add cg_allowvote 2024-10-23 23:09:39 +02:00
smallmodel
c580ccdee1
Only print a warning instead of dropping when the next snapshot is out of range 2024-10-21 21:26:07 +02:00
smallmodel
267e2f4b15
Add a workaround against inactivity timer for mods that handle spectating 2024-10-21 19:25:52 +02:00
smallmodel
78b2637c66
Don't replay animation for new snapshot entities
This prevent cannons effects from replaying due to it being shown when the player exits the cannon
2024-10-20 23:18:00 +02:00
smallmodel
909dc96c2f
Use a separate CG_InterpolateAnimParms function for animation 2024-10-20 22:18:40 +02:00
smallmodel
374b8b9ae7
Add fuse stopwatch 2024-10-20 18:52:50 +02:00
smallmodel
00421a7666
Process client events with the correct order
Effects that are using commanddelay were not working at all, this fixes the processing of delayed events so they get processed sequentially and at the correct time
2024-10-19 22:38:46 +02:00
smallmodel
40834380cf
Check if the snap is valid before getting the client number 2024-10-19 20:39:57 +02:00
smallmodel
50a3df8dff
Fix the instant message maximum number on AA and SH/BT 2024-10-02 21:49:20 +02:00
smallmodel
e01e989c22
Check if the snap is valid when notifying for hit/kill
The game would crash otherwise, this is also an issue in the original game
2024-10-02 20:10:29 +02:00
smallmodel
2f8b6a2009
Satisfy stufftext tests 2024-10-02 12:27:57 +02:00
smallmodel
83938471ca
Set the blue component of the temp model entity
This fixes particles having an incorrect color sometimes
2024-09-29 15:41:35 +02:00
smallmodel
0692b9dcdb
Fix events sometimes not being posted to entities
Fixes #253
2024-09-25 19:41:21 +02:00
smallmodel
3fb699979c
Fix small equality mistake (expected assignment) 2024-09-23 22:44:11 +02:00
smallmodel
85f15a1f28
Delete spawnthings when their last temp model is freed
This fixes:
- Losing FPS in a match with a lot of players, due to a massive amount of emitters getting spawned every time a weapon fires
- Memory leaks due to emitters staying in memory forever after being spawned
2024-09-23 19:29:07 +02:00