Enemy item choice tweaks[message #343349]
|
Sat, 28 November 2015 04:22
|
|
delosombres |
![](/images/ranks/private.png) |
Messages:10
Registered:February 2009 |
|
|
Hi guys, I would like to ask if there is a way how to change WHEN and HOW OFTEN do enemies wear certain stuff. I did some tweaks to weapon damage and armor to make it more realistic. It works fine, the only problem is that now the best armor (Spectra - which is class IIIA) is almost useless against both FMJ and AP rifle rounds (just like in real) and that made the game much eaiser for me because enemies don't wear ceramic/titanium (class 3 & 4) plating much (which is now mandatory). I would like to change it so elite enemies would always wear titanium/ceramic plating at certain point (progress) of the game. Is it possible? I know that items have coolness level and enemies have speed of item choices setting (= coolness modifier similar to Bobby Ray's Quality?) but I don't know how it works exactly. There is also coolness bonus modifier in JA2_options.ini for specific enemy types. I have no clue how it works together. It seems that it's random anyway so even if it passes the coolness check there is only a % chance they will wear it.
Report message to a moderator
|
Private
|
|
|
|
Re: Enemy item choice tweaks[message #343355 is a reply to message #343350]
|
Sun, 29 November 2015 02:52 ![Go to previous message Go to previous message](/theme/Bear_Classic_Brown/images/up.png)
|
|
delosombres |
![](/images/ranks/private.png) |
Messages:10
Registered:February 2009 |
|
|
Well, I've found a file called "EnemyItemChoices.xml" with item numbers which seem to represent a pool of items that can appear. This part is interesting:
<ENEMYITEMCHOICES>
<uiIndex>11</uiIndex>
<name>Armour Attachments</name>
<ubChoices>3</ubChoices>
<bItemNo1>183</bItemNo1>
<bItemNo2>837</bItemNo2>
<bItemNo3>838</bItemNo3>
<bItemNo4>0</bItemNo4>
<bItemNo5>0</bItemNo5>
<bItemNo6>0</bItemNo6>
etc...
183 are ceramic plates, 837 titanium plates and 838 leg protectors. ubChoices should be a total number of possibilities. So, how about if I would add another 183/837 to line No4, No5 and so on? Maybe that would increase the chance.
[Updated on: Sun, 29 November 2015 02:53] Report message to a moderator
|
Private
|
|
|
|
Re: Enemy item choice tweaks[message #343362 is a reply to message #343358]
|
Sun, 29 November 2015 19:20 ![Go to previous message Go to previous message](/theme/Bear_Classic_Brown/images/up.png)
|
|
delosombres |
![](/images/ranks/private.png) |
Messages:10
Registered:February 2009 |
|
|
How about ubChoices 1 with only one choice - 183? :]
Also, I can set for example ubChoices 15 and then 12x 183, 2x 837 and 1x 837. This gives more weight on ceramic plates since the ratio will be 12:2:1. At least the percentage for ceramic will be much higher. Anyway, I'll test it and see...
[Updated on: Mon, 30 November 2015 03:11] Report message to a moderator
|
Private
|
|
|
|
Re: Enemy item choice tweaks[message #343370 is a reply to message #343367]
|
Tue, 01 December 2015 03:59 ![Go to previous message Go to previous message](/theme/Bear_Classic_Brown/images/up.png)
|
|
delosombres |
![](/images/ranks/private.png) |
Messages:10
Registered:February 2009 |
|
|
Ok, just did some testing. I put ubChoices at 15, 10x ceramic plates, 4x titanium plates and 1x leg protectors. The file name is ItemChoices_Enemy_Elite.xml + ItemChoices_Enemy_Regular.xml. Of course I set SOLDIERCLASS_SPECIFIC_ITEM_TABLES = TRUE in Ja2_options.ini so I suppose these files overrides the settings in basic EnemyItemChoices.xml.
I have 65 progress, speed of enemy item choice = very slow and I set ceramic to coolness 9 (titanium is 8). However, I set bonus coolness for elites +3 and for regulars +2 in JA2_options.ini. I killed like 30 enemies and got 0 plates and 3 protectors (attachment drop rate = 100). Not sure what is going on because some guys (Grumm) dropped MP7A1 and that is coolness 9. :o/
I'm gonna try to reduce coolness on plates.
Btw, side question. Does it always give the best (coolness) available equipment or is it still random? I mean at progress 90+, do elites still get Kevlar and Jacket with the same chance as Spectra?
[Updated on: Tue, 01 December 2015 04:04] Report message to a moderator
|
Private
|
|
|
|
|
|