Commit graph

1716 commits

Author SHA1 Message Date
smallmodel
e160cf240c
Fixed vote not working properly 2023-09-12 20:12:09 +02:00
smallmodel
19a4f70c44
Made ExecuteConsoleCommand accept a const char* instead 2023-09-12 00:19:08 +02:00
smallmodel
dcca3901d5
Initialize more Level variables 2023-09-12 00:18:09 +02:00
smallmodel
0ee4ffbfbc
Implemented vote system (from mohaas/mohaab) 2023-09-12 00:07:10 +02:00
smallmodel
776bc781cd
Added ExecuteConsoleCommand() game import 2023-09-11 21:41:39 +02:00
smallmodel
b1bb79e19f
Added Player::HasVotedYes() and Player::HasVotedNo() 2023-09-11 21:28:05 +02:00
smallmodel
76c69b7bd1
Implemented Player::CallVote from mohaas/mohaab 2023-09-11 20:45:30 +02:00
smallmodel
15a25a412f
Removed m_voteCommand and added m_nextVoteTime 2023-09-11 20:45:07 +02:00
smallmodel
b511d89dcc
Fixed farplane entity dist check when it is 0 2023-09-11 00:06:21 +02:00
smallmodel
9512ae7aeb
Added TurretGun methods from mohaas/mohaab 2023-09-11 00:02:10 +02:00
smallmodel
5db086e470
Made GetMuzzlePosition a virtual method 2023-09-10 23:54:30 +02:00
smallmodel
b29f62ddd4
Fixed EventSetTurret crashing when the listener is NULL 2023-09-09 20:58:58 +02:00
smallmodel
525dc17573
Ignore NULL tiki
This fixes frequent crashes with NULL models
2023-09-09 20:53:59 +02:00
smallmodel
4d8ed24833
Fixed TIKI_ParseAnimations incorrectly returning 2023-09-09 20:49:08 +02:00
smallmodel
aa15d996e0
Removed AnimOnce 2023-09-09 20:41:36 +02:00
smallmodel
0ec846945d
Use edict->tiki instead of calling gi.modeltiki (which can crash because of an empty model string) 2023-09-09 20:41:03 +02:00
smallmodel
03ff158e76
Fixed crash when setting actor's patrol node 2023-09-09 20:02:02 +02:00
smallmodel
b3371b2d63
Fixed static models collapse array being wrong
This would cause static models to disappear
2023-09-09 17:56:47 +02:00
smallmodel
3d936dede1
Don't change the protocol when in special game 2023-09-09 16:46:51 +02:00
smallmodel
33e9c5b1ea
Formatted source files 2023-09-09 16:46:42 +02:00
smallmodel
078c90bbc9
Create a ScriptThread directly rather than calling Director.CreateScriptThread
This avoids exception when called by ScriptThreadLabel::Execute(). Because Execute() doesn't have try/catch, the program would crash.
2023-09-09 16:42:15 +02:00
smallmodel
2caf2cad5a
Fixed improper usage of alloca()
alloca() can cause a stack overflow when it is called multiple times
2023-09-07 20:20:18 +02:00
smallmodel
5dec21dd43
Include <utility> for std::move 2023-09-07 20:01:07 +02:00
smallmodel
36aa9bd802
Don't replace Z_Malloc, Z_TagMalloc and Z_Free in debug memory mode 2023-09-07 19:48:08 +02:00
smallmodel
bed2f15a72
Initialize more members for UIWidget
m_scaleCvar was not initialized to NULL, which could cause crashes
fadeSequence was not initialized
2023-09-07 19:32:35 +02:00
smallmodel
f949f1e88d
Fixed offset of block in Free() with _DEBUG_MEMBLOCK 2023-09-07 19:31:17 +02:00
smallmodel
8af202bd5f
Fixed compilation errors with DEBUG_MEMORY on Linux because of CRT 2023-09-07 19:29:24 +02:00
smallmodel
67556a88f1
Fixed errors when compiling with DEBUG_MEMORY 2023-09-07 19:06:06 +02:00
smallmodel
4f8573784d
Removed con_set inheritance from con_arrayset 2023-09-07 18:58:27 +02:00
smallmodel
c5a46be23e
Optimized calls to Event() (avoid allocating a new Event when it can be reused) 2023-09-07 18:22:07 +02:00
smallmodel
47a3c0bf55
Optimized event name
Use a static char*, instead of an allocated str
2023-09-07 18:05:49 +02:00
smallmodel
e8d2a2a461
Instantiate AnimationEvent on stack rather than dynamically allocating it. Optimized cmd name for client commands 2023-09-07 17:33:35 +02:00
smallmodel
7b72a3fba4
Fixed MemArchiver improperly working 2023-09-06 23:34:16 +02:00
smallmodel
dda79e7f27
Moved some tempmodels code to cg_tempmodels.cpp and implemented FreeSomeTempModels() 2023-09-06 23:25:48 +02:00
smallmodel
9a104566ba
Added MemArchive feature from mohaas/mohaab 2023-09-06 23:11:43 +02:00
smallmodel
b4d8982341
Implemented CG_ArchiveVSSGlobals() 2023-09-06 20:54:58 +02:00
smallmodel
5ea3fc28f7
Added FS_ListFilteredFiles, FS_FreeFileList, R_GetModelName and R_GetShaderName to client game imports 2023-09-06 20:31:50 +02:00
smallmodel
0bbf39660e
Added R_GetShaderName and R_GetModelName 2023-09-06 20:31:28 +02:00
smallmodel
791f38762b
Added MemArchiver::ArchiveSize 2023-09-06 19:58:19 +02:00
smallmodel
c296b909c7
Fixed iTagR initialization 2023-09-06 00:00:50 +02:00
smallmodel
9c7a54f8fc
Added and implemented MemArchiver class 2023-09-05 23:57:51 +02:00
smallmodel
4289eab72b
Don't define MemArchiver in cg_archive.h 2023-09-05 23:57:18 +02:00
smallmodel
7b0dbc7445
Save the client game state in SV_ArchiveLevelFile 2023-09-05 20:33:02 +02:00
smallmodel
02db904336
Made CG_SaveStateToBuffer and CG_LoadStateToBuffer use a size_t 2023-09-05 20:31:24 +02:00
smallmodel
55140fee3a
Replaced #ifdef CLIENT with #ifndef DEDICATED 2023-09-05 20:22:01 +02:00
smallmodel
96d881a1f1
Made ui_public.h compilable to C code 2023-09-05 20:18:05 +02:00
smallmodel
260a95c05e
Added S_SaveData (unimplemented) 2023-09-05 20:17:51 +02:00
smallmodel
99d633587f
Renamed S_StopAllSounds to S_StopAllSounds2 2023-09-05 20:17:38 +02:00
smallmodel
cf2f0256a2
Moved UI_SetupFiles to ui_public.h 2023-09-05 20:00:54 +02:00
smallmodel
dae8e8dfbd
Fixed archive not always archiving soundsystemsavegame_t 2023-09-05 19:53:57 +02:00