Hello,
my friend was kicked from WolfET server with this error:
BG_EvaluteTrajectory: unknown TrType: 30 (SCREENSHOT)
I found some informations about BG_EvaluteTrajectory on Code3Arena and in WolfET source: bg_misc.c.
Server is running WolfET 2.60b, ETPro 3.2.6, some lua modules, custom sounds and textures.
So, my questions are:
- Is that error just random or is there hight propability it happen again?
- What is reason?
- Is this error able to be related to server whatever?
Thx for answer
Here is part of bg_misc.c (WolfET 2.60) - BG_EvaluteTrajectory:
void BG_EvaluateTrajectoryDelta( const trajectory_t *tr, int atTime, vec3_t result, qboolean isAngle, int splineData ) {
float deltaTime;
float phase;
switch( tr->trType ) {
case TR_STATIONARY:
case TR_INTERPOLATE:
VectorClear( result );
break;
case TR_LINEAR:
VectorCopy( tr->trDelta, result );
break;
case TR_SINE:
deltaTime = ( atTime - tr->trTime ) / (float) tr->trDuration;
phase = cos( deltaTime * M_PI * 2 ); // derivative of sin = cos
phase *= 0.5;
VectorScale( tr->trDelta, phase, result );
break;
//----(SA) removed
case TR_LINEAR_STOP:
if ( atTime > tr->trTime + tr->trDuration ) {
VectorClear( result );
return;
}
VectorCopy( tr->trDelta, result );
break;
case TR_GRAVITY:
deltaTime = ( atTime - tr->trTime ) * 0.001; // milliseconds to seconds
VectorCopy( tr->trDelta, result );
result[2] -= DEFAULT_GRAVITY * deltaTime; // FIXME: local gravity...
break;
// Ridah
case TR_GRAVITY_LOW:
deltaTime = ( atTime - tr->trTime ) * 0.001; // milliseconds to seconds
VectorCopy( tr->trDelta, result );
result[2] -= (DEFAULT_GRAVITY * 0.3) * deltaTime; // FIXME: local gravity...
break;
// done.
//----(SA)
case TR_GRAVITY_FLOAT:
deltaTime = ( atTime - tr->trTime ) * 0.001; // milliseconds to seconds
VectorCopy( tr->trDelta, result );
result[2] -= (DEFAULT_GRAVITY * 0.2) * deltaTime;
break;
//----(SA) end
// RF, acceleration
case TR_ACCELERATE: // trDelta is eventual speed
if ( atTime > tr->trTime + tr->trDuration ) {
VectorClear( result );
return;
}
deltaTime = ( atTime - tr->trTime ) * 0.001; // milliseconds to seconds
phase = deltaTime / (float)tr->trDuration;
VectorScale( tr->trDelta, deltaTime * deltaTime, result );
break;
case TR_DECCELERATE: // trDelta is breaking force
if ( atTime > tr->trTime + tr->trDuration ) {
VectorClear( result );
return;
}
deltaTime = ( atTime - tr->trTime ) * 0.001; // milliseconds to seconds
VectorScale( tr->trDelta, deltaTime, result );
break;
case TR_SPLINE:
case TR_LINEAR_PATH:
VectorClear( result );
break;
default:
Com_Error( ERR_DROP, "BG_EvaluateTrajectoryDelta: unknown trType: %i", tr->trTime );
break;
}
}