Skip to content

Commit 7d3c0d8

Browse files
committed
upload "kind" alien swarm
1 parent b7bd94c commit 7d3c0d8

File tree

4,229 files changed

+462122
-494377
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,229 files changed

+462122
-494377
lines changed

game/client/AnimateSpecificTextureProxy.cpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//========= Copyright Valve Corporation, All rights reserved. ============//
1+
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
22
//
33
// Purpose: Acts exactly like "AnimatedTexture", but ONLY if the texture
44
// it's working on matches the desired texture to work on.
@@ -8,14 +8,15 @@
88
// $NoKeywords: $
99
//=============================================================================//
1010
#include "cbase.h"
11-
#include "materialsystem/imaterialproxy.h"
12-
#include "materialsystem/imaterialvar.h"
13-
#include "materialsystem/imaterial.h"
14-
#include "materialsystem/itexture.h"
15-
#include "baseanimatedtextureproxy.h"
11+
#include "materialsystem/IMaterialProxy.h"
12+
#include "materialsystem/IMaterialVar.h"
13+
#include "materialsystem/IMaterial.h"
14+
#include "materialsystem/ITexture.h"
15+
#include "BaseAnimatedTextureProxy.h"
1616
#include "utlstring.h"
1717
#include <KeyValues.h>
1818

19+
#include "imaterialproxydict.h"
1920
// memdbgon must be the last include file in a .cpp file!!!
2021
#include "tier0/memdbgon.h"
2122

@@ -50,4 +51,4 @@ void CAnimateSpecificTexture::OnBind( void *pC_BaseEntity )
5051
//else do nothing
5152
}
5253

53-
EXPOSE_INTERFACE( CAnimateSpecificTexture, IMaterialProxy, "AnimateSpecificTexture" IMATERIAL_PROXY_INTERFACE_VERSION );
54+
EXPOSE_MATERIAL_PROXY( CAnimateSpecificTexture, AnimateSpecificTexture );

game/client/C_Env_Projected_Texture.h

Lines changed: 0 additions & 65 deletions
This file was deleted.

game/client/C_MaterialModifyControl.cpp

Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
//========= Copyright Valve Corporation, All rights reserved. ============//
1+
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
22
//
33
// Purpose: Material Modify control entity.
44
//
55
//=============================================================================//
66

77
#include "cbase.h"
8-
#include "proxyentity.h"
9-
#include "materialsystem/imaterial.h"
10-
#include "materialsystem/imaterialvar.h"
11-
#include "materialsystem/itexture.h"
8+
#include "ProxyEntity.h"
9+
#include "materialsystem/IMaterial.h"
10+
#include "materialsystem/IMaterialVar.h"
11+
#include "materialsystem/ITexture.h"
1212
#include "iviewrender.h"
1313
#include "texture_group_names.h"
14-
#include "baseanimatedtextureproxy.h"
15-
#include "toolframework_client.h"
14+
#include "BaseAnimatedTextureProxy.h"
1615

16+
#include "imaterialproxydict.h"
1717
// memdbgon must be the last include file in a .cpp file!!!
1818
#include "tier0/memdbgon.h"
1919

@@ -29,9 +29,6 @@ enum MaterialModifyMode_t
2929
MATERIAL_MODIFY_MODE_FLOAT_LERP = 3,
3030
};
3131

32-
// forward declarations
33-
void ToolFramework_RecordMaterialParams( IMaterial *pMaterial );
34-
3532
ConVar debug_materialmodifycontrol_client( "debug_materialmodifycontrol_client", "0" );
3633

3734
struct materialanimcommands_t
@@ -328,11 +325,6 @@ void CMaterialModifyProxy::OnBind( void *pEntity )
328325
}
329326
}
330327
}
331-
332-
if ( ToolsEnabled() )
333-
{
334-
ToolFramework_RecordMaterialParams( GetMaterial() );
335-
}
336328
}
337329

338330
IMaterial *CMaterialModifyProxy::GetMaterial()
@@ -753,11 +745,6 @@ void CMaterialModifyAnimatedProxy::OnBind( void *pEntity )
753745
}
754746

755747
m_AnimatedTextureFrameNumVar->SetIntValue( intFrame );
756-
757-
if ( ToolsEnabled() )
758-
{
759-
ToolFramework_RecordMaterialParams( GetMaterial() );
760-
}
761748
}
762749

763750
//-----------------------------------------------------------------------------
@@ -794,5 +781,5 @@ void CMaterialModifyAnimatedProxy::AnimationWrapped( void* pArg )
794781
}
795782

796783

797-
EXPOSE_INTERFACE( CMaterialModifyProxy, IMaterialProxy, "MaterialModify" IMATERIAL_PROXY_INTERFACE_VERSION );
798-
EXPOSE_INTERFACE( CMaterialModifyAnimatedProxy, IMaterialProxy, "MaterialModifyAnimated" IMATERIAL_PROXY_INTERFACE_VERSION );
784+
EXPOSE_MATERIAL_PROXY( CMaterialModifyProxy, MaterialModify );
785+
EXPOSE_MATERIAL_PROXY( CMaterialModifyAnimatedProxy, MaterialModifyAnimated );

game/client/C_WaterLODControl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//========= Copyright Valve Corporation, All rights reserved. ============//
1+
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
22
//
33
// Purpose: Water LOD control entity.
44
//

game/client/EffectsClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//========= Copyright Valve Corporation, All rights reserved. ============//
1+
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
22
//
33
// Purpose: Utility code.
44
//

game/client/IsNPCProxy.cpp

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
1-
//========= Copyright Valve Corporation, All rights reserved. ============//
1+
//========= Copyright © 1996-2007, Valve Corporation, All rights reserved. ============//
22
//
33
// Purpose:
44
//
55
// $NoKeywords: $
66
//=============================================================================//
77
#include "cbase.h"
8-
#include "functionproxy.h"
9-
#include "toolframework_client.h"
8+
#include "FunctionProxy.h"
109

10+
#include "imaterialproxydict.h"
1111
// memdbgon must be the last include file in a .cpp file!!!
1212
#include "tier0/memdbgon.h"
1313

14-
// forward declarations
15-
void ToolFramework_RecordMaterialParams( IMaterial *pMaterial );
16-
1714
//-----------------------------------------------------------------------------
1815
// Returns the player health (from 0 to 1)
1916
//-----------------------------------------------------------------------------
@@ -52,12 +49,8 @@ void CProxyIsNPC::OnBind( void *pC_BaseEntity )
5249
{
5350
SetFloatResult( 0.0f );
5451
}
55-
if ( ToolsEnabled() )
56-
{
57-
ToolFramework_RecordMaterialParams( GetMaterial() );
58-
}
5952
}
6053

61-
EXPOSE_INTERFACE( CProxyIsNPC, IMaterialProxy, "IsNPC" IMATERIAL_PROXY_INTERFACE_VERSION );
54+
EXPOSE_MATERIAL_PROXY( CProxyIsNPC, IsNPC );
6255

6356

game/client/MonitorMaterialProxy.cpp

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
1-
//========= Copyright Valve Corporation, All rights reserved. ============//
1+
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
22
//
33
// Purpose:
44
//
55
// $NoKeywords: $
66
//=============================================================================//
7+
78
#include "cbase.h"
8-
#include "materialsystem/imaterialproxy.h"
9-
#include "materialsystem/imaterial.h"
10-
#include "materialsystem/imaterialvar.h"
9+
#include "materialsystem/IMaterialProxy.h"
10+
#include "materialsystem/IMaterial.h"
11+
#include "materialsystem/IMaterialVar.h"
12+
13+
// NOTE: This has to be the last file included!
14+
#include "tier0/memdbgon.h"
15+
1116

1217
// $monitorTextureVar
1318
class CMonitorMaterialProxy : public IMaterialProxy
@@ -57,4 +62,4 @@ void CMonitorMaterialProxy::OnBind( void *pC_BaseEntity )
5762
}
5863
}
5964

60-
EXPOSE_INTERFACE( CMonitorMaterialProxy, IMaterialProxy, "Monitor" IMATERIAL_PROXY_INTERFACE_VERSION );
65+
EXPOSE_MATERIAL_PROXY( CMonitorMaterialProxy, Monitor );

game/client/NPSClient.h

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
// *******************************************************************************
2+
// *
3+
// * Module Name:
4+
// * NPSClient.h
5+
// *
6+
// * Abstract:
7+
// * Header for NaturalPoint Simple Game Client API.
8+
// *
9+
// * Environment:
10+
// * Microsoft Windows -- User mode
11+
// *
12+
// *******************************************************************************
13+
14+
#ifndef _NPSCLIENT_H_DEFINED_
15+
#define _NPSCLIENT_H_DEFINED_
16+
17+
#pragma pack( push, npsclient_h ) // Save current pack value
18+
#pragma pack(1)
19+
20+
#ifdef __cplusplus
21+
extern "C"{
22+
#endif
23+
24+
//////////////////
25+
/// Typedefs /////////////////////////////////////////////////////////////////////
26+
/////////////////
27+
28+
#ifndef _NPCLIENT_H_DEFINED_
29+
30+
// NPESULT values are returned from the Game Client API functions.
31+
//
32+
typedef enum tagNPResult
33+
{
34+
NP_OK = 0,
35+
NP_ERR_DEVICE_NOT_PRESENT,
36+
NP_ERR_UNSUPPORTED_OS,
37+
NP_ERR_INVALID_ARG,
38+
NP_ERR_DLL_NOT_FOUND,
39+
NP_ERR_NO_DATA,
40+
NP_ERR_INTERNAL_DATA,
41+
NP_ERR_ALREADY_REGISTERED, // a window handle or game ID is already registered
42+
NP_ERR_UNKNOWN_ID, // unknown game ID registered
43+
NP_ERR_READ_ONLY, // parameter is read only
44+
45+
} NPRESULT;
46+
47+
typedef struct tagTrackIRData
48+
{
49+
unsigned short wNPStatus;
50+
unsigned short wPFrameSignature;
51+
unsigned long dwNPIOData;
52+
53+
float fNPRoll;
54+
float fNPPitch;
55+
float fNPYaw;
56+
float fNPX;
57+
float fNPY;
58+
float fNPZ;
59+
float fNPRawX;
60+
float fNPRawY;
61+
float fNPRawZ;
62+
float fNPDeltaX;
63+
float fNPDeltaY;
64+
float fNPDeltaZ;
65+
float fNPSmoothX;
66+
float fNPSmoothY;
67+
float fNPSmoothZ;
68+
69+
} TRACKIRDATA, *LPTRACKIRDATA;
70+
71+
#endif
72+
73+
typedef NPRESULT (__stdcall *PF_NPS_INIT)( HWND );
74+
typedef NPRESULT (__stdcall *PF_NPS_SHUTDOWN)( void );
75+
typedef NPRESULT (__stdcall *PF_NPS_GETDATA)( LPTRACKIRDATA );
76+
77+
//// Function Prototypes ///////////////////////////////////////////////
78+
//
79+
// Functions exported from game client API DLL ( note __stdcall calling convention
80+
// is used for ease of interface to clients of differing implementations including
81+
// C, C++, Pascal (Delphi) and VB. )
82+
//
83+
NPRESULT __stdcall NPS_Init( HWND hWnd );
84+
NPRESULT __stdcall NPS_Shutdown( void );
85+
NPRESULT __stdcall NPS_GetData( LPTRACKIRDATA pTID );
86+
87+
/////////////////////////////////////////////////////////////////////////
88+
89+
#ifdef __cplusplus
90+
}
91+
#endif
92+
93+
#pragma pack( pop, npsclient_h ) // Ensure previous pack value is restored
94+
95+
#endif // #ifdef NPCLIENT_H_DEFINED_
96+
97+
//
98+
// *** End of file: NPSClient.h ***
99+
//
100+
101+

0 commit comments

Comments
 (0)