Topic: Is it possible to change AI firing accuracy in the new version?

As the title says, but if it's not possible, I remember someone telling me I can do the change if I use the source code or something....can anyone confirm?

Re: Is it possible to change AI firing accuracy in the new version?

it's possible by editing the ai files, they are located in sp_pak_coop1.pk3 in the folder maps/

each map has its own file, example: escape1.coop.ai in that file search for aim_accuracy, you'll have to change it for each AI and then save the file and create a new pk3 file

Re: Is it possible to change AI firing accuracy in the new version?

No no I know I can change the accuracy there, but that doesn't change much since the AI accuracy in RTCW coop is inherently much higher than in the base game

What I meant is can I lower the AI accuracy to the point that it's the exact same accuracy in the original game?

As I said I remember asking you about that years ago and you told me I need the source code for RTCW Coop in order to make the AI as inaccurate as it was in the original game

Re: Is it possible to change AI firing accuracy in the new version?

I did try changing those from 0.6 to like 0.01 but the soldiers remained super accurate with their shots

Now that I think about it, what even is the point of those values being there if the game will always overwrite them anyway?

Re: Is it possible to change AI firing accuracy in the new version?

Developer purposes maybe, it surely isn't there for decoration. big_smile

Best regards,
Von Bootz

Re: Is it possible to change AI firing accuracy in the new version?

orwa96 wrote:

I did try changing those from 0.6 to like 0.01 but the soldiers remained super accurate with their shots

Now that I think about it, what even is the point of those values being there if the game will always overwrite them anyway?

did you pack your changes into a pk3 file ? if not, did you run an unpure server ?

7 (edited by orwa96 2022-11-08 23:17:29)

Re: Is it possible to change AI firing accuracy in the new version?

fretn wrote:
orwa96 wrote:

I did try changing those from 0.6 to like 0.01 but the soldiers remained super accurate with their shots

Now that I think about it, what even is the point of those values being there if the game will always overwrite them anyway?

did you pack your changes into a pk3 file ? if not, did you run an unpure server ?

None of that works, you yourself said it years ago when I asked about it (and admittedly was a bit rude about it back then) that the only way to change the accuracy of soldiers in this mod is to recompile the entire code for the thing

So yes I did try doing all of that, and it didn't work because it's clearly all being overwritten by something else

I'll quote what you said to me years ago about this same topic:

"the accuracy is ignored in the ai files, ai get more accurate when g_gameskills is set higher"

"you want to change it ? edit the source code and compile it yourself"

But since you're the one who did the coding, did you change it since then, so that we can change the accuracy without having to recompile?



Edit: I followed the "How to build" file you included in the code files, and I did reach the point of building everything (after removing the bloc from the AI file that forces the accuracy to overwrite existing values)

I reached the point of creating the pk3 file, but every time I type "./create_pk3.bat" into Cygwin, I get the following:

"C:\cygwin64\home\ORWA\rtcwcoop>cd media\sp_pak_coop1\

C:\cygwin64\home\ORWA\rtcwcoop\media\sp_pak_coop1>zip.exe -r sp_pak_coop1.pk3 .\

'zip.exe' is not recognized as an internal or external command,
operable program or batch file.

C:\cygwin64\home\ORWA\rtcwcoop\media\sp_pak_coop1>move sp_pak_coop1.pk3 ..\..\co
opmain
The system cannot find the file specified."


I assume this isn't a big deal and I can just zip the files myself and move them to the coopmain folder....and after that I tried moving the entirety of the contents of the "release-mingw32-x86_64" folder to the main game folder, replacing all the COOP files that would usually be there (from downloading COOP directly, rather than compiling it) and the game just crashes on start....so as I said I think there's a problem with my compiling process

Can you please just compile it yourself after removing that bloc from the ai_cast.c file, and just send it to me or upload it somewhere? It shouldn't be hard and I'm sure many mappers would love the ability to edit AI accuracy as they see fit