deakblack wrote:jamie1992 wrote:The #include"xxxxx\xxxxxxx_xxxxx.xml" is a add on file, if you wish, you can create your own XML and set various parameters or even spawn chances, so in essence you can create random weapon load-outs each and every time they spawn etc. But that's a different story. Anyway, after editing the above to whatever it is that suits your fancy, save it, and create the gamedata tree or if its already done then just save, load up stalker, and you have to start a new game if I recall.
oh~~~
MR J plz plz plz plz plz tell me how to give them random weapon load-outs ~
also,i want them to use grenadelauncher addons~ i saw someone made it from youtube video without description.
No problem! Let me help.
Ok so take for example any XML file. It matters not which one, completely clear it and name it something like weapon.xml
Open up a Desc Char file, for example
character_desc_escape.xmlMove down to wolfs section. -
esc_wolf In his supplies section as noted above in my previous post. Put
#include "gameplay\weapon.xml" Make sure your
weapon.xml file is in the gameplay folder like all others.
Remove all other entries, or atleast the ones of which you wanna randomize, lets say for example you want to do assault rifles. Get rid of his AK and ammo.
Now, open the new file you made. And inside it should be blank, what you now need to do is this.
Place a line inside as so.
wpn_xxxx = 1, prob = 0.5 \nThe = 1 is how many to calculate, and the prob = 0.5 is a 50% chance for that one to spawn. If you put = 2, prob = 0.5 then there would be a 50% chance for both seperatly to spawn. If that makes sense.
You can also make it so that they have addons on their weapons.
wpn_xxxx = 1, scope prob = 0.3 \nThis means 1 marked rifle, with a scope that has a 30% chance to spawn.
All you need to do now is make multiple lines, consisting of all guns. Various loadouts and such. You can also make seperate ones, so you can make one for Rifles, one for Pistols, etc, and name them as so, so that both pistol & rifle are calculated randomly.
You will need to do the same with Ammo, there are ways to refine it. And such. This is just a breif run down. I hope it helps you and clears things up.
Jamie