Sam V
2f29611676
Print texture type along with texture name when using impulse 107, make PM_FindTextureType const correct
2023-02-02 17:24:12 +01:00
Sam V
9c4af83c7d
Rename CWorld::Instance to CWorld::World to avoid conflicting with CBaseEntity::Instance function name
2023-02-02 13:17:24 +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
f2c8e2346e
Access world through global, access local player through helper function, remove some obsolete utility functions
...
ValveSoftware/halflife#3307
2022-10-07 16:40:56 +02:00
Sam V
efacee0ada
Fix Room DSP effects not always activating
...
Resolves #164
2022-09-14 21:10:27 +02:00
Roman Chistokhodov
561a436577
Fix weapon deploy animations on fast switching with user binds
2022-08-06 06:15:52 +03:00
Sam V
4f017fca99
Remove unnecessary map name variable
...
ValveSoftware/halflife#1144
2022-08-05 14:28:45 +02:00
Sam V
273aab1d34
Format all files according to current formatting rules
2022-08-04 12:30:11 +02:00
Sam V
bc3add9715
Always send room_type changes to client, set room_type to 0 by default, reset room_type to 0 on map change, save room_type and restore it when loading same map
...
Resolves ValveSoftware/halflife#1144
Resolves ValveSoftware/halflife#2936
2022-08-04 12:14:34 +02:00
Sam V
fdc159c8b3
Refactor env_sound code to use correct data type for room type, don't use goto
2022-08-04 11:36:15 +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
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
aa41b0ef35
Reset server's client FOV value so loading save games restores FOV correctly with weapon prediction disabled
...
Resolves ValveSoftware/halflife#3044
2022-07-20 12:13:07 +02:00
FranticDreamer
5a006e6630
Fix Ambiguous Template
2022-05-05 05:00:03 +03:00
FranticDreamer
1b3308c2a3
Fix STL Algorithm Header Errors When Included with Platform.h
...
"clamp" macro of Platform.h conflicts with "std::clamp" of the STL algorithm header. So `#include <algorithm>` forces Platform.h included after itself. This commit fixes the issue.
2022-05-05 04:49:15 +03:00
Sam V
2c41a96c8f
Fix "fullupdate" call making a HUD disappear
...
Resolves #147
2022-04-07 12:49:25 +02:00
Sam V
8bf424d215
Remove incorrect conditional check
...
Resolves #134
2022-03-14 12:44:18 +01:00
Sam V
3c1e84a172
Fix controlling a func_tank with empty weapon deploying invisible weapon when stopping control
...
Resolves #134
2022-03-13 21:51:28 +01:00
Sam V
812766c12c
Fix FL_FAKECLIENT flag being cleared in some places
...
Resolves ValveSoftware/halflife#3256
2022-03-09 13:56:31 +01:00
Sam V
ec35d42fe0
Fix picking up weapons that give free/regenerating ammo sometimes showing weapon icon as red
...
Resolves ValveSoftware/halflife#3250
2022-03-01 14:43:46 +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
3a13e3877c
Add method to decrement timers in weapons code
2022-02-21 15:57:39 +01:00
Sam V
fe8a54065c
Fix the crowbar damage always being calculated halved.
...
Resolves ValveSoftware/halflife#1600
2021-12-25 15:56:42 +01:00
Dominik Madarász
868b53f0de
Move the logic to PreThink
...
Admittedly, UpdateClientData() is unsuitable place for the logic, PreThink is where it should have been placed.
2021-12-03 21:30:08 +01:00
Dominik Madarász
cd37a0e13c
Keep old comments
2021-12-03 21:25:26 +01:00
Dominik Madarász
2b03a457f1
Fix invalidated linked entities in node graph
...
Originally, Precache() would attempt to renew all linked entity pointers based on their stored model name, however since not all entities are initialized from a saved game during this stage yet, occasionally, the game would fail to renew linked ent pointers and therefore lose reference to doors (etc) that block a traversal path between nodes.
The change should ensure we relink referenced entity pointers at a time when all entities are already present, therefore we ensure references are still resolved correctly and the pathfinding continues to work correctly even after we load a saved game.
Previous behavior:
NPC would fail to navigate through doors on a loaded save.
Current behavior:
NPC has no issue navigating through doors on a loaded save.
2021-12-03 21:22:37 +01:00
Sam V
c633af888f
Add support for adding 64 weapons
...
Resolves #98
2021-12-02 13:49:56 +01:00
Sam V
2b9b75ac97
Wrap braces after case label
...
#84
2021-11-29 20:55:01 +01:00
Sam V
12d410785b
Properly format method definitions to have no space between class name and scope operator
...
#84
2021-11-29 20:31:17 +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
48af7bd487
Rework all uses of BOOL in global and local variables to use bool
...
#59
2021-11-19 14:40:35 +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
a2d7db621d
Rework all uses of BYTE to use byte instead
...
#59
2021-11-18 21:57:21 +01:00
Sam V
44a3e2f397
Rework all uses of ULONG to use unsigned int instead
...
#59
2021-11-18 21:55:07 +01:00
Sam V
0a180821d9
Remove unused nodes.h includes and unncessary WorldGraph forward declarations
...
Remove references to WorldGraph global inside CGraph class
#37
Resolves #48
2021-11-18 15:03:44 +01:00
Sam V
8cb9d9eb90
Remove obsolete preprocessor macro checks
...
Resolves #47
2021-11-15 19:11:50 +01:00
Solokiller
c2902f8d15
Fix underwater breathing sounds playing when standing in shallow water
...
halflife issue #3110
2021-06-04 16:40:37 +02:00
Solokiller
0f730e8cc1
Remove duplicate function declarations in player.cpp
2021-03-16 21:44:54 +01:00
Solokiller
1fd1aef826
Move FNullEnt(CBaseEntity*) to cbase.h
2021-03-16 21:41:30 +01:00
Solokiller
fee74cbf90
Move clamp macro to Platform.h
2021-03-16 21:39:28 +01:00
Solokiller
a3783be71e
Move duplicated weapons code into weapons_shared.cpp
2021-03-16 21:26:03 +01:00
Solokiller
9eca76dccf
Move FindEntityForward to util.h/.cpp & rename to UTIL_FindEntityForward
2021-03-16 13:52:59 +01:00