View Single Post
Re: R2b43 wired error messages
Old
  (#10)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: R2b43 wired error messages - 25-09-2004

I found something...
I wonder when this gets called..
I'll see what I can do when I have time..
this is found in the HLSDK in a file called pm_shared.c
PHP Code:
/*
================
PM_CheckVelocity

See if the player has a bogus velocity value.
================
*/
void PM_CheckVelocity ()
{
    
int        i;

//
// bound velocity
//
    
for (i=i<i++)
    {
        
// See if it's bogus.
        
if (IS_NAN(pmove->velocity[i]))
        {
            
pmove->Con_Printf ("PM  Got a NaN velocity %i\n"i);
            
pmove->velocity[i] = 0;
        }
        if (
IS_NAN(pmove->origin[i]))
        {
            
pmove->Con_Printf ("PM  Got a NaN origin on %i\n"i);
            
pmove->origin[i] = 0;
        }

        
// Bound it.
        
if (pmove->velocity[i] > pmove->movevars->maxvelocity
        {
            
pmove->Con_DPrintf ("PM  Got a velocity too high on %i\n"i);
            
pmove->velocity[i] = pmove->movevars->maxvelocity;
        }
        else if (
pmove->velocity[i] < -pmove->movevars->maxvelocity)
        {
            
pmove->Con_DPrintf ("PM  Got a velocity too low on %i\n"i);
            
pmove->velocity[i] = -pmove->movevars->maxvelocity;
        }
    }

[EDIT]
The code tags really need help...
[/EDIT]
  
Reply With Quote