Beispiel #1
0
bool AntiCheat::CheckFall()
{
    if (!m_isFall)
    {
        m_lastfalltime = m_currentmovementInfo->fallTime;
        m_lastfallz    = m_currentmovementInfo->pos.GetPositionZ();
        SetInFall(true);
    } else if (m_lastfallz - m_currentmovementInfo->pos.GetPositionZ() >= 0.0f)
            SetInFall(false);
    return true;
}
Beispiel #2
0
bool AntiCheat::CheckFall()
{
    if (!m_isFall)
    {
        m_lastfalltime = m_currentmovementInfo->GetFallTime();
        m_lastfallz    = m_currentmovementInfo->GetPos()->z;
        SetInFall(true);
    }
    else
    {
        if (m_lastfallz - m_currentmovementInfo->GetPos()->z >= 0.0f)
            SetInFall(false);
    }
    return true;
}