AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   "PM Got a velocity too low on 2" (https://forums.alliedmods.net/showthread.php?t=190098)

meTaLiCroSS 07-14-2012 18:05

"PM Got a velocity too low on 2"
 
When enabling developer on level 2 ("developer 2") I usually get this print on my console and it repeats and repeats

Code:

PM Got a velocity too low on 2
Anyone knows why this happens?

Most of the functions integrated of my server modifyies entities/players velocity, so it would be great to see the origin of this warning/error.

Anyway, forum's search system sucks, i've tried with the text "PM Got a velocity too low on" and it only accepted "velocity" and "low" words.

Arkshine 07-14-2012 18:10

Re: "PM Got a velocity too low on 2"
 
You have this error when an entity has a velocity < -sv_maxvelocity (default 2000).

Maybe something is spawned where it should not, like in wall, and fall very slowly.

meTaLiCroSS 07-14-2012 18:13

Re: "PM Got a velocity too low on 2"
 
Quote:

Originally Posted by Arkshine (Post 1750464)
You have this error when an entity has a velocity < to the value of sv_maxvelocity (default 2000).

Maybe something is spawned where it should not, like in wall, and fall very slowly.

velocity < sv_maxvelocity

or

velocity > sv_maxvelocity

o.O?

Arkshine 07-14-2012 18:54

Re: "PM Got a velocity too low on 2"
 
Sorry, I meant < -sv_maxvelocity

meTaLiCroSS 07-14-2012 19:04

Re: "PM Got a velocity too low on 2"
 
It's weird, but i'll keep it

Also, what it means "low on 2" ?

Arkshine 07-14-2012 19:37

Re: "PM Got a velocity too low on 2"
 
Probably on z axis ? Or entity index ?

meTaLiCroSS 07-14-2012 22:39

Re: "PM Got a velocity too low on 2"
 
Quote:

Originally Posted by Arkshine (Post 1750508)
Probably on z axis ? Or entity index ?

I don't think so, because everytime it says "low on 2" :(

ConnorMcLeod 07-15-2012 02:41

Re: "PM Got a velocity too low on 2"
 
2 is Z axis.

Code:

void PM_CheckVelocity ()
{
        int                i;

//
// bound velocity
//
        for (i=0 ; i<3 ; 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;
                }
        }
}


meTaLiCroSS 07-15-2012 03:43

Re: "PM Got a velocity too low on 2"
 
I'm a little bit confused with something... PM_CheckVelocity function is called only for players, or every entity?

ConnorMcLeod 07-15-2012 04:12

Re: "PM Got a velocity too low on 2"
 
Only players.


All times are GMT -4. The time now is 15:20.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.