mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-08 21:14:14 +00:00
Remove some debug code
This commit is contained in:
parent
f5426c5d21
commit
136994c97f
@ -119,7 +119,7 @@ Vector CGravGun::PredictTarget(float length)
|
|||||||
{
|
{
|
||||||
Vector predicted = m_pPlayer->pev->origin;
|
Vector predicted = m_pPlayer->pev->origin;
|
||||||
float cmdtime = gpGlobals->time - m_flLastCmd;
|
float cmdtime = gpGlobals->time - m_flLastCmd;
|
||||||
ALERT( at_notice, "PredictTarget %f\n", cmdtime );
|
//ALERT( at_notice, "PredictTarget %f\n", cmdtime );
|
||||||
|
|
||||||
// button-based prediction
|
// button-based prediction
|
||||||
if( m_pPlayer->pev->button & IN_FORWARD )
|
if( m_pPlayer->pev->button & IN_FORWARD )
|
||||||
@ -555,7 +555,7 @@ void CGravGun::Pull(CBaseEntity* ent)
|
|||||||
if(ent->pev->velocity.Length() > 900 )
|
if(ent->pev->velocity.Length() > 900 )
|
||||||
ent->pev->velocity = diff.Normalize() * 900;
|
ent->pev->velocity = diff.Normalize() * 900;
|
||||||
ent->pev->velocity.z += 15;
|
ent->pev->velocity.z += 15;
|
||||||
ALERT( at_notice, "vel %f\n", ent->pev->velocity.Length() );
|
//ALERT( at_notice, "vel %f\n", ent->pev->velocity.Length() );
|
||||||
}
|
}
|
||||||
//ent->pev->velocity = ent->pev->velocity + m_pPlayer->pev->velocity;
|
//ent->pev->velocity = ent->pev->velocity + m_pPlayer->pev->velocity;
|
||||||
/////
|
/////
|
||||||
|
Loading…
x
Reference in New Issue
Block a user