From 6075cee7e43a7fbf2aa20a813afe9570a94ebd63 Mon Sep 17 00:00:00 2001 From: ineed bots Date: Mon, 11 Dec 2023 16:48:30 -0600 Subject: [PATCH] aim better --- maps/mp/bots/_bot_utility.gsc | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/maps/mp/bots/_bot_utility.gsc b/maps/mp/bots/_bot_utility.gsc index 76f5319..269f2d8 100644 --- a/maps/mp/bots/_bot_utility.gsc +++ b/maps/mp/bots/_bot_utility.gsc @@ -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() ); } /*