Commit graph

1683 commits

Author SHA1 Message Date
smallmodel
155734370c
Using Archive algorithm from mohaas/mohaab 2023-09-14 00:19:55 +02:00
smallmodel
1095e3d509
call arc.Close() after checking if it was Loading 2023-09-14 00:19:17 +02:00
smallmodel
f7bfa47f2e
Made ScriptVariable classes part of LightClass 2023-09-13 23:51:33 +02:00
smallmodel
9f6ef14ea1
GetCompiledScript should remain unused 2023-09-13 21:32:58 +02:00
smallmodel
15de08556e
Formatted document 2023-09-13 19:46:39 +02:00
smallmodel
e7dfa8fcfe
Fixed command buffer not being able to hold the last character 2023-09-13 00:07:51 +02:00
smallmodel
7a67dc5dfd
Implemented bad places 2023-09-13 00:00:42 +02:00
smallmodel
7eb8ef42b7
Update smoke sprites and bad places every frame 2023-09-12 23:59:51 +02:00
smallmodel
c9c7a4beed
Implemented PathSearch::UpdatePathwaysForBadPlace 2023-09-12 23:59:38 +02:00
smallmodel
bcf3aad1b2
Added PointToSegmentDistanceSquared 2023-09-12 23:35:22 +02:00
smallmodel
ad75363028
Added more variables to archive for Level 2023-09-12 21:48:08 +02:00
smallmodel
f4ec3939a5
Weapon::Shoot(): process default value in switch/case for firemode 2023-09-12 21:47:51 +02:00
smallmodel
aead97d29d
Implemented landmarks from mohaab 2023-09-12 21:39:19 +02:00
smallmodel
f468305a2c
Level::Init(): Remove archived entities, reset health queue, initialize vote and free landmarks 2023-09-12 20:37:01 +02:00
smallmodel
a962f469eb
Added health queue 2023-09-12 20:33:49 +02:00
smallmodel
63e025cc02
Fixed 1022 characters command limit for SV_SendServerCommand (must be MAX_STRING_CHARS) 2023-09-12 20:14:58 +02:00
smallmodel
b2d332f152
SV_GameSendServerCommand: Allocate the buffer dynamically on stack
This fixes long commands not being sent
2023-09-12 20:13:37 +02:00
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