mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-04-20 17:55:42 +00:00
better aim
This commit is contained in:
parent
6315dffe34
commit
5be2cf4b51
@ -717,9 +717,19 @@ WeaponIsFullAuto( weap )
|
|||||||
*/
|
*/
|
||||||
GetEyeHeight()
|
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()
|
GetEyePos()
|
||||||
{
|
{
|
||||||
return self getTagOrigin( "tag_eye" );
|
return self.origin + ( 0, 0, self GetEyeHeight() );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user