mirror of
https://github.com/ineedbots/t4_bot_warfare.git
synced 2025-04-21 23:45:43 +00:00
aim better
This commit is contained in:
parent
1126cf4be6
commit
6075cee7e4
@ -669,9 +669,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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -679,7 +689,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