1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2024-12-22 17:47:38 +08:00
Commit Graph

195 Commits

Author SHA1 Message Date
Nicholas Hastings
697e316fa9 Merge branch 'tf2' into hl2dm
# Conflicts:
#	game/client/cdll_util.cpp
#	game/client/clientleafsystem.cpp
#	game/client/clientshadowmgr.cpp
#	game/client/detailobjectsystem.cpp
#	game/server/filters.cpp
#	game/server/hltvdirector.cpp
#	game/server/physconstraint.cpp
#	game/server/props.cpp
#	game/shared/gamerules.cpp
#	game/shared/takedamageinfo.cpp
#	game/shared/takedamageinfo.h
#	lib/linux/tier1_i486.a
#	lib/mac/tier1_i486.a
#	lib/public/tier1.lib
#	public/eiface.h
#	public/mathlib/mathlib.h
#	public/tier0/memalloc.h
#	public/tier1/utlmemory.h
#	public/tier1/utlvector.h
#	public/toolframework/itoolentity.h
#	tier1/KeyValues.cpp
2024-11-17 09:34:45 -05:00
Benoist
e0e01948b8
Update icommandline.h (#277) 2024-10-18 19:46:19 -04:00
nosoop
fecc02ac80
Add CreateCmdLine overloads from TF2 version 9247927 (2024-10-11) (#276) 2024-10-11 14:13:37 +00:00
bottiger1
b1a7396112
fix compile errors on 64 bit (#256) 2024-06-21 15:44:27 +00:00
James Puleo
c597bda668
Enable tier0/threadtools.h to compile under GCC with -std=c++20 (#242) 2024-05-18 11:59:31 +00:00
Nick Hastings
5c00eb77e2 Update libs 2024-04-22 21:27:29 -04:00
Nick Hastings
350bd34a1d Revert "Update CPUInformation struct for game update (#231)" 2024-04-22 18:22:25 -04:00
Nick Hastings
732b5b29b5 More mathlib unification with SDK 2013, including 3dnow fixes (#231) 2024-04-21 11:52:42 -04:00
Nick Hastings
b886c90f88 AMBuild: add missing LINUX define 2024-04-21 11:45:03 -04:00
Nick Hastings
a3efa702d0 Rebuild tier1 and mathlib (#231) 2024-04-20 13:42:47 -04:00
Nick Hastings
0d247b9566 Port GetCPUInformation and mathlib from sdk2013 2024-04-20 13:42:47 -04:00
Nick Hastings
b099570391 Update CPUInformation struct for game update (#231) 2024-04-20 13:42:46 -04:00
Nick Hastings
571edba354 AMBuild: Add missing COMPILER_ defines for MSVC 2024-04-20 13:07:45 -04:00
Nick Hastings
9e5b0edaa2 AMBuild: fix --targets being ignored 2024-04-20 13:05:30 -04:00
Benoist
c489fe84ba
Update tier0 (#230)
* update tier0

* update libs

* inline the functions

---------

Co-authored-by: Kenzzer <kenzzer@users.noreply.github.com>
2024-04-19 13:56:34 +00:00
Benoist
017978fef7
Fix ThreadGetCurrentId definition on Win32 (#218)
* Add updated libs

* Fix ThreadGetCurrentId definition on win32

---------

Co-authored-by: Kenzzer <kenzzer@users.noreply.github.com>
2024-03-21 00:10:45 +00:00
Benoist
8a6d1c6cd2
TF2 win64 + Ambuild tier1/mathlib + long=devil (#198)
* Fix compilation for windows, setup ambuild

* Add built tier1 and mathlib for win64

* Ensure compilation is working on windows and linux

* Add -fPIC

* Add compiled libs, with optimisation enabled

* Added windows lib

* Fix hl2sdk for windows

* Longs are the devil

* Fix up threadtools functions

* Add updated libs

* Rework lib naming, and package script

* Update lib directory according to new packaging

---------

Co-authored-by: Kenzzer <kenzzer@users.noreply.github.com>
2024-03-09 03:57:12 +00:00
Benoist
dcf515fea8
Prepare for TF2 64bits (#127)
* Prepare for 64bits

* Add the dynamic and static librairies

* Delete choreoobjects_x86_64.a

---------

Co-authored-by: Kenzzer <kenzzer@users.noreply.github.com>
2024-01-26 13:19:59 +00:00
David Anderson
8d4758550e Rename mathlib clamp to V_clamp. 2023-10-13 21:13:34 -07:00
David Anderson
140cc6dc66 Rename mathlib clamp to V_clamp. 2023-10-13 21:13:34 -07:00
nosoop
2d3560994f
Add AddScreenTextOverlay overload (#128)
TF2's VScript update appears to add a new member to the overlay
interface.  Discovered by cross-referencing VDebugOverlay003
argument counts / inferred types in disassembly on Windows.

NDebugOverlay::ScreenText was affected by this change differently
on Windows and Linux, so it suggests an overload.
2023-05-27 16:42:27 +00:00
rumblefrog
7baac403d7
fix(vscript): add unknown member (#126) 2023-04-17 01:07:35 +00:00
Rafał
6f8b684753 Add missing replay bool in CPlayerState from sdk2013 to tf2 branch (#124)
(cherry picked from commit 78673d4c4a)
2023-02-16 19:40:29 -05:00
Rafał
78673d4c4a
Add missing replay bool in CPlayerState from sdk2013 to tf2 branch (#124) 2023-02-17 00:34:49 +00:00
sappho
361122610f
Update CBaseHandle from CS:GO SDK (#120) 2022-12-02 08:47:14 +00:00
Nick Hastings
4209d92435 Update NUM_ENT_ENTRY_BITS. 2022-12-01 22:36:42 -05:00
Mikusch
320e2adaff
tf2: Fix duplicate stackalloc in tier0/platform.h (#119) 2022-12-02 00:12:19 +00:00
Mikusch
9c891b6443
tf2: Add vscript headers (#118)
* Add vscript headers

* Update vscript interface version

* Remove duplicate macro and add CSquirrelVM::ReferenceScope
2022-11-26 17:42:15 +00:00
Robin Gohmert
e7516716cb
Updated INTERFACEVERSION_SERVERGAMEDLL to version 12 (#106)
* Updated INTERFACEVERSION_SERVERGAMEDLL to version 12

* Added missing param name
2022-10-13 19:11:35 +00:00
sappho
423127c72a
Update INTERFACEVERSION_SERVERGAMEDLL_VERSION to 11 (#100) 2022-06-24 13:37:26 +00:00
sappho
4235f23520
fix conflicting return type (#99)
* fix conflicting return type

Example bad compile:
```c
[  6%] Building CXX object CMakeFiles/TFTrue.dir/AutoUpdater.cpp.o
In file included from /home/steph/TFTrue/SDK.h:38,
                 from /home/steph/TFTrue/AutoUpdater.h:27,
                 from /home/steph/TFTrue/AutoUpdater.cpp:19:
/home/steph/TFTrue/hl2sdk-tf2/game/shared/gamemovement.h:45:24: error: conflicting return type specified for ‘virtual const Vector& CGameMovement::GetPlayerMins(bool) const’
   45 |  virtual const Vector& GetPlayerMins( bool ducked ) const;
      |                        ^~~~~~~~~~~~~
In file included from /home/steph/TFTrue/hl2sdk-tf2/game/shared/gamemovement.h:15,
                 from /home/steph/TFTrue/SDK.h:38,
                 from /home/steph/TFTrue/AutoUpdater.h:27,
                 from /home/steph/TFTrue/AutoUpdater.cpp:19:
/home/steph/TFTrue/hl2sdk-tf2/game/shared/igamemovement.h:122:17: note: overridden function is ‘virtual Vector IGameMovement::GetPlayerMins(bool) const’
  122 |  virtual Vector GetPlayerMins( bool ducked ) const = 0;
      |                 ^~~~~~~~~~~~~
In file included from /home/steph/TFTrue/SDK.h:38,
                 from /home/steph/TFTrue/AutoUpdater.h:27,
                 from /home/steph/TFTrue/AutoUpdater.cpp:19:
/home/steph/TFTrue/hl2sdk-tf2/game/shared/gamemovement.h:46:24: error: conflicting return type specified for ‘virtual const Vector& CGameMovement::GetPlayerMaxs(bool) const’
   46 |  virtual const Vector& GetPlayerMaxs( bool ducked ) const;
      |                        ^~~~~~~~~~~~~
In file included from /home/steph/TFTrue/hl2sdk-tf2/game/shared/gamemovement.h:15,
                 from /home/steph/TFTrue/SDK.h:38,
                 from /home/steph/TFTrue/AutoUpdater.h:27,
                 from /home/steph/TFTrue/AutoUpdater.cpp:19:
/home/steph/TFTrue/hl2sdk-tf2/game/shared/igamemovement.h:123:17: note: overridden function is ‘virtual Vector IGameMovement::GetPlayerMaxs(bool) const’
  123 |  virtual Vector GetPlayerMaxs( bool ducked ) const = 0;
      |                 ^~~~~~~~~~~~~
In file included from /home/steph/TFTrue/SDK.h:38,
                 from /home/steph/TFTrue/AutoUpdater.h:27,
                 from /home/steph/TFTrue/AutoUpdater.cpp:19:
/home/steph/TFTrue/hl2sdk-tf2/game/shared/gamemovement.h:47:24: error: conflicting return type specified for ‘virtual const Vector& CGameMovement::GetPlayerViewOffset(bool) const’
   47 |  virtual const Vector& GetPlayerViewOffset( bool ducked ) const;
      |                        ^~~~~~~~~~~~~~~~~~~
In file included from /home/steph/TFTrue/hl2sdk-tf2/game/shared/gamemovement.h:15,
                 from /home/steph/TFTrue/SDK.h:38,
                 from /home/steph/TFTrue/AutoUpdater.h:27,
                 from /home/steph/TFTrue/AutoUpdater.cpp:19:
/home/steph/TFTrue/hl2sdk-tf2/game/shared/igamemovement.h:124:18: note: overridden function is ‘virtual Vector IGameMovement::GetPlayerViewOffset(bool) const’
  124 |  virtual Vector  GetPlayerViewOffset( bool ducked ) const = 0;
      |                  ^~~~~~~~~~~~~~~~~~~
gmake[2]: *** [CMakeFiles/TFTrue.dir/build.make:82: CMakeFiles/TFTrue.dir/AutoUpdater.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/TFTrue.dir/all] Error 2
gmake: *** [Makefile:103: all] Error 2
```

This should've been updated when this was updated:

5ad032f350

* part 2
2022-05-23 04:56:52 +00:00
infernalxdrm
4f04af6123
Get rid of warnings (#88)
* Get rid of warnings

-macro expansion producing 'defined' has undefined behaviour
-conversion from 'int' to 'float', possible loss of data

* Get rid of errors

-conversion from 'int' to 'float', possible loss of data
2021-11-04 21:14:31 +00:00
sapphonie
36bb704114
Add new IServer member IsUsingFakeIP (#96) 2021-10-06 00:55:16 +00:00
Nick Hastings
b1c62a5107 Update INetChannel. 2021-09-16 22:06:13 -04:00
Nick Hastings
2cc52fc0ae Remove IVEngineServer::IsInternalBuild. 2021-09-16 21:03:52 -04:00
Nick Hastings
713b342171 Add new IServer member. 2021-09-16 20:06:29 -04:00
David Anderson
78386aa4b3 Fix conflicts with std::swap. 2020-05-18 17:43:13 -07:00
David Anderson
54a1c6d203
Merge pull request #51 from maximsmol/tf2
tf2: Fix IsPowerOfTwo clash in memalloc
2019-03-26 12:02:34 +09:00
Maksim Smolin
aeaac79140 fix IsPowerOfTwo clash in memalloc 2019-01-21 22:07:10 -08:00
Nick Hastings
312f15e0d6 ICommandLine update for upcoming TF2 update. 2018-08-02 17:26:25 -04:00
Michael Flaherty
57cd5aa8db Revert "Remove depricated register declaration"
This reverts commit 53ca5e6da9.
2018-07-19 19:06:30 -07:00
Michael Flaherty
1952d88fa8 Revert "Remove depricated register declaration"
This reverts commit c921714cc3.
2018-07-19 18:58:12 -07:00
Michael Flaherty
c921714cc3 Remove depricated register declaration 2018-07-19 18:49:58 -07:00
Michael Flaherty
53ca5e6da9 Remove depricated register declaration 2018-07-19 18:43:45 -07:00
Nick Hastings
0fb7706f1b Recompile tier1. 2018-05-05 10:53:32 -04:00
Nick Hastings
274778e0dc Compile fix. 2018-05-05 10:41:02 -04:00
Nick Hastings
08c1461a88 Further ConVar ABI fixes. 2018-05-05 10:26:01 -04:00
Nick Hastings
6e5b1bf250 Update ICVar, IConVar, and ConVar from SDK 2013.
Includes minor fix-ups, such as not calling change callbacks when new
value matches old value.
2018-05-05 10:01:15 -04:00
Nicholas Hastings
1fca804cbd Recompile Linux tier1 lib to fix missing symbol issue. 2017-06-16 08:07:19 -04:00
Scott Ehlert
7ee1f97dd6 Imported more changes from sdk2013. 2017-05-30 15:22:52 -05:00