Raised This Month: $ Target: $400
 0% 

"PM Got a velocity too low on 2"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 07-14-2012 , 18:05   "PM Got a velocity too low on 2"
Reply With Quote #1

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.
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-14-2012 , 18:10   Re: "PM Got a velocity too low on 2"
Reply With Quote #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.
__________________

Last edited by Arkshine; 07-14-2012 at 18:55.
Arkshine is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 07-14-2012 , 18:13   Re: "PM Got a velocity too low on 2"
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
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?
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-14-2012 , 18:54   Re: "PM Got a velocity too low on 2"
Reply With Quote #4

Sorry, I meant < -sv_maxvelocity
__________________
Arkshine is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 07-14-2012 , 19:04   Re: "PM Got a velocity too low on 2"
Reply With Quote #5

It's weird, but i'll keep it

Also, what it means "low on 2" ?
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-14-2012 , 19:37   Re: "PM Got a velocity too low on 2"
Reply With Quote #6

Probably on z axis ? Or entity index ?
__________________

Last edited by Arkshine; 07-14-2012 at 19:39.
Arkshine is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 07-14-2012 , 22:39   Re: "PM Got a velocity too low on 2"
Reply With Quote #7

Quote:
Originally Posted by Arkshine View Post
Probably on z axis ? Or entity index ?
I don't think so, because everytime it says "low on 2"
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-15-2012 , 02:41   Re: "PM Got a velocity too low on 2"
Reply With Quote #8

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;
		}
	}
}
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 07-15-2012 at 02:42.
ConnorMcLeod is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 07-15-2012 , 03:43   Re: "PM Got a velocity too low on 2"
Reply With Quote #9

I'm a little bit confused with something... PM_CheckVelocity function is called only for players, or every entity?
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-15-2012 , 04:12   Re: "PM Got a velocity too low on 2"
Reply With Quote #10

Only players.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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