1465 Commits

Author SHA1 Message Date
Kawe Mazidjatari
0e5073d5e4 Update playlists_r5_patch.txt
Use regular beta watermark version
2022-10-20 16:57:37 +02:00
kralrindo
991c0cacc3 update playlist 2022-10-20 16:57:37 +02:00
Kawe Mazidjatari
1bafc3c75c Add mp_rr_arena_skygarden to VPK build system 2022-10-20 16:55:42 +02:00
Kawe Mazidjatari
f3f97339d1 Improve playlist formatting 2022-10-20 16:24:46 +02:00
kralrindo
3642951bea add volt and sentinel into playlist 2022-10-20 16:21:59 +02:00
Kawe Mazidjatari
4509bc385b CConsole::SuggestPanel inprovements
* Cache m_vSuggest.size().
* Use const reference to m_vSuggest[i].
2022-10-20 15:22:20 +02:00
Kawe Mazidjatari
f6e0fd8d92 Remove extraneous string copy constructor 2022-10-20 15:07:40 +02:00
Kawe Mazidjatari
f887ac509e Use StringRTrim to trim convar string before building console summary 2022-10-20 14:57:45 +02:00
Kawe Mazidjatari
49658c498f Fix private server modal size not being set correctly
ImGui::PopStyleVar() had to be called before ISurface::DrawSurface().
2022-10-20 14:37:21 +02:00
Kawe Mazidjatari
c7d828610d Fix server browser not claiming focus on window apparition
The console draws focus as it does SetKeyboardFocusHere(-1) (on the previous widget, which is the input text field). We don't do this in the server browser, so we must explicitly claim focus by calling SetNextWindowFocus() once before the next frame gets renderer.
2022-10-20 14:23:24 +02:00
Kawe Mazidjatari
4bc0aaf1e6 Fix launcher command line for client.dll
Launcher command line did not pass "-noworkerdll" which is required if the game is launched as game client only.
2022-10-20 14:23:24 +02:00
Kawe Mazidjatari
3dc330e5df Add minimize button to SDK launcher 2022-10-20 14:23:24 +02:00
Kawe Mazidjatari
5f84803ac6 ImGui and DirectX code improvements
* Fix history duplication by removing trailing white space characters from submitted commands in console.
* Fix out of range exception caused by caching svConVar.size() in CConsole::BuildSummary while we are modifying it.
* Fixed memory leak  caused by extraneous Strdup calls in CConsole.
* Renamed variables and structure members, static vars in id3dx.cpp are not prefixed with s_, IBrowser_Config is now m_BrowserConfig.
* Performed code cleanup in id3dx.cpp.
2022-10-20 12:29:50 +02:00
Kawe Mazidjatari
31845425d6 Only enable/disable input system on open/close events
Previously we enabled/disabled the input system each frame, depending on the state of the ImGui windows. This commit changes the behavior into only enabling/disabling when the menu's are closed (either through the keyboard or the close button).

I added a simple callback to ImGui::Begin which will be called when the close button on the ImGui panel is pressed and the callback pointer isn't nullptr, this was required as there was otherwise no way to determine when the close button was clicked.
2022-10-20 12:29:50 +02:00
Kawe Mazidjatari
44f2f87460 CConsole: heavy cleanup
* Move all default assignments to constructor.
* Rename cvar 'con_max_size_logvector' to 'con_max_lines'.
* Rename cvar 'con_max_size_history' to 'con_max_history'.
* Use array indexes instead of hardcoding context prefixes.
* Added netcon context prefix to help legend.
* Added public method to obtain history as string vector.
* Added public method to clear history.
* Internal CConsole::AddLog no longer locks the mutex.
* CConsole::LoadFlagIcons accesses resource vector by reference.
* Implemented "HELP", "HISTORY" and "CLEAR" as real console commands: "con_help", "con_history", "con_clearlines".
* Added a new command "con_clearhistory" (clears the dev console submission history).
2022-10-20 12:29:50 +02:00
Kawe Mazidjatari
d113774a6d Console improvements and new command
* Commented "ImGui::SetItemDefaultFocus()", this seems to somewhat fix the issue where the input field does not claim focus on console invocation.
* Added command "con_removeline" (removes lines from start to end index).
2022-10-20 12:29:49 +02:00
Kawe Mazidjatari
ad844269b8 Update ai_networkmanager.cpp 2022-10-20 12:29:49 +02:00
Kawe Mazidjatari
19d514d7f4 Pak_ListPaks_f cleanup
* Get RPakLoadedInfo_t as const reference from g_pLoadedPakInfo array.
* Improve formatting.
2022-10-16 15:41:23 +02:00
Kawe Mazidjatari
ae8f0cb2ab RTech_Decompress_f cleanup
Improve log and code readability.
2022-10-16 15:31:21 +02:00
Kawe Mazidjatari
9e9f29f4db CMDLCache: fix bug and light cleanup
* Fixed bug where we did not reset m_pErrorHDR to nullptr (m_pEmptyHDR was reset twice).
* Light code cleanup.
2022-10-15 00:07:51 +02:00
Kawe Mazidjatari
84dbc529d7 Reorder tier1 header include in mdlcache.cpp 2022-10-14 02:31:10 +02:00
Kawe Mazidjatari
47beb282f2 RTech cleanup and improvements
* Combined members of TextureHeader_t and RTechTextureInfo_t.
* Renamed 's_pRTechBytesPerPixel' to 's_pBytesPerPixel' and declared const.
* Renamed 'dxgiToRPakFormat' to 's_DxgiToTxtrTable' and declared const.
* Renamed 'rpakToDxgiFormat' to 's_TxtrToDxgiTable' and declared const.
* Moved 'g_DxgiToTxtrTable' and 'g_TxtrToDxgiTable' to 'texture.g.h'.
* Moved 's_pBytesPerPixel' to 'texture.g.h'.
* Fixed defect where we used the [] operator on a std::map that should be const (s_TxtrToDxgiTable), replaced with the const version of std::map::at.
2022-10-13 21:59:06 +02:00
Marvin D
2059e23738 TraceRay with filter 2022-10-13 17:03:51 +02:00
Marvin D
82c60c466a CEngineTrace init 2022-10-13 16:48:56 +02:00
Kawe Mazidjatari
fb7f77f7cb Fix dedicated.dll compile errors 2022-10-13 02:41:09 +02:00
Kawe Mazidjatari
50fee7414d Missing material error logging
This commit implements missing material error logging.
When a material does not exist, it will get replaced with an error material, we log which material is missing, and with which error material it gets replaced with.
This commit also comes with some updates regarding the CMaterialGlue class, and some new types used by this class from the RePak project.
2022-10-13 02:22:50 +02:00
Kawe Mazidjatari
f16d538aee CPackedStore: light optimizations
* Don't call copy constructor on entry blocks when building the directory file.
* Don't call copy constructor for string when we don't want to sanitize the directory file name.
2022-10-12 23:39:26 +02:00
Amos
05ef7be4f4 Update IConVar.cpp 2022-10-12 16:20:45 +02:00
Amos
780b968bc7 CPackedStore::GetDirectoryFile optimizations
Break when we have a locale, or found the context.
Removed extraneous logic/vars.
2022-10-11 16:31:00 +02:00
Amos
142c0d1de5 CPackedStore: fix directory file name sanitizer
The sanitizer can retrieve the directory file name from the block file name if this is passed instead. This was broken in the previous system. Sanitization can be opted out if the 3rd parameter of the 'fs_vpk_unpack' command is omitted.
2022-10-11 15:37:34 +02:00
Kawe Mazidjatari
addf815873 BHit_f light cleanup 2022-10-11 01:32:43 +02:00
Kawe Mazidjatari
2675fca219 Use Q_stricmp macro 2022-10-11 01:24:08 +02:00
Kawe Mazidjatari
dac63ee5ef Add FCVAR_REPLICATED console flag icon 2022-10-11 01:22:21 +02:00
Kawe Mazidjatari
74f8c15481 Add assert for recursive shutdown 2022-10-11 01:21:26 +02:00
Kawe Mazidjatari
530b645a4d Additional AI Network render optimizations
* Make box's mins and maxs static const.
* Use SSE to pack 4 indices into 1 128bit register, and shuffle to prevent duplication. Only 2 indices are used at the moment.
2022-10-11 01:20:59 +02:00
Kawe Mazidjatari
bc3b580525 Add logic for preventing recursive SDK initialization
This allows for loading the game with the client.dll without loading the main worker/sdk dll. gamesdk.dll is imported by the game executable, so we cannot circumvent its loading without some hacks, so instead, we just check if -noworkerdll is passed and not perform any init if its present.
2022-10-09 12:41:22 +02:00
Kawe Mazidjatari
1e23ddbf35 Fix client dll crash during squirrel script init
The 'developer' cvar was nullptr because it was never assigned to the developer cvar address (it was defined away).
2022-10-09 12:38:16 +02:00
Kawe Mazidjatari
99a33e95f1 Additional VPK lib cleanup and performance improvements 2022-10-09 12:08:54 +02:00
Kawe Mazidjatari
8880f4e7f0 Rename "Enable Development" to "Enable Developer" in SDK launcher
Renamed to "Developer" as this is the name of the cvar, and the global define within the script API. This should express the intention more clearly.
2022-10-07 22:33:37 +02:00
Kawe Mazidjatari
c1ca5d0878 Fix spelling mistakes in Recast & Detour library 2022-10-07 22:32:08 +02:00
Kawe Mazidjatari
10f728081c CConsole::FindFromPartial light cleanup
Improve readability by moving logic out of conditional scopes.
2022-10-07 22:31:16 +02:00
Kawe Mazidjatari
703caebe6b Unload SDK pak files before Engine pak files
This is required, as we use assets within the engine pak files. Unloading the engine pak files first will result in a seg fault during shutdown.
2022-10-07 22:22:32 +02:00
Kawe Mazidjatari
72a60f6f39 Fix project "dedicated" compile errors 2022-10-05 02:11:13 +02:00
Kawe Mazidjatari
a68fda98c1 Fix crash when loading arena maps caused by recent BSP crash fix
CMaterial and CMaterialGlue derive from the same abstract classes. The function that builds the culling map uses IMaterialInternal, which is used by CMaterial, CMaterialInternal and CMaterialSubRect. Added a check for CMaterialGlue as these are valid too.
2022-10-05 01:59:22 +02:00
Kawe Mazidjatari
70153d209c Additional NavMesh debug draw optimizations
* Init vCamera once during call (MainViewOrigin() won't change during the execution of this function).
* Construct Vector3D for camera distance only once, using SIMD.
2022-10-05 00:55:29 +02:00
Kawe Mazidjatari
31903be52e Use Hungarian notation throughout rest of the file
For consistency, we use Hungarian notation.
2022-10-04 23:00:33 +02:00
Marvin D
f9b51433ad Update basetypes.h 2022-10-04 00:52:59 +02:00
Marvin D
4ae766f19e survival backpack playlist vars 2022-10-03 13:20:50 +02:00
Kawe Mazidjatari
46d3819f63 Update sdklauncher.cpp 2022-10-03 01:23:00 +02:00
Kawe Mazidjatari
65f17cfa8e Remove extraneous semicolons from string concat in sdklauncher 2022-10-03 01:16:56 +02:00