aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/client/game_controls/basemodel_panel.h
diff options
context:
space:
mode:
Diffstat (limited to 'mp/src/game/client/game_controls/basemodel_panel.h')
-rw-r--r--mp/src/game/client/game_controls/basemodel_panel.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/mp/src/game/client/game_controls/basemodel_panel.h b/mp/src/game/client/game_controls/basemodel_panel.h
index b9fa0d68..a71bb7a4 100644
--- a/mp/src/game/client/game_controls/basemodel_panel.h
+++ b/mp/src/game/client/game_controls/basemodel_panel.h
@@ -182,7 +182,8 @@ public:
studiohdr_t* GetStudioHdr( void ) { return m_RootMDL.m_MDL.GetStudioHdr(); }
void SetBody( unsigned int nBody ) { m_RootMDL.m_MDL.m_nBody = nBody; }
- void RotateYaw( float flDelta );
+ void RotateYaw( float flDelta );
+ void RotatePitch( float flDelta );
Vector GetPlayerPos() const;
QAngle GetPlayerAngles() const;
@@ -213,6 +214,7 @@ protected:
bool m_bForcePos;
bool m_bMousePressed;
bool m_bAllowRotation;
+ bool m_bAllowPitch;
bool m_bAllowFullManipulation;
bool m_bApplyManipulators;
bool m_bForcedCameraPosition;
@@ -220,6 +222,25 @@ protected:
// VGUI script accessible variables.
CPanelAnimationVar( bool, m_bStartFramed, "start_framed", "0" );
CPanelAnimationVar( bool, m_bDisableManipulation, "disable_manipulation", "0" );
+ CPanelAnimationVar( bool, m_bUseParticle, "use_particle", "0" );
+ CPanelAnimationVar( float, m_flMaxPitch, "max_pitch", "90" );
+
+ struct particle_data_t
+ {
+ ~particle_data_t();
+
+ void UpdateControlPoints( CStudioHdr *pStudioHdr, matrix3x4_t *pWorldMatrix, const CUtlVector< int >& vecAttachments, int iDefaultBone = 0, const Vector& vecParticleOffset = vec3_origin );
+
+ bool m_bIsUpdateToDate;
+ CParticleCollection *m_pParticleSystem;
+ };
+ CUtlVector< particle_data_t* > m_particleList;
+
+ particle_data_t *CreateParticleData( const char *pszParticleName );
+ bool SafeDeleteParticleData( particle_data_t **pData );
+
+ virtual void PrePaint3D( IMatRenderContext *pRenderContext ) OVERRIDE;
+ virtual void PostPaint3D( IMatRenderContext *pRenderContext ) OVERRIDE;
};
#endif // BASEMODEL_PANEL_H \ No newline at end of file