| More random enemy loadouts[message #341096]
|
Fri, 22 May 2015 09:33
|
|
Rockstarz |
Messages:3
Registered:May 2015 Location: United States |
|
|
Hello All!
Been lurking around here for a while, and I have just a small question I'd love for some of you gurus to answer. I see that the enemy loadouts come from an XML file. Is there any way to make them more randomly generated? We've got this ludicrous amount of weapons, but I feel like only a few are being used!
Report message to a moderator
|
Civilian
|
|
|
|
| Re: More random enemy loadouts[message #341098 is a reply to message #341096]
|
Fri, 22 May 2015 13:04
|
|
| Flugente |
 |
Messages:3499
Registered:April 2009 Location: Germany |
|
|
Hi Rockstarz, welcome to the pit!
As you stated yourself, the enemy gear is defined in the EnemyGunChoices and EnemyItemChoices xmls (or their class-specific equivalents). Each time an enemy is generated, we look up the appropriate row (depending on game progress) and then draw an item at random from that list. But the list itself is fixed by the xml. If you want the enemy to use other weapons, you will have to alter these xmls, there is no 'fill xmls with random gear' functionality.
I know now that it could never work between us, as much as we wanted to, it could never be! Not because you're a rabbit, but because you're black.
If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.Report message to a moderator
|
|
|
|
|