1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 12:06:07 +08:00

Update EntityIOConnectionDescFat_t

This commit is contained in:
GAMMACASE
2025-08-04 20:21:13 +03:00
parent a593a10010
commit c89d081679
2 changed files with 10 additions and 3 deletions

View File

@ -169,7 +169,8 @@ void CEntityKeyValues::AddConnectionDesc(
const char* pszInputName,
const char* pszOverrideParam,
float flDelay,
int32 nTimesToFire )
int32 nTimesToFire,
const KeyValues3 *kv3value )
{
if ( m_nQueuedForSpawnCount > 0 )
return;
@ -185,6 +186,7 @@ void CEntityKeyValues::AddConnectionDesc(
desc->m_pszOverrideParam = m_pAllocator->AllocString( pszOverrideParam ? pszOverrideParam : "" );
desc->m_flDelay = flDelay;
desc->m_nTimesToFire = nTimesToFire;
desc->m_KV3Value = *kv3value;
}
void CEntityKeyValues::RemoveConnectionDesc( int nDesc )
@ -238,7 +240,9 @@ void CEntityKeyValues::CopyFrom( const CEntityKeyValues* pSrc, bool bRemoveAllKe
pSrc->m_connectionDescs[ iter ].m_pszInputName,
pSrc->m_connectionDescs[ iter ].m_pszOverrideParam,
pSrc->m_connectionDescs[ iter ].m_flDelay,
pSrc->m_connectionDescs[ iter ].m_nTimesToFire );
pSrc->m_connectionDescs[ iter ].m_nTimesToFire,
&pSrc->m_connectionDescs[ iter ].m_KV3Value
);
}
}

View File

@ -33,6 +33,8 @@ struct EntityIOConnectionDescFat_t
const char* m_pszOverrideParam;
float m_flDelay;
int32 m_nTimesToFire;
KeyValues3 m_KV3Value;
};
abstract_class IEntityKeyComplex
@ -103,7 +105,8 @@ public:
const char* pszInputName,
const char* pszOverrideParam,
float flDelay,
int32 nTimesToFire );
int32 nTimesToFire,
const KeyValues3 *kv3value = nullptr );
void RemoveConnectionDesc( int nDesc );