Home » MODDING HQ 1.13 » v1.13 Features How-Tos & Discussions » Adjusting enemy vision
Adjusting enemy vision[message #365857] Tue, 16 January 2024 17:11 Go to next message
Riiccia is currently offline Riiccia

 
Messages:45
Registered:December 2009
Location: Finland
How do I adjust the enemy vision settings? It seems like after getting your first sniper rifle, it is enough just to sit and wait for the enemy to run towards you on outdoor maps.

Report message to a moderator

Corporal
Re: Adjusting enemy vision[message #365873 is a reply to message #365857] Wed, 31 January 2024 15:22 Go to previous messageGo to next message
Asdow is currently offline Asdow

 
Messages:129
Registered:August 2010
in ja2_options.ini

[Tactical Vision Settings]

;******************************************************************************************************************************
; These settings change the sight distance of all characters in the game.
;******************************************************************************************************************************

;------------------------------------------------------------------------------------------------------------------------------
; Base sight range for every person in the game. This value is automatically multiplied by 2!
; JA2 Default is 13.
; Range: 0-255
;------------------------------------------------------------------------------------------------------------------------------

BASE_SIGHT_RANGE = 14

Report message to a moderator

Sergeant
Re: Adjusting enemy vision[message #365874 is a reply to message #365873] Wed, 31 January 2024 19:41 Go to previous messageGo to next message
Riiccia is currently offline Riiccia

 
Messages:45
Registered:December 2009
Location: Finland
I know, but for enemies only. Essentially I want to make them see further away, so they don't just run around while getting shot at.

Report message to a moderator

Corporal
Re: Adjusting enemy vision[message #365877 is a reply to message #365874] Thu, 01 February 2024 22:21 Go to previous messageGo to next message
Asdow is currently offline Asdow

 
Messages:129
Registered:August 2010
You'd need to modify the source code for that I think. The vision routines are the same for player controlled mercs and enemies/npcs

Report message to a moderator

Sergeant
Re: Adjusting enemy vision[message #365954 is a reply to message #365877] Sun, 17 March 2024 17:15 Go to previous messageGo to next message
Riiccia is currently offline Riiccia

 
Messages:45
Registered:December 2009
Location: Finland
Have you experimented by lowering it? I'm wondering if setting it to 10 or so would be enough to balance the game, but not make it unrealistic.

edit. I found two possible solutions to the problem: increasing the number of elites, so the AI has more snipers. The only thing is they don't seem to make good use of them in the newest release in big forest maps. The second option would be to lower sight bonuses for scopes and binoculars, any idea how to do this without modifying base sight range separately?

[Updated on: Mon, 18 March 2024 06:24]

Report message to a moderator

Corporal
Re: Adjusting enemy vision[message #365982 is a reply to message #365954] Fri, 22 March 2024 22:26 Go to previous message
Riiccia is currently offline Riiccia

 
Messages:45
Registered:December 2009
Location: Finland
In case anyone else is interested, lowered the x7 and x10 scopes to follow the same formula as x2 and x4. Meaning lowered the x10 scope from 90 % vision bonus to 50 % and x7 scope lowered to 35 %. Also lowered the sun goggles bonus from 10 % to 5 % as compared to NVG the bonus was a bit too high to be realistic. The AI reacts a lot better now to original style fights that happen a bit closer, while not making sniper rifles obsolete. I missed those old exciting battles from JA: Deadly Games and JA2 when the enemy actually shoots back.

Report message to a moderator

Corporal
Previous Topic: LOBOT tutorials
Goto Forum:
  


Current Time: Wed Jun 19 09:29:55 GMT+3 2024

Total time taken to generate the page: 0.01055 seconds