1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-01-03 16:13:22 +08:00

161 Commits

Author SHA1 Message Date
unknown
87b4296e12 Add vector normalization method 2023-10-03 17:01:33 +03: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ł
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
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
1952d88fa8 Revert "Remove depricated register declaration"
This reverts commit c921714cc367358345e78086f64018a8c50bc896.
2018-07-19 18:58:12 -07:00
Michael Flaherty
c921714cc3 Remove depricated register declaration 2018-07-19 18:49:58 -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
Scott Ehlert
d73aca3068 Imported some changes from sdk2013. 2017-05-30 15:15:48 -05:00
Scott Ehlert
f00294a14d Ugh. Make new IMaterialSystem functions pure virtuals. 2017-05-29 20:14:41 -05:00
Scott Ehlert
7432b91e73 Update IMaterialSystem for TF2. 2017-05-29 19:48:43 -05:00
Kristian Klausen
a11dd1c078 utlmemory.h: Add missing template parameter (#31) 2017-01-18 17:18:19 -05:00
Nicholas Hastings
4eeeb83fed Update ICommandLine. 2016-09-21 13:12:45 -04:00
Nicholas Hastings
5e47fbf5f3 Merge pull request #22 from sigsegv-mvm/tf2
Backport swap() -> V_swap() rename to avoid C++11 ADL ambiguity errors
2016-03-22 10:40:58 -04:00
sigsegv
669d017fda Fix cases where V_swap didn't need the global scope resolution operator 2016-01-24 17:23:29 -08:00
sigsegv
0edbd27fb8 Backport swap() -> V_swap() rename to avoid C++11 ADL ambiguity errors
The swap() function provided in the MathLib header was renamed to V_swap in recent Source SDK versions (e.g. 2013) to avoid causing ambiguity problems with std::swap(). But older SDK versions (such as TF2) lack this change, as they predate it.

The ambiguity between MathLib's swap() and std::swap() causes considerable problems when using newer features of C++ (such as std::unique_ptr) which internally call swap() in an unqualified manner to implement move semantics:

/usr/include/c++/5.2.0/bits/unique_ptr.h:342:6: error: call of overloaded ‘swap(MyType*&, MyType*&)’ is ambiguous
/usr/include/c++/5.2.0/bits/move.h:176:5: note: candidate: void std::swap(_Tp&, _Tp&) [with _Tp = MyType*]
hl2sdk-tf2/public/mathlib/mathlib.h:611:18: note: candidate: void swap(T&, T&) [with T = MyType*]

This patch backports the swap() -> V_swap() rename from the 2013 SDK version to the TF2 SDK version, so that the TF2 SDK can be used in conjunction with C++11 features such as std::unique_ptr without difficulty.

More information on why swap() isn't called in a namespace-qualified manner by standard library functions:
http://en.cppreference.com/w/cpp/language/adl#Notes
2016-01-24 16:44:52 -08:00
Nicholas Hastings
53c23fed59 Add crit type to CTakeDamageInfo. 2015-11-11 13:01:15 -05:00
Nicholas Hastings
7fd8c26a9b Update CTakeDamageInfo from Source SDK 2013. 2015-11-11 12:53:54 -05:00
Nicholas Hastings
c4237cc89c Update CUserCmd. 2015-09-18 15:26:24 -04:00
Nicholas Hastings
83ab9fb541 Update IVEngineServer and IServerGameDLL. 2015-09-10 19:53:29 -04:00
Nicholas Hastings
2456274580 Revert "Update IUniformRandomStream."
This reverts commit 5474d11ed00efe5702026b78ee0031b978139e43.
2015-09-10 18:28:29 -04:00
Nicholas Hastings
e24a1442a7 Recompile Linux and Mac tier1. 2015-07-13 20:54:49 -04:00
Nicholas Hastings
edad9782f1 Remove extra _alligned_malloc. 2015-07-13 19:07:36 -04:00
Nicholas Hastings
1c13e12266 Port KeyValues class from Source SDK 2013. 2015-07-12 15:44:04 -04:00
Nicholas Hastings
02af635a89 Fix compile error. 2015-06-11 18:37:47 -04:00
Nicholas Hastings
f05f08ba9d Update IVEngineServer for today's game update. 2015-06-11 17:48:28 -04:00
Nicholas Hastings
9e17baf146 Update IVEngineServer. 2015-05-06 17:23:57 -04:00
Nicholas Hastings
a4c483063e Fix new warning from cset 5474d11ed00efe. 2014-11-15 11:32:47 -05:00
Nicholas Hastings
c1c3f9d00e Port offsetof "fix" from sdk2013. 2014-11-09 10:22:50 -05:00
Nicholas Hastings
41e9af392f Sync eiface.h from 2013 SDK. 2014-10-30 18:57:31 -04:00
Nicholas Hastings
5474d11ed0 Update IUniformRandomStream. 2014-10-29 20:49:28 -04:00