Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.8 KiB

5 years ago
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Resource collection entity
//
// $NoKeywords: $
//=============================================================================//
#include "cbase.h"
#include "triggers.h"
#include "env_meteor.h "
//-----------------------------------------------------------------------------
// 3DSkybox to World Transition Trigger Class
//-----------------------------------------------------------------------------
class CTrigger3DSkyboxToWorld : public CBaseTrigger
{
DECLARE_CLASS( CTrigger3DSkyboxToWorld, CBaseTrigger );
public:
CTrigger3DSkyboxToWorld();
DECLARE_DATADESC();
void Spawn( void );
void ImpactTouch( CBaseEntity *pOther );
};
BEGIN_DATADESC( CTrigger3DSkyboxToWorld )
// Function Pointers
DEFINE_FUNCTION( ImpactTouch ),
END_DATADESC()
LINK_ENTITY_TO_CLASS( trigger_skybox2world, CTrigger3DSkyboxToWorld );
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
CTrigger3DSkyboxToWorld::CTrigger3DSkyboxToWorld()
{
}
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
void CTrigger3DSkyboxToWorld::Spawn( void )
{
BaseClass::Spawn();
InitTrigger();
// SetTouch( ImpactTouch );
}
//-----------------------------------------------------------------------------
// Purpose: Not handling transitions with a touch function currently!!
//-----------------------------------------------------------------------------
void CTrigger3DSkyboxToWorld::ImpactTouch( CBaseEntity *pOther )
{
#if 0
if ( FClassnameIs( pOther, "meteor" ) )
{
}
#endif
}