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