PDA

View Full Version : Tweak AI


poontangcream
07-06-2010, 06:31 PM
Tweak the opfor AI - make them blind or at least not so super x-ray visioned...

found this off one of the other forums:

response to Blade1's request:
Hey creamy, i'd love to tweak the ai settings too, tell me, how did you do it?

off the top of my head -
in the 'sniper ghost warrior/Game' folder
[buried in the steam folder if you downloaded it that way]

open Data0.pak with winzip or similar.

look for the file: ai_config.scr
extract this to the 'sniper ghost warrior/Game/Data' folder.

make a copy of it before you tweak it.

open ai_config.scr with a text editor and read the descriptions [some are in polish obviously]

this is the original:
// Maksymalna odleglosc widzenia
!MaxSeeDistance(f, f, f) // CALM, UPSET, ALARMED
MaxSeeDistance(8000.0, 16000.0, 20000.0)

if you want the AI to be, well, blind to you, change the values to 0, save, start the game and see...

personally i halved the values and it made it a bit more of a rewarding game on hard mode.

you can tweak their angle of view and how they alarm their friends:
// Odleglosc [cm] alarmowania kompanow
!AlarmFriends(f, f) // alarm, upset
AlarmFriends(3000.0, 1000.0)

hth

Dark Cryogen
07-06-2010, 08:52 PM
Thank you! I hate how good their vision is so I will definitely be giving it a go.

Kincaid
07-06-2010, 11:48 PM
Thanks for this information, poontangcream. I'll likely not make any changes but it's nice for people to know how to accomplish this in the event that City Interactive doesn't address it on their own. Right now it annoys me but I also find the AI to be irritatingly challenging.

ketarex
07-10-2010, 05:17 AM
it changes nothing for me.....

are you sure ?

poontangcream
07-11-2010, 05:54 AM
did you change maxseedistance to 0's?
you put the modified ai scr file into the data subdirectory?

ketarex
07-11-2010, 07:11 AM
yes and no change

poontangcream
07-11-2010, 10:23 AM
oops, change minseedistance too

if you make min and max seedistances to 0,0,0 that should do it?



MaxSeeDistance(0.0, 0.0, 0.0)

MinSeeDistance(0.0, 0.0, 0.0)


Ai should be blind, aside from the scripted ones [they see you regardless]

M1sF1rE
07-11-2010, 03:08 PM
When you extract the Data0.pak it creates a Data0 folder. Make sure the folders inside the Data0 folder are copied into the Data folder.

I'm pretty sure it ONLY reads from the Data folder.

And make sure the folder heirachy is exactly as inside the pak file.

M1sF1rE
07-11-2010, 03:10 PM
Also you can copy all the text from the file and run it through Google translate. Polish>English

The comments are the only thing that will change.

The main problem is that when the AI is placed in ChromeED the map maker can override the default parameters for each AI placed. Play testing should have caught all of this. (If there was any)