From 5be2cf4b51ace5db6078cfa35f271f9010534f44 Mon Sep 17 00:00:00 2001 From: ineed bots Date: Mon, 11 Dec 2023 16:50:33 -0600 Subject: [PATCH] better aim --- 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 393484a..22dcb51 100644 --- a/maps/mp/bots/_bot_utility.gsc +++ b/maps/mp/bots/_bot_utility.gsc @@ -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() ); } /*