From 3c77fcb9d943f852eadf72c74158280c2a094ca4 Mon Sep 17 00:00:00 2001 From: Wanne Date: Sat, 15 Oct 2011 20:01:05 +0000 Subject: [PATCH] - Externalized a 3 properties where the user can set how the AI reacts when shooting. This should fix the bug, that AI acts strange when playing with NCTH system (by tazpn) o MAX_EFFECTIVE_RANGE_MULTIPLIER, MAX_EFFECTIVE_RANGE_REDUCTION, MAX_EFFECTIVE_USE_GRADIENT o Bears Pit discussion: http://www.ja-galaxy-forum.com/board/ubbthreads.php?ubb=showflat&Number=291742&page=3 git-svn-id: https://ja2svn.mooo.com/source/ja2_v1.13_data@1338 4f8fa57e-7814-0410-bad4-adc449f26b7c --- gamedir/Data-1.13/CTHConstants.ini | 17 ++++++++++++++++- gamedir/Data/CTHConstants.ini | 17 ++++++++++++++++- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/gamedir/Data-1.13/CTHConstants.ini b/gamedir/Data-1.13/CTHConstants.ini index fcf16e2c9..0c710bf12 100644 --- a/gamedir/Data-1.13/CTHConstants.ini +++ b/gamedir/Data-1.13/CTHConstants.ini @@ -356,4 +356,19 @@ RECOIL_COUNTER_INCREMENT_TRACER = 25 NORMAL_RECOIL_DISTANCE = 140 MAX_BULLET_DEV = 5.0 -RANGE_EFFECTS_DEV = TRUE \ No newline at end of file +RANGE_EFFECTS_DEV = TRUE + +;------------------------------------------------------------------------------ +; MAX_EFFECTIVE_RANGE_MULTIPLIER +; Maximum effective range of Gun that AI will still attempt to shoot +; Default: 1.1 which equates to 110% of the gun's effective range +; MAX_EFFECTIVE_RANGE_REDUCTION +; Maximum reduction of chance to hit when exceeding effective range +; Default: 0.5 which equates to 50% reduction +; MAX_EFFECTIVE_USE_GRADIENT +; Whether to apply the reduction as a flat reduction or as gradient +; Default: FALSE which is flat reduction when exceeding range +;------------------------------------------------------------------------------ +MAX_EFFECTIVE_RANGE_MULTIPLIER = 1.1 +MAX_EFFECTIVE_RANGE_REDUCTION = 0.5 +MAX_EFFECTIVE_USE_GRADIENT = FALSE \ No newline at end of file diff --git a/gamedir/Data/CTHConstants.ini b/gamedir/Data/CTHConstants.ini index fcf16e2c9..0c710bf12 100644 --- a/gamedir/Data/CTHConstants.ini +++ b/gamedir/Data/CTHConstants.ini @@ -356,4 +356,19 @@ RECOIL_COUNTER_INCREMENT_TRACER = 25 NORMAL_RECOIL_DISTANCE = 140 MAX_BULLET_DEV = 5.0 -RANGE_EFFECTS_DEV = TRUE \ No newline at end of file +RANGE_EFFECTS_DEV = TRUE + +;------------------------------------------------------------------------------ +; MAX_EFFECTIVE_RANGE_MULTIPLIER +; Maximum effective range of Gun that AI will still attempt to shoot +; Default: 1.1 which equates to 110% of the gun's effective range +; MAX_EFFECTIVE_RANGE_REDUCTION +; Maximum reduction of chance to hit when exceeding effective range +; Default: 0.5 which equates to 50% reduction +; MAX_EFFECTIVE_USE_GRADIENT +; Whether to apply the reduction as a flat reduction or as gradient +; Default: FALSE which is flat reduction when exceeding range +;------------------------------------------------------------------------------ +MAX_EFFECTIVE_RANGE_MULTIPLIER = 1.1 +MAX_EFFECTIVE_RANGE_REDUCTION = 0.5 +MAX_EFFECTIVE_USE_GRADIENT = FALSE \ No newline at end of file