upload "kind" alien swarm

This commit is contained in:
nillerusr
2023-10-03 17:23:56 +03:00
parent b7bd94c52e
commit 7d3c0d8b5a
4229 changed files with 462900 additions and 495155 deletions
+11 -6
View File
@@ -1,4 +1,4 @@
//========= Copyright Valve Corporation, All rights reserved. ============//
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
@@ -27,7 +27,8 @@ public:
// (m_fNonintrusiveDist and m_fDisappearDist): the bmodel is trying to appear or disappear nonintrusively
// (waits until it's out of the view frustrum or until there's a lot of motion)
// (m_fDisappearDist+): the bmodel is forced to be invisible
CNetworkVar( float, m_fDisappearDist );
CNetworkVar( int, m_nDisappearMinDist );
CNetworkVar( int, m_nDisappearMaxDist );
// CBaseEntity overrides.
public:
@@ -40,7 +41,8 @@ public:
IMPLEMENT_SERVERCLASS_ST(CFunc_LOD, DT_Func_LOD)
SendPropFloat(SENDINFO(m_fDisappearDist), 0, SPROP_NOSCALE),
SendPropInt( SENDINFO(m_nDisappearMinDist), 16, SPROP_UNSIGNED ),
SendPropInt( SENDINFO(m_nDisappearMaxDist), 16, SPROP_UNSIGNED ),
END_SEND_TABLE()
@@ -52,7 +54,8 @@ LINK_ENTITY_TO_CLASS(func_lod, CFunc_LOD);
//---------------------------------------------------------
BEGIN_DATADESC( CFunc_LOD )
DEFINE_FIELD( m_fDisappearDist, FIELD_FLOAT ),
DEFINE_KEYFIELD( m_nDisappearMinDist, FIELD_INTEGER, "DisappearMinDist" ),
DEFINE_KEYFIELD( m_nDisappearMaxDist, FIELD_INTEGER, "DisappearMaxDist" ),
END_DATADESC()
@@ -94,9 +97,11 @@ void CFunc_LOD::Activate()
bool CFunc_LOD::KeyValue( const char *szKeyName, const char *szValue )
{
if (FStrEq(szKeyName, "DisappearDist"))
// NOTE: Backward compat
if ( FStrEq(szKeyName, "DisappearDist") )
{
m_fDisappearDist = (float)atof(szValue);
m_nDisappearMinDist = atoi(szValue);
m_nDisappearMaxDist = m_nDisappearMinDist + 800;
}
else if (FStrEq(szKeyName, "Solid"))
{