Commit Graph

215 Commits

Author SHA1 Message Date
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
Marco Cawthorne e503b8b7d9 Menu: Adjusted some minor text spacing in the custom game install dialog 2020-09-06 09:10:28 +02:00
Marco Cawthorne ac68be9f67 Menu: Add ability to set custom readme filenames inside the manifests. 2020-09-06 08:52:10 +02:00
Marco Cawthorne 58d420861f Menu: Integrated package manager functions into the Custom game menu. Mods and so on will now be installed remotely from there. 2020-09-06 08:37:36 +02:00
Marco Cawthorne b60fd3a6b5 Menu: Fixed crash in CUpdateList when the list starts becoming scollable 2020-09-05 06:19:39 +02:00
Marco Cawthorne 50ccbf4b9a Add func_tank, func_tankmortar and generally faff about with input code. 2020-09-04 21:28:06 +02:00
Marco Cawthorne 97a651fc58 Menu: Make sure CScrollbar has a minimum height of 20px for the... what's that thing called? The thing that slides. Whatever 2020-09-01 20:11:22 +02:00
Marco Cawthorne 870b9e5923 Menu: Added 'Advanced controls' submenu to 'Controls' 2020-09-01 00:46:16 +02:00
Marco Cawthorne 1d111506ea Menu: Improve the scrollbar by making the bar variable height. 2020-08-31 04:36:09 +02:00
Marco Cawthorne 85d7dc98e2 Menu: Fixed scrollbar not showing, using a wrong max-item value for reference 2020-08-16 01:31:49 +02:00
Marco Cawthorne 19b565b202 Menu: Cleaned up gamma hack. 2020-08-09 00:53:18 +02:00
Marco Cawthorne 36a80aea38 Menu: Added brightness hack. This is to avoid Half-Life cfg's from turning the screen white because of different interpretations of cvar values. 2020-08-08 17:37:25 +02:00
Marco Cawthorne 17f3333bd3 Menu: Allow setting of the default chatroom to join. 2020-08-06 23:26:51 +02:00
Marco Cawthorne effc455b04 Menu: Rearranged and relabeled some buttons in the Update menu. Added ability to double-click entries to stage files for install/removal for improved UX. 2020-07-30 09:54:46 +02:00
Marco Cawthorne 9d58f78548 Menu: Move version info down so it doesn't hide some images in certain menus. 2020-07-25 00:50:51 +02:00
Marco Cawthorne d286fac6cc Menu: Add build date information. 2020-07-11 20:59:45 +02:00
Marco Cawthorne 1fca666a5f Menu: Fix memory leak that'll when preparing some TCP streams. Fix a name display issue in the IRC log. 2020-07-11 15:55:03 +02:00
Marco Cawthorne 8d1270a5d1 Menu: Make the CTextBox widget recognize K_KP_ENTER 2020-07-09 22:03:35 +02:00
Marco Cawthorne de9ec013af Menu: Add 'Content control' configuration page. This sets the violence_ variables and whatnot. 2020-07-09 21:17:13 +02:00
Marco Cawthorne 7eee535e39 Menu: Added readme menu page, allow inserting of text that'll get wrapped
automatically. Mods can have their own readme.txt files parsed too now.
2020-07-09 20:00:16 +02:00
Marco Cawthorne f54826986f Half-Life: Fix WEAPON_TRIPMINE spawning in multiplayer. 2020-07-06 19:30:19 +02:00
Marco Cawthorne c033f5d88e Menu: Fix warning by casting explicitly. 2020-07-01 08:31:16 +02:00
Marco Cawthorne a0ba14d5de Menu: Ignore K_ESCAPE in CTextBox's input 2020-06-30 19:10:59 +02:00
Marco Cawthorne 419ee9ae8d Menu: Fix chat message passing to CSQC 2020-06-30 18:41:00 +02:00
Marco Cawthorne 7365dd27e6 Menu: Close cached TCP socket and fix timeout dialog 2020-06-30 18:08:31 +02:00
Marco Cawthorne 081d541e9e Menu: IRC based Chat is now completely implemented using QuakeC. It already works quite well but will need a lot more testing! 2020-06-30 17:14:06 +02:00
Marco Cawthorne d8f9c545a6 Initial commit of the TCP helper backend that we'll need for the next-gen chat 2020-06-30 13:07:54 +02:00
Marco Cawthorne c709117209 Switch to using spriteframe() for HUD sprites in valve, scihunt 2020-05-31 12:54:04 +02:00
Marco Cawthorne 828a41eff8 Fix new compiler warnings. 2020-05-30 23:08:11 +02:00
Marco Cawthorne fcb99ad427 Add support for func_breakable its spawnobject key. 2020-05-30 14:57:01 +02:00
Marco Cawthorne 7c1921ae05 Opposing Force: Added stubs for the upcoming CTF logic. 2020-04-28 06:11:44 +02:00
Marco Cawthorne 922b6f4c55 Added sub-directory makefile to ease the building of specific games/mods. 2020-04-21 00:30:54 +02:00
Marco Cawthorne 2cee375ce5 Lots of commits bundled into one:
- Added GamePMove_Fall and GamePMove_Jump for controlling either.
- Tweaked maxspeed for Counter-Strike heavily.
- Worked on the Counter-Strike WEAPON_KNIFE (fully functional!).
- Worked on the Counter-Strike WEAPON_AWP (mainly zoom).
- The WEAPON_C4 in Counter-Strike will no longer unfreeze you during warmup
- Added cl_showtriggers for displaying brush-based triggers.
- Removed muzzleflash dynamic light, as it seems GoldSrc doesn't have any.
- Fixed bug in which the server-list would run into an infinite loop error.
- Fixed weapon pricing in Counter-Strike.
- To rescue hostages means to earn $$$
2020-04-20 06:45:14 +02:00
Marco Cawthorne 142e6c9cf3 Possible memalloc corruption mititagions. 2020-04-12 19:40:09 +02:00
Marco Cawthorne 9e8c779c74 Menu: Added a basic Load-Game menu. 2020-04-12 18:45:02 +02:00
Marco Cawthorne 324fadd668 Spring cleaning. Prepare for summer! Fixed lots of bugs too:
v_camroll is now working again.
Counter-Strike is finally getting somewhere again.
Counter-Strike has pseudo spray-patterns now! They're all the same.
func_button now can be programmed to use Sound-Shaders.
The menu handles the vid_conautoscale command autonomously. Set r_autoscale
to 0 if you don't like it.
The menu has an updater, requires a not-yet-pushed build of FTE.
Don't use it yet.
Moved a lot of globals into pSeat's structs to fix splitscreen with them.
Made explosion decals be handled client-side!
Added trigger_look, env_sun and light_environment entities.
2020-04-12 15:50:42 +02:00
Marco Cawthorne b992dd472d Menu: Fixed dumping path. 2020-04-08 09:12:22 +02:00
Marco Cawthorne c6f40c2590 Moved shared Nuclide data into its own folder. 2020-04-08 08:01:52 +02:00
Marco Cawthorne b2ef0db018 Fix misc warnings. 2020-04-07 15:02:36 +02:00
Marco Cawthorne f43bc2cf32 update copyright dates because I've been forgetting all year. 2020-04-07 14:46:23 +02:00
Marco Cawthorne cf136dbd6c Cstrike: Finished most of the essential gun logic. 2020-04-07 02:47:21 +02:00
Marco Cawthorne 1f0e93d35a Precaching CS weapon sounds via sound-shaders... 2020-04-06 10:53:26 +02:00
Marco Cawthorne 5e936559ea Menu now can scan for non .bmp sprays. 2020-04-04 00:18:05 +02:00
Marco Cawthorne ab1338bab6 Moved the music-switching logic into the menu, for good reasons. 2020-04-03 15:01:55 +02:00
Marco Cawthorne 7f2f32efb1 Menu/Manifests: Allow games to execute commands for the button reserved
for training. Gunman uses this to play a Smacker/Bink video file.
2020-04-03 14:09:17 +02:00
Marco Cawthorne 5ba72a224c Menu: Filter through the gameinfo defined types to clean up the mess
other people like to put in it.
2020-04-03 13:36:42 +02:00
Marco Cawthorne 4f44d96be9 Pulled over Sound-Shader code from TW. We'll use this soon over hard-coded
sounds.
2020-04-02 22:43:37 +02:00
Marco Cawthorne 5dde0fb486 Menu: Switch to the new manifest based mod/game info stuff 2020-04-01 12:27:45 +02:00
Marco Cawthorne cf13c4faf4 Menu: Make the scrollbar not appear with too few entries. 2020-04-01 12:24:07 +02:00
Marco Cawthorne c813e49b56 Menu: Lots of work done, like switching player models, sprays -
IRC chat, custom game installs and listings.
2020-04-01 01:08:01 +02:00
Marco Cawthorne b8621deea5 Menu: Customgame count fixed, stop-music after changing mods 2020-03-30 23:48:13 +02:00
Marco Cawthorne a1ea45a682 Menu: Polished the scrollbar code. 2020-03-30 23:29:33 +02:00
Marco Cawthorne 576547f249 Menu: Added some fancy menu guff, enjoy it while it lasts 2020-03-30 14:46:55 +02:00
Marco Cawthorne d20c3f1db3 Menu: Set the difficulty in the New Game menu 2020-03-26 08:24:27 +01:00
Marco Cawthorne cdb1bbddfd Menu: Fix a crash when we've got no entries or are out of bounds 2020-03-26 07:04:32 +01:00
Marco Cawthorne 80d06e7dcd Cleaned up warnings. 2020-03-25 17:42:36 +01:00
Marco Cawthorne 4bdefa4cd7 Big commit, list of additions:
Added stubs for a variety of monsters for 'valve' which a few mods inherit.
Added support for the 'vote' and 'callvote' command.
Made env_laser network some info to the clients, kinda rough because
we're working around some engine iffyness with CSQC ents right now.
Updated the menu so that the server-lists for Internet and LAN games are
a bit more helpful.
Made the CBaseMonster class for useful for the future.
Fixed setting of transparency for all entities.
2020-03-25 13:58:19 +01:00
Marco Cawthorne a9e2a37f51 Controls menu now sorta works half-way. We still need to parse defaults. 2020-03-24 16:25:22 +01:00
Marco Cawthorne f1190cd282 Fixed compiling against the latest entity-codebase 2020-03-24 07:26:49 +01:00
Marco Cawthorne c5b0e0146f Some fixes to get FreeHL to compile without TW. 2019-11-09 02:09:17 +01:00
Marco Cawthorne 8985a8f373 Added ammo culling for Half-Life 2019-09-15 23:55:18 +02:00
Marco Cawthorne 27707e37b6 Move things from the root src/ dir into the src/shared folder, as that
makes the most sense.
2019-09-07 05:50:44 +02:00
Marco Cawthorne 5aa167d4af Added graphical obituaries for HL/SH.
The way the weapon is chosen is not yet final. I'm just tired and don't
feel like engineering the damage stuff right now.
2019-09-04 18:11:55 +02:00
Marco Cawthorne d577f378e2 Menu: Error checking for strings.lst parsing, as some mods (The Ship) can't
do access out-of-bounds string indices.
2019-09-03 10:41:13 +02:00
Marco Cawthorne e23dc04d26 Menu: Stop mod print spamming for now. It's solid as it is. 2019-09-02 15:53:13 +02:00
Marco Cawthorne b604077d0b Renamed /Source to /src 2019-09-01 04:35:37 +02:00