smallmodel
47a447dbb0
Remove all state scripts that were created
...
This fixes a memory leak that also occurs in the original game
2025-02-18 21:08:44 +01:00
smallmodel
a1d47cf64a
Add placement new/placement delete
2025-02-18 20:54:24 +01:00
smallmodel
a5bb4c1874
Free up debug strings when deallocating game-data
...
This fixes a memory leak, which also occurs in the original game
2025-02-18 20:43:03 +01:00
smallmodel
22b593215f
Implement stop, threadmove and moveoffset
Build branch / build-all (push) Failing after 24s
CodeQL / Analyze (push) Has been cancelled
2025-02-15 14:39:54 +01:00
smallmodel
68181acec7
Implement Stop()
2025-02-15 14:39:39 +01:00
smallmodel
3af35fa610
Correctly parse the function name in ScriptDeprecatedAlt
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 16s
2025-02-15 00:51:19 +01:00
smallmodel
2c12d4f2de
Add a newline to ScriptDeprecatedAlt functions
2025-02-15 00:46:24 +01:00
smallmodel
bbac9c559c
Escape variable name
2025-02-14 23:54:15 +01:00
smallmodel
03eaa62902
Merge pull request #666 from ysdragon/fix-openbsd-compilation
...
Build branch / build-all (push) Failing after 14s
CodeQL / Analyze (push) Has been cancelled
Fix compilation under OpenBSD
2025-02-08 23:33:58 +01:00
smallmodel
dcca5ed469
Merge branch 'ladder_getters'
2025-02-08 22:23:00 +01:00
smallmodel
2aa46f5a52
Add getters to get facing dir and angles for FuncLadder
2025-02-08 22:22:53 +01:00
smallmodel
ff3c27ab20
Fix assertion when the height is identical between vert0 and vert1
2025-02-08 20:28:46 +01:00
ysdragon
833408c663
Don't link against rt for musl and *BSD platforms
2025-02-08 04:03:24 +02:00
ysdragon
38d9f98221
Update gsPlatformThread.h to include pthread for OpenBSD
2025-02-08 03:49:24 +02:00
smallmodel
b90bbd9dcf
Format document
2025-02-06 22:56:49 +01:00
smallmodel
e8f69e197c
Initialize variables from the class
2025-02-06 22:56:24 +01:00
smallmodel
9922a7095b
Activate the control and connect dialog's W_Deactivated after its creation
...
As the control is activated before, the connection should be done after the activation because ActivateControl() sends W_Activated to the UIFloatingWindow, which will cause ActivateControl() to be called again to activate the dialog's title bar button (and would deactivate the gamespy dialog)
2025-02-06 22:50:21 +01:00
smallmodel
3c836144e2
Move widget object creation from the constructor to FrameInitialized()
2025-02-06 22:41:50 +01:00
Richard Radics
fcba3bed95
feat: add GameSpy service unavailable dialog
...
resolves #127
2025-02-05 23:12:05 +01:00
Richard Radics
fd4f5e7d51
fix: fix elapsed time and logged date in loadgame ui
...
fixes #545
2025-02-04 22:14:52 +01:00
smallmodel
c77fcd2cbc
Clear the edict model when freeing the edict
...
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 15s
This fixes an issue where configstrings or game state chars would overflow when many models (such as actors with random headmodels/headskins) are spawned
2025-02-04 21:28:37 +01:00
smallmodel
49335ba8a8
Fix improper check of dir->path empty string
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 14s
2025-02-04 00:08:37 +01:00
smallmodel
8ac186ce17
Mark Archive() as override
2025-02-04 00:08:16 +01:00
smallmodel
ca2322a4da
Add recursive check in Com_Printf
...
This prevents recursive call to Com_Printf during localization and also remove localization errors
2025-02-04 00:03:30 +01:00
smallmodel
a1e7afac76
Prevent using a trick to spoof another name in 1.11 and below
2025-02-03 23:51:40 +01:00
smallmodel
2f75092d8b
Reserve console name for DMMessage
2025-02-03 23:42:38 +01:00
smallmodel
0b12d160bb
Properly construct all objects that has been allocated with AddObjectAt()
2025-02-03 21:28:13 +01:00
smallmodel
330b45a1ed
Fix container object list not constructed when loading
2025-02-03 21:27:44 +01:00
smallmodel
ad01c2d966
Fix wrong flags getting checked for allowed weapons
2025-02-03 20:43:03 +01:00
smallmodel
eaa7f10b36
Remove useless print
2025-02-03 20:24:26 +01:00
smallmodel
32411b2a90
Rename player_damage
to player_damaged
.
...
The name was ambiguous. The delegate is triggered when the player gets hit (getting damaged), and not when the player damages someone else. The name properly matches the action.
2025-02-03 19:35:04 +01:00
smallmodel
32f850556e
Set the self
object when triggering the delegate
2025-02-03 19:33:41 +01:00
smallmodel
fd94f53e25
Add a delegate for player text messages
...
self = the player who sent the message
first parameter = the text
second parameter = is team message?
2025-02-03 19:32:14 +01:00
smallmodel
4aa7e06a56
Make ev optional for Trigger()
2025-02-03 19:23:54 +01:00
smallmodel
033b76af14
Allow the self object to be specified
2025-02-03 19:22:29 +01:00
smallmodel
e37a5f4d06
Add "isBot" to check whether or not the player is a bot
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 14s
2025-02-02 21:02:06 +01:00
smallmodel
58e12e0141
Reset delegates on restart
2025-02-02 19:35:01 +01:00
smallmodel
e6cbd00871
Add script delegates matching common scripted events
2025-02-02 19:18:55 +01:00
smallmodel
1eb7458af9
Add event_subscribe and event_unsubscribe scripting commands
2025-02-02 19:14:07 +01:00
smallmodel
38cf5b82b2
Copy the list of registered delegates to execute them
2025-02-02 17:07:03 +01:00
smallmodel
a5c59c4b77
Use maxDataSize when copying Event
2025-02-02 16:50:07 +01:00
smallmodel
d190cc6e40
Use SafeAddFirst
2025-02-02 16:35:27 +01:00
smallmodel
8234ce1e5f
Add pragma once
2025-02-02 16:20:14 +01:00
smallmodel
e962e4e1f5
Use an int instead of a size_t
2025-02-02 16:03:40 +01:00
smallmodel
ee970a3fce
Remove PlayerBot class and use delegates instead
2025-02-02 16:02:56 +01:00
smallmodel
9242faaa49
Add delegate for stufftext
2025-02-02 16:02:22 +01:00
smallmodel
b813f7ee56
Add delegates related for kill/damage
2025-02-02 16:02:11 +01:00
smallmodel
7f64ef05d5
Mark Event getter methods as const
2025-02-02 16:01:41 +01:00
smallmodel
9cb593c9e4
Add support for event subscription (delegates)
2025-02-02 15:58:04 +01:00
smallmodel
cfb343d262
Add str move constructor/assignment
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 13s
2025-02-01 15:52:58 +01:00