JagMaker Posted March 7, 2017 Share Posted March 7, 2017 Hi all, need a little help) In fight enemies or friends are looting weapons from dead bodies.,so, how to make they didn't do this? or how to make it for 1 npc only? have tried to change ai packages, data's, combat changes,as result - or npc completely stuck, or anyway gathering weapon =\ Link to comment Share on other sites More sharing options...
stihspid Posted March 7, 2017 Share Posted March 7, 2017 (edited) Well, weapon forms have a flag for player only, or hidden. One of them is player only an is removed from ai searches of containers (only player can use it), to which the equation for combat ai looks at damage rates and scans the general area (or a much larger area if you set that) for weapons/ammo. I don't know it's doing that specifically, but it seems that way. Weapons flagged as hidden, are hidden from the NPC actors inventory & replaced with a death item, which in this case would include a different version of the weapon, because they had one, and it was there, so a kind of wacky wonky way to circumvent that. The weapon they use in combat & the weapon you find in that actors inventory after death are different weapons that appear the same. I'm just guessing that here the death item weapon would have a much lower damage rate & be set up for it's value in scrap more than actual combat usage. *edit* Also you could look at companion weapons, how they are made, might have a part in creating a persistent weapon, or change the ai to not search for other weapons, I'm guessing it would be in sandbox & combat ai packages. Edited March 7, 2017 by stihspid Link to comment Share on other sites More sharing options...
JagMaker Posted March 7, 2017 Author Share Posted March 7, 2017 (edited) no, hidden flag - is hidden for player, npc are anyway will use em..about ai - so, i have Human npc, he have ai of ghoul, combat data of bloodbug, and radstag's mentality,but anyway - in combat first he doing - runing to take weapon from nearest corpse ( have tried to give him weapon and "bound" it., no resulthave tried to change data in ai package - use only keyworded weapon (grenades for excample)., no resulthave tried to change combat ai inside ai package., no there must be some secret flag, that allows the npc to do that. Edited March 7, 2017 by JagMaker Link to comment Share on other sites More sharing options...
stihspid Posted March 7, 2017 Share Posted March 7, 2017 Look at the actor. Look at the packages & look at the combat style (which is basically a combat ai) There would be flags in there if there was an ability to stop container searches for weapons. But what weapon are they using, because there isn't much reason for the actor to grab another weapon unless there are weapons around that have higher damage rates. Also companions don't exhibit that behavior, either relating to specific packages or the companion created weapons, which are a little different. You didn't give specifics, so I just guessed. Link to comment Share on other sites More sharing options...
JagMaker Posted March 7, 2017 Author Share Posted March 7, 2017 (edited) so, have some progress, that secret flag "can pickup items" was in race \ human race \ combat data bt it will disable this function for all of npc, 'n i need for one only or to disable it would be even better?) Edited March 7, 2017 by JagMaker Link to comment Share on other sites More sharing options...
BlahBlahDEEBlahBlah Posted March 7, 2017 Share Posted March 7, 2017 Maybe make a subrace or new race with your one npc in it only? Link to comment Share on other sites More sharing options...
JagMaker Posted March 7, 2017 Author Share Posted March 7, 2017 Maybe make a subrace or new race with your one npc in it only?hah, yes, i' tried to duplicate human race and to make an npc with it, but there was nothing good)anyway, unflag is a nice solution of my problem) Link to comment Share on other sites More sharing options...
Recommended Posts