Commit graph

1444 commits

Author SHA1 Message Date
smallmodel
3089cc8bc3
Avoid assigning the token to an str 2023-08-19 21:17:52 +02:00
smallmodel
a307450e17
Made sourceLine argument optional to avoid string allocation 2023-08-19 21:12:03 +02:00
smallmodel
50cfc7e5ad
Added STRING_VIEWMODELANIM_DONE 2023-08-19 21:06:25 +02:00
smallmodel
5b82cc4f11
Made Event::ErrorInternal const
Fixed ProcessEvent() not handling exceptions
2023-08-19 21:00:04 +02:00
smallmodel
a83a76da95
Create an event with the argument count 2023-08-19 20:49:39 +02:00
smallmodel
2e4759ab1f
Using m_RunLabel instead of trying to get the game script everytime 2023-08-19 20:49:20 +02:00
smallmodel
af056d7646
Create an event with pcmd->num_args 2023-08-19 20:49:03 +02:00
smallmodel
46e57f0a1f
Added maxDataSize so the event can be preallocated 2023-08-19 20:48:46 +02:00
smallmodel
fe5473bc85
Added Set and SetScript with const_str
Fixed try/catch
2023-08-19 20:48:03 +02:00
smallmodel
1a03288144
SetFastData: Move the ScriptVariable instead of copying it 2023-08-19 20:47:36 +02:00
smallmodel
0c2326480b
Avoid reallocation if the assigned ScriptVariable is the same as the other ScriptVariable 2023-08-19 20:47:14 +02:00
smallmodel
24f3b3bc93
Added anyValue union field 2023-08-19 20:46:42 +02:00
smallmodel
459aa89ca2
Check if sourceLength is -1 instead 2023-08-19 20:46:24 +02:00
smallmodel
ec8eaacc69
Fixed "vstr" in the nextmap argument 2023-08-19 19:49:28 +02:00
smallmodel
a30f78e834
Prevent sv_maxbots + sv_maxclients from reaching MAX_CLIENTS 2023-08-19 19:35:20 +02:00
smallmodel
d22cda594f
Fixed TeamHitScoreLimit() (should use m_teamwins) 2023-08-19 19:34:57 +02:00
smallmodel
8cfa909b73
Reset bots on CleanUp
Fixed issues with WaitTill registration
2023-08-19 18:22:01 +02:00
smallmodel
86a6dd020f
Check for WaitTillAllowed instead 2023-08-19 18:21:32 +02:00
smallmodel
556133fa11
Use STRING_ROUNDSTART instead of "roundstart" 2023-08-19 18:20:26 +02:00
smallmodel
4001de1dde
Implemented WaitTillAllowed for all classes 2023-08-19 18:10:38 +02:00
smallmodel
7a57a25c58
Reworked the bot system 2023-08-19 17:58:54 +02:00
smallmodel
d95cdcc142
Moved bot functions to g_bot.cpp 2023-08-19 16:03:42 +02:00
smallmodel
d2a967e577
Don't use the explicit class name to access Entry_allocator 2023-08-19 15:48:50 +02:00
smallmodel
84adaa07e0
Removed reverse_label_list (use label_list enumeration instead) 2023-08-19 15:48:29 +02:00
smallmodel
2efeb7e972
Don't call Unregister with "delete" and "remove" in the destructor as UnregisterAll() will already do it
Don't call CancelPendingEvents() if the event system hasn't started
2023-08-19 15:39:59 +02:00
smallmodel
b9655e3f19
Fixed memory leaks: free all memory allocated by the game module 2023-08-19 15:24:37 +02:00
smallmodel
dce004ef13
Don't FreeAll() when destructing the block allocator, because it could be executed before containers destruction 2023-08-19 15:24:12 +02:00
smallmodel
b9f1530eec
G_ShutdownGame: shutdown events and deallocate game data 2023-08-19 15:23:48 +02:00
smallmodel
9b15b27f28
Removed CRT check debug flag 2023-08-19 13:36:54 +02:00
smallmodel
ff2e64a742
Fixed a tiny mistake present in all mohaa versions, with a possible overflow in client index in PF_centerprintf and PF_locationprintf 2023-08-19 13:36:12 +02:00
smallmodel
4e38b803fb
Fixed G_Random/G_CRandom 2023-08-19 13:32:32 +02:00
smallmodel
9825e1e6f2
Formatted source files 2023-08-19 03:02:30 +02:00
smallmodel
b278f2eafa
Var integer access fix 2023-08-19 03:00:19 +02:00
smallmodel
25912079db
Return NULL for ulist::GetPosition 2023-08-19 03:00:07 +02:00
smallmodel
b1753df1ed
Reworked con_set and con_arrayset so that they have their own Entry class 2023-08-19 02:56:51 +02:00
smallmodel
843b49d56b
Allow operator new and operator delete to be called when debugging memory 2023-08-19 02:19:01 +02:00
smallmodel
00644e7605
Alloc() and Free() will call malloc directly when debugging memory 2023-08-19 02:18:41 +02:00
smallmodel
93814bd05b
Fixed Skel_Alloc and Skel_Free macros when debugging memory 2023-08-19 02:18:11 +02:00
smallmodel
438ed2c0ea
Added a way to debug CRT heap (currently only on Windows with MSVC) 2023-08-19 02:17:45 +02:00
smallmodel
0310475957
Don't make "addbot", "removebot" and "bot" public commands 2023-08-19 02:17:12 +02:00
smallmodel
435bfe1271
Initialize angular_delta to 0 2023-08-19 01:38:38 +02:00
smallmodel
7ca532f0e4
FL_ANIMATE is 0x100000 2023-08-19 01:38:25 +02:00
smallmodel
8c3997f13b
Implemented Projectile::Think from mohaas/mohaab 2023-08-19 01:32:54 +02:00
smallmodel
d8ae1ce6b9
Added NULL to the end of SmokeGrenade event responses 2023-08-19 01:32:33 +02:00
smallmodel
5cb1e5de84
Fixed Vector_DotProduct returning wrong values 2023-08-19 01:02:18 +02:00
smallmodel
7fd2aff17b
Fixed entity trace with no valid trace 2023-08-19 00:58:06 +02:00
smallmodel
b9f3ee867b
Fixed switch label with "default" case 2023-08-19 00:57:29 +02:00
smallmodel
f16b992a97
Fixed assignments with case-insensitive event names 2023-08-19 00:57:19 +02:00
smallmodel
9ba5710412
Fixed variable comparison operators with VARIABLE_CHAR 2023-08-19 00:57:02 +02:00
smallmodel
7e6854f96b
Fixed EventPointsWithinDist taking the wrong argument number for the distance 2023-08-19 00:35:48 +02:00