Commit Graph

357 Commits

Author SHA1 Message Date
Andrey Akhmichin 0207817bf4
client: wscript: false_vgui->fake_vgui. 2022-07-20 14:42:45 +05:00
Roman Chistokhodov 695e2e060b
Rename false_vgui to fake_vgui (#286) 2022-07-20 05:23:52 +00:00
Roman Chistokhodov 6648265594
compile.bat in release mode. Remove BOM from tripmine.cpp (#284) 2022-07-19 12:29:44 +00:00
Roman Chistokhodov 1c42a4170c
Fix drawing non-latin characters from titles.txt (#261) 2022-07-08 22:17:29 +05:00
Andrey Akhmichin 4f5e71238f
Merge branch 'master' into zombie-x 2022-06-21 06:19:57 +05:00
Andrey Akhmichin f3b8ba2cb5
Merge branch 'master' into sohl1.2 2022-06-21 06:17:52 +05:00
Andrey Akhmichin b0b68d5755
cmake: update vgui path. 2022-06-18 06:42:42 +05:00
Andrey Akhmichin 57d0e3fae8
Merge branch 'sohl1.2' into zombie-x 2022-06-17 10:34:53 +05:00
Andrey Akhmichin ac75b528a1
Merge branch 'master' into sohl1.2 2022-06-17 06:48:36 +05:00
Andrey Akhmichin 987ea07ce1
cmake: add more options and show more diagnostic messages. 2022-06-17 03:59:39 +05:00
Andrey Akhmichin d8b05d12d5
cmake: better tgmath.h check. 2022-06-16 11:54:55 +05:00
Andrey Akhmichin 1397f3ab4f
cmake: use "lib" prefixe only for Android. 2022-06-16 10:50:14 +05:00
Andrey Akhmichin 7b50c80e74
Merge branch 'sohl1.2' into zombie-x 2022-06-06 23:58:21 +05:00
Andrey Akhmichin 3983f44584
Fix build. 2022-06-05 23:21:46 +05:00
Andrey Akhmichin 723180f497
Merge branch 'master' into sohl1.2 2022-06-05 23:07:22 +05:00
Andrey Akhmichin e2da6954c8
Fix crowbar not showing in weapon list if there are empty weapon slots with lower id.
Same as ffe736252c
2022-06-04 20:16:11 +05:00
Andrey Akhmichin cf4d2a74dc
Change default thirdperson view. 2022-06-03 21:47:56 +05:00
a1batross 808be9442f
Use filtered command buffer when string came from network (#241)
* cdll_int: add undocumented FilteredClientCmd function to client interface

* client: use filtered command buffer where we have to execute command from server

* client: use normal pfnClientCmd in place of pfnFilteredClientCmd in case of engine doesn't supports it

* client: don't read out of bounds if engine interface is old and don't have pfnFilteredClientCmd

* client: fix incorrect cvar pointer comparison
2022-04-24 03:43:45 +05:00
Marc-Antoine Lortie f43961e4d0
Simplify glock fire events (#231)
* Refactor EV_FireGlock2.

* Moved EV_FireGlock1 implementation to static function.
2021-12-14 19:23:07 +05:00
Marc-Antoine Lortie f7fa565c3f
Removed unused variables in ev_hldm.cpp (#218) 2021-12-06 00:14:52 +05:00
Marc-Antoine Lortie ac2a757b90
Added missing tracerCount for EV_HLDM_FireBullets. (#216) 2021-12-06 00:13:44 +05:00
Marc-Antoine Lortie 7f8f73c679
Remove unused source files (#212)
* Delete AI_BaseNPC_Schedule.cpp

* Delete soundsystem.cpp
2021-12-01 12:14:12 +05:00
Marc-Antoine Lortie 4e7111e434
Removed identical line in conditional statement. (#209) 2021-11-21 15:21:54 +05:00
Marc-Antoine Lortie ec2826a96a
Fixed crossbow fire on empty sequence not playing. (#207) 2021-11-21 15:21:36 +05:00
Marc-Antoine Lortie 3674e3f154
Fixed RPG client prediction results stored in wrong pointer. (#206) 2021-11-21 15:20:38 +05:00
Roman Chistokhodov b3804d5ad8
Remove redundant dependency on ws2_32 (#204) 2021-11-03 22:52:12 +05:00
Roman Chistokhodov 504e8b19d5
Handle key input in vgui (#198) 2021-10-27 23:20:03 +05:00
Roman Chistokhodov ba2cab60df
Get VGUI back (optionally) (#194)
* Get VGUI back (optionally)

* Add some missing VGUI invocations

* Update CMakeLists.txt to build with vgui for Windows

* Move windows.h inclusions only to those places where it's really needed

* Try fix mingw build

* Update hud_spectator

* Merge nekonomicon's vgui branch

* Don't include vgui panel and app in cdll_int.cpp if vgui is real

* Deduplicate scoreboard global variables

* Add options to prefer non-vgui motd and scoreboard when vgui is enabled

* Add vgui-dev as a submodule. Add building vith vgui to CI

* Fix artifact uploading

* Don't use global variable when not necessary

* char* to const char* in CMenuHandler_StringCommand constructor

* Fix 'format string is not a literal string' warnings

* Fix 'always evaluate to true' warnings

* Team Fortress classes to const char*

* CreateCommandMenu accepts const char*

* Fix printf formats. Turn some unsigned longs into unsigned ints since they use only 32 bits anyway

* Explicit assignment result as condition

* Prevent memory leak on menu reading

* Localize button text

* Create FileInputStream on stack avoiding the leak

* Remove Servers Browser code

* Arrow file names to const char*

* Fix assignment to the wrong variable
2021-10-27 01:35:11 +00:00
Andrey Akhmichin 23f2da93eb Merge branch 'sohl1.2' into zombie-x 2021-09-17 23:32:00 +05:00
Andrey Akhmichin db8ac8f2f0 Merge branch 'master' into sohl1.2 2021-09-17 23:28:25 +05:00
Roman Chistokhodov 136ee78cfd
Make msvc builds in release mode with static runtime (#185) 2021-08-27 13:04:15 +05:00
Andrey Akhmichin 3503619bdd Merge https://github.com/ValveSoftware/halflife/pull/3099. 2021-07-07 00:41:17 +05:00
Andrey Akhmichin 5addc7462b Fix player models view. 2021-06-26 21:03:51 +05:00
Andrey Akhmichin 8af2d8614e Fix MP41A sounds. 2021-06-26 20:48:31 +05:00
Andrey Akhmichin 94bc154720 Fix AK-47 shells. 2021-06-26 20:43:51 +05:00
Andrey Akhmichin 5e49827de9 Fix autoshotgun shells. 2021-06-26 20:41:31 +05:00
Andrey Akhmichin 98f4ed02bb Turn on incidental sounds. 2021-06-26 20:37:43 +05:00
Andrey Akhmichin 6e7653eec1 Move M_PI definition to header. 2021-06-20 13:49:04 +05:00
Andrey Akhmichin d96cb2bbce Merge branch 'sohl1.2' into zombie-x 2021-06-20 04:48:28 +05:00
Andrey Akhmichin 50f6cf4a40 Fix compilation. 2021-06-20 04:47:09 +05:00
Andrey Akhmichin 127a559dd7 Merge branch 'sohl1.2' into zombie-x 2021-06-20 04:27:46 +05:00
Andrey Akhmichin 314d096c1f Merge branch 'master' into sohl1.2 2021-06-20 04:26:46 +05:00
Andrey Akhmichin a541a9699c #ifdef->#if. 2021-06-20 03:53:07 +05:00
Bohdan Shulyar fd6f48175f
Comment unused variables (#184)
* Comment unused variables

* Comment out dead code
2021-06-18 13:00:09 +05:00
Bohdan Shulyar 662af50306
Bump minimum CMake version (lower versions are deprecated) (#182) 2021-06-18 07:41:38 +05:00
Bohdan Shulyar d95080281f
Fix implicit conversion (#180) 2021-06-18 07:40:38 +05:00
Andrey Akhmichin 05ea3bc8ec #ifdef->#if. 2021-06-17 02:56:07 +05:00
Andrey Akhmichin d96c9c6664 Merge branch 'sohl1.2' into zombie-x 2021-06-17 02:39:31 +05:00
Andrey Akhmichin 9e9c587484 Merge branch 'master' into sohl1.2 2021-06-16 02:20:54 +05:00
Andrey Akhmichin da5efc7146 Get rid of project files for MSVC 98. 2021-06-14 01:39:55 +05:00
Roman Chistokhodov 3f6ab0b2fd
Fix Goldsource build (#176) 2021-06-08 02:05:47 +05:00
Andrey Akhmichin 0dd90846fe #ifdef->#if 2021-06-07 05:05:58 +05:00
Andrey Akhmichin 1427eff24b Merge branch 'sohl1.2' into zombie-x 2021-06-06 19:28:26 +05:00
Andrey Akhmichin 3fd9768048 Merge branch 'master' into sohl1.2 2021-06-06 18:59:49 +05:00
Roman Chistokhodov 397286021c Try fixing occasional bug with missing mp5 reload animation when holding primary attack after clip was depleted 2021-06-06 01:17:08 +05:00
Andrey Akhmichin 2c7e07ef49 Fix egon beam color. Same as https://github.com/ValveSoftware/halflife/issues/3033. 2021-06-05 20:13:07 +05:00
Alibek Omarov e4dd9192cc client: fix scoreboard not setting IN_SCORE bit in usercmd 2021-06-01 17:38:24 +03:00
Andrey Akhmichin 93630eae23 Fix player model angles.
Same as https://github.com/ValveSoftware/halflife/issues/3075.
2021-04-04 22:30:49 +05:00
Andrey Akhmichin 5dd184da23 Fix memory leaks when parsing files. 2021-03-26 04:08:05 +05:00
nekonomicon a0a30049fd
Merge pull request #152 from FreeSlave/gauss-color
Gauss color depends on its charge
2021-02-10 18:39:59 +00:00
Roman Chistokhodov 06f046430d Fix occasional double playing of reload animations 2021-02-10 20:30:01 +03:00
Roman Chistokhodov 0a29ec49c8 Gauss color depends on its charge 2021-02-10 20:25:30 +03:00
Andrey Akhmichin 724fcb856b Merge branch 'master' into sohl1.2 2020-11-22 20:22:32 +05:00
Andrey Akhmichin 29820462df Merge branch 'master' into zombie-x 2020-11-22 18:03:56 +05:00
Agent Agrimar a39583f1ef client: cmake: add winmm.lib dependency
This fixes a linker error when compiling for win32 with Goldsrc Support enabled.
2020-09-13 15:06:52 +03:00
Agent Agrimar efe13c3d04 client: wscript: add winmm.lib dependency
This fixes a linker error when compiling for win32 with Goldsrc Support enabled.
2020-09-13 15:06:52 +03:00
Andrey Akhmichin 8e4ded4017 wscript: update yet again. 2020-08-09 03:29:46 +05:00
Andrey Akhmichin 81fa3f8e64 Merge branch 'master' into zombie-x 2020-08-09 01:24:35 +05:00
Andrey Akhmichin 0bbb5badda Merge branch 'master' into sohl1.2 2020-08-08 20:56:06 +05:00
Andrey Akhmichin 2254a16b7b client: wscript: update. 2020-08-02 20:23:29 +05:00
Andrey Akhmichin 42b9bef64a Merge branch 'master' into sohl1.2 2020-08-02 00:05:58 +05:00
Andrey Akhmichin 910a1d27e6 Merge branch 'master' into zombie-x 2020-08-01 22:11:53 +05:00
Andrey Akhmichin f20b7259f3 wscript: reorder sources list. 2020-08-01 20:26:28 +05:00
Andrey Akhmichin 0324eb0431 Fix possible memory leak. 2020-07-25 09:28:02 +05:00
Andrey Akhmichin 0aecf06741 Remove GPL-licensed headers. 2020-04-22 13:12:23 +05:00
Andrey Akhmichin 6af5c3f472 Safe _snprintf usage. 2020-04-01 13:14:14 +05:00
Roman Chistokhodov 3e1e8961bf Stop gauss pulse sound on overcharge 2020-03-31 20:46:37 +03:00
mittorn c6d793231c wscript: do not set install_path on dos target, set build task names to "server" and "client" 2020-02-12 15:40:06 +07:00
mittorn 9a08968453 fix undefined symbols and conflicts on OpenWatcom 2020-02-12 15:37:46 +07:00
mittorn 2ba9071798 check if cmath useful, remove posix defines when using owcc 2020-02-12 15:34:05 +07:00
mittorn 3a2d8ef5f9 client: remove useless defines 2020-02-12 15:28:50 +07:00
Andrey Akhmichin 5c07a90490 Double promotion fixes. 2020-01-11 03:51:45 +05:00
Andrey Akhmichin b7f7d6632d Merge branch 'sohl1.2' into zombie-x 2020-01-07 17:56:53 +05:00
Andrey Akhmichin aa9106ae72 Double promotion fixes. 2020-01-07 17:53:03 +05:00
Andrey Akhmichin db9f932bef Merge branch 'sohl1.2' into zombie-x 2020-01-01 04:52:45 +05:00
Andrey Akhmichin e03788de52 Merge branch 'master' into sohl1.2 2020-01-01 04:46:25 +05:00
Andrey Akhmichin c8c2ed7f21 Merge branch 'sohl1.2' into zombie-x 2019-11-17 17:09:46 +05:00
Andrey Akhmichin b8825c2039 Fix some potential troubles.
Comment some useless code.
2019-11-16 13:54:47 +05:00
Alibek Omarov b4d3b5d8be wscript: enable library naming 2019-11-11 04:07:51 +03:00
Andrey Akhmichin 16e0a45d3c Merge branch 'master' into sohl1.2 2019-11-11 04:00:45 +05:00
Alibek Omarov 8622cc945d CMakeLists: remove legacy 64 postfix 2019-11-11 01:07:20 +03:00
tyabus 446f608cf3 Remove outdated Makefiles (#110)
* Remove outdated Makefiles

* Update README.md
2019-11-07 23:11:20 +03:00
Andrey Akhmichin 4a02cfc012 Merge branch 'double_promotion' 2019-11-05 02:48:47 +05:00
Andrey Akhmichin b8f2d8c972 client: make some cvars archive. 2019-11-04 00:05:51 +05:00
Andrey Akhmichin 88161eac14 Add "cl_autowepswitch" cvar implementation. 2019-11-03 22:59:33 +05:00
Jonathan Poncelet 71afe6e204 Build: Added user32.lib dependency to CMake
Also had to add ResetThink to cbase.h, as it was missing in deug.
2019-10-30 17:43:30 +03:00
Jonathan Poncelet aa7b5dc5ca Build: Fixed issues on Windows
in_camera.o wouldn't link because of unresolved
symbols relating to getting/setting the cursor
position, so user32.lib was added as a dependency.
The gitignore was also missing ignore rules for
different waf folder name variations, and the
.vscode directory for people (like me) who use
VS Code.
2019-10-30 17:43:30 +03:00
Alibek Omarov ae6299f636 wscript: use taskgen counter to solve problem with compiling shared code instead of hardcoding indexes 2019-10-16 01:36:41 +03:00
Andrey Akhmichin e03f5e3c3e Remove useless prototypes. 2019-10-13 21:15:06 +05:00
Andrey Akhmichin 11adcd5ac8 cmake: Add check for tgmath.h header. 2019-10-13 20:58:14 +05:00
Andrey Akhmichin a9f37f6d74 Include tgmath.h and cmath headers. 2019-10-13 20:27:05 +05:00
Andrey Akhmichin 73397679c2 More double promotion fixes. 2019-10-13 20:10:52 +05:00
Andrey Akhmichin ec9bffedaf Partially fix double promotion. 2019-10-13 16:49:25 +05:00
Andrey Akhmichin 2905950cb0 Merge branch 'master' into sohl1.2 2019-10-12 19:48:03 +05:00
Alibek Omarov fbb5da7051 cl_dll: death: fix char signness 2019-10-11 09:08:05 +03:00
iZarif a0ccf2d0a1 size of arrays are now a power of two 2019-10-03 00:24:27 +04:00
iZarif 04a31f4a1a fix gcc 8.3.0 format-overflow warnings 2019-10-02 23:15:53 +04:00
Andrey Akhmichin c9fdcd91e8 A little optimizations. 2019-09-24 03:00:37 +05:00
Alibek Omarov 17e1af726d wscript: remove DEST_OS2 2019-09-19 17:18:57 +03:00
Andrey Akhmichin 9cd0edf291 Merge branch 'master' into zombie-x 2019-08-12 04:17:22 +05:00
Andrey Akhmichin ff9d37a4a2 Merge branch 'master' into sohl1.2 2019-08-12 03:31:20 +05:00
Andrey Akhmichin 745d722a5a client: min->Q_min, max->Q_max. 2019-08-12 02:25:50 +05:00
Andrey Akhmichin 456b52f31e Remove duplicated strings. 2019-07-18 04:35:38 +05:00
Andrey Akhmichin 21056bf4a5 Merge branch 'master' into zombie-x 2019-07-12 07:45:33 +05:00
Andrey Akhmichin 5cb433092b Merge branch 'master' into sohl1.2 2019-07-12 06:14:01 +05:00
Andrey Akhmichin 40d4e75d4b Fix warnings. 2019-07-07 20:08:01 +05:00
Andrey Akhmichin 63b23b96a4 Add a missing con qualifier in HUD_PlaybackEvent function. 2019-07-07 19:49:19 +05:00
Andrey Akhmichin 93d1ed0294 Add a missing const qualifiers. Remove unneeded casts. 2019-07-07 19:37:24 +05:00
Alibek Omarov 31b9b72bc9 waf: update to waf 2.0.17, rename waflib to waifulib, remove some modules, as they're now inside waf binary(see waifu project) 2019-06-06 03:37:08 +03:00
Alibek Omarov a699702c00 wscript: strip lib prefix for HLSDK 2019-05-06 04:14:48 +03:00
Alibek Omarov 470a71540b waf: initial deploy 2019-05-03 19:19:39 +03:00
Roman Chistokhodov f7e51e2c20 Stop uncontrollable camera rotating when raw mouse input is on 2019-05-02 13:16:43 +03:00
Roman Chistokhodov 76b7df393a Add spaces between source files in compile.bat 2019-05-02 13:12:57 +03:00
Roman Chistokhodov f2f83cd035 Allow hud messages or arbitrary length 2019-04-11 20:07:41 +03:00
Roman Chistokhodov ea6fa67c87 Fix potential crash / data corruption in hud message 2019-04-11 20:07:41 +03:00
Roman Chistokhodov 984dab64d3 Use line height from screen info in motd and scoreboard 2019-04-11 16:04:52 +03:00
Roman Chistokhodov 88992a82b8 Reformat spaces to tabs in input_goldsource.cpp 2018-12-04 07:06:30 +03:00
Roman Chistokhodov 60e15c98ee Enable camera rotation on death in Gold Source 2018-12-03 22:11:47 +03:00
Roman Chistokhodov 4dfdb6fc98 Fix for goldsource running in fullscreen with resolution lower than screen's one (#67) 2018-11-29 15:22:17 +03:00
Night Owl 8d53d3cfa7 Merge "Zombie X" source code. 2018-10-08 05:59:28 +05:00
Night Owl 7985ccc7dc Merge branch 'cmake' into sohl1.2 2018-09-12 06:04:01 +05:00
Jonathan Poncelet 65cb1f54f4 Made library functions hidden by default on Mac/Linux
This resolves an issue where the server library was calling client
library functions in error.
2018-08-07 08:24:04 +01:00
Night Owl 822c46de43 Merge branch 'master' into sohl1.2 2018-07-16 04:51:30 +05:00
Alibek Omarov 744732a381
Merge pull request #59 from nekonomicon/flashlight
Do not show flashlight sprite in spectator mode.
2018-07-02 14:46:32 +03:00
Night Owl 3b59c3c806 Merge branch 'master' into sohl1.2 2018-04-14 05:17:34 +05:00
Night Owl a5b9bd93e9 Update Android.mk. 2018-04-09 21:22:07 +05:00
Night Owl 3d7e2b0d93 Do not show flashlight sprite in spectator mode. 2018-04-08 03:32:13 +05:00
Roman Chistokhodov 71f55bb119 Add mingw support to CMakeLists.txt. Add crosscompiling instructions to README.md 2018-04-03 21:39:07 +03:00
Alibek Omarov 6e5062b39e Check for bad game data(missing or invalid hud.txt) 2018-04-02 23:57:09 +03:00
Alibek Omarov cec6d7a1bc Add HUD_MessageBox. Rename isXashFWGS to IsXashFWGS 2018-04-02 23:57:09 +03:00
Roman Chistokhodov f6ffc92d5d Always update gHUD.m_iFOV on SetFOV message. Fix #53 2018-04-01 20:38:56 +03:00
Night Owl 6fe4259223 Merge branch 'master' into sohl1.2 2018-03-31 17:24:38 +05:00
Andrey Akhmichin 9d7ab6acf4 Some fixes for FoV, HUD, egon flare and new compilers. (#52)
* Fix warnings.

* Merge some fixes from https://github.com/Fograin/hl-subs-mod.
2018-03-31 15:09:13 +03:00
Alibek Omarov 3401f54148 Fix Android buil 2018-03-23 23:46:05 +03:00
Alibek Omarov 4af9030156 Append 64 postfix on 64 bit 2018-03-22 15:23:34 +03:00
Alibek Omarov 6161c6d4d8 Replace snprintf by _snprintf, for MSVC 2018-03-04 00:24:54 +03:00
Night Owl 6f1979e045 Merge branch 'warnings' into sohl1.2 2018-02-23 04:51:39 +05:00
Night Owl fab202a108 Fix warnings. 2018-02-23 04:50:30 +05:00
Night Owl 7b4ac843bc Merge branch 'master' into sohl1.2 2018-02-23 00:34:42 +05:00
Night Owl 588065ab16 Do not show long nicknames on low resolution. 2018-02-15 17:27:02 +05:00