View Single Post
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 06-22-2009 , 14:57   Re: RPG mod by Sylwester
Reply With Quote #33

The problem has been solved. It has only occurred on certain NON-STEAM server version, so I'm not going to add fix in plugin code. The bug causes player to teleport to origin {0,0,0} when pressing jump while player is in air and his horizontal velocity is 0.
To fix it you need to find in player_PostThink function:
PHP Code:
set_pev(idpev_velocityvelocity[id]) 
and replace it with:
PHP Code:
if(velocity[id][0] < 2000.0 && velocity[id][0] > -2000.0
&& velocity[id][1] < 2000.0 && velocity[id][1] > -2000.0)
    
set_pev(idpev_velocityvelocity[id]) 
__________________
Impossible is Nothing
Sylwester is offline