Commit Graph

64 Commits

Author SHA1 Message Date
Michael Fabian 'Xaymar' Dirks 5562311505 shared/defines: Add shared definitions 2020-12-21 02:02:08 +01:00
Michael Fabian 'Xaymar' Dirks cdd9153f8d shared/config: Remove unsupported gametype option 2020-12-21 02:02:05 +01:00
Michael Fabian 'Xaymar' Dirks 677f35ec4a shared/config: Add Friendly Fire option 2020-12-21 02:01:59 +01:00
Michael Fabian 'Xaymar' Dirks 819c1bfd7d gamemode: Remove rarely used options 2020-12-21 01:58:11 +01:00
Michael Fabian 'Xaymar' Dirks ee89cbc05b init: Update to new RoundManager and UI 2019-08-15 15:46:32 +02:00
Michael Fabian 'Xaymar' Dirks eafb71c5bb server/states: Adjust to new RoundManager 2019-08-15 15:46:14 +02:00
Michael Fabian 'Xaymar' Dirks f31244432e client/hud/gamestatedisplay: Redesign with DPI awareness
This redesign drastically improves the early design, while also relying more on the new RoundManager available to clients.
2019-08-15 15:45:56 +02:00
Michael Fabian 'Xaymar' Dirks 15dd65be46 roundmanager: Update to have Client and Server implementations
The client code now no longer has to rely on the GAMEMODE object to handle synchronization, and instead can use the actual RoundManager for it.
2019-08-15 15:44:29 +02:00
Michael Fabian 'Xaymar' Dirks 8c5b037a68 sh_init: Add info_player_spawn to Spectators 2019-08-15 15:43:14 +02:00
Michael Fabian 'Xaymar' Dirks 61f1e9a0cc vgui: Adjust DFrameDPI and DLabelDPI to use CreateFontData 2019-08-15 15:42:40 +02:00
Michael Fabian 'Xaymar' Dirks 81638d3db1 vgui/uimanager: Fix log spam and reduce duplicated logic 2019-08-15 15:42:14 +02:00
Michael Fabian 'Xaymar' Dirks 68ee7e31d8 vgui/fontamanger: Fix existing font logic 2019-08-15 15:41:56 +02:00
Michael Fabian 'Xaymar' Dirks 89704044e8 gamemode: Update init files 2019-08-15 00:39:01 +02:00
Michael Fabian 'Xaymar' Dirks cc0c9c411f client/ui: Rename scoreboard file 2019-08-15 00:38:42 +02:00
Michael Fabian 'Xaymar' Dirks 1c1592a840 client/ui: New Help and Settings UI (partially DPI Aware) 2019-08-15 00:38:05 +02:00
Michael Fabian 'Xaymar' Dirks 8a97adade3 vgui: DPI Aware DFrame 2019-08-15 00:37:31 +02:00
Michael Fabian 'Xaymar' Dirks 484d38c1b6 vgui: DPI Aware DLabel 2019-08-15 00:37:20 +02:00
Michael Fabian 'Xaymar' Dirks b217582757 vgui: Global UI and Font managers
Drastically simplifies the logic required to use these and no longer relies on the GAMEMODE/GM object.
2019-08-15 00:36:42 +02:00
Michael Fabian 'Xaymar' Dirks 629b921341 client/hud/gamestatedisplay: Improved HUD Game State Display
This is a Derma version of the manually drawn Default Player Class HUD Element which is now gone. It integrates with the UIManager and FontManager and scales with the ScreenSize instead of being a fixed small size.
2019-01-12 21:19:11 +01:00
Michael Fabian 'Xaymar' Dirks 4a8b95bdb4 Modify time logic to split RoundTime and StateTime
Adds two new functions:
- GM:GetRoundStateTime (Shared)
- GM:SetRoundStateTime (Server)
2019-01-12 21:17:49 +01:00
Michael Fabian 'Xaymar' Dirks 882cb5d9bb cl_init: Load and initialize new UI classes 2019-01-12 20:34:08 +01:00
Michael Fabian 'Xaymar' Dirks 0d1320a49b init: Add fontmanager and uimanager 2019-01-12 20:27:32 +01:00
Michael Fabian 'Xaymar' Dirks c8a4d63fda uimanager: Basic UI Manager for DPI and similar 2019-01-12 20:26:41 +01:00
Michael Fabian 'Xaymar' Dirks 7ce9df68ec fontmanager: Manager class for Fonts
Ensures that each font is only allocated once.
2019-01-12 20:26:09 +01:00
Michael Fabian 'Xaymar' Dirks 9e6637679f gamemode: Fix scoreboard logo from 4da22f2f0e 2018-12-02 08:01:03 +01:00
Michael Fabian 'Xaymar' Dirks 27a44edaa1 gamemode: Fix logo size (GMod doesn't set a limit) 2018-12-02 07:38:41 +01:00
Michael Fabian 'Xaymar' Dirks 4da22f2f0e gamemode: Update logo and icon 2018-12-02 07:28:14 +01:00
Michael Fabian 'Xaymar' Dirks 13d91b20a1 gamemode/server/states/state_postround: Minor formatting 2018-12-02 06:40:13 +01:00
Michael Fabian 'Xaymar' Dirks a1590c70a4 gamemode/player_class/class_hider: Log interaction with entities 2018-08-07 02:39:12 +02:00
Michael Fabian 'Xaymar' Dirks c56d0cee3e gamemode/player_class/class_default: Ignore players and increase use time
Players should be ignored for use commands, since it does not actually change things. Also increase the abuse cooldown to 0.5 seconds for non-blacklisted items.
2018-08-07 02:38:39 +02:00
Michael Fabian 'Xaymar' Dirks 87be085030 gamemode/player_class/class_seeker: Log killed players in the debug log 2018-08-07 00:17:00 +02:00
Michael Fabian 'Xaymar' Dirks 4169000b22 gamemode/player_class/class_hider: Add seeker bonus health on kill and log the kill
Fixes #7
2018-08-07 00:15:54 +02:00
Michael Fabian 'Xaymar' Dirks 2bace089e9 entities/weapons/weapon_ph_smg: Fix weapon refire time and damage
Fixes #8
2018-08-07 00:14:22 +02:00
Michael Fabian 'Xaymar' Dirks 6a6b8da999 gamemode/server: Fix prop rotation messages appearing without debug log
Also adds the intended angle and player initiating the action
2018-07-05 06:56:44 +02:00
Michael Fabian 'Xaymar' Dirks 45925f2029 gamemode/server/roundmanager: Switch to generated implementation
Like with states, allows reuse and prevents missing elements and uses the Lua engine to do the lookup instead of the Lua parser. Slightly faster, but may not be directly obvious in use.
2018-07-05 06:55:46 +02:00
Michael Fabian 'Xaymar' Dirks bf0673914b gamemode/server/states: Switch to generated implementation
This has the benefit that all base info is present as meta info and setting a member to nil simply uses the meta member instead.
2018-07-05 06:54:05 +02:00
Michael Fabian 'Xaymar' Dirks 05cf316c58 Shared: Use correct ConVar for Config::Teams::SeekerPercentage() 2018-03-04 21:57:43 +01:00
Michael Fabian 'Xaymar' Dirks 6b2ff0b55f gamemode: Implement a fully featured Scoreboard
The original game mode had a Scoreboard and now Prop Hunt Extended also has one. As usual, it has separation by team (Spectator, Hider, Seeker) and has the game mode logo in the top left. This score board is kept very simple and is non-interactive.

Media: https://drive.google.com/uc?id=12uVh2-BSC3p_aPgRSWNRdz3M0zbBj2BZ
2017-11-26 14:44:26 +01:00
Michael Fabian 'Xaymar' Dirks f5dacddd8c gamemode: Remove dmultilinelabel.lua (See Panel:SetWrap) 2017-11-26 13:50:27 +01:00
Michael Fabian 'Xaymar' Dirks dfdd8f82a3 gamemode: Allow infinite rounds to be played 2017-11-26 13:49:59 +01:00
Michael Fabian 'Xaymar' Dirks 7f3ba60b40 gamemode: Fix Suicide and Team Killing increasing Frags 2017-11-26 13:49:20 +01:00
Michael Fabian 'Xaymar' Dirks 863f099f31 gamemode: Implement Scoreboard support
The game mode will now assign points to teams as well as increment frags and deaths. This paves the way for a proper scoreboard to be added.
2017-11-26 12:54:57 +01:00
Michael Fabian 'Xaymar' Dirks 73a587085c gamemode: Remove the NoCollide constraint on player death 2017-11-26 12:46:02 +01:00
Michael Fabian 'Xaymar' Dirks 47b768ffbd content: Rename content directory to prophuntextended 2017-11-26 12:41:06 +01:00
Michael Fabian 'Xaymar' Dirks 7349a96603 gamemode: Implement Alive() function in player classes
This allows checking if the player is actually alive according to the current player class. Some classes are alive to the game, but not to the actual game mode, for example Spectators are alive, but not really.
2017-11-26 12:40:28 +01:00
Michael Fabian 'Xaymar' Dirks be456dc323 gamemode: Fix client load order causing missing files.
Garry's Mod registers lua files in the order they appear, and will immediately run cl_init.lua once it is registered. This occasionally caused includes to error.
2017-11-26 12:38:23 +01:00
Michael Fabian 'Xaymar' Dirks f83464c10b gamemode: Create a few extra fonts 2017-11-26 12:36:33 +01:00
Michael Fabian 'Xaymar' Dirks be017d3d55 gamemode: Fix Hiders getting stuck on themselves
It seems that the physics engine allows the parent to collide with childs, but childs not with the parent. This doesn't make any sense at all.
2017-11-26 09:30:15 +01:00
Michael Fabian 'Xaymar' Dirks 6fbd73b217 gamemode: Remove unused lua code
These are mostly now in sh_config.lua, so there's no need to keep them around.
2017-11-26 08:21:04 +01:00
Michael Fabian 'Xaymar' Dirks ceb9ed1513 data: Remove unused files 2017-11-26 08:11:17 +01:00