Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dota & CS2 support #125

Merged
merged 89 commits into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
b3abdad
ConVar rework initial
GAMMACASE Mar 28, 2023
824f7f3
Small struct and class adjastments
GAMMACASE Mar 28, 2023
8503c28
Update CVValue_t to respect EConVarType
GAMMACASE Mar 28, 2023
a3068c0
Finished ResetDbgInfo/m_pElements removal on data structures
psychonic Mar 29, 2023
0fc5c14
Further ICVar reversal
GAMMACASE Mar 29, 2023
d01c2a1
Remove iconvar.h
GAMMACASE Mar 29, 2023
29d7e4e
Restructure convar.h and icvar.h
GAMMACASE Mar 29, 2023
47fa8de
Update ICreationListenerCallbacks class
GAMMACASE Mar 29, 2023
c026785
Update ICvar, ConVar & ConCommand classes
GAMMACASE Mar 31, 2023
76b6887
Update ICvar
GAMMACASE Apr 2, 2023
0de13c7
Fix return type on TakeConVarSnapshot
psychonic Apr 2, 2023
e6b11a3
Update ICommandLine
psychonic Apr 2, 2023
9919c27
Remove m_nMallocGrowSize from CUtlMemory
psychonic Apr 4, 2023
a4e0c02
Update CCommand
psychonic Apr 4, 2023
689c519
Fix compilation errors
psychonic Apr 4, 2023
8819071
Fix RegisterCommand params
psychonic Apr 4, 2023
6f86ee2
Fix ConVarHandle/ConCommandHandle size handleand ConCommandHandle INV…
psychonic Apr 6, 2023
ba29729
Fix up ConCommand callback types
psychonic Apr 6, 2023
64c834d
Initialize more members of ConCommandDesc_t in ctor
psychonic Apr 6, 2023
0e7a8ce
Update ConVar & ConCommand handle types
GAMMACASE Apr 7, 2023
7a7999d
Update IFileSystem interface
GAMMACASE Apr 27, 2023
580bf19
Update IFileSystem & remove filesystem_passthru.h
GAMMACASE Apr 28, 2023
61ef22c
Add CBufferString class
GAMMACASE May 1, 2023
370019d
Add INetworkMessages interface
GAMMACASE May 2, 2023
225e405
Update IGameEventSystem & INetworkMessages interfaces
GAMMACASE May 3, 2023
fabb00b
Few small adjustments
GAMMACASE May 3, 2023
39469cb
Few more adjustments
GAMMACASE May 4, 2023
c964bec
Update CBufferString class
GAMMACASE May 6, 2023
19c9b61
Update IGameEventManager2 & IGameEvent interfaces
GAMMACASE May 8, 2023
ec4b0c5
Update ISource2GameClients interface
GAMMACASE May 8, 2023
2c5f3ca
KeyValuesSystem is internal-only now. Remove export
psychonic May 14, 2023
212c4f1
Update ConCommand/ConCommandBase/CCommand/ConCommandHandle
psychonic May 14, 2023
9672c1e
Update some of ISource2Server
psychonic May 14, 2023
e9947ad
Remove duplicated CSplitScreenSlot definition
psychonic May 14, 2023
e28c413
Fix handle ref in CON_COMMAND macros
psychonic May 14, 2023
9be9755
Fix interface.h includes
GAMMACASE May 15, 2023
59a31cc
Add utlcommon.h & utlhashtable.h from sdk2013
GAMMACASE May 15, 2023
e039603
Remove Plat_IsInDebugSessionRaw. No longer exists
psychonic May 16, 2023
1acb9de
Fix linking errors and var name typos in ConVar/ConCommand reg lists
psychonic May 16, 2023
5e6dafd
Add APP_SYSTEM_TIER4 to fix up APP_SYSTEM_TIER_OTHER value
psychonic May 16, 2023
e628b31
Add in/equality operators for CPlayerSlot and CEntityIndex.
psychonic May 16, 2023
a2d09ec
Really fix convar linking errors
psychonic May 16, 2023
d5327f4
Update IVEngineServer2 interface
GAMMACASE May 18, 2023
f45d0ee
Fix x64 compilation in ssemath.h
GAMMACASE May 18, 2023
2a4b940
Fix vtable sneaking into ConCommand
psychonic May 19, 2023
a3df64c
Fix late-registered ConCommands not saving handle
psychonic May 19, 2023
25a2df8
Rework ConCommandRegList
psychonic May 19, 2023
e7b97e6
Merge branch 'dota-updated' of https://github.com/GAMMACASE/hl2sdk in…
psychonic May 19, 2023
7cf5b7e
More ConCommand tweaks
psychonic May 21, 2023
23824d8
Update some param types on IVEngineServer2 (mostly CEntityIndex -> CP…
psychonic May 21, 2023
e9e7c61
Strip CUtlBuffer defined functions from tier1 lib
psychonic May 21, 2023
97701d1
Update ICvar interface
GAMMACASE Jul 7, 2023
eafe27b
Fix compile errors & random crashes related to IMemAlloc interface
GAMMACASE Jul 14, 2023
cdaf2a6
Update tier0.lib & KeyValues constructor
GAMMACASE Jul 17, 2023
7bb4a8d
Add CVariant
GAMMACASE Jul 26, 2023
955b03e
A lot of minor edits/fixes
GAMMACASE Jul 26, 2023
23a0d11
Add missing CommandTarget_t
GAMMACASE Sep 3, 2023
2462bd0
Update tier0.lib & Obsolete mem.h
GAMMACASE Sep 6, 2023
875bf0f
Remove IMemAlloc dbg variants
GAMMACASE Sep 7, 2023
a59dccc
Update CGlobalVars(Base)
zer0k-z Sep 8, 2023
fe38404
Fix memoverride.cpp compilation
GAMMACASE Sep 9, 2023
93ad88b
Obsolete pEdicts from CGlobalVars
GAMMACASE Sep 9, 2023
c29741e
Update IFileSystem
GAMMACASE Sep 9, 2023
903c1e9
Fix command registration
GAMMACASE Sep 9, 2023
43720de
Update CUtlString & obsolete utlstring.cpp
ddorab Sep 10, 2023
1643e42
Minor edit to CBufferString
GAMMACASE Sep 10, 2023
0688888
Fix tier1.lib compilation issues
GAMMACASE Sep 10, 2023
c5f6b46
Add EStringConvertErrorPolicy
GAMMACASE Sep 10, 2023
209711c
Add IToolGameEventAPI class
GAMMACASE Sep 16, 2023
74eee60
Update tier1.lib
GAMMACASE Sep 16, 2023
c7f0f26
Small temporary fix to the KeyValues::GetString
GAMMACASE Sep 16, 2023
3b092fc
Update some const.h enum definitions
GAMMACASE Sep 16, 2023
58ed0e7
Fix compile errors of enum types being uint8_t
GAMMACASE Sep 16, 2023
507ddf7
Overhaul KeyValues.h
number201724 Sep 17, 2023
c28e9c5
Update HKeySymbol & return back KeyValuesSystem()
GAMMACASE Sep 17, 2023
703bb62
Update ISource2GameClients connect functions
GAMMACASE Sep 17, 2023
b548b61
Minor code tweaks
GAMMACASE Sep 22, 2023
df4b874
Fix compilation errors
GAMMACASE Sep 22, 2023
33ae03b
Fix IVEngineServer2::GetPlayerUserId
GAMMACASE Sep 23, 2023
22302ae
Update CUtlMemory EXTERNAL_* flags handling
GAMMACASE Sep 23, 2023
848ec94
Update tier1 VS project
GAMMACASE Sep 23, 2023
26ee5cd
Update VPhysics2 interface
GAMMACASE Sep 25, 2023
0f7d951
Update interfaces.lib
GAMMACASE Sep 25, 2023
659c6ae
Update mathlib.lib
GAMMACASE Sep 25, 2023
cfc742e
Fix minor compile time issues & update interfaces project files
GAMMACASE Sep 25, 2023
2afe92b
Fix compile for old windows SDK's
GAMMACASE Sep 26, 2023
56b6ca6
Correct the old windows SDK's fix
GAMMACASE Sep 26, 2023
dba2500
Update bitbuf to match sdk2013
zer0k-z Sep 27, 2023
ceee5ec
Update tier1.lib
GAMMACASE Sep 27, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion common/GameUI/IGameConsole.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#pragma once
#endif

#include "tier1/interface.h"
#include "tier0/interface.h"


//-----------------------------------------------------------------------------
Expand Down
6 changes: 4 additions & 2 deletions game/server/recipientfilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,11 @@ class CRecipientFilter : public IRecipientFilter
private:

bool m_bReliable;
bool m_bInitMessage;
CUtlVector< int > m_Recipients;
int m_Unk001;
int m_nRecipientCount;
CUtlVectorFixedGrowable< int, 64 > m_Recipients;

bool m_bInitMessage;
// If using prediction rules, the filter itself suppresses local player
bool m_bUsingPredictionRules;
// If ignoring prediction cull, then external systems can determine
Expand Down
4 changes: 2 additions & 2 deletions interfaces/interfaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
ICvar *cvar, *g_pCVar;
IEventSystem *g_pEventSystem;
IProcessUtils *g_pProcessUtils;
IPhysics2 *g_pPhysics2;
IVPhysics2 *g_pVPhysics2;
IPhysics2ResourceManager *g_pPhysics2ResourceManager;
IBaseFileSystem *g_pBaseFileSystem;
IFileSystem *g_pFullFileSystem;
Expand Down Expand Up @@ -155,7 +155,7 @@ static const InterfaceGlobals_t g_pInterfaceGlobals[] =
{ CVAR_INTERFACE_VERSION, &g_pCVar },
{ EVENTSYSTEM_INTERFACE_VERSION, &g_pEventSystem },
{ PROCESS_UTILS_INTERFACE_VERSION, &g_pProcessUtils },
{ VPHYSICS2_INTERFACE_VERSION, &g_pPhysics2 },
{ VPHYSICS2_INTERFACE_VERSION, &g_pVPhysics2 },
{ VPHYSICS2_RESOURCE_MGR_INTERFACE_VERSION, &g_pPhysics2ResourceManager },
{ BASEFILESYSTEM_INTERFACE_VERSION, &g_pBaseFileSystem },
{ FILESYSTEM_INTERFACE_VERSION, &g_pFullFileSystem },
Expand Down
13 changes: 7 additions & 6 deletions interfaces/interfaces.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,24 @@
<ProjectName>interfaces</ProjectName>
<ProjectGuid>{E1DA8DB8-FB4C-4B14-91A6-98BCED6B9720}</ProjectGuid>
<RootNamespace>tier1</RootNamespace>
<WindowsTargetPlatformVersion>10.0.22000.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<PlatformToolset>v120</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<PlatformToolset>v120</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<PlatformToolset>v120</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<PlatformToolset>v120</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
Expand Down Expand Up @@ -77,7 +78,7 @@
<OutDir>..\lib\public\win64</OutDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<OutDir>..\lib\public\win64</OutDir>
<OutDir>..\lib\public\win64\</OutDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<PreBuildEvent>
Expand Down Expand Up @@ -124,7 +125,7 @@
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>..\public;..\public\tier0;..\public\tier1;..\public\interfaces;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_HAS_ITERATOR_DEBUGGING=0;_ALLOW_RUNTIME_LIBRARY_MISMATCH;_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH;_ALLOW_MSC_VER_MISMATCH;_ITERATOR_DEBUG_LEVEL=0;WIN32;_WIN32;COMPILER_MSVC;COMPILER_MSVC32;_DEBUG;DEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>_HAS_ITERATOR_DEBUGGING=0;_ALLOW_RUNTIME_LIBRARY_MISMATCH;_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH;_ALLOW_MSC_VER_MISMATCH;_ITERATOR_DEBUG_LEVEL=0;WIN32;_WIN32;COMPILER_MSVC;COMPILER_MSVC64;_DEBUG;DEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<StringPooling>true</StringPooling>
<ExceptionHandling>
</ExceptionHandling>
Expand Down
Binary file modified lib/public/win64/interfaces.lib
Binary file not shown.
Binary file modified lib/public/win64/mathlib.lib
Binary file not shown.
Binary file modified lib/public/win64/tier0.lib
Binary file not shown.
Binary file modified lib/public/win64/tier1.lib
Binary file not shown.
5 changes: 3 additions & 2 deletions mathlib/mathlib.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<ProjectName>mathlib</ProjectName>
<ProjectGuid>{884C66F2-7F84-4570-AE6C-B634C1113D69}</ProjectGuid>
<RootNamespace>mathlib</RootNamespace>
<WindowsTargetPlatformVersion>10.0.22000.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
Expand All @@ -30,15 +31,15 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<PlatformToolset>v120</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<PlatformToolset>v120_xp</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<PlatformToolset>v120</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
Expand Down
11 changes: 11 additions & 0 deletions mathlib/mathlib_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3232,6 +3232,9 @@ void MathLib_Init( float gamma, float texGamma, float brightness, int overbright
s_bMMXEnabled = false;
}

// GAMMACASE: Since the sse.cpp doesn't have any x64 code rn
// we can't use the sse stuff here
#ifndef COMPILER_MSVC64
if ( bAllowSSE && pi.m_bSSE )
{
s_bSSEEnabled = true;
Expand All @@ -3246,12 +3249,17 @@ void MathLib_Init( float gamma, float texGamma, float brightness, int overbright
pfFastSinCos = _SSE_SinCos;
pfFastCos = _SSE_cos;
#endif

}
else
{
s_bSSEEnabled = false;
}
#else
s_bSSEEnabled = false;
#endif

#ifndef COMPILER_MSVC64
if ( bAllowSSE2 && pi.m_bSSE2 )
{
s_bSSE2Enabled = true;
Expand All @@ -3264,6 +3272,9 @@ void MathLib_Init( float gamma, float texGamma, float brightness, int overbright
{
s_bSSE2Enabled = false;
}
#else
s_bSSE2Enabled = false;
#endif
#endif

s_bMathlibInitialized = true;
Expand Down
1 change: 1 addition & 0 deletions public/appframework/IAppSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ enum AppSystemTier_t
APP_SYSTEM_TIER1,
APP_SYSTEM_TIER2,
APP_SYSTEM_TIER3,
APP_SYSTEM_TIER4,

APP_SYSTEM_TIER_OTHER,
};
Expand Down
2 changes: 1 addition & 1 deletion public/appframework/IAppSystemGroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#endif


#include "tier1/interface.h"
#include "tier0/interface.h"
#include "tier1/utlvector.h"
#include "tier1/utldict.h"
#include "tier1/UtlStringMap.h"
Expand Down
15 changes: 15 additions & 0 deletions public/basehandle.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,21 @@

class IHandleEntity;

// Represents EHANDLE2 class
// TODO: GAMMACASE: Replace old CBaseHandle with this
class CEntityHandle
{
public:
union
{
uint32 m_Index;
struct
{
uint32 m_EntityIndex : 15;
uint32 m_Serial : 17;
} m_Parts;
};
};

// -------------------------------------------------------------------------------------------------- //
// CBaseHandle.
Expand Down
2 changes: 1 addition & 1 deletion public/bitmap/tgawriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#pragma once
#endif

#include "tier1/interface.h"
#include "tier0/interface.h"
#include "bitmap/imageformat.h" //ImageFormat enum definition

class CUtlBuffer;
Expand Down
38 changes: 22 additions & 16 deletions public/const.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,29 +141,29 @@
#define FL_FREEZING (1<<31) // We're becoming frozen!

// edict->movetype values
enum MoveType_t
enum MoveType_t : unsigned char
{
MOVETYPE_NONE = 0, // never moves
MOVETYPE_ISOMETRIC, // For players -- in TF2 commander view, etc.
MOVETYPE_OBSOLETE, // Previously isometric movetype
MOVETYPE_WALK, // Player only - moving on the ground
MOVETYPE_STEP, // gravity, special edge handling -- monsters use this
MOVETYPE_FLY, // No gravity, but still collides with stuff
MOVETYPE_FLYGRAVITY, // flies through the air + is affected by gravity
MOVETYPE_VPHYSICS, // uses VPHYSICS for simulation
MOVETYPE_PUSH, // no clip to world, push and crush
MOVETYPE_NOCLIP, // No gravity, no collisions, still do velocity/avelocity
MOVETYPE_LADDER, // Used by players only when going onto a ladder
MOVETYPE_OBSERVER, // Observer movement, depends on player's observer mode
MOVETYPE_LADDER, // Used by players only when going onto a ladder
MOVETYPE_CUSTOM, // Allows the entity to describe its own physics

// should always be defined as the last item in the list
MOVETYPE_LAST = MOVETYPE_CUSTOM,

MOVETYPE_MAX_BITS = 4
MOVETYPE_MAX_BITS = 5
};

// edict->movecollide values
enum MoveCollide_t
enum MoveCollide_t : unsigned char
{
MOVECOLLIDE_DEFAULT = 0,

Expand All @@ -185,18 +185,20 @@ enum MoveCollide_t
// Solid type basically describes how the bounding volume of the object is represented
// NOTE: SOLID_BBOX MUST BE 2, and SOLID_VPHYSICS MUST BE 6
// NOTE: These numerical values are used in the FGD by the prop code (see prop_dynamic)
enum SolidType_t
enum SolidType_t : unsigned char
{
SOLID_NONE = 0, // no solid model
SOLID_BSP = 1, // a BSP tree
SOLID_BBOX = 2, // an AABB
SOLID_OBB = 3, // an OBB (not implemented yet)
SOLID_OBB_YAW = 4, // an OBB, constrained so that it can only yaw
SOLID_CUSTOM = 5, // Always call into the entity for tests
SOLID_SPHERE = 4,
SOLID_POINT = 5,
SOLID_VPHYSICS = 6, // solid vphysics object, get vcollide from the model and collide with that
SOLID_CAPSULE = 7,
SOLID_LAST,
};

// GAMMACASE: Potentially obsolete
enum SolidFlags_t
{
FSOLID_CUSTOMRAYTEST = 0x0001, // Ignore solid type + always call into the entity for ray tests
Expand Down Expand Up @@ -224,14 +226,17 @@ inline bool IsSolid( SolidType_t solidType, int nSolidFlags )
return (solidType != SOLID_NONE) && ((nSolidFlags & FSOLID_NOT_SOLID) == 0);
}


// m_lifeState values
#define LIFE_ALIVE 0 // alive
#define LIFE_DYING 1 // playing death animation or still falling off of a ledge waiting to hit ground
#define LIFE_DEAD 2 // dead. lying still.
#define LIFE_RESPAWNABLE 3
#define LIFE_DISCARDBODY 4
enum LifeState_t
{
LIFE_ALIVE = 0x0, // alive
LIFE_DYING = 0x1, // playing death animation or still falling off of a ledge waiting to hit ground
LIFE_DEAD = 0x2, // dead. lying still.
LIFE_RESPAWNABLE = 0x3,
LIFE_RESPAWNING = 0x4
};

// GAMMACASE: Potentially obsolete
// entity effects
enum
{
Expand Down Expand Up @@ -302,7 +307,7 @@ enum

// Rendering constants
// if this is changed, update common/MaterialSystem/Sprite.cpp
enum RenderMode_t
enum RenderMode_t : unsigned char
{
kRenderNormal = 0, // src
kRenderTransColor, // c*a+dest*(1-a)
Expand All @@ -315,11 +320,12 @@ enum RenderMode_t
kRenderTransAlphaAdd, // src + dest*(1-a)
kRenderWorldGlow, // Same as kRenderGlow but not fixed size in screen space
kRenderNone, // Don't render.
kRenderDevVisualizer,

kRenderModeCount, // must be last
};

enum RenderFx_t
enum RenderFx_t : unsigned char
{
kRenderFxNone = 0,
kRenderFxPulseSlow,
Expand Down
27 changes: 27 additions & 0 deletions public/datamap.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,33 @@ typedef enum _fieldtypes
FIELD_V8_ARRAY,
FIELD_V8_CALLBACK_INFO,
FIELD_UTLSTRING,

FIELD_NETWORK_ORIGIN_CELL_QUANTIZED_POSITION_VECTOR,
FIELD_HRENDERTEXTURE,

FIELD_HPARTICLESYSTEMDEFINITION,
FIELD_UINT8,
FIELD_UINT16,
FIELD_CTRANSFORM,
FIELD_CTRANSFORM_WORLDSPACE,
FIELD_HPOSTPROCESSING,
FIELD_MATRIX3X4,
FIELD_SHIM,
FIELD_CMOTIONTRANSFORM,
FIELD_CMOTIONTRANSFORM_WORLDSPACE,
FIELD_ATTACHMENT_HANDLE,
FIELD_AMMO_INDEX,
FIELD_CONDITION_ID,
FIELD_AI_SCHEDULE_BITS,
FIELD_MODIFIER_HANDLE,
FIELD_ROTATION_VECTOR,
FIELD_ROTATION_VECTOR_WORLDSPACE,
FIELD_HVDATA,
FIELD_SCALE32,
FIELD_STRING_AND_TOKEN,
FIELD_ENGINE_TIME,
FIELD_ENGINE_TICK,
FIELD_WORLD_GROUP_ID,

FIELD_TYPECOUNT
} fieldtype_t;
Expand Down
2 changes: 1 addition & 1 deletion public/datamodel/idatamodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#pragma once
#endif

#include "tier1/interface.h"
#include "tier0/interface.h"
#include "tier1/utlvector.h"
#include "tier1/utlsymbollarge.h"
#include "appframework/IAppSystem.h"
Expand Down
10 changes: 4 additions & 6 deletions public/edict.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,26 +43,24 @@ class CGlobalVars : public CGlobalVarsBase
{
public:

CGlobalVars( bool bIsClient );
CGlobalVars();

public:

// Current map
string_t mapname;
int mapversion;
string_t startspot;
MapLoadType_t eLoadType; // How the current map was loaded
bool bMapLoadFailed; // Map has failed to load, we need to kick back to the main menu
bool mp_teamplay;

// current maxentities
int maxEntities;

int serverCount;
edict_t *pEdicts;
};

inline CGlobalVars::CGlobalVars( bool bIsClient ) :
CGlobalVarsBase( bIsClient )
inline CGlobalVars::CGlobalVars() :
CGlobalVarsBase()
{
serverCount = 0;
}
Expand Down