Commit Graph

215 Commits

Author SHA1 Message Date
Marco Cawthorne db97db6820
Menu-VGUI: Fix up, change Input() method to block input from other widgets 2022-05-24 13:04:48 -07:00
Marco Cawthorne 128404d5d3
Spraylogo: Handle both monochrome (BMP) and colored spraylogos. 2022-05-12 20:34:18 -07:00
Marco Cawthorne 25c54af62c
Spring cleaning part one. 2022-05-11 12:49:04 -07:00
Marco Cawthorne 4716615a89
Menu-FN: run games_set after initial init to update the window details. 2022-05-01 15:57:37 -07:00
Marco Cawthorne 278d688159
Menu-FN: EAX and Aureal 3D audio options will now toggle reverb and HRTF respectively. Requires OpenAL. 2022-04-26 16:34:52 -07:00
Marco Cawthorne 9030ad82d9
Base_Player: Make sure disconnected clients get removed from other clients.
Menu-FN: Clear Rich-presence when no longer in a game.
2022-04-26 11:22:12 -07:00
Marco Cawthorne 36b9661abd
Platform: Go over some of the RichPresence APIs I was working on. 2022-04-25 17:00:13 -07:00
Marco Cawthorne bd63874118
Menu-FN: Bring back the updater functionality, as improvements to the engine's package manager have been done 2022-04-01 12:17:36 -07:00
Marco Cawthorne 96f3a1224a
This is a massive change. Check the full msg here:
https://icculus.org/~marco/txt/nuclide_may2022.txt
2022-03-15 19:33:11 -07:00
Marco Cawthorne 6fb067eed3
My name has changed, so an update to the copyright to reflect it. 2022-03-11 11:40:43 -08:00
Marco Cawthorne d4de286086
Menu-FN: Add 'menumap' to the liblist.gam extended specification. 2022-02-23 01:41:43 -08:00
Marco Cawthorne bcf9e2e758
Cleaning up some warnings. 2022-02-01 13:37:21 -08:00
Marco Cawthorne 04fe9ae215
Menu-FN: Make this progs aware of DRAWFLAG_ADDITIVE 2022-01-31 18:26:34 -08:00
Marco Cawthorne 00e9eec764
Menu-FN: To make standard load faster, the parsing of game-info now happens
whenever try to enter 'Custom Game'.
2021-12-15 22:33:30 -08:00
Marco Cawthorne eb85121716
Add BUILD_ODE build.cfg setting. Add stubs for platform specific functions
like achievements, rich presense. Minor GLSL adjustments.
2021-11-20 17:27:52 +01:00
Marco Cawthorne a48baff2d1
Menu-FN: Add a hack around drawtextfield(), wasting QC asm instructions in
the process for something as simple as specifying character size.
2021-11-06 11:17:54 +01:00
Marco Cawthorne c22b001f60
Cleanup: get rid of the ancient Font_LoadFont() wrapper, pipe _all_ text
font info through our internal font_s data structure.
2021-11-04 22:48:19 +01:00
Marco Cawthorne aa0ccf4413
Add test_grenadeclip.
Add helper functions to convert RGB255 to ^x color codes.
Small fixes for fonts in vguilib.
2021-11-03 21:54:43 +01:00
Marco Cawthorne 0a8dbd0edb
Menu-FN: Skip intro page if we're playing with steambg in the liblist.gam. 2021-11-01 21:43:01 +01:00
Marco Cawthorne 56a616ec8b
CBaseEntity: Add reliable methods to query what certain attributes where
when the entity first spawned. (e.g. GetSpawnOrigin())
2021-09-16 17:34:56 +02:00
Marco Cawthorne 0bc83d289d Menu-FN: Add r_pixelscale, to be used in combination with r_autoscale 2021-08-29 21:41:31 +02:00
Marco Cawthorne 42b1abf668 Menu-FN/FS: Only parse sprays from logos/, not root of mod-dir
anymore. Users with giant BMP screenshots will rejoice
2021-08-29 09:53:36 +02:00
Marco Cawthorne 4952e7fbe0 Menu-FN & GLSL: Hack to allow for .colormap style top/bottom color
onto vertexlit entities. Requires .colormod[2] to be 2.
Used by the menu with MODEL_PREVIEW.
2021-08-27 21:52:41 +02:00
Marco Cawthorne 6de82ca18c Menu-FN: if a menu.dat is compiled with MODEL_PREVIEW defined,
we'll use a 3D player-model previews instead of the image based one
2021-08-27 21:15:57 +02:00
Marco Cawthorne be0df99c8d Menu-FN: Add WEBMENU define, to get rid of all the filesystem
searches related to mods and packages for potential web builds
2021-08-23 11:04:56 +02:00
Marco Cawthorne f562991ada Clean-up defines for physics vars. Those are handled elsewhere... 2021-08-14 08:49:40 +02:00
Marco Cawthorne 0d759c724c Menu-FN: Support for mIRC color codes in the Chat-Room function (fg only) 2021-08-12 12:36:48 +02:00
Marco Cawthorne fbf6ee7367 Switch from iqmtool to vvmtool. 2021-08-10 12:07:09 +02:00
Marco Cawthorne c7004625ae Menu-FN: Add LOGO_STATIC, rename LOGO to LOGO_AVI. Allowing mods to have
non video menu headers
2021-08-08 14:06:26 +02:00
Marco Cawthorne 844c29bf23 Menu-FN: Off-load font definitions into external .font files, like cgame 2021-08-08 13:54:05 +02:00
Marco Cawthorne 0cd6694c32 Menu-FN: Parse locale file info, then gfx/shell definition overrides to
allow for proper translations of the menu system.
2021-08-08 12:12:17 +02:00
Marco Cawthorne 9fb574d920 CBaseEntity: Fix error for when games are not compiled with GS_RENDERFX 2021-08-03 07:15:25 +02:00
Marco Cawthorne 0709688f9f Add base/default.cfg, some fallback menu assets. 2021-08-02 22:36:36 +02:00
Marco Cawthorne 3ca7b5451c Menu-FN: set create-server maxplayers to 8 when cvar is at 1, search pak
archives in reverse for liblist etc. files to ensure we read the latest +
more fixes
2021-08-01 11:49:00 +02:00
Marco Cawthorne 3ef55c5e48 build_engine.sh: iqm has been renamed to iqmtool, so adjust those basenames 2021-07-20 12:19:27 +02:00
Marco Cawthorne 3b0ad9468a Menu-FN: Fix broken training map button. 2021-07-19 08:37:08 +02:00
Marco Cawthorne 03ecfbabfb Menu-FN: Don't push the updater into anyones face right now until this is
rock-solid under the hood
2021-07-02 23:42:03 +02:00
Marco Cawthorne 334f880462 Menu-FN: Remove cvar_set line overriding scr_sshot_type 2021-06-29 19:56:20 +02:00
Marco Cawthorne e42b714458 Client: Added Font_LoadFont() as a wrapper for loadfont(), which will
parse definitions located in the filesystem instead of hardcoding font
paths and sizes.
2021-06-26 21:45:46 +02:00
Marco Cawthorne fc63f9af55 Menu-FN: disable models/spray widgets in m_customize if we've got none. 2021-06-26 17:14:00 +02:00
Marco Cawthorne 7f00e9354d Add shared/platform.h which will send hints as to what target platform
we're dealing with (pc, touch, web, console etc.)
2021-06-18 09:26:24 +02:00
Marco Cawthorne ff39eda49d Menu-FN: Keep track of where games got their gameinfo from and accomodate
the different game/mod switching methods in case of manifests
2021-06-15 10:49:57 +02:00
Marco Cawthorne 971b76f938 Menu-FN: Added support for parsing gameinfo.txt from Source Engine games 2021-06-13 09:04:29 +02:00
Marco Cawthorne 95707a005b Menu-FN: If the engine somehow doesn't report the game we're currently
playing as a valid dir, append it at the end manually.
2021-06-13 07:55:58 +02:00
Marco Cawthorne 64749cddda Menu-FS: Add support for gameinfo parsing via manifests 2021-06-12 20:39:56 +02:00
Marco Cawthorne 0a5e254963 Menu-FN: Fix typo in strings.cpp, thanks to 'unsettled'! 2021-06-04 12:59:32 +02:00
Marco Cawthorne a4a40be8ae Menu-FN: Parse "minversion" command from liblist.gam.
Base: Document example liblist heavily.
2021-05-28 21:24:57 +02:00
Marco Cawthorne 407e2deb89 Menu-FN: Allow GAME_DIR to be overriden at a progs.src level 2021-05-28 19:35:41 +02:00
Marco Cawthorne 2082f1355a Menu-FN: Parse liblist.gam files instead of relying on manifests outright. 2021-05-28 10:26:42 +02:00
Marco Cawthorne 6c59c47c93 Menu-FN: Top/Bottom color sliders should only be visible when gameinfo says
nomodels is 0.
2021-05-25 08:34:35 +02:00
Marco Cawthorne c821112d05 Menu-FN: Store top and bottomcolor in a global and recalculate the RGB values only
when the sliders are used.
2021-05-22 15:42:41 +02:00
Marco Cawthorne 4e20200f46 Menu-FN: Set platform defaults upon init, in case the engine does not exec
platform_defaults.cfg - however only crucial ones that should not be
touched anyway.
2021-05-22 15:21:28 +02:00
Marco Cawthorne 09528c2944 Add support for top/bottom color on players and viewmodels.
Fix func_breakable's sound shader from precaching non existing sounds.
2021-05-20 16:01:07 +02:00
Marco Cawthorne 1485544b91 Base: Get rid of g_eAttacker, which had been replaced by g_dmg_eAttacker.
Go over TraceAttack and make it combine multiple Damage_Apply calls into
one.
2021-05-10 11:33:31 +02:00
Marco Cawthorne a3ecd78f17 CBaseMonster: support for spawnflag MSF_IGNOREPLAYER (64). 2021-05-10 08:14:10 +02:00
Marco Cawthorne 8e4ec974e0 Menu: Add gameinfo_steambg manifest setting, so we can support background
images for games designed for the SteamUI-era
2021-05-08 17:20:30 +02:00
Marco Cawthorne 27b5b59f0d Server: Precache step_sand.left/right, add to footsteps.sndshd.
Fix some botlib waypointing strings.
2021-04-18 08:24:55 +02:00
Marco Cawthorne da62296b9c Menu-FN: Added cvar menu_helptext_size, don't expect this one to be around
forever, it'll be used to detect quirks in freetype scaling.
2021-04-15 20:46:54 +02:00
Marco Cawthorne 14e3690cd4 Create platform/masters.lst and change it so menu-fn doesn't change the
sv_public cvar all the time.
2021-03-31 11:54:41 +02:00
Marco Cawthorne 7dcebd140d Menu-FN: Add proper caching (non-CVAR based) for pkgfile and introvideo
manifest info. This avoids the headache of engine threading getting in the
way and messing up package manager and what have you on ~some~ systems
2021-03-06 00:23:59 +01:00
Marco Cawthorne e1df585677 Menu-FN: Check TCP_GetState() before allowing a message to be sent to chatrooms. 2021-02-17 13:28:26 +01:00
Marco Cawthorne 5e181c1128 Menu-FN: Spray-logo precaching optimisation 2021-02-17 11:59:38 +01:00
Marco Cawthorne adc951dd96 Menu-FN: Strip file extension from player model lookup, that avoids some
headaches when figuring out what model we're supposed to be using
2021-02-17 11:34:55 +01:00
Marco Cawthorne 82a501c0be Menu-FN: add 'nosprays' gameinfo setting as a companion to the 'nomodels'
setting, as some mods may choose not to support them
2021-02-17 11:28:09 +01:00
Marco Cawthorne 40bbca0dc4 Menu-FN: Add support for gameinfo_introvideo, check for gameinfo_pkgfile
to determine if a file exists before force-opening the update page.
2021-02-17 11:17:28 +01:00
Marco Cawthorne 02efa21e3d Move game-specific sources into their respective mod-dirs. This was planned
for a while and was inevitable. Latest fteqcc required that fixes a limit
with paths. Also added src/server/mapcycle.qc
2021-02-08 13:35:15 +01:00
Marco Cawthorne 70268440ee games_updatesavailable: check for -1 to avoid bad pointer errors 2021-01-24 01:54:14 +01:00
Marco Cawthorne bf8f8e24cb game_updateinstallcount: Always return 1 when no packagenames are given 2021-01-24 00:13:01 +01:00
Marco Cawthorne 085607e022 Menu-FN: Show the updater only when we've got 0/X packages installed for
the current game.
2021-01-24 00:11:08 +01:00
Marco Cawthorne cc240fefb2 Menu-FN: Small fix to avoid an infinite loop of menu_restarts in case
the cvars don't get set fast enough, somehow
2021-01-23 15:24:49 +01:00
Marco Cawthorne dfbb153946 Menu-FN: get rid of autocvar_menu_installedpackages 2021-01-23 14:57:21 +01:00
Marco Cawthorne 178f988167 Menu-FN: Change the way we install custom game data. It should be way more
stable and consistent now.
2021-01-23 14:54:31 +01:00
Marco Cawthorne dbb53d151a Let the menu progs know when we're actually in a single/multi-player game.
It seems that the maxclients serverinfo key lies to the client, so we work
around that by setting our own
2021-01-23 12:56:22 +01:00
Marco Cawthorne 9f13450b01 Menu-FN: Add the option to disconnect a multiplayer game from the menu. 2021-01-22 22:57:26 +01:00
Marco Cawthorne c17515fe98 Menu-FN: List packages in the updater that are listed in pkgname, not just
any data/addon package. Also commented some entry-points.
2021-01-22 22:37:06 +01:00
Marco Cawthorne 1f78814d1e Menu: Only list maps in the Create Game maplist that belong to the current gamedir, replicating WON behaviour 2021-01-15 01:04:51 +01:00
Marco Cawthorne 75adc63665 Menu: Blacklist any test_* prefixed maps in the Create game menu 2021-01-14 15:41:01 +01:00
Marco Cawthorne dd741c1c39 Menu: Added fallback mode for missing btns_main.bmp and header_*.bmp files,
also support for basic Quake III Arena player model selection if you happen
to play with that (like Xylemon will!)
2020-12-30 17:19:21 +01:00
Marco Cawthorne d1b1431b8a BotLib: Bots ought to switch weapons now when they pick an item up!
Also moved the way_menu cmd into its own file...
2020-12-28 19:59:37 +01:00
Marco Cawthorne f38bf28b9e Go over the default.cfg's of all the example games. Make it so that
Skill_GetValue() requires a default value set.
2020-12-12 01:54:00 +01:00
Marco Cawthorne ac607637e5 test_dlights: Add shadow flag to the prop_dynamic. 2020-11-27 22:04:16 +01:00
Marco Cawthorne 31c7354dda env_sun: Make pitch/angles compatible with Source's way of handling them. 2020-11-24 02:24:30 +01:00
Marco Cawthorne 1bcaba26a3 Menu-FN: Add support for gfx/shell/kb_def.lst and the menu option to reset
binds to mod defaults.
2020-11-23 22:33:55 +01:00
Marco Cawthorne 97d19c1b37 Add shared/include.src, so we touch gamename/include.src less for global
changes.
2020-10-30 12:21:00 +01:00
Marco Cawthorne 624a68bf7f Menu-FN: Use the new search_begin flag on the playermodel search paths.
So we can stop looking for just .bmp files. Requires latest FTE.
2020-10-27 05:02:41 +01:00
Marco Cawthorne a536f7b6cc light_dynamic: Respect the right radius key 2020-10-27 04:49:38 +01:00
Marco Cawthorne 90478acec4 Menu-FN: Make the Internet server browser refresh more useful 2020-10-27 00:21:53 +01:00
Marco Cawthorne d0231eee50 Platform: Added per-wall kernel dithering, cvar gl_kdither 0/1 2020-10-08 12:03:52 +02:00
Marco Cawthorne f3668f8335 Menu: Fixed CModList from lazily skipping over the current mod entry, resulting in some rough list display. 2020-10-08 02:28:26 +02:00
Marco Cawthorne 4bde3bbfb6 Menu: Fix music not stopping when joining a server. 2020-10-07 23:21:34 +02:00
Marco Cawthorne 7902ae22d5 Menu: Filter servers by gamedir. Clients shouldn't attempt to connect to mods that way. 2020-10-07 23:21:03 +02:00
Marco Cawthorne b1742afb97 Menu: Play intro based on 'gameinfo_gamedir', not 'game' 2020-10-07 11:38:32 +02:00
Marco Cawthorne 5810da8069 Menu: Switched mod switching to be fully manifest oriented, fixed menu music playback. 2020-10-06 14:27:44 +02:00
Marco Cawthorne 9f30a2b897 Menu: Add blacklist for maps in the Create Server menu. 2020-10-02 11:41:50 +02:00
Marco Cawthorne 1a0193ad3a Menu: Add input redirection verification in case we've forcefully changed menu input modes. 2020-09-29 14:24:21 +02:00
Marco Cawthorne 57cc661c86 Menu/Client/Server: Background map support for menus. This should be handled differently in that SV_ShouldPause ought to control Singleplayer as well. Engine hardcodes suck 2020-09-27 14:25:10 +02:00
Marco Cawthorne a0a593ef6b Menu: Unbind all keys for a given command when two were defined. 2020-09-21 18:52:00 +02:00
Marco Cawthorne 44b6a3d10a Sentences: Force them to be read in uppercased. 2020-09-10 19:28:36 +02:00
Marco Cawthorne 4d3cace6da Menu: Fixed all 2 warnings. 2020-09-09 08:07:30 +02:00
Marco Cawthorne cdad44a79d Menu: Disable Training/Hazard Course when no gameinfo_trainingmap is defined. 2020-09-07 07:42:07 +02:00