Originally Posted by
IzNoGoD
Not possible, i tried a while back with speed prediction, but still was not possible. You cannot know where you land or take off.
What about monitoring when a player jumps (leaves the ground), get the origin at the point they left the ground (origin 1), then get the origin where the player lands (is no longer in the air - origin 2), and then measuring the distance between origin 1 and origin 2. It's very easy to monitor when a player jumps:
PHP Code:
jumpMonitor()
{
self endon( "disconnect" );
self endon( "death" );
level endon( "intermission" );
count = 0;
stop_db = (level.anti_dbbh == 1) || (level.anti_dbbh == 3);
stop_bh = (level.anti_dbbh == 2) || (level.anti_dbbh == 3);
lastjump = 3;
for( ;; )
{
count ++;
if( count > 3 )
{
jump = self StanceCheck( true );
// Test if dive bombing
if( stop_db && self getStance() == "prone" )
self thread WeaponPause( 0.4 );
// Test if bunny hopping
if( stop_bh && ( (jump == 3) && (lastjump != 3) ) )
self thread WeaponPause( 0.4 + randomfloat( 0.3 ) );
lastjump = jump;
count = 0;
}
wait( 0.05 );
}
}
WeaponPause( time )
{
self endon( "death" );
self endon( "disconnect" );
level endon( "intermission" );
self disableWeapon();
wait( time );
self enableWeapon();
}
StanceCheck( checkjump )
{
if( checkjump && !self isOnGround() )
{
groundpos = physicstrace( self.origin, self.origin + (0, 0, -100) );
if( distance( self.origin, groundpos ) >= level.anti_dbbh_jump_height )
return 3;
}
return 0;
}
In theory, an adaptation of the above script would be fairly simple.