mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-08 01:39:36 +00:00
1
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
//========= 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
|
||||
}
|
||||
Reference in New Issue
Block a user