mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-27 14:17:59 +03:00
Added keyvalues for controlling func_rotating min/max sound pitch
This commit is contained in:
parent
a1332a442d
commit
c66e9c78a0
@ -450,6 +450,11 @@ protected:
|
|||||||
|
|
||||||
bool m_bSolidBsp; // Brush is SOLID_BSP
|
bool m_bSolidBsp; // Brush is SOLID_BSP
|
||||||
|
|
||||||
|
#ifdef MAPBASE
|
||||||
|
int m_iMinPitch = 30; // FANPITCHMIN
|
||||||
|
int m_iMaxPitch = 100; // FANPITCHMAX
|
||||||
|
#endif
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Vector m_vecClientOrigin;
|
Vector m_vecClientOrigin;
|
||||||
QAngle m_vecClientAngles;
|
QAngle m_vecClientAngles;
|
||||||
@ -472,6 +477,10 @@ BEGIN_DATADESC( CFuncRotating )
|
|||||||
DEFINE_FIELD( m_angStart, FIELD_VECTOR ),
|
DEFINE_FIELD( m_angStart, FIELD_VECTOR ),
|
||||||
DEFINE_FIELD( m_bStopAtStartPos, FIELD_BOOLEAN ),
|
DEFINE_FIELD( m_bStopAtStartPos, FIELD_BOOLEAN ),
|
||||||
DEFINE_KEYFIELD( m_bSolidBsp, FIELD_BOOLEAN, "solidbsp" ),
|
DEFINE_KEYFIELD( m_bSolidBsp, FIELD_BOOLEAN, "solidbsp" ),
|
||||||
|
#ifdef MAPBASE
|
||||||
|
DEFINE_KEYFIELD( m_iMinPitch, FIELD_INTEGER, "minpitch" ),
|
||||||
|
DEFINE_KEYFIELD( m_iMaxPitch, FIELD_INTEGER, "maxpitch" ),
|
||||||
|
#endif
|
||||||
|
|
||||||
// Function Pointers
|
// Function Pointers
|
||||||
DEFINE_FUNCTION( SpinUpMove ),
|
DEFINE_FUNCTION( SpinUpMove ),
|
||||||
@ -823,8 +832,14 @@ void CFuncRotating::HurtTouch ( CBaseEntity *pOther )
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef MAPBASE
|
||||||
|
// In Mapbase, use the keyvalues instead
|
||||||
|
#define FANPITCHMIN m_iMinPitch
|
||||||
|
#define FANPITCHMAX m_iMaxPitch
|
||||||
|
#else
|
||||||
#define FANPITCHMIN 30
|
#define FANPITCHMIN 30
|
||||||
#define FANPITCHMAX 100
|
#define FANPITCHMAX 100
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user