Commit Graph

43 Commits

Author SHA1 Message Date
Marco Cawthorne 0f445d8e2b
VGUI Buy-Menu: Fix not being able to buy SG-550 as CT.
Set the skull icon next to the player names in the scoreboard.
2024-03-02 00:46:12 -08:00
Marco Cawthorne a8250fd244
Fixes against upstream Nuclide. Added zpak001.pk3dir/def/bot.def and make use of it. 2024-01-26 19:08:48 -08:00
Marco Cawthorne bc4bd883b4
Integrate various in-progress spectating improvements from Nuclide 2024-01-08 15:31:12 -08:00
Marco Cawthorne 1c3fc2c32d
Bot improvements contributed by CYBERDEViL:
- Bots will choose a random Bomb Site / Escape Zone / VIP Safety Zone.
 - T-bots: fetch bomb backpack when it has been droppen.
 - T-bots: plant the bomb.
 - T-bots: roam the planted bomb.
 - CT-bots: random buy defusal kit.
 - CT-bots: defuse bomb.
 - CT-bots: roam the defuser.
 - Small waypoint adjustments for `de_dust2` which enables bots to
   successfully jump on the big boxes to B, and they jump more easy over the
   ridge from T spawn to B.
2024-01-04 14:23:39 -08:00
Marco Cawthorne d2e841d964
CSMultiplayerRules: no more DeathChecks when the round is already over 2024-01-04 14:13:49 -08:00
Marco Cawthorne 219e00ec69
CSMultiplayerRules: choose an info_player_start when info_vip_start is unavailable (fixes as_riverside and older maps like it) 2023-10-10 19:13:25 -07:00
Marco Cawthorne 0a283c5282
Add bomb site text hint for T's and add the base for an upcoming, built-in DM gamemode. 2023-09-29 16:12:44 -07:00
Marco Cawthorne 1736b85824
CSMultiplayerRules: Ensure the VIP model is set when making somebody VIP. 2023-09-29 15:59:59 -07:00
Marco Cawthorne c4969943b8
Bomb Defusal: fix the bomb not being removed from the game properly upon round ends. Requires a .customphysics fix in upstream Nuclide as well (so update!) 2023-04-18 14:48:39 -07:00
Marco Cawthorne a22c33bb9f
Gamerules: add the titles.txt messages for having spotted a friend, enemy and hostage rescue instructions 2023-03-28 18:15:23 -07:00
Marco Cawthorne 123814e707
Gamerules: send titles.txt messages to the client for when they're the VIP/Bomb-guy, now that we have a message queue 2023-03-28 16:37:11 -07:00
Marco Cawthorne 3c3966fc33
hostage_entity: add message for T's for when they attempt to +use on them 2023-03-28 15:35:24 -07:00
Marco Cawthorne 92497583a1
func_buyzone: Now print the titles.txt message hint for telling you to buy stuff. 2023-03-28 15:28:24 -07:00
Marco Cawthorne 0704d3e7fd
Multiplayer: Load and display a server message of the day if present. 2023-03-25 17:34:47 -07:00
Marco Cawthorne f74e44ef4e
CSMultiplayerRules: be explicit about calling NSGameRules::PlayerDisconnect() to handle player de-init 2023-03-01 23:06:06 -08:00
Marco Cawthorne cb12c5d747
CSGameRules: add cvar fcs_swaponround. Set to a positive value and the rules will swap teams after Nth number of rounds 2023-03-01 22:23:24 -08:00
Marco Cawthorne ff59be9392
CSMultiplayerRules: use Destroy() instead of plain remove() on NSEntity derivatives 2023-03-01 21:58:55 -08:00
Marco Cawthorne 125550e4c3
CSMultiplayerRules: When players die, they'll always drop their primary weapon if they have one. Thanks /alpha/ 2023-03-01 21:48:18 -08:00
Marco Cawthorne 06a3e6bc6b
func_escapezone: make it work again. can't find solid info on the rewards
so I may have to revisit it anyway for rebalancing issues
2023-03-01 16:13:52 -08:00
Marco Cawthorne 8177fc0bef
CSMultiplayerRules: de-init players properly when they disconnect 2023-03-01 14:53:00 -08:00
Marco Cawthorne 982d2cfd21
Fix compiler warnings. 2023-02-14 12:54:59 -08:00
Marco Cawthorne d0ebfb8205
Fix the zone triggers from not activating. 2023-01-19 19:28:55 -08:00
Marco Cawthorne e744c22f40
Multiplayer: Clear server and client decals upon round end. 2022-08-27 22:07:29 -07:00
Marco Cawthorne f436d17ee5
Gamerules: Fix the creation for buyzones and rescue points. 2022-08-27 21:20:39 -07:00
Marco Cawthorne 164308a4f6
Cleanup: Some CGameRules methods are now of type 'bool'
Remove rules.qc
2022-07-16 15:09:36 -07:00
Marco Cawthorne 7b3a98fdb1
Adjust naming against upstream. 2022-05-11 12:51:39 -07:00
Marco Cawthorne e7e8550c82
Convert all classes to use the new parent names. The old ones were marked for deprecation long ago. 2022-05-10 15:00:44 -07:00
Marco Cawthorne 20b960761e
Gamerules: Fix kill rewards or something. Add cvar fcs_penalty_teamkill. 2022-04-28 10:55:38 -07:00
Marco Cawthorne 1dc0e57415
Gamerules: Some maps use a func_buyzone with no team attached to restrict buying, so check for team == 0
in Create{T,CT}Buyzones().
Also fix a round restart loop when the opposing team is empty but more than 2 players are present.
2022-04-26 13:03:12 -07:00
Marco Cawthorne 3ffd8262b9
Unbreak the gamerule timer. Sorry about that! 2022-04-23 14:45:12 -07:00
Marco Cawthorne 290cb55bcf
Update copyright information
Remove pmodel attributes from the player class.
2022-03-13 16:59:12 -07:00
Marco Cawthorne fe0b9681d0
Fill in some more info to help botlib's AI (weapon types, gamemode team setting) 2022-03-10 19:01:08 -08:00
Marco Cawthorne 127f9eba7f
Handle 'frozen' state better. Planting C4 no longer doesn't freeze you.
Now dying during freeze time will also call a round-end just like 1.5.
2022-03-03 23:34:01 -08:00
Marco Cawthorne 69836864ee
ClientGame_EventParse() now has returns either 0 or 1 to signal successful overrides.
CSMultiplayerRules now calls player.Death() like FreeHL.
2022-03-03 14:12:38 -08:00
Marco Cawthorne 48fd014293
Multiplayer rules: Use the new FX_Corpse_Spawn code. 2021-12-13 12:57:42 -08:00
Marco Cawthorne 85f0dffe09
Remove CSMultiplayerRules' MakeSpectator, as we have our own MakeTempSpectator
as part of the NSPlayer class now.
2021-11-28 00:03:28 +01:00
Marco Cawthorne 40f7a76c1d Server-side check for chooseteam event calls, to avoid a NULL pointer error
when someone tries to execute these functions with a modified client.
2021-08-13 22:06:28 +02:00
Marco Cawthorne 6a24b29e3d Bots: Now following some basic objectives - don't look too deep into it
Weapons: We now have added weapon weights and isempty() functions to the
weapon structs
Spectator: Now integrated into the gamemodes proper. NEEDS MORE TESTING!
Radio: Fixed a bug in which the wrong player name would be displayed.
2021-05-12 15:47:34 +02:00
Marco Cawthorne a2f65f73d7 Shared: Inherit weapon_common and input from Nuclide's base game 2021-05-10 08:16:51 +02:00
Marco Cawthorne 133bf4fec2 Simplify prediction code with the help from upstream SDK changes. 2021-05-08 17:46:20 +02:00
Marco Cawthorne a310454e98 Added spectator HUD and fix for our new observer/spectator implementation 2021-03-24 07:52:52 +01:00
Marco Cawthorne a14e514ca2 Basic radar implementation! It shows player positions and height - also
adjusted obituaries to be colored after the team colors.
2021-03-17 09:20:59 +01:00
Marco Cawthorne 6ff68fcc34 Initial commit, carried over from Nuclide's Git on March 8th 2021 2021-03-08 10:38:54 +01:00