Commit graph

52 commits

Author SHA1 Message Date
Daniel Walder
2353ca4a4b [HL25] New item flag NOAUTOSWITCHTO for RPG
Prevents the RPG from being auto-switched to on auto weapon switch events
2024-08-29 10:01:02 +02:00
Joël Troch
e0ba8cebc7 [HL25] Backport busters game mode
Also backport a define being moved at the top in "multiplay_gamerules.cpp".
And two changes related to weapons in general in "weapons.cpp".
2024-08-28 16:37:49 +02:00
Joël Troch
1c202f5812 [HL25] Backport satchel charge/radio controls
Those who want the "legacy" behavior can comment the define in
"satchel.cpp" called "MODERN_SATCHEL_CONTROLS".
2024-08-28 15:35:04 +02:00
Joël Troch
37ed1d9b39 [HL25] Backport changes to the hornet gun 2024-08-28 15:35:01 +02:00
Joël Troch
9b9d6c3b0b [HL25] Backport changes to RPG
One exception: ITEM_FLAG_NOAUTOSWITCHTO has not been set to flags due to
differences between Updated and HL25's weapon switch code.
2024-08-28 13:42:29 +02:00
Justin
e3899ccccc Fix RPG being flagged as unusable while a rocket is loaded 2023-08-17 10:52:59 -07:00
Sam V
c6b5b617b3 Fix RPG not playing empty sound when attempting to fire with no ammo left
Resolves #196
2023-04-12 14:33:06 +02:00
Sam V
3d1379247c Fix ammo pickup sound playing when picking up a weapon for the first time 2023-03-24 14:23:33 +01:00
Sam V
62b84baad1 Fix Hornet gun recharging to full ammo after loading a save game
Resolves #190
2023-02-02 19:17:43 +01:00
Sam V
a370af08e6 Convert all source files to UTF without BOM 2022-12-17 13:32:43 +01:00
Anchur
2c84881c07 Update source file encoding to UTF-8 2022-12-16 22:52:07 +08:00
Sam V
273aab1d34 Format all files according to current formatting rules 2022-08-04 12:30:11 +02:00
Sam V
c4a67d43ad Fix autoswitch from tripmine to RPG causing wrong animation to play when weapon prediction is off
Resolves #160
2022-08-02 11:44:14 +02:00
Sam V
c30cd6f361 Fix tripmine body value being influenced by events from other weapons during deploy
Resolves #158
2022-08-02 11:27:24 +02:00
Sam V
979b45351e Split AddToPlayer into query and action methods
#157
2022-07-22 19:01:05 +02:00
Sam V
6951bf1b07 Rework how weapons are added to the player to delay ammo extraction until after the weapon is in the player's inventory so exhaustible weapon giving is handled properly
Resolves #153
#157
2022-07-22 18:55:10 +02:00
Sam V
5d8dc698a9 Change return type of GetWeaponptr to CBasePlayerWeapon*
#157
2022-07-22 18:46:04 +02:00
Sam V
42f45bdaec Fix weapon deploy animations caused by lastinv command not working properly
Resolves #154
2022-07-20 17:28:02 +02:00
Sam V
62525c6f27 Fix players not being given exhaustible weapons when they get the ammo for them
Resolves #153
2022-07-20 13:09:57 +02:00
Sam V
40d3849783 Fix RPG sometimes getting stuck unable to reload
Resolves ValveSoftware/halflife#3264
2022-03-26 12:24:28 +01:00
Sam V
b7b6080a54 Show pickup icons in HUD for all weapons
ValveSoftware/halflife#3137
2022-03-01 13:55:56 +01:00
Sam V
fd35528c5e Fix Gauss charge sound not always being reset
Resolves ValveSoftware/halflife#3188
2022-02-28 22:08:48 +01:00
Sam V
3a13e3877c Add method to decrement timers in weapons code 2022-02-21 15:57:39 +01:00
Sam V
decaa8038c Allow weapons to network data as needed 2022-02-21 15:45:55 +01:00
Sam V
c633af888f Add support for adding 64 weapons
Resolves #98
2021-12-02 13:49:56 +01:00
Sam V
ffe736252c Fix crowbar not showing in weapon list if there are empty weapon slots with a lower id
Resolves ValveSoftware/halflife#3181
2021-12-02 13:45:11 +01:00
Sam V
e01645e239 Use MAX_WEAPONS constant instead of magic numbers
#97
2021-12-02 00:15:31 +01:00
Sam V
9ca8e6a47a Remove unused globals and duplicate global variable forward declarations
#89
2021-11-28 20:40:56 +01:00
Sam V
08755342d0 Format all files and add clang-format configuration file
Resolves #84
2021-11-28 16:54:48 +01:00
Sam V
998469a386 Rework all boolean condition checks to use conversions to bool, use bool instead of int when possible
#69
#83
#59
2021-11-28 15:32:26 +01:00
Sam V
c5b1932a86 Remove all remaining references to BOOL
Rework all uses of BOOL member variables to use bool instead
Change save game system to use bool for FIELD_BOOLEAN
Remove BOOL typedefs
#59
2021-11-19 20:40:36 +01:00
Sam V
0b334a3216 Rework all uses of BOOL in function declarations with bool or qboolean
#59
2021-11-19 14:31:11 +01:00
Sam V
bce3b78653 Replace all uses of TRUE with true
#59
2021-11-19 13:45:16 +01:00
Sam V
99e0a0ed2c Replace uses of FALSE with false
#59
2021-11-19 13:43:33 +01:00
Sam V
0a3c17b92f Convert all include guards to pragma once
Resolves #50
2021-11-18 19:17:53 +01:00
Sam V
940bf0b0e9 Remove unused skiplocal parameter
Resolves #38
2021-10-21 14:00:29 +02:00
Daniel Walder
317511e4e1 Use override specifier where needed (clang-tidy modernize-use-override) 2021-03-21 20:23:32 +10:00
Solokiller
a3783be71e Move duplicated weapons code into weapons_shared.cpp 2021-03-16 21:26:03 +01:00
Solokiller
50865d896a Remove duplicate Egon constants, move constants to weapons.h 2021-03-16 21:00:13 +01:00
Solokiller
c74e99d590 Remove duplicate weapon animation enums 2021-03-16 20:52:58 +01:00
Solokiller
5aef8c54fc Remove unnecessary returns and semicolons 2021-03-05 23:48:27 +01:00
Solokiller
77c312a91d Use override specifier where needed (clang-tidy modernize-use-override) 2021-03-05 23:07:22 +01:00
Solokiller
8247ed76ea Remove void from functions taking no arguments (clang-tidy modernize-redundant-void-arg) 2021-03-05 20:54:33 +01:00
Solokiller
c39eca969c Move user message globals & link function to its own file, declare all user messages once 2021-02-17 17:10:14 +01:00
Solokiller
d4b0e77925 Remove m_fInZoom from Python & Crossbow to ensure zoom state restores correctly
halflife issue #3045
2021-02-16 18:56:51 +01:00
Solokiller
5dff9808d7 Fix egon creating fake beam when holding secondary attack key
halflife issue #2612
2021-01-31 16:45:33 +01:00
Solokiller
34ce0e3460 Always return m_iSecondaryAmmoType from CBasePlayerWeapon::SecondaryAmmoIndex
halflife issue #3029
2021-01-31 16:16:06 +01:00
Solokiller
a65846e9d0 Fix shotgun pump sound not playing when holding down attack or when shooting last shell
halflife issue #617
2021-01-18 14:38:31 +01:00
Solokiller
8092ab525f Change CRpgRocket m_pLauncher to EHANDLE
halflife issue #1719
2021-01-13 18:00:27 +01:00
Sam
bf7e91dba9 Make char* parameters const where needed to silence compiler warnings 2020-02-13 16:33:57 +01:00