better aim

This commit is contained in:
ineed bots 2023-12-11 16:50:33 -06:00
parent 6315dffe34
commit 5be2cf4b51

View File

@ -717,9 +717,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;
}
/*
@ -727,7 +737,7 @@ GetEyeHeight()
*/
GetEyePos()
{
return self getTagOrigin( "tag_eye" );
return self.origin + ( 0, 0, self GetEyeHeight() );
}
/*