How do I make pawns only use mod added weapons?

Started by Locusthorde300, June 11, 2015, 12:42:52 PM

Previous topic - Next topic

Locusthorde300

For example, they would no longer use the Pistol, or Assault rifle. But instead whatever mods a weapon added. I'm assuming some modifications to the core files?

jacob814

That would be my first guess. Unless your good with code, I dont see elsewise.
My Mods:
Glass&Lights

Shinzy

this is really really simple change to make!
the whole 'system' works on weapon tags
each pawn have certain weapon tags given to them

like this one for example
    <weaponTags>
      <li>Gun</li>
      <li>Melee</li>
    </weaponTags>

you'll only need to remove the 'gun' and 'melee' and replace them with
whatever tag the modded weapon has

you can find the right xml files in the core mod
Mods/Core/Defs/ThingsDefs/Weapons_???.xml
and Core/Defs/PawnKindDefs/PawnKinds_???.xml

just open them files with your notepad and search for the 'weapon tag' lines
you don't need to be really good with the code at all! just might have to study the
files a bit to understand what's going on! ;D