mirror of
https://github.com/ineedbots/iw2_bot_warfare.git
synced 2025-04-22 23:25:42 +00:00
fix hitreg
This commit is contained in:
parent
e667067a6f
commit
5661427484
@ -1866,7 +1866,6 @@ reload()
|
||||
self notify( "bot_reload" );
|
||||
self endon( "bot_reload" );
|
||||
|
||||
self notify( "reload_start" );
|
||||
self botAction( "+reload" );
|
||||
wait 0.05;
|
||||
self botAction( "-reload" );
|
||||
@ -2131,23 +2130,7 @@ bot_lookat( pos, time, vel, doAimPredict )
|
||||
|
||||
for ( i = 0; i < steps; i++ )
|
||||
{
|
||||
newX = myAngle[0] + X;
|
||||
|
||||
while ( newX < 0 )
|
||||
newX += 360.0;
|
||||
|
||||
while ( newX >= 360.0 )
|
||||
newX -= 360.0;
|
||||
|
||||
newY = myAngle[1] + Y;
|
||||
|
||||
while ( newY < 0 )
|
||||
newY += 360.0;
|
||||
|
||||
while ( newY >= 360.0 )
|
||||
newY -= 360.0;
|
||||
|
||||
myAngle = ( newX, newY, 0 );
|
||||
myAngle = ( AngleClamp180( myAngle[0] + X ), AngleClamp180( myAngle[1] + Y ), 0 );
|
||||
self setPlayerAngles( myAngle );
|
||||
wait 0.05;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user