aim better

This commit is contained in:
ineed bots 2023-12-11 16:48:30 -06:00
parent 1126cf4be6
commit 6075cee7e4

View File

@ -669,9 +669,19 @@ WeaponIsFullAuto( weap )
*/
GetEyeHeight()
{
myEye = self GetEyePos();
stance = self GetStance();
return myEye[2] - self.origin[2];
if ( self inLastStand() || stance == "prone" )
{
return 11;
}
if ( stance == "crouch" )
{
return 40;
}
return 60;
}
/*
@ -679,7 +689,7 @@ GetEyeHeight()
*/
GetEyePos()
{
return self getTagOrigin( "tag_eye" );
return self.origin + ( 0, 0, self GetEyeHeight() );
}
/*