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
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
1a18878f26
Parse unary operators last when calling events
2024-10-31 22:16:20 +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
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
9ffb407d11
Fix incorrect/uninitialized token returned when there is a macro
2024-10-31 01:31:41 +01:00
smallmodel
0f3ffa267a
Parse const array elements properly
2024-10-31 01:22:38 +01:00
smallmodel
74c8aa95f5
Properly ignore single-digits
2024-10-30 23:21:14 +01:00
smallmodel
4853235d86
Don't parse the token as a variable if the identifier only contains number
...
This fixes an issue where floats would be parsed as a variable after brackets
2024-10-30 22:42:55 +01:00
smallmodel
0d01ea939d
Fix whole script file being printed sometimes on error
2024-10-30 21:25:15 +01:00
smallmodel
5ba6c006c2
Fix compile error
2024-10-30 00:23:42 +01:00
smallmodel
22e7d1e2e4
Only put animation definitions that exist, rather than setting a NULL animation definition
...
This fixes issues when searching animations by name
2024-10-29 22:27:22 +01:00
smallmodel
c650af7b55
Fix stack corruption due to an improper assignment to the alias
2024-10-29 21:37:31 +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
9cd8133068
Fix the directory prefix when using filters for FS_ListFilteredFiles
2024-10-29 20:25:25 +01:00
smallmodel
48fa5c0ce6
Parse all scr files inside the ubersound folder
2024-10-28 23:29:04 +01:00
smallmodel
6fc7199719
Register server sounds in multiplayer
2024-10-28 23:28:05 +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
c9b844b9ea
Count the number of loaded anims and don't return a valid animation definition if there are no loaded animations
2024-10-28 22:57:52 +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
8fdfffab36
Keep the mouse cursor position when the client disconnects
2024-10-28 21:13:47 +01:00
smallmodel
aa118bceb3
Set the door speed based on the door type
2024-10-28 20:59:58 +01:00
smallmodel
4d27a6daa3
Fix incorrect vert dist
2024-10-28 20:55:03 +01:00
smallmodel
b6f8997a01
Make the mark object local to the entity
2024-10-28 20:47:01 +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
e8dfa0206b
Use a macro constant for movement/action skan blend frames
2024-10-27 21:39:16 +01:00
smallmodel
afe1ba47cf
Decrease the time tolerance between frames to make animations smoother
2024-10-27 19:37:56 +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
da7cd03f09
Increase packed animation time precision
...
This tries to fix some client commands replaying
2024-10-27 13:42:42 +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