diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/server/tf2/trigger_skybox.cpp | |
| download | archived-source-engine-2018-hl2-src-3bf9df6b2785fa6d951086978a3e66f49427166a.tar.xz archived-source-engine-2018-hl2-src-3bf9df6b2785fa6d951086978a3e66f49427166a.zip | |
Diffstat (limited to 'game/server/tf2/trigger_skybox.cpp')
| -rw-r--r-- | game/server/tf2/trigger_skybox.cpp | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/game/server/tf2/trigger_skybox.cpp b/game/server/tf2/trigger_skybox.cpp new file mode 100644 index 0000000..e3dd690 --- /dev/null +++ b/game/server/tf2/trigger_skybox.cpp @@ -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 +} |