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/portal/portal_physics_collisionevent.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/server/portal/portal_physics_collisionevent.h')
| -rw-r--r-- | game/server/portal/portal_physics_collisionevent.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/game/server/portal/portal_physics_collisionevent.h b/game/server/portal/portal_physics_collisionevent.h new file mode 100644 index 0000000..9b5a2ee --- /dev/null +++ b/game/server/portal/portal_physics_collisionevent.h @@ -0,0 +1,32 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef PORTAL_PHYSICS_COLLISIONEVENT_H +#define PORTAL_PHYSICS_COLLISIONEVENT_H + +#ifdef _WIN32 +#pragma once +#endif + +#include "physics_collisionevent.h" + +class CPortal_CollisionEvent : public CCollisionEvent +{ +public: + DECLARE_CLASS_GAMEROOT( CPortal_CollisionEvent, CCollisionEvent ); + + virtual int ShouldCollide( IPhysicsObject *pObj0, IPhysicsObject *pObj1, void *pGameData0, void *pGameData1 ); + virtual void PreCollision( vcollisionevent_t *pEvent ); + virtual void PostCollision( vcollisionevent_t *pEvent ); + virtual int ShouldSolvePenetration( IPhysicsObject *pObj0, IPhysicsObject *pObj1, void *pGameData0, void *pGameData1, float dt ); + + virtual void PostSimulationFrame( void ); + void PortalPostSimulationFrame( void ); + void AddDamageEvent( CBaseEntity *pEntity, const CTakeDamageInfo &info, IPhysicsObject *pInflictorPhysics, bool bRestoreVelocity, const Vector &savedVel, const AngularImpulse &savedAngVel ); +}; + +#endif //#ifndef PORTAL_PHYSICS_COLLISIONEVENT_H |