Skip to content

Commit 8c16b9f

Browse files
committed
Updated CS:GO SDK
1 parent da3e5dc commit 8c16b9f

File tree

20 files changed

+1664
-327
lines changed

20 files changed

+1664
-327
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
repo: 5476a15192a9d365b3bde48690c1b00da494d054
2-
node: 73e56a4a4d67e45243fdeeec87f7bce7c41d2163
2+
node: c5f7e17249f36210c63cb6834bd8e7cb1bd5d005
33
branch: default
44
latesttag: null
5-
latesttagdistance: 81
5+
latesttagdistance: 90
-6.57 MB
Binary file not shown.
524 KB
Binary file not shown.

src/sdks/hl2sdk-csgo/mathlib/mathlib-2005.vcproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -333,10 +333,6 @@
333333
Name="Header Files"
334334
Filter="h;hpp;hxx;hm;inl"
335335
>
336-
<File
337-
RelativePath=".\3dnow.h"
338-
>
339-
</File>
340336
<File
341337
RelativePath=".\noisedata.h"
342338
>

src/sdks/hl2sdk-csgo/mathlib/mathlib.vcxproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,10 @@
154154
<ClInclude Include="..\public\mathlib\vector4d.h" />
155155
<ClInclude Include="..\public\mathlib\vmatrix.h" />
156156
<ClInclude Include="..\public\mathlib\vplane.h" />
157-
<ClInclude Include="3dnow.h" />
158157
<ClInclude Include="noisedata.h" />
159158
<ClInclude Include="sse.h" />
160159
</ItemGroup>
161160
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
162161
<ImportGroup Label="ExtensionTargets">
163162
</ImportGroup>
164-
</Project>
163+
</Project>

src/sdks/hl2sdk-csgo/mathlib/mathlib.vcxproj.filters

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,11 @@
140140
<ClInclude Include="..\public\mathlib\vplane.h">
141141
<Filter>Public Header Files</Filter>
142142
</ClInclude>
143-
<ClInclude Include="3dnow.h">
144-
<Filter>Header Files</Filter>
145-
</ClInclude>
146143
<ClInclude Include="noisedata.h">
147144
<Filter>Header Files</Filter>
148145
</ClInclude>
149146
<ClInclude Include="sse.h">
150147
<Filter>Header Files</Filter>
151148
</ClInclude>
152149
</ItemGroup>
153-
</Project>
150+
</Project>

src/sdks/hl2sdk-csgo/public/SoundEmitterSystem/isoundemittersystembase.h

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
#define SOUNDGENDER_MACRO_LENGTH 7 // Length of above including $
2424

2525
class KeyValues;
26-
typedef short HSOUNDSCRIPTHANDLE;
27-
#define SOUNDEMITTER_INVALID_HANDLE (HSOUNDSCRIPTHANDLE)-1
26+
typedef unsigned int HSOUNDSCRIPTHASH;
27+
#define SOUNDEMITTER_INVALID_HASH (HSOUNDSCRIPTHASH)-1
2828

2929

3030
//-----------------------------------------------------------------------------
@@ -47,6 +47,12 @@ struct CSoundParameters
4747
count = 0;
4848

4949
delay_msec = 0;
50+
51+
m_nSoundEntryVersion = 1;
52+
m_hSoundScriptHash = SOUNDEMITTER_INVALID_HASH;
53+
m_pOperatorsKV = NULL;
54+
m_nRandomSeed = -1;
55+
5056
}
5157

5258
int channel;
@@ -59,6 +65,11 @@ struct CSoundParameters
5965
int count;
6066
char soundname[ 128 ];
6167
int delay_msec;
68+
HSOUNDSCRIPTHASH m_hSoundScriptHash;
69+
int m_nSoundEntryVersion;
70+
KeyValues *m_pOperatorsKV;
71+
int m_nRandomSeed;
72+
6273
};
6374

6475
// A bit of a hack, but these are just utility function which are implemented in the SouneParametersInternal.cpp file which all users of this lib also compile
@@ -252,25 +263,21 @@ abstract_class ISoundEmitterSystemBase : public IAppSystem
252263
// .txt files that are read into the sound emitter system
253264
virtual unsigned int GetManifestFileTimeChecksum() = 0;
254265

255-
// Called from both client and server (single player) or just one (server only in dedicated server and client only if connected to a remote server)
256-
// Called by LevelInitPreEntity to override sound scripts for the mod with level specific overrides based on custom mapnames, etc.
257-
virtual void AddSoundOverrides( char const *scriptfile ) = 0;
266+
virtual bool GetParametersForSoundEx( const char *soundname, HSOUNDSCRIPTHASH& handle, CSoundParameters& params, gender_t gender, bool isbeingemitted = false ) = 0;
267+
virtual soundlevel_t LookupSoundLevelByHandle( char const *soundname, HSOUNDSCRIPTHASH& handle ) = 0;
268+
virtual KeyValues *GetOperatorKVByHandle( HSOUNDSCRIPTHASH& handle ) = 0;
258269

259-
// Called by either client or server in LevelShutdown to clear out custom overrides
260-
virtual void ClearSoundOverrides() = 0;
261-
262-
virtual bool GetParametersForSoundEx( const char *soundname, HSOUNDSCRIPTHANDLE& handle, CSoundParameters& params, gender_t gender, bool isbeingemitted = false ) = 0;
263-
virtual soundlevel_t LookupSoundLevelByHandle( char const *soundname, HSOUNDSCRIPTHANDLE& handle ) = 0;
264-
265-
virtual char const *GetSoundNameForHash( unsigned int hash ) = 0; // Returns NULL if hash not found!!!
266-
virtual unsigned int HashSoundName( char const *pchSndName ) = 0;
267-
virtual bool IsValidHash( unsigned int hash ) = 0;
270+
virtual char const *GetSoundNameForHash( HSOUNDSCRIPTHASH hash ) const = 0; // Returns NULL if hash not found!!!
271+
virtual int GetSoundIndexForHash( HSOUNDSCRIPTHASH hash ) const = 0;
272+
virtual HSOUNDSCRIPTHASH HashSoundName( char const *pchSndName ) const = 0;
273+
virtual bool IsValidHash( HSOUNDSCRIPTHASH hash ) const = 0;
268274

269275
virtual void DescribeSound( char const *soundname ) = 0;
270276
// Flush and reload
271277
virtual void Flush() = 0;
272278

273-
virtual void AddSoundsFromFile( const char *filename, bool bPreload, bool bIsOverride = false ) = 0;
279+
virtual void AddSoundsFromFile( const char *filename, bool bPreload, bool bAutoCache, bool bIsOverride = false ) = 0;
280+
274281
};
275282

276283
#endif // ISOUNDEMITTERSYSTEMBASE_H

src/sdks/hl2sdk-csgo/public/cdll_int.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ namespace vgui
8282
typedef struct player_info_s
8383
{
8484
DECLARE_BYTESWAP_DATADESC();
85+
uint64 unknown;
8586
// network xuid
8687
uint64 xuid;
8788
// scoreboard information

src/sdks/hl2sdk-csgo/public/const.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
// a player name may have 31 chars + 0 on the PC.
4444
// the 360 only allows 15 char + 0, but stick with the larger PC size for cross-platform communication
45-
#define MAX_PLAYER_NAME_LENGTH 32
45+
#define MAX_PLAYER_NAME_LENGTH 128
4646

4747
#ifdef _X360
4848
#define MAX_PLAYERS_PER_CLIENT XUSER_MAX_COUNT // Xbox 360 supports 4 players per console

src/sdks/hl2sdk-csgo/public/engine/protobuf/netmessages.pb.cc

Lines changed: 28 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)