This commit is contained in:
speedvoltage 2025-04-02 23:17:34 -04:00 committed by GitHub
commit 67c7e0d67c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2190,11 +2190,13 @@ public:
float m_flAlternateTicksFix; // Scale factor to apply to the push speed when running with alternate ticks
float m_flPushSpeed;
bool m_bFixLift;
};
BEGIN_DATADESC( CTriggerPush )
DEFINE_KEYFIELD( m_vecPushDir, FIELD_VECTOR, "pushdir" ),
DEFINE_KEYFIELD( m_flAlternateTicksFix, FIELD_FLOAT, "alternateticksfix" ),
DEFINE_KEYFIELD( m_bFixLift, FIELD_BOOLEAN, "liftfix" ),
//DEFINE_FIELD( m_flPushSpeed, FIELD_FLOAT ),
END_DATADESC()
@ -2321,7 +2323,8 @@ void CTriggerPush::Touch( CBaseEntity *pOther )
{
pOther->SetGroundEntity( NULL );
Vector origin = pOther->GetAbsOrigin();
origin.z += 1.0f;
if ( m_bFixLift )
origin.z += 16.0f;
pOther->SetAbsOrigin( origin );
}