Commit graph

1391 commits

Author SHA1 Message Date
smallmodel
2da379bade
Fix typo for nodropweapons 2024-11-03 19:30:56 +01:00
smallmodel
cf8f755f6c
Make comment more clear 2024-11-03 19:23:11 +01:00
smallmodel
bb47ba468c
Fix game.skill and game.detail missing getters 2024-11-03 18:51:27 +01:00
smallmodel
00dbc74269
Use MAX_WEAPON_ANIM_SLOTS instead of a constant 2024-11-03 15:36:55 +01:00
smallmodel
6bac4bd57a
Add assertions to check for valid squad mates 2024-11-03 15:09:27 +01:00
smallmodel
51324aa8e9
Archive the ProjectileTarget ID
The ID was missing during save, this caused issues with projectile generators when looking for a local target
2024-11-03 01:51:17 +01:00
smallmodel
7d1d92980a
Disable the charge life when set to 0 2024-11-03 01:40:34 +01:00
smallmodel
3d42197f50
Initialize the minlife field 2024-11-03 01:26:30 +01:00
smallmodel
8a774c02dc
Call G_BeginIntermission() instead of G_MissionFailed() when calling missionfailed 2024-11-03 00:41:26 +01:00
smallmodel
a644e8a09c
Check for GT_SINGLE_PLAYER instead of 0 2024-11-03 00:40:59 +01:00
smallmodel
6f51427c7c
Add a function to count the number of valid clients 2024-11-03 00:34:33 +01:00
smallmodel
62bcf58d83
Call G_RestartLevelWithDelay instead in G_MissionFailed 2024-11-03 00:33:33 +01:00
smallmodel
f40f206161
Don't add the owner velocity by default
This fixes an issue where AI would throw grenades incorrectly
2024-11-03 00:21:27 +01:00
smallmodel
1235f42143
Set the grenade mode when tossing a grenade with the specified speed 2024-11-03 00:20:47 +01:00
smallmodel
1016bfa1ad
Fix calcgrenadetoss2 not pointing to the correct method 2024-11-03 00:19:31 +01:00
smallmodel
f9ce111784
Set the targetname for projectiles 2024-11-02 22:38:45 +01:00
smallmodel
4f16179c09
getmins/getmaxs are getters instead of returns 2024-11-02 21:46:55 +01:00
smallmodel
6991c9f9f7
Fix save comment not having the proper string 2024-11-02 21:22:24 +01:00
smallmodel
32c3964474
Fix the source line having the entire file 2024-11-01 00:11:09 +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
c795b2390e
Add a ScriptMaster constructor 2024-10-31 23:55:12 +01:00
smallmodel
ce7005103c
Handle the case where a vector is given for the face command 2024-10-31 23:51:36 +01:00
smallmodel
1e036a7689
Clear the torso and legs state when the movement type is set to portable turret 2024-10-31 19:49:05 +01:00
smallmodel
858b27b809
Handle the case where the legs or the torso state is NULL 2024-10-31 19:48:30 +01:00
smallmodel
0d01ea939d
Fix whole script file being printed sometimes on error 2024-10-30 21:25:15 +01:00
smallmodel
2ce5e498ab
Use CurrentScriptThread() when getting the current script class
So if the current thread is NULL, it will properly throw an exception
2024-10-29 21:11:44 +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
becf9f5d8c
Cache the source position to improve the source search time
This greatly reduces the time to compile big scripts
2024-10-29 20:26:51 +01:00
smallmodel
48fa5c0ce6
Parse all scr files inside the ubersound folder 2024-10-28 23:29:04 +01:00
smallmodel
9e04f94625
Check if the entity is valid after processing pending events during spawn 2024-10-28 23:14:46 +01:00
smallmodel
497058d7f4
Make the driver nonsolid while moving 2024-10-28 22:30:52 +01:00
smallmodel
a509dd4692
Fix vehicle exit position when targeting the base game
The base game always uses, when specified, the exit position
2024-10-28 22:25:49 +01:00
smallmodel
aa118bceb3
Set the door speed based on the door type 2024-10-28 20:59:58 +01:00
smallmodel
bf68808eae
Set the skel index for each updated entity so poses only update when needed
This fixes poses being updated even if they don't need update (no frame changed), which resulted in some performance loss and some rare accuracy issues when AI fire weapons
2024-10-28 00:55:37 +01:00
smallmodel
5cbd2dd988
Use true/false rather than qtrue/qfalse 2024-10-28 00:45:21 +01:00
smallmodel
92b4ae2702
Use ANIM_WEIGHT_NONE instead of 0 2024-10-27 22:16:04 +01:00
smallmodel
a8cdf0b5ad
Don't update the upper animation if the think state is attack/grenade/killed/pain 2024-10-27 21:48:13 +01:00
smallmodel
558e69dba8
Archive the vehicle name
This was missing and this allows the torso state to the modheight to set the bounding box height. Before that, it did not recognize the turret so the modheight was still set to stand. It caused issues when trying to get out a vehicle turret, like the flak88 in e1l1 (the player wasn't able to get out of the turret)
2024-10-27 14:27:44 +01:00
smallmodel
6934e5cff8
Check for valid target list in GetScriptTarget() 2024-10-27 12:16:19 +01:00
smallmodel
c7cdde7bc2
Check if the target list is valid before adding the entity 2024-10-26 22:42:21 +02:00
smallmodel
940ac789b9
Change the current fov only if the fov is currently the selected fov
This prevents the player from modifying the fov while zooming
2024-10-26 22:42:18 +02:00
smallmodel
0ad5222946
Use the correct stopwatch for explosives 2024-10-26 13:34:33 +02:00
smallmodel
679cf4b7ec
Correctly remove "prespawn"/"spawn" waittill when loading from save 2024-10-26 13:27:32 +02:00
smallmodel
3c1500002b
Implement the destructor for the World class to free up the target list 2024-10-25 20:44:00 +02:00
smallmodel
005a278210
Use CF_CAMERA_ANGLES_TURRETMODE 2024-10-24 21:08:52 +02:00
smallmodel
976e2ae022
Remove useless GetSentientOwner() 2024-10-24 21:08:44 +02:00
smallmodel
090f362bb6
Declare g_allowvote as a serverinfo variable 2024-10-23 23:10:22 +02:00
smallmodel
9e0c11a970
Reset scoreboard values like the objective and the picture when initializing a new game 2024-10-23 21:04:23 +02:00
smallmodel
fcd2d2e668
Use the correct weapon selection menu 2024-10-23 20:15:29 +02:00
smallmodel
de1d3b6ef4
Don't reset the client structure on single-player 2024-10-22 22:36:46 +02:00